/tools/llvm/configure

https://bitbucket.org/arieg/ufofe · Shell · 36896 lines · 31507 code · 2591 blank · 2798 comment · 2113 complexity · 3153165e5cb1a632fd3372fa30ea5f3a MD5 · raw file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.60 for llvm 2.6.
  4. #
  5. # Report bugs to <llvmbugs@cs.uiuc.edu>.
  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. # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
  13. ## --------------------- ##
  14. ## M4sh Initialization. ##
  15. ## --------------------- ##
  16. # Be Bourne compatible
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  26. fi
  27. BIN_SH=xpg4; export BIN_SH # for Tru64
  28. DUALCASE=1; export DUALCASE # for MKS sh
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. # The user is always right.
  37. if test "${PATH_SEPARATOR+set}" != set; then
  38. echo "#! /bin/sh" >conf$$.sh
  39. echo "exit 0" >>conf$$.sh
  40. chmod +x conf$$.sh
  41. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42. PATH_SEPARATOR=';'
  43. else
  44. PATH_SEPARATOR=:
  45. fi
  46. rm -f conf$$.sh
  47. fi
  48. # Support unset when possible.
  49. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. as_unset=unset
  51. else
  52. as_unset=false
  53. fi
  54. # IFS
  55. # We need space, tab and new line, in precisely that order. Quoting is
  56. # there to prevent editors from complaining about space-tab.
  57. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58. # splitting by setting IFS to empty value.)
  59. as_nl='
  60. '
  61. IFS=" "" $as_nl"
  62. # Find who we are. Look in the path if we contain no directory separator.
  63. case $0 in
  64. *[\\/]* ) as_myself=$0 ;;
  65. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66. for as_dir in $PATH
  67. do
  68. IFS=$as_save_IFS
  69. test -z "$as_dir" && as_dir=.
  70. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  71. done
  72. IFS=$as_save_IFS
  73. ;;
  74. esac
  75. # We did not find ourselves, most probably we were run as `sh COMMAND'
  76. # in which case we are not to be found in the path.
  77. if test "x$as_myself" = x; then
  78. as_myself=$0
  79. fi
  80. if test ! -f "$as_myself"; then
  81. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  82. { (exit 1); exit 1; }
  83. fi
  84. # Work around bugs in pre-3.0 UWIN ksh.
  85. for as_var in ENV MAIL MAILPATH
  86. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  87. done
  88. PS1='$ '
  89. PS2='> '
  90. PS4='+ '
  91. # NLS nuisances.
  92. for as_var in \
  93. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  94. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  95. LC_TELEPHONE LC_TIME
  96. do
  97. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  98. eval $as_var=C; export $as_var
  99. else
  100. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  101. fi
  102. done
  103. # Required to use basename.
  104. if expr a : '\(a\)' >/dev/null 2>&1 &&
  105. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  106. as_expr=expr
  107. else
  108. as_expr=false
  109. fi
  110. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  111. as_basename=basename
  112. else
  113. as_basename=false
  114. fi
  115. # Name of the executable.
  116. as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. echo X/"$0" |
  121. sed '/^.*\/\([^/][^/]*\)\/*$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\/\)$/{
  126. s//\1/
  127. q
  128. }
  129. /^X\/\(\/\).*/{
  130. s//\1/
  131. q
  132. }
  133. s/.*/./; q'`
  134. # CDPATH.
  135. $as_unset CDPATH
  136. if test "x$CONFIG_SHELL" = x; then
  137. if (eval ":") 2>/dev/null; then
  138. as_have_required=yes
  139. else
  140. as_have_required=no
  141. fi
  142. if test $as_have_required = yes && (eval ":
  143. (as_func_return () {
  144. (exit \$1)
  145. }
  146. as_func_success () {
  147. as_func_return 0
  148. }
  149. as_func_failure () {
  150. as_func_return 1
  151. }
  152. as_func_ret_success () {
  153. return 0
  154. }
  155. as_func_ret_failure () {
  156. return 1
  157. }
  158. exitcode=0
  159. if as_func_success; then
  160. :
  161. else
  162. exitcode=1
  163. echo as_func_success failed.
  164. fi
  165. if as_func_failure; then
  166. exitcode=1
  167. echo as_func_failure succeeded.
  168. fi
  169. if as_func_ret_success; then
  170. :
  171. else
  172. exitcode=1
  173. echo as_func_ret_success failed.
  174. fi
  175. if as_func_ret_failure; then
  176. exitcode=1
  177. echo as_func_ret_failure succeeded.
  178. fi
  179. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  180. :
  181. else
  182. exitcode=1
  183. echo positional parameters were not saved.
  184. fi
  185. test \$exitcode = 0) || { (exit 1); exit 1; }
  186. (
  187. as_lineno_1=\$LINENO
  188. as_lineno_2=\$LINENO
  189. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  190. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  191. ") 2> /dev/null; then
  192. :
  193. else
  194. as_candidate_shells=
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. case $as_dir in
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  204. done;;
  205. esac
  206. done
  207. IFS=$as_save_IFS
  208. for as_shell in $as_candidate_shells $SHELL; do
  209. # Try only shells that exist, to save several forks.
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { ("$as_shell") 2> /dev/null <<\_ASEOF
  212. # Be Bourne compatible
  213. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  214. emulate sh
  215. NULLCMD=:
  216. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  217. # is contrary to our usage. Disable this feature.
  218. alias -g '${1+"$@"}'='"$@"'
  219. setopt NO_GLOB_SUBST
  220. else
  221. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  222. fi
  223. BIN_SH=xpg4; export BIN_SH # for Tru64
  224. DUALCASE=1; export DUALCASE # for MKS sh
  225. :
  226. _ASEOF
  227. }; then
  228. CONFIG_SHELL=$as_shell
  229. as_have_required=yes
  230. if { "$as_shell" 2> /dev/null <<\_ASEOF
  231. # Be Bourne compatible
  232. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  233. emulate sh
  234. NULLCMD=:
  235. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  236. # is contrary to our usage. Disable this feature.
  237. alias -g '${1+"$@"}'='"$@"'
  238. setopt NO_GLOB_SUBST
  239. else
  240. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  241. fi
  242. BIN_SH=xpg4; export BIN_SH # for Tru64
  243. DUALCASE=1; export DUALCASE # for MKS sh
  244. :
  245. (as_func_return () {
  246. (exit $1)
  247. }
  248. as_func_success () {
  249. as_func_return 0
  250. }
  251. as_func_failure () {
  252. as_func_return 1
  253. }
  254. as_func_ret_success () {
  255. return 0
  256. }
  257. as_func_ret_failure () {
  258. return 1
  259. }
  260. exitcode=0
  261. if as_func_success; then
  262. :
  263. else
  264. exitcode=1
  265. echo as_func_success failed.
  266. fi
  267. if as_func_failure; then
  268. exitcode=1
  269. echo as_func_failure succeeded.
  270. fi
  271. if as_func_ret_success; then
  272. :
  273. else
  274. exitcode=1
  275. echo as_func_ret_success failed.
  276. fi
  277. if as_func_ret_failure; then
  278. exitcode=1
  279. echo as_func_ret_failure succeeded.
  280. fi
  281. if ( set x; as_func_ret_success y && test x = "$1" ); then
  282. :
  283. else
  284. exitcode=1
  285. echo positional parameters were not saved.
  286. fi
  287. test $exitcode = 0) || { (exit 1); exit 1; }
  288. (
  289. as_lineno_1=$LINENO
  290. as_lineno_2=$LINENO
  291. test "x$as_lineno_1" != "x$as_lineno_2" &&
  292. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  293. _ASEOF
  294. }; then
  295. break
  296. fi
  297. fi
  298. done
  299. if test "x$CONFIG_SHELL" != x; then
  300. for as_var in BASH_ENV ENV
  301. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  302. done
  303. export CONFIG_SHELL
  304. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  305. fi
  306. if test $as_have_required = no; then
  307. echo This script requires a shell more modern than all the
  308. echo shells that I found on your system. Please install a
  309. echo modern shell, or manually run the script under such a
  310. echo shell if you do have one.
  311. { (exit 1); exit 1; }
  312. fi
  313. fi
  314. fi
  315. (eval "as_func_return () {
  316. (exit \$1)
  317. }
  318. as_func_success () {
  319. as_func_return 0
  320. }
  321. as_func_failure () {
  322. as_func_return 1
  323. }
  324. as_func_ret_success () {
  325. return 0
  326. }
  327. as_func_ret_failure () {
  328. return 1
  329. }
  330. exitcode=0
  331. if as_func_success; then
  332. :
  333. else
  334. exitcode=1
  335. echo as_func_success failed.
  336. fi
  337. if as_func_failure; then
  338. exitcode=1
  339. echo as_func_failure succeeded.
  340. fi
  341. if as_func_ret_success; then
  342. :
  343. else
  344. exitcode=1
  345. echo as_func_ret_success failed.
  346. fi
  347. if as_func_ret_failure; then
  348. exitcode=1
  349. echo as_func_ret_failure succeeded.
  350. fi
  351. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  352. :
  353. else
  354. exitcode=1
  355. echo positional parameters were not saved.
  356. fi
  357. test \$exitcode = 0") || {
  358. echo No shell found that supports shell functions.
  359. echo Please tell autoconf@gnu.org about your system,
  360. echo including any error possibly output before this
  361. echo message
  362. }
  363. as_lineno_1=$LINENO
  364. as_lineno_2=$LINENO
  365. test "x$as_lineno_1" != "x$as_lineno_2" &&
  366. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  367. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  368. # uniformly replaced by the line number. The first 'sed' inserts a
  369. # line-number line after each line using $LINENO; the second 'sed'
  370. # does the real work. The second script uses 'N' to pair each
  371. # line-number line with the line containing $LINENO, and appends
  372. # trailing '-' during substitution so that $LINENO is not a special
  373. # case at line end.
  374. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  375. # scripts with optimization help from Paolo Bonzini. Blame Lee
  376. # E. McMahon (1931-1989) for sed's syntax. :-)
  377. sed -n '
  378. p
  379. /[$]LINENO/=
  380. ' <$as_myself |
  381. sed '
  382. s/[$]LINENO.*/&-/
  383. t lineno
  384. b
  385. :lineno
  386. N
  387. :loop
  388. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  389. t loop
  390. s/-\n.*//
  391. ' >$as_me.lineno &&
  392. chmod +x "$as_me.lineno" ||
  393. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  394. { (exit 1); exit 1; }; }
  395. # Don't try to exec as it changes $[0], causing all sort of problems
  396. # (the dirname of $[0] is not the place where we might find the
  397. # original and so on. Autoconf is especially sensitive to this).
  398. . "./$as_me.lineno"
  399. # Exit status is that of the last command.
  400. exit
  401. }
  402. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  403. as_dirname=dirname
  404. else
  405. as_dirname=false
  406. fi
  407. ECHO_C= ECHO_N= ECHO_T=
  408. case `echo -n x` in
  409. -n*)
  410. case `echo 'x\c'` in
  411. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  412. *) ECHO_C='\c';;
  413. esac;;
  414. *)
  415. ECHO_N='-n';;
  416. esac
  417. if expr a : '\(a\)' >/dev/null 2>&1 &&
  418. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  419. as_expr=expr
  420. else
  421. as_expr=false
  422. fi
  423. rm -f conf$$ conf$$.exe conf$$.file
  424. if test -d conf$$.dir; then
  425. rm -f conf$$.dir/conf$$.file
  426. else
  427. rm -f conf$$.dir
  428. mkdir conf$$.dir
  429. fi
  430. echo >conf$$.file
  431. if ln -s conf$$.file conf$$ 2>/dev/null; then
  432. as_ln_s='ln -s'
  433. # ... but there are two gotchas:
  434. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  435. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  436. # In both cases, we have to default to `cp -p'.
  437. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  438. as_ln_s='cp -p'
  439. elif ln conf$$.file conf$$ 2>/dev/null; then
  440. as_ln_s=ln
  441. else
  442. as_ln_s='cp -p'
  443. fi
  444. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  445. rmdir conf$$.dir 2>/dev/null
  446. if mkdir -p . 2>/dev/null; then
  447. as_mkdir_p=:
  448. else
  449. test -d ./-p && rmdir ./-p
  450. as_mkdir_p=false
  451. fi
  452. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  453. # systems may use methods other than mode bits to determine executability.
  454. cat >conf$$.file <<_ASEOF
  455. #! /bin/sh
  456. exit 0
  457. _ASEOF
  458. chmod +x conf$$.file
  459. if test -x conf$$.file >/dev/null 2>&1; then
  460. as_executable_p="test -x"
  461. else
  462. as_executable_p=:
  463. fi
  464. rm -f conf$$.file
  465. # Sed expression to map a string onto a valid CPP name.
  466. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  467. # Sed expression to map a string onto a valid variable name.
  468. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  469. # Check that we are running under the correct shell.
  470. SHELL=${CONFIG_SHELL-/bin/sh}
  471. case X$ECHO in
  472. X*--fallback-echo)
  473. # Remove one level of quotation (which was required for Make).
  474. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  475. ;;
  476. esac
  477. echo=${ECHO-echo}
  478. if test "X$1" = X--no-reexec; then
  479. # Discard the --no-reexec flag, and continue.
  480. shift
  481. elif test "X$1" = X--fallback-echo; then
  482. # Avoid inline document here, it may be left over
  483. :
  484. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  485. # Yippee, $echo works!
  486. :
  487. else
  488. # Restart under the correct shell.
  489. exec $SHELL "$0" --no-reexec ${1+"$@"}
  490. fi
  491. if test "X$1" = X--fallback-echo; then
  492. # used as fallback echo
  493. shift
  494. cat <<EOF
  495. $*
  496. EOF
  497. exit 0
  498. fi
  499. # The HP-UX ksh and POSIX shell print the target directory to stdout
  500. # if CDPATH is set.
  501. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  502. if test -z "$ECHO"; then
  503. if test "X${echo_test_string+set}" != Xset; then
  504. # find a string as large as possible, as long as the shell can cope with it
  505. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  506. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  507. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  508. echo_test_string=`eval $cmd` &&
  509. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  510. then
  511. break
  512. fi
  513. done
  514. fi
  515. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  516. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  517. test "X$echo_testing_string" = "X$echo_test_string"; then
  518. :
  519. else
  520. # The Solaris, AIX, and Digital Unix default echo programs unquote
  521. # backslashes. This makes it impossible to quote backslashes using
  522. # echo "$something" | sed 's/\\/\\\\/g'
  523. #
  524. # So, first we look for a working echo in the user's PATH.
  525. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  526. for dir in $PATH /usr/ucb; do
  527. IFS="$lt_save_ifs"
  528. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  529. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  530. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  531. test "X$echo_testing_string" = "X$echo_test_string"; then
  532. echo="$dir/echo"
  533. break
  534. fi
  535. done
  536. IFS="$lt_save_ifs"
  537. if test "X$echo" = Xecho; then
  538. # We didn't find a better echo, so look for alternatives.
  539. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  540. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  541. test "X$echo_testing_string" = "X$echo_test_string"; then
  542. # This shell has a builtin print -r that does the trick.
  543. echo='print -r'
  544. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  545. test "X$CONFIG_SHELL" != X/bin/ksh; then
  546. # If we have ksh, try running configure again with it.
  547. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  548. export ORIGINAL_CONFIG_SHELL
  549. CONFIG_SHELL=/bin/ksh
  550. export CONFIG_SHELL
  551. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  552. else
  553. # Try using printf.
  554. echo='printf %s\n'
  555. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # Cool, printf works
  559. :
  560. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  561. test "X$echo_testing_string" = 'X\t' &&
  562. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  565. export CONFIG_SHELL
  566. SHELL="$CONFIG_SHELL"
  567. export SHELL
  568. echo="$CONFIG_SHELL $0 --fallback-echo"
  569. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  570. test "X$echo_testing_string" = 'X\t' &&
  571. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. echo="$CONFIG_SHELL $0 --fallback-echo"
  574. else
  575. # maybe with a smaller string...
  576. prev=:
  577. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  578. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  579. then
  580. break
  581. fi
  582. prev="$cmd"
  583. done
  584. if test "$prev" != 'sed 50q "$0"'; then
  585. echo_test_string=`eval $prev`
  586. export echo_test_string
  587. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  588. else
  589. # Oops. We lost completely, so just stick with echo.
  590. echo=echo
  591. fi
  592. fi
  593. fi
  594. fi
  595. fi
  596. fi
  597. # Copy echo and quote the copy suitably for passing to libtool from
  598. # the Makefile, instead of quoting the original, which is used later.
  599. ECHO=$echo
  600. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  601. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  602. fi
  603. tagnames=${tagnames+${tagnames},}CXX
  604. tagnames=${tagnames+${tagnames},}F77
  605. exec 7<&0 </dev/null 6>&1
  606. # Name of the host.
  607. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  608. # so uname gets run too.
  609. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  610. #
  611. # Initializations.
  612. #
  613. ac_default_prefix=/usr/local
  614. ac_clean_files=
  615. ac_config_libobj_dir=.
  616. LIBOBJS=
  617. cross_compiling=no
  618. subdirs=
  619. MFLAGS=
  620. MAKEFLAGS=
  621. SHELL=${CONFIG_SHELL-/bin/sh}
  622. # Identity of this package.
  623. PACKAGE_NAME='llvm'
  624. PACKAGE_TARNAME='-llvm-'
  625. PACKAGE_VERSION='2.6'
  626. PACKAGE_STRING='llvm 2.6'
  627. PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
  628. ac_unique_file="lib/VMCore/Module.cpp"
  629. # Factoring default headers for most tests.
  630. ac_includes_default="\
  631. #include <stdio.h>
  632. #if HAVE_SYS_TYPES_H
  633. # include <sys/types.h>
  634. #endif
  635. #if HAVE_SYS_STAT_H
  636. # include <sys/stat.h>
  637. #endif
  638. #if STDC_HEADERS
  639. # include <stdlib.h>
  640. # include <stddef.h>
  641. #else
  642. # if HAVE_STDLIB_H
  643. # include <stdlib.h>
  644. # endif
  645. #endif
  646. #if HAVE_STRING_H
  647. # if !STDC_HEADERS && HAVE_MEMORY_H
  648. # include <memory.h>
  649. # endif
  650. # include <string.h>
  651. #endif
  652. #if HAVE_STRINGS_H
  653. # include <strings.h>
  654. #endif
  655. #if HAVE_INTTYPES_H
  656. # include <inttypes.h>
  657. #endif
  658. #if HAVE_STDINT_H
  659. # include <stdint.h>
  660. #endif
  661. #if HAVE_UNISTD_H
  662. # include <unistd.h>
  663. #endif"
  664. ac_subst_vars='SHELL
  665. PATH_SEPARATOR
  666. PACKAGE_NAME
  667. PACKAGE_TARNAME
  668. PACKAGE_VERSION
  669. PACKAGE_STRING
  670. PACKAGE_BUGREPORT
  671. exec_prefix
  672. prefix
  673. program_transform_name
  674. bindir
  675. sbindir
  676. libexecdir
  677. datarootdir
  678. datadir
  679. sysconfdir
  680. sharedstatedir
  681. localstatedir
  682. includedir
  683. oldincludedir
  684. docdir
  685. infodir
  686. htmldir
  687. dvidir
  688. pdfdir
  689. psdir
  690. libdir
  691. localedir
  692. mandir
  693. DEFS
  694. ECHO_C
  695. ECHO_N
  696. ECHO_T
  697. LIBS
  698. build_alias
  699. host_alias
  700. target_alias
  701. LLVM_COPYRIGHT
  702. subdirs
  703. build
  704. build_cpu
  705. build_vendor
  706. build_os
  707. host
  708. host_cpu
  709. host_vendor
  710. host_os
  711. target
  712. target_cpu
  713. target_vendor
  714. target_os
  715. OS
  716. HOST_OS
  717. TARGET_OS
  718. LINKALL
  719. NOLINKALL
  720. LLVM_ON_UNIX
  721. LLVM_ON_WIN32
  722. ARCH
  723. ENDIAN
  724. CC
  725. CFLAGS
  726. LDFLAGS
  727. CPPFLAGS
  728. ac_ct_CC
  729. EXEEXT
  730. OBJEXT
  731. CPP
  732. GREP
  733. EGREP
  734. LLVM_CROSS_COMPILING
  735. BUILD_CC
  736. BUILD_EXEEXT
  737. BUILD_CXX
  738. CVSBUILD
  739. ENABLE_OPTIMIZED
  740. ENABLE_PROFILING
  741. DISABLE_ASSERTIONS
  742. LLVM_COMPACT_SENTINELS
  743. ENABLE_EXPENSIVE_CHECKS
  744. EXPENSIVE_CHECKS
  745. DEBUG_RUNTIME
  746. JIT
  747. TARGET_HAS_JIT
  748. ENABLE_DOXYGEN
  749. ENABLE_THREADS
  750. ENABLE_PIC
  751. TARGETS_TO_BUILD
  752. LLVM_ENUM_TARGETS
  753. LLVM_ENUM_ASM_PRINTERS
  754. LLVM_ENUM_ASM_PARSERS
  755. ENABLE_CBE_PRINTF_A
  756. EXTRA_OPTIONS
  757. BINUTILS_INCDIR
  758. ENABLE_LLVMC_DYNAMIC
  759. ENABLE_LLVMC_DYNAMIC_PLUGINS
  760. CXX
  761. CXXFLAGS
  762. ac_ct_CXX
  763. NM
  764. ifGNUmake
  765. LN_S
  766. CMP
  767. CP
  768. DATE
  769. FIND
  770. MKDIR
  771. MV
  772. RANLIB
  773. RM
  774. SED
  775. TAR
  776. BINPWD
  777. GRAPHVIZ
  778. DOT
  779. FDP
  780. NEATO
  781. TWOPI
  782. CIRCO
  783. GV
  784. DOTTY
  785. PERL
  786. HAVE_PERL
  787. INSTALL_PROGRAM
  788. INSTALL_SCRIPT
  789. INSTALL_DATA
  790. BZIP2
  791. DOXYGEN
  792. GROFF
  793. GZIP
  794. POD2HTML
  795. POD2MAN
  796. RUNTEST
  797. TCLSH
  798. ZIP
  799. OCAMLC
  800. OCAMLOPT
  801. OCAMLDEP
  802. OCAMLDOC
  803. GAS
  804. INSTALL_LTDL_TRUE
  805. INSTALL_LTDL_FALSE
  806. CONVENIENCE_LTDL_TRUE
  807. CONVENIENCE_LTDL_FALSE
  808. LIBADD_DL
  809. ECHO
  810. AR
  811. STRIP
  812. CXXCPP
  813. F77
  814. FFLAGS
  815. ac_ct_F77
  816. LIBTOOL
  817. LLVMGCCCOMMAND
  818. LLVMGXXCOMMAND
  819. LLVMGCC
  820. LLVMGXX
  821. USE_UDIS86
  822. USE_OPROFILE
  823. HAVE_PTHREAD
  824. HUGE_VAL_SANITY
  825. ALLOCA
  826. MMAP_FILE
  827. LLVMCC1
  828. LLVMCC1PLUS
  829. LLVMGCCDIR
  830. LLVMGCCLIBEXEC
  831. LLVMGCC_VERSION
  832. LLVMGCC_MAJVERS
  833. LLVMGCC_LANGS
  834. SHLIBEXT
  835. LLVM_PREFIX
  836. LLVM_BINDIR
  837. LLVM_LIBDIR
  838. LLVM_DATADIR
  839. LLVM_DOCSDIR
  840. LLVM_ETCDIR
  841. LLVM_INCLUDEDIR
  842. LLVM_INFODIR
  843. LLVM_MANDIR
  844. LLVM_CONFIGTIME
  845. BINDINGS_TO_BUILD
  846. ALL_BINDINGS
  847. OCAML_LIBDIR
  848. ENABLE_VISIBILITY_INLINES_HIDDEN
  849. RPATH
  850. RDYNAMIC
  851. LIBOBJS
  852. LTLIBOBJS'
  853. ac_subst_files=''
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. CPPFLAGS
  861. CPP
  862. CXX
  863. CXXFLAGS
  864. CCC
  865. CXXCPP
  866. F77
  867. FFLAGS'
  868. ac_subdirs_all='projects/sample
  869. projects/privbracket
  870. projects/llvm-stacker
  871. projects/llvm-test
  872. projects/test-suite
  873. projects/llvm-reopt
  874. projects/llvm-gcc
  875. projects/llvm-java
  876. projects/llvm-tv
  877. projects/llvm-poolalloc
  878. projects/poolalloc
  879. projects/llvm-kernel'
  880. # Initialize some variables set by options.
  881. ac_init_help=
  882. ac_init_version=false
  883. # The variables have the same names as the options, with
  884. # dashes changed to underlines.
  885. cache_file=/dev/null
  886. exec_prefix=NONE
  887. no_create=
  888. no_recursion=
  889. prefix=NONE
  890. program_prefix=NONE
  891. program_suffix=NONE
  892. program_transform_name=s,x,x,
  893. silent=
  894. site=
  895. srcdir=
  896. verbose=
  897. x_includes=NONE
  898. x_libraries=NONE
  899. # Installation directory options.
  900. # These are left unexpanded so users can "make install exec_prefix=/foo"
  901. # and all the variables that are supposed to be based on exec_prefix
  902. # by default will actually change.
  903. # Use braces instead of parens because sh, perl, etc. also accept them.
  904. # (The list follows the same order as the GNU Coding Standards.)
  905. bindir='${exec_prefix}/bin'
  906. sbindir='${exec_prefix}/sbin'
  907. libexecdir='${exec_prefix}/libexec'
  908. datarootdir='${prefix}/share'
  909. datadir='${datarootdir}'
  910. sysconfdir='${prefix}/etc'
  911. sharedstatedir='${prefix}/com'
  912. localstatedir='${prefix}/var'
  913. includedir='${prefix}/include'
  914. oldincludedir='/usr/include'
  915. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  916. infodir='${datarootdir}/info'
  917. htmldir='${docdir}'
  918. dvidir='${docdir}'
  919. pdfdir='${docdir}'
  920. psdir='${docdir}'
  921. libdir='${exec_prefix}/lib'
  922. localedir='${datarootdir}/locale'
  923. mandir='${datarootdir}/man'
  924. ac_prev=
  925. ac_dashdash=
  926. for ac_option
  927. do
  928. # If the previous option needs an argument, assign it.
  929. if test -n "$ac_prev"; then
  930. eval $ac_prev=\$ac_option
  931. ac_prev=
  932. continue
  933. fi
  934. case $ac_option in
  935. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  936. *) ac_optarg=yes ;;
  937. esac
  938. # Accept the important Cygnus configure options, so we can diagnose typos.
  939. case $ac_dashdash$ac_option in
  940. --)
  941. ac_dashdash=yes ;;
  942. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  943. ac_prev=bindir ;;
  944. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  945. bindir=$ac_optarg ;;
  946. -build | --build | --buil | --bui | --bu)
  947. ac_prev=build_alias ;;
  948. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  949. build_alias=$ac_optarg ;;
  950. -cache-file | --cache-file | --cache-fil | --cache-fi \
  951. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  952. ac_prev=cache_file ;;
  953. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  954. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  955. cache_file=$ac_optarg ;;
  956. --config-cache | -C)
  957. cache_file=config.cache ;;
  958. -datadir | --datadir | --datadi | --datad)
  959. ac_prev=datadir ;;
  960. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  961. datadir=$ac_optarg ;;
  962. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  963. | --dataroo | --dataro | --datar)
  964. ac_prev=datarootdir ;;
  965. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  966. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  967. datarootdir=$ac_optarg ;;
  968. -disable-* | --disable-*)
  969. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  970. # Reject names that are not valid shell variable names.
  971. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  972. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  973. { (exit 1); exit 1; }; }
  974. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  975. eval enable_$ac_feature=no ;;
  976. -docdir | --docdir | --docdi | --doc | --do)
  977. ac_prev=docdir ;;
  978. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  979. docdir=$ac_optarg ;;
  980. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  981. ac_prev=dvidir ;;
  982. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  983. dvidir=$ac_optarg ;;
  984. -enable-* | --enable-*)
  985. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  988. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  989. { (exit 1); exit 1; }; }
  990. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  991. eval enable_$ac_feature=\$ac_optarg ;;
  992. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  993. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  994. | --exec | --exe | --ex)
  995. ac_prev=exec_prefix ;;
  996. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  997. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  998. | --exec=* | --exe=* | --ex=*)
  999. exec_prefix=$ac_optarg ;;
  1000. -gas | --gas | --ga | --g)
  1001. # Obsolete; use --with-gas.
  1002. with_gas=yes ;;
  1003. -help | --help | --hel | --he | -h)
  1004. ac_init_help=long ;;
  1005. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1006. ac_init_help=recursive ;;
  1007. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1008. ac_init_help=short ;;
  1009. -host | --host | --hos | --ho)
  1010. ac_prev=host_alias ;;
  1011. -host=* | --host=* | --hos=* | --ho=*)
  1012. host_alias=$ac_optarg ;;
  1013. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1014. ac_prev=htmldir ;;
  1015. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1016. | --ht=*)
  1017. htmldir=$ac_optarg ;;
  1018. -includedir | --includedir | --includedi | --included | --include \
  1019. | --includ | --inclu | --incl | --inc)
  1020. ac_prev=includedir ;;
  1021. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1022. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1023. includedir=$ac_optarg ;;
  1024. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1025. ac_prev=infodir ;;
  1026. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1027. infodir=$ac_optarg ;;
  1028. -libdir | --libdir | --libdi | --libd)
  1029. ac_prev=libdir ;;
  1030. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1031. libdir=$ac_optarg ;;
  1032. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1033. | --libexe | --libex | --libe)
  1034. ac_prev=libexecdir ;;
  1035. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1036. | --libexe=* | --libex=* | --libe=*)
  1037. libexecdir=$ac_optarg ;;
  1038. -localedir | --localedir | --localedi | --localed | --locale)
  1039. ac_prev=localedir ;;
  1040. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1041. localedir=$ac_optarg ;;
  1042. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1043. | --localstate | --localstat | --localsta | --localst | --locals)
  1044. ac_prev=localstatedir ;;
  1045. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1046. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1047. localstatedir=$ac_optarg ;;
  1048. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1049. ac_prev=mandir ;;
  1050. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1051. mandir=$ac_optarg ;;
  1052. -nfp | --nfp | --nf)
  1053. # Obsolete; use --without-fp.
  1054. with_fp=no ;;
  1055. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1056. | --no-cr | --no-c | -n)
  1057. no_create=yes ;;
  1058. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1059. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1060. no_recursion=yes ;;
  1061. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1062. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1063. | --oldin | --oldi | --old | --ol | --o)
  1064. ac_prev=oldincludedir ;;
  1065. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1066. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1067. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1068. oldincludedir=$ac_optarg ;;
  1069. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1070. ac_prev=prefix ;;
  1071. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1072. prefix=$ac_optarg ;;
  1073. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1074. | --program-pre | --program-pr | --program-p)
  1075. ac_prev=program_prefix ;;
  1076. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1077. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1078. program_prefix=$ac_optarg ;;
  1079. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1080. | --program-suf | --program-su | --program-s)
  1081. ac_prev=program_suffix ;;
  1082. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1083. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1084. program_suffix=$ac_optarg ;;
  1085. -program-transform-name | --program-transform-name \
  1086. | --program-transform-nam | --program-transform-na \
  1087. | --program-transform-n | --program-transform- \
  1088. | --program-transform | --program-transfor \
  1089. | --program-transfo | --program-transf \
  1090. | --program-trans | --program-tran \
  1091. | --progr-tra | --program-tr | --program-t)
  1092. ac_prev=program_transform_name ;;
  1093. -program-transform-name=* | --program-transform-name=* \
  1094. | --program-transform-nam=* | --program-transform-na=* \
  1095. | --program-transform-n=* | --program-transform-=* \
  1096. | --program-transform=* | --program-transfor=* \
  1097. | --program-transfo=* | --program-transf=* \
  1098. | --program-trans=* | --program-tran=* \
  1099. | --progr-tra=* | --program-tr=* | --program-t=*)
  1100. program_transform_name=$ac_optarg ;;
  1101. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1102. ac_prev=pdfdir ;;
  1103. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1104. pdfdir=$ac_optarg ;;
  1105. -psdir | --psdir | --psdi | --psd | --ps)
  1106. ac_prev=psdir ;;
  1107. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1108. psdir=$ac_optarg ;;
  1109. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1110. | -silent | --silent | --silen | --sile | --sil)
  1111. silent=yes ;;
  1112. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1113. ac_prev=sbindir ;;
  1114. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1115. | --sbi=* | --sb=*)
  1116. sbindir=$ac_optarg ;;
  1117. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1118. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1119. | --sharedst | --shareds | --shared | --share | --shar \
  1120. | --sha | --sh)
  1121. ac_prev=sharedstatedir ;;
  1122. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1123. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1124. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1125. | --sha=* | --sh=*)
  1126. sharedstatedir=$ac_optarg ;;
  1127. -site | --site | --sit)
  1128. ac_prev=site ;;
  1129. -site=* | --site=* | --sit=*)
  1130. site=$ac_optarg ;;
  1131. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1132. ac_prev=srcdir ;;
  1133. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1134. srcdir=$ac_optarg ;;
  1135. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1136. | --syscon | --sysco | --sysc | --sys | --sy)
  1137. ac_prev=sysconfdir ;;
  1138. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1139. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1140. sysconfdir=$ac_optarg ;;
  1141. -target | --target | --targe | --targ | --tar | --ta | --t)
  1142. ac_prev=target_alias ;;
  1143. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1144. target_alias=$ac_optarg ;;
  1145. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1146. verbose=yes ;;
  1147. -version | --version | --versio | --versi | --vers | -V)
  1148. ac_init_version=: ;;
  1149. -with-* | --with-*)
  1150. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1151. # Reject names that are not valid shell variable names.
  1152. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1153. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1154. { (exit 1); exit 1; }; }
  1155. ac_package=`echo $ac_package| sed 's/-/_/g'`
  1156. eval with_$ac_package=\$ac_optarg ;;
  1157. -without-* | --without-*)
  1158. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1159. # Reject names that are not valid shell variable names.
  1160. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1161. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1162. { (exit 1); exit 1; }; }
  1163. ac_package=`echo $ac_package | sed 's/-/_/g'`
  1164. eval with_$ac_package=no ;;
  1165. --x)
  1166. # Obsolete; use --with-x.
  1167. with_x=yes ;;
  1168. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1169. | --x-incl | --x-inc | --x-in | --x-i)
  1170. ac_prev=x_includes ;;
  1171. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1172. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1173. x_includes=$ac_optarg ;;
  1174. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1175. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1176. ac_prev=x_libraries ;;
  1177. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1178. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1179. x_libraries=$ac_optarg ;;
  1180. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1181. Try \`$0 --help' for more information." >&2
  1182. { (exit 1); exit 1; }; }
  1183. ;;
  1184. *=*)
  1185. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1186. # Reject names that are not valid shell variable names.
  1187. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1188. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1189. { (exit 1); exit 1; }; }
  1190. eval $ac_envvar=\$ac_optarg
  1191. export $ac_envvar ;;
  1192. *)
  1193. # FIXME: should be removed in autoconf 3.0.
  1194. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1195. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1196. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1197. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1198. ;;
  1199. esac
  1200. done
  1201. if test -n "$ac_prev"; then
  1202. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1203. { echo "$as_me: error: missing argument to $ac_option" >&2
  1204. { (exit 1); exit 1; }; }
  1205. fi
  1206. # Be sure to have absolute directory names.
  1207. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1208. datadir sysconfdir sharedstatedir localstatedir includedir \
  1209. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1210. libdir localedir mandir
  1211. do
  1212. eval ac_val=\$$ac_var
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1218. { (exit 1); exit 1; }; }
  1219. done
  1220. # There might be people who depend on the old broken behavior: `$host'
  1221. # used to hold the argument of --host etc.
  1222. # FIXME: To remove some day.
  1223. build=$build_alias
  1224. host=$host_alias
  1225. target=$target_alias
  1226. # FIXME: To remove some day.
  1227. if test "x$host_alias" != x; then
  1228. if test "x$build_alias" = x; then
  1229. cross_compiling=maybe
  1230. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1231. If a cross compiler is detected then cross compile mode will be used." >&2
  1232. elif test "x$build_alias" != "x$host_alias"; then
  1233. cross_compiling=yes
  1234. fi
  1235. fi
  1236. ac_tool_prefix=
  1237. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1238. test "$silent" = yes && exec 6>/dev/null
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. { echo "$as_me: error: Working directory cannot be determined" >&2
  1243. { (exit 1); exit 1; }; }
  1244. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1245. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1246. { (exit 1); exit 1; }; }
  1247. # Find the source files, if location was not specified.
  1248. if test -z "$srcdir"; then
  1249. ac_srcdir_defaulted=yes
  1250. # Try the directory containing this script, then the parent directory.
  1251. ac_confdir=`$as_dirname -- "$0" ||
  1252. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1253. X"$0" : 'X\(//\)[^/]' \| \
  1254. X"$0" : 'X\(//\)$' \| \
  1255. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1256. echo X"$0" |
  1257. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)[^/].*/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\/\)$/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\).*/{
  1270. s//\1/
  1271. q
  1272. }
  1273. s/.*/./; q'`
  1274. srcdir=$ac_confdir
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. srcdir=..
  1277. fi
  1278. else
  1279. ac_srcdir_defaulted=no
  1280. fi
  1281. if test ! -r "$srcdir/$ac_unique_file"; then
  1282. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1283. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1284. { (exit 1); exit 1; }; }
  1285. fi
  1286. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1287. ac_abs_confdir=`(
  1288. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1289. { (exit 1); exit 1; }; }
  1290. pwd)`
  1291. # When building in place, set srcdir=.
  1292. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1293. srcdir=.
  1294. fi
  1295. # Remove unnecessary trailing slashes from srcdir.
  1296. # Double slashes in file names in object file debugging info
  1297. # mess up M-x gdb in Emacs.
  1298. case $srcdir in
  1299. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1300. esac
  1301. for ac_var in $ac_precious_vars; do
  1302. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1303. eval ac_env_${ac_var}_value=\$${ac_var}
  1304. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1305. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1306. done
  1307. #
  1308. # Report the --help message.
  1309. #
  1310. if test "$ac_init_help" = "long"; then
  1311. # Omit some internal or obsolete options to make the list less imposing.
  1312. # This message is too long to be a string in the A/UX 3.1 sh.
  1313. cat <<_ACEOF
  1314. \`configure' configures llvm 2.6 to adapt to many kinds of systems.
  1315. Usage: $0 [OPTION]... [VAR=VALUE]...
  1316. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1317. VAR=VALUE. See below for descriptions of some of the useful variables.
  1318. Defaults for the options are specified in brackets.
  1319. Configuration:
  1320. -h, --help display this help and exit
  1321. --help=short display options specific to this package
  1322. --help=recursive display the short help of all the included packages
  1323. -V, --version display version information and exit
  1324. -q, --quiet, --silent do not print \`checking...' messages
  1325. --cache-file=FILE cache test results in FILE [disabled]
  1326. -C, --config-cache alias for \`--cache-file=config.cache'
  1327. -n, --no-create do not create output files
  1328. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1329. Installation directories:
  1330. --prefix=PREFIX install architecture-independent files in PREFIX
  1331. [$ac_default_prefix]
  1332. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1333. [PREFIX]
  1334. By default, \`make install' will install all the files in
  1335. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1336. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1337. for instance \`--prefix=\$HOME'.
  1338. For better control, use the options below.
  1339. Fine tuning of the installation directories:
  1340. --bindir=DIR user executables [EPREFIX/bin]
  1341. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1342. --libexecdir=DIR program executables [EPREFIX/libexec]
  1343. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1344. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1345. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1346. --libdir=DIR object code libraries [EPREFIX/lib]
  1347. --includedir=DIR C header files [PREFIX/include]
  1348. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1349. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1350. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1351. --infodir=DIR info documentation [DATAROOTDIR/info]
  1352. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1353. --mandir=DIR man documentation [DATAROOTDIR/man]
  1354. --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
  1355. --htmldir=DIR html documentation [DOCDIR]
  1356. --dvidir=DIR dvi documentation [DOCDIR]
  1357. --pdfdir=DIR pdf documentation [DOCDIR]
  1358. --psdir=DIR ps documentation [DOCDIR]
  1359. _ACEOF
  1360. cat <<\_ACEOF
  1361. System types:
  1362. --build=BUILD configure for building on BUILD [guessed]
  1363. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1364. --target=TARGET configure for building compilers for TARGET [HOST]
  1365. _ACEOF
  1366. fi
  1367. if test -n "$ac_init_help"; then
  1368. case $ac_init_help in
  1369. short | recursive ) echo "Configuration of llvm 2.6:";;
  1370. esac
  1371. cat <<\_ACEOF
  1372. Optional Features:
  1373. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1374. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1375. --enable-optimized Compile with optimizations enabled (default is NO)
  1376. --enable-profiling Compile with profiling enabled (default is NO)
  1377. --enable-assertions Compile with assertion checks enabled (default is
  1378. YES)
  1379. --enable-expensive-checks
  1380. Compile with expensive debug checks enabled (default
  1381. is NO)
  1382. --enable-debug-runtime Build runtime libs with debug symbols (default is
  1383. NO)
  1384. --enable-jit Enable Just In Time Compiling (default is YES)
  1385. --enable-doxygen Build doxygen documentation (default is NO)
  1386. --enable-threads Use threads if available (default is YES)
  1387. --enable-pic Build LLVM with Position Independent Code (default
  1388. is YES)
  1389. --enable-targets Build specific host targets:
  1390. all,host-only,{target-name} (default=all)
  1391. --enable-cbe-printf-a Enable C Backend output with hex floating point via
  1392. %a (default is YES)
  1393. --enable-bindings Build specific language bindings:
  1394. all,auto,none,{binding-name} (default=auto)
  1395. --enable-libffi Check for the presence of libffi (default is YES)
  1396. --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
  1397. Win32)
  1398. --enable-llvmc-dynamic-plugins
  1399. Enable dynamic LLVMC plugins (default is YES)
  1400. --enable-ltdl-install install libltdl
  1401. --enable-shared[=PKGS] build shared libraries
  1402. [default=yes]
  1403. --enable-static[=PKGS] build static libraries
  1404. [default=yes]
  1405. --enable-fast-install[=PKGS]
  1406. optimize for fast installation
  1407. [default=yes]
  1408. --disable-libtool-lock avoid locking (might break parallel builds)
  1409. Optional Packages:
  1410. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1411. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1412. --with-llvmgccdir Specify location of llvm-gcc install dir (default
  1413. searches PATH)
  1414. --with-llvmgcc Specify location of llvm-gcc driver (default
  1415. searches PATH)
  1416. --with-llvmgxx Specify location of llvm-g++ driver (default
  1417. searches PATH)
  1418. --with-extra-options Specify additional options to compile LLVM with
  1419. --with-ocaml-libdir Specify install location for ocaml bindings (default
  1420. is stdlib)
  1421. --with-binutils-include Specify path to binutils/include/ containing
  1422. plugin-api.h file for gold plugin.
  1423. --with-tclinclude directory where tcl headers are
  1424. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1425. --with-pic try to use only PIC/non-PIC objects [default=use
  1426. both]
  1427. --with-tags[=TAGS] include additional configurations [automatic]
  1428. --with-udis86=<path> Use udis86 external x86 disassembler library
  1429. --with-oprofile=<prefix>
  1430. Tell OProfile >= 0.9.4 how to symbolize JIT output
  1431. Some influential environment variables:
  1432. CC C compiler command
  1433. CFLAGS C compiler flags
  1434. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1435. nonstandard directory <lib dir>
  1436. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1437. you have headers in a nonstandard directory <include dir>
  1438. CPP C preprocessor
  1439. CXX C++ compiler command
  1440. CXXFLAGS C++ compiler flags
  1441. CXXCPP C++ preprocessor
  1442. F77 Fortran 77 compiler command
  1443. FFLAGS Fortran 77 compiler flags
  1444. Use these variables to override the choices made by `configure' or to help
  1445. it to find libraries and programs with nonstandard names/locations.
  1446. Report bugs to <llvmbugs@cs.uiuc.edu>.
  1447. _ACEOF
  1448. ac_status=$?
  1449. fi
  1450. if test "$ac_init_help" = "recursive"; then
  1451. # If there are subdirs, report their specific --help.
  1452. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1453. test -d "$ac_dir" || continue
  1454. ac_builddir=.
  1455. case "$ac_dir" in
  1456. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1457. *)
  1458. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1459. # A ".." for each directory in $ac_dir_suffix.
  1460. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1461. case $ac_top_builddir_sub in
  1462. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1463. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1464. esac ;;
  1465. esac
  1466. ac_abs_top_builddir=$ac_pwd
  1467. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1468. # for backward compatibility:
  1469. ac_top_builddir=$ac_top_build_prefix
  1470. case $srcdir in
  1471. .) # We are building in place.
  1472. ac_srcdir=.
  1473. ac_top_srcdir=$ac_top_builddir_sub
  1474. ac_abs_top_srcdir=$ac_pwd ;;
  1475. [\\/]* | ?:[\\/]* ) # Absolute name.
  1476. ac_srcdir=$srcdir$ac_dir_suffix;
  1477. ac_top_srcdir=$srcdir
  1478. ac_abs_top_srcdir=$srcdir ;;
  1479. *) # Relative name.
  1480. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1481. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1482. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1483. esac
  1484. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1485. cd "$ac_dir" || { ac_status=$?; continue; }
  1486. # Check for guested configure.
  1487. if test -f "$ac_srcdir/configure.gnu"; then
  1488. echo &&
  1489. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1490. elif test -f "$ac_srcdir/configure"; then
  1491. echo &&
  1492. $SHELL "$ac_srcdir/configure" --help=recursive
  1493. else
  1494. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1495. fi || ac_status=$?
  1496. cd "$ac_pwd" || { ac_status=$?; break; }
  1497. done
  1498. fi
  1499. test -n "$ac_init_help" && exit $ac_status
  1500. if $ac_init_version; then
  1501. cat <<\_ACEOF
  1502. llvm configure 2.6
  1503. generated by GNU Autoconf 2.60
  1504. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1505. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1506. This configure script is free software; the Free Software Foundation
  1507. gives unlimited permission to copy, distribute and modify it.
  1508. Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
  1509. _ACEOF
  1510. exit
  1511. fi
  1512. cat >config.log <<_ACEOF
  1513. This file contains any messages produced by compilers while
  1514. running configure, to aid debugging if configure makes a mistake.
  1515. It was created by llvm $as_me 2.6, which was
  1516. generated by GNU Autoconf 2.60. Invocation command line was
  1517. $ $0 $@
  1518. _ACEOF
  1519. exec 5>>config.log
  1520. {
  1521. cat <<_ASUNAME
  1522. ## --------- ##
  1523. ## Platform. ##
  1524. ## --------- ##
  1525. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1526. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1527. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1528. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1529. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1530. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1531. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1532. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1533. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1534. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1535. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1536. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1537. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1538. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1539. _ASUNAME
  1540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1541. for as_dir in $PATH
  1542. do
  1543. IFS=$as_save_IFS
  1544. test -z "$as_dir" && as_dir=.
  1545. echo "PATH: $as_dir"
  1546. done
  1547. IFS=$as_save_IFS
  1548. } >&5
  1549. cat >&5 <<_ACEOF
  1550. ## ----------- ##
  1551. ## Core tests. ##
  1552. ## ----------- ##
  1553. _ACEOF
  1554. # Keep a trace of the command line.
  1555. # Strip out --no-create and --no-recursion so they do not pile up.
  1556. # Strip out --silent because we don't want to record it for future runs.
  1557. # Also quote any args containing shell meta-characters.
  1558. # Make two passes to allow for proper duplicate-argument suppression.
  1559. ac_configure_args=
  1560. ac_configure_args0=
  1561. ac_configure_args1=
  1562. ac_must_keep_next=false
  1563. for ac_pass in 1 2
  1564. do
  1565. for ac_arg
  1566. do
  1567. case $ac_arg in
  1568. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1569. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1570. | -silent | --silent | --silen | --sile | --sil)
  1571. continue ;;
  1572. *\'*)
  1573. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1574. esac
  1575. case $ac_pass in
  1576. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1577. 2)
  1578. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1579. if test $ac_must_keep_next = true; then
  1580. ac_must_keep_next=false # Got value, back to normal.
  1581. else
  1582. case $ac_arg in
  1583. *=* | --config-cache | -C | -disable-* | --disable-* \
  1584. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1585. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1586. | -with-* | --with-* | -without-* | --without-* | --x)
  1587. case "$ac_configure_args0 " in
  1588. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1589. esac
  1590. ;;
  1591. -* ) ac_must_keep_next=true ;;
  1592. esac
  1593. fi
  1594. ac_configure_args="$ac_configure_args '$ac_arg'"
  1595. ;;
  1596. esac
  1597. done
  1598. done
  1599. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1600. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1601. # When interrupted or exit'd, cleanup temporary files, and complete
  1602. # config.log. We remove comments because anyway the quotes in there
  1603. # would cause problems or look ugly.
  1604. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1605. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1606. trap 'exit_status=$?
  1607. # Save into config.log some information that might help in debugging.
  1608. {
  1609. echo
  1610. cat <<\_ASBOX
  1611. ## ---------------- ##
  1612. ## Cache variables. ##
  1613. ## ---------------- ##
  1614. _ASBOX
  1615. echo
  1616. # The following way of writing the cache mishandles newlines in values,
  1617. (
  1618. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1619. eval ac_val=\$$ac_var
  1620. case $ac_val in #(
  1621. *${as_nl}*)
  1622. case $ac_var in #(
  1623. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1624. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1625. esac
  1626. case $ac_var in #(
  1627. _ | IFS | as_nl) ;; #(
  1628. *) $as_unset $ac_var ;;
  1629. esac ;;
  1630. esac
  1631. done
  1632. (set) 2>&1 |
  1633. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1634. *${as_nl}ac_space=\ *)
  1635. sed -n \
  1636. "s/'\''/'\''\\\\'\'''\''/g;
  1637. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1638. ;; #(
  1639. *)
  1640. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1641. ;;
  1642. esac |
  1643. sort
  1644. )
  1645. echo
  1646. cat <<\_ASBOX
  1647. ## ----------------- ##
  1648. ## Output variables. ##
  1649. ## ----------------- ##
  1650. _ASBOX
  1651. echo
  1652. for ac_var in $ac_subst_vars
  1653. do
  1654. eval ac_val=\$$ac_var
  1655. case $ac_val in
  1656. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1657. esac
  1658. echo "$ac_var='\''$ac_val'\''"
  1659. done | sort
  1660. echo
  1661. if test -n "$ac_subst_files"; then
  1662. cat <<\_ASBOX
  1663. ## ------------------- ##
  1664. ## File substitutions. ##
  1665. ## ------------------- ##
  1666. _ASBOX
  1667. echo
  1668. for ac_var in $ac_subst_files
  1669. do
  1670. eval ac_val=\$$ac_var
  1671. case $ac_val in
  1672. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1673. esac
  1674. echo "$ac_var='\''$ac_val'\''"
  1675. done | sort
  1676. echo
  1677. fi
  1678. if test -s confdefs.h; then
  1679. cat <<\_ASBOX
  1680. ## ----------- ##
  1681. ## confdefs.h. ##
  1682. ## ----------- ##
  1683. _ASBOX
  1684. echo
  1685. cat confdefs.h
  1686. echo
  1687. fi
  1688. test "$ac_signal" != 0 &&
  1689. echo "$as_me: caught signal $ac_signal"
  1690. echo "$as_me: exit $exit_status"
  1691. } >&5
  1692. rm -f core *.core core.conftest.* &&
  1693. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1694. exit $exit_status
  1695. ' 0
  1696. for ac_signal in 1 2 13 15; do
  1697. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1698. done
  1699. ac_signal=0
  1700. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1701. rm -f -r conftest* confdefs.h
  1702. # Predefined preprocessor variables.
  1703. cat >>confdefs.h <<_ACEOF
  1704. #define PACKAGE_NAME "$PACKAGE_NAME"
  1705. _ACEOF
  1706. cat >>confdefs.h <<_ACEOF
  1707. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1708. _ACEOF
  1709. cat >>confdefs.h <<_ACEOF
  1710. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1711. _ACEOF
  1712. cat >>confdefs.h <<_ACEOF
  1713. #define PACKAGE_STRING "$PACKAGE_STRING"
  1714. _ACEOF
  1715. cat >>confdefs.h <<_ACEOF
  1716. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1717. _ACEOF
  1718. # Let the site file select an alternate cache file if it wants to.
  1719. # Prefer explicitly selected file to automatically selected ones.
  1720. if test -n "$CONFIG_SITE"; then
  1721. set x "$CONFIG_SITE"
  1722. elif test "x$prefix" != xNONE; then
  1723. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1724. else
  1725. set x "$ac_default_prefix/share/config.site" \
  1726. "$ac_default_prefix/etc/config.site"
  1727. fi
  1728. shift
  1729. for ac_site_file
  1730. do
  1731. if test -r "$ac_site_file"; then
  1732. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1733. echo "$as_me: loading site script $ac_site_file" >&6;}
  1734. sed 's/^/| /' "$ac_site_file" >&5
  1735. . "$ac_site_file"
  1736. fi
  1737. done
  1738. if test -r "$cache_file"; then
  1739. # Some versions of bash will fail to source /dev/null (special
  1740. # files actually), so we avoid doing that.
  1741. if test -f "$cache_file"; then
  1742. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1743. echo "$as_me: loading cache $cache_file" >&6;}
  1744. case $cache_file in
  1745. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1746. *) . "./$cache_file";;
  1747. esac
  1748. fi
  1749. else
  1750. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1751. echo "$as_me: creating cache $cache_file" >&6;}
  1752. >$cache_file
  1753. fi
  1754. # Check that the precious variables saved in the cache have kept the same
  1755. # value.
  1756. ac_cache_corrupted=false
  1757. for ac_var in $ac_precious_vars; do
  1758. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1759. eval ac_new_set=\$ac_env_${ac_var}_set
  1760. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1761. eval ac_new_val=\$ac_env_${ac_var}_value
  1762. case $ac_old_set,$ac_new_set in
  1763. set,)
  1764. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1765. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1766. ac_cache_corrupted=: ;;
  1767. ,set)
  1768. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1769. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1770. ac_cache_corrupted=: ;;
  1771. ,);;
  1772. *)
  1773. if test "x$ac_old_val" != "x$ac_new_val"; then
  1774. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1775. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1776. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1777. echo "$as_me: former value: $ac_old_val" >&2;}
  1778. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1779. echo "$as_me: current value: $ac_new_val" >&2;}
  1780. ac_cache_corrupted=:
  1781. fi;;
  1782. esac
  1783. # Pass precious variables to config.status.
  1784. if test "$ac_new_set" = set; then
  1785. case $ac_new_val in
  1786. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1787. *) ac_arg=$ac_var=$ac_new_val ;;
  1788. esac
  1789. case " $ac_configure_args " in
  1790. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1791. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1792. esac
  1793. fi
  1794. done
  1795. if $ac_cache_corrupted; then
  1796. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1797. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1798. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1799. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1800. { (exit 1); exit 1; }; }
  1801. fi
  1802. ac_ext=c
  1803. ac_cpp='$CPP $CPPFLAGS'
  1804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1807. LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
  1808. ac_aux_dir=
  1809. for ac_dir in autoconf "$srcdir"/autoconf; do
  1810. if test -f "$ac_dir/install-sh"; then
  1811. ac_aux_dir=$ac_dir
  1812. ac_install_sh="$ac_aux_dir/install-sh -c"
  1813. break
  1814. elif test -f "$ac_dir/install.sh"; then
  1815. ac_aux_dir=$ac_dir
  1816. ac_install_sh="$ac_aux_dir/install.sh -c"
  1817. break
  1818. elif test -f "$ac_dir/shtool"; then
  1819. ac_aux_dir=$ac_dir
  1820. ac_install_sh="$ac_aux_dir/shtool install -c"
  1821. break
  1822. fi
  1823. done
  1824. if test -z "$ac_aux_dir"; then
  1825. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
  1826. echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
  1827. { (exit 1); exit 1; }; }
  1828. fi
  1829. # These three variables are undocumented and unsupported,
  1830. # and are intended to be withdrawn in a future Autoconf release.
  1831. # They can cause serious problems if a builder's source tree is in a directory
  1832. # whose full name contains unusual characters.
  1833. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1834. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1835. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1836. if test ${srcdir} != "." ; then
  1837. if test -f ${srcdir}/include/llvm/Config/config.h ; then
  1838. { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
  1839. echo "$as_me: error: Already configured in ${srcdir}" >&2;}
  1840. { (exit 1); exit 1; }; }
  1841. fi
  1842. fi
  1843. for i in `ls ${srcdir}/projects`
  1844. do
  1845. if test -d ${srcdir}/projects/${i} ; then
  1846. case ${i} in
  1847. CVS) ;;
  1848. sample) subdirs="$subdirs projects/sample"
  1849. ;;
  1850. privbracket) subdirs="$subdirs projects/privbracket"
  1851. ;;
  1852. llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
  1853. ;;
  1854. # llvm-test is the old name of the test-suite, kept here for backwards
  1855. # compatibility
  1856. llvm-test) subdirs="$subdirs projects/llvm-test"
  1857. ;;
  1858. test-suite) subdirs="$subdirs projects/test-suite"
  1859. ;;
  1860. llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
  1861. ;;
  1862. llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
  1863. ;;
  1864. llvm-java) subdirs="$subdirs projects/llvm-java"
  1865. ;;
  1866. llvm-tv) subdirs="$subdirs projects/llvm-tv"
  1867. ;;
  1868. llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
  1869. ;;
  1870. poolalloc) subdirs="$subdirs projects/poolalloc"
  1871. ;;
  1872. llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
  1873. ;;
  1874. *)
  1875. { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
  1876. echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
  1877. ;;
  1878. esac
  1879. fi
  1880. done
  1881. # Make sure we can run config.sub.
  1882. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1883. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1884. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1885. { (exit 1); exit 1; }; }
  1886. { echo "$as_me:$LINENO: checking build system type" >&5
  1887. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1888. if test "${ac_cv_build+set}" = set; then
  1889. echo $ECHO_N "(cached) $ECHO_C" >&6
  1890. else
  1891. ac_build_alias=$build_alias
  1892. test "x$ac_build_alias" = x &&
  1893. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1894. test "x$ac_build_alias" = x &&
  1895. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1896. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1897. { (exit 1); exit 1; }; }
  1898. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1899. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1900. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1901. { (exit 1); exit 1; }; }
  1902. fi
  1903. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1904. echo "${ECHO_T}$ac_cv_build" >&6; }
  1905. case $ac_cv_build in
  1906. *-*-*) ;;
  1907. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1908. echo "$as_me: error: invalid value of canonical build" >&2;}
  1909. { (exit 1); exit 1; }; };;
  1910. esac
  1911. build=$ac_cv_build
  1912. ac_save_IFS=$IFS; IFS='-'
  1913. set x $ac_cv_build
  1914. shift
  1915. build_cpu=$1
  1916. build_vendor=$2
  1917. shift; shift
  1918. # Remember, the first character of IFS is used to create $*,
  1919. # except with old shells:
  1920. build_os=$*
  1921. IFS=$ac_save_IFS
  1922. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1923. { echo "$as_me:$LINENO: checking host system type" >&5
  1924. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1925. if test "${ac_cv_host+set}" = set; then
  1926. echo $ECHO_N "(cached) $ECHO_C" >&6
  1927. else
  1928. if test "x$host_alias" = x; then
  1929. ac_cv_host=$ac_cv_build
  1930. else
  1931. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1932. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1933. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1934. { (exit 1); exit 1; }; }
  1935. fi
  1936. fi
  1937. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1938. echo "${ECHO_T}$ac_cv_host" >&6; }
  1939. case $ac_cv_host in
  1940. *-*-*) ;;
  1941. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1942. echo "$as_me: error: invalid value of canonical host" >&2;}
  1943. { (exit 1); exit 1; }; };;
  1944. esac
  1945. host=$ac_cv_host
  1946. ac_save_IFS=$IFS; IFS='-'
  1947. set x $ac_cv_host
  1948. shift
  1949. host_cpu=$1
  1950. host_vendor=$2
  1951. shift; shift
  1952. # Remember, the first character of IFS is used to create $*,
  1953. # except with old shells:
  1954. host_os=$*
  1955. IFS=$ac_save_IFS
  1956. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1957. { echo "$as_me:$LINENO: checking target system type" >&5
  1958. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1959. if test "${ac_cv_target+set}" = set; then
  1960. echo $ECHO_N "(cached) $ECHO_C" >&6
  1961. else
  1962. if test "x$target_alias" = x; then
  1963. ac_cv_target=$ac_cv_host
  1964. else
  1965. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1966. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1967. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1968. { (exit 1); exit 1; }; }
  1969. fi
  1970. fi
  1971. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1972. echo "${ECHO_T}$ac_cv_target" >&6; }
  1973. case $ac_cv_target in
  1974. *-*-*) ;;
  1975. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1976. echo "$as_me: error: invalid value of canonical target" >&2;}
  1977. { (exit 1); exit 1; }; };;
  1978. esac
  1979. target=$ac_cv_target
  1980. ac_save_IFS=$IFS; IFS='-'
  1981. set x $ac_cv_target
  1982. shift
  1983. target_cpu=$1
  1984. target_vendor=$2
  1985. shift; shift
  1986. # Remember, the first character of IFS is used to create $*,
  1987. # except with old shells:
  1988. target_os=$*
  1989. IFS=$ac_save_IFS
  1990. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1991. # The aliases save the names the user supplied, while $host etc.
  1992. # will get canonicalized.
  1993. test -n "$target_alias" &&
  1994. test "$program_prefix$program_suffix$program_transform_name" = \
  1995. NONENONEs,x,x, &&
  1996. program_prefix=${target_alias}-
  1997. { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
  1998. echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
  1999. if test "${llvm_cv_os_type+set}" = set; then
  2000. echo $ECHO_N "(cached) $ECHO_C" >&6
  2001. else
  2002. case $host in
  2003. *-*-aix*)
  2004. llvm_cv_link_all_option="-Wl,--whole-archive"
  2005. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2006. llvm_cv_os_type="AIX"
  2007. llvm_cv_platform_type="Unix" ;;
  2008. *-*-irix*)
  2009. llvm_cv_link_all_option="-Wl,--whole-archive"
  2010. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2011. llvm_cv_os_type="IRIX"
  2012. llvm_cv_platform_type="Unix" ;;
  2013. *-*-cygwin*)
  2014. llvm_cv_link_all_option="-Wl,--whole-archive"
  2015. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2016. llvm_cv_os_type="Cygwin"
  2017. llvm_cv_platform_type="Unix" ;;
  2018. *-*-darwin*)
  2019. llvm_cv_link_all_option="-Wl,-all_load"
  2020. llvm_cv_no_link_all_option="-Wl,-noall_load"
  2021. llvm_cv_os_type="Darwin"
  2022. llvm_cv_platform_type="Unix" ;;
  2023. *-*-freebsd*)
  2024. llvm_cv_link_all_option="-Wl,--whole-archive"
  2025. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2026. llvm_cv_os_type="FreeBSD"
  2027. llvm_cv_platform_type="Unix" ;;
  2028. *-*-openbsd*)
  2029. llvm_cv_link_all_option="-Wl,--whole-archive"
  2030. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2031. llvm_cv_os_type="OpenBSD"
  2032. llvm_cv_platform_type="Unix" ;;
  2033. *-*-netbsd*)
  2034. llvm_cv_link_all_option="-Wl,--whole-archive"
  2035. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2036. llvm_cv_os_type="NetBSD"
  2037. llvm_cv_platform_type="Unix" ;;
  2038. *-*-dragonfly*)
  2039. llvm_cv_link_all_option="-Wl,--whole-archive"
  2040. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2041. llvm_cv_os_type="DragonFly"
  2042. llvm_cv_platform_type="Unix" ;;
  2043. *-*-hpux*)
  2044. llvm_cv_link_all_option="-Wl,--whole-archive"
  2045. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2046. llvm_cv_os_type="HP-UX"
  2047. llvm_cv_platform_type="Unix" ;;
  2048. *-*-interix*)
  2049. llvm_cv_link_all_option="-Wl,--whole-archive"
  2050. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2051. llvm_cv_os_type="Interix"
  2052. llvm_cv_platform_type="Unix" ;;
  2053. *-*-linux*)
  2054. llvm_cv_link_all_option="-Wl,--whole-archive"
  2055. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2056. llvm_cv_os_type="Linux"
  2057. llvm_cv_platform_type="Unix" ;;
  2058. *-*-solaris*)
  2059. llvm_cv_link_all_option="-Wl,-z,allextract"
  2060. llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
  2061. llvm_cv_os_type="SunOS"
  2062. llvm_cv_platform_type="Unix" ;;
  2063. *-*-win32*)
  2064. llvm_cv_link_all_option="-Wl,--whole-archive"
  2065. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2066. llvm_cv_os_type="Win32"
  2067. llvm_cv_platform_type="Win32" ;;
  2068. *-*-mingw*)
  2069. llvm_cv_link_all_option="-Wl,--whole-archive"
  2070. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2071. llvm_cv_os_type="MingW"
  2072. llvm_cv_platform_type="Win32" ;;
  2073. *-unknown-eabi*)
  2074. llvm_cv_link_all_option="-Wl,--whole-archive"
  2075. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2076. llvm_cv_os_type="Freestanding"
  2077. llvm_cv_platform_type="Unix" ;;
  2078. *-unknown-elf*)
  2079. llvm_cv_link_all_option="-Wl,--whole-archive"
  2080. llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
  2081. llvm_cv_os_type="Freestanding"
  2082. llvm_cv_platform_type="Unix" ;;
  2083. *)
  2084. llvm_cv_link_all_option=""
  2085. llvm_cv_no_link_all_option=""
  2086. llvm_cv_os_type="Unknown"
  2087. llvm_cv_platform_type="Unknown" ;;
  2088. esac
  2089. fi
  2090. { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
  2091. echo "${ECHO_T}$llvm_cv_os_type" >&6; }
  2092. { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
  2093. echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
  2094. if test "${llvm_cv_target_os_type+set}" = set; then
  2095. echo $ECHO_N "(cached) $ECHO_C" >&6
  2096. else
  2097. case $target in
  2098. *-*-aix*)
  2099. llvm_cv_target_os_type="AIX" ;;
  2100. *-*-irix*)
  2101. llvm_cv_target_os_type="IRIX" ;;
  2102. *-*-cygwin*)
  2103. llvm_cv_target_os_type="Cygwin" ;;
  2104. *-*-darwin*)
  2105. llvm_cv_target_os_type="Darwin" ;;
  2106. *-*-freebsd*)
  2107. llvm_cv_target_os_type="FreeBSD" ;;
  2108. *-*-openbsd*)
  2109. llvm_cv_target_os_type="OpenBSD" ;;
  2110. *-*-netbsd*)
  2111. llvm_cv_target_os_type="NetBSD" ;;
  2112. *-*-dragonfly*)
  2113. llvm_cv_target_os_type="DragonFly" ;;
  2114. *-*-hpux*)
  2115. llvm_cv_target_os_type="HP-UX" ;;
  2116. *-*-interix*)
  2117. llvm_cv_target_os_type="Interix" ;;
  2118. *-*-linux*)
  2119. llvm_cv_target_os_type="Linux" ;;
  2120. *-*-solaris*)
  2121. llvm_cv_target_os_type="SunOS" ;;
  2122. *-*-win32*)
  2123. llvm_cv_target_os_type="Win32" ;;
  2124. *-*-mingw*)
  2125. llvm_cv_target_os_type="MingW" ;;
  2126. *-unknown-eabi*)
  2127. llvm_cv_target_os_type="Freestanding" ;;
  2128. *)
  2129. llvm_cv_target_os_type="Unknown" ;;
  2130. esac
  2131. fi
  2132. { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
  2133. echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
  2134. if test "$llvm_cv_os_type" = "Unknown" ; then
  2135. { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
  2136. echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
  2137. { (exit 1); exit 1; }; }
  2138. fi
  2139. OS=$llvm_cv_os_type
  2140. HOST_OS=$llvm_cv_os_type
  2141. TARGET_OS=$llvm_cv_target_os_type
  2142. LINKALL=$llvm_cv_link_all_option
  2143. NOLINKALL=$llvm_cv_no_link_all_option
  2144. case $llvm_cv_platform_type in
  2145. Unix)
  2146. cat >>confdefs.h <<\_ACEOF
  2147. #define LLVM_ON_UNIX 1
  2148. _ACEOF
  2149. LLVM_ON_UNIX=1
  2150. LLVM_ON_WIN32=0
  2151. ;;
  2152. Win32)
  2153. cat >>confdefs.h <<\_ACEOF
  2154. #define LLVM_ON_WIN32 1
  2155. _ACEOF
  2156. LLVM_ON_UNIX=0
  2157. LLVM_ON_WIN32=1
  2158. ;;
  2159. esac
  2160. { echo "$as_me:$LINENO: checking target architecture" >&5
  2161. echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
  2162. if test "${llvm_cv_target_arch+set}" = set; then
  2163. echo $ECHO_N "(cached) $ECHO_C" >&6
  2164. else
  2165. case $target in
  2166. i?86-*) llvm_cv_target_arch="x86" ;;
  2167. amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
  2168. sparc*-*) llvm_cv_target_arch="Sparc" ;;
  2169. powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
  2170. alpha*-*) llvm_cv_target_arch="Alpha" ;;
  2171. arm*-*) llvm_cv_target_arch="ARM" ;;
  2172. mips-*) llvm_cv_target_arch="Mips" ;;
  2173. pic16-*) llvm_cv_target_arch="PIC16" ;;
  2174. xcore-*) llvm_cv_target_arch="XCore" ;;
  2175. msp430-*) llvm_cv_target_arch="MSP430" ;;
  2176. s390x-*) llvm_cv_target_arch="SystemZ" ;;
  2177. bfin-*) llvm_cv_target_arch="Blackfin" ;;
  2178. *) llvm_cv_target_arch="Unknown" ;;
  2179. esac
  2180. fi
  2181. { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
  2182. echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
  2183. if test "$llvm_cv_target_arch" = "Unknown" ; then
  2184. { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
  2185. echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
  2186. fi
  2187. # Determine the LLVM native architecture for the target
  2188. case "$llvm_cv_target_arch" in
  2189. x86) LLVM_NATIVE_ARCH="X86" ;;
  2190. x86_64) LLVM_NATIVE_ARCH="X86" ;;
  2191. *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
  2192. esac
  2193. ARCH=$llvm_cv_target_arch
  2194. ac_ext=c
  2195. ac_cpp='$CPP $CPPFLAGS'
  2196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2199. if test -n "$ac_tool_prefix"; then
  2200. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2201. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2202. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2203. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2204. if test "${ac_cv_prog_CC+set}" = set; then
  2205. echo $ECHO_N "(cached) $ECHO_C" >&6
  2206. else
  2207. if test -n "$CC"; then
  2208. ac_cv_prog_CC="$CC" # Let the user override the test.
  2209. else
  2210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2211. for as_dir in $PATH
  2212. do
  2213. IFS=$as_save_IFS
  2214. test -z "$as_dir" && as_dir=.
  2215. for ac_exec_ext in '' $ac_executable_extensions; do
  2216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2217. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2218. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2219. break 2
  2220. fi
  2221. done
  2222. done
  2223. IFS=$as_save_IFS
  2224. fi
  2225. fi
  2226. CC=$ac_cv_prog_CC
  2227. if test -n "$CC"; then
  2228. { echo "$as_me:$LINENO: result: $CC" >&5
  2229. echo "${ECHO_T}$CC" >&6; }
  2230. else
  2231. { echo "$as_me:$LINENO: result: no" >&5
  2232. echo "${ECHO_T}no" >&6; }
  2233. fi
  2234. fi
  2235. if test -z "$ac_cv_prog_CC"; then
  2236. ac_ct_CC=$CC
  2237. # Extract the first word of "gcc", so it can be a program name with args.
  2238. set dummy gcc; ac_word=$2
  2239. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2241. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2242. echo $ECHO_N "(cached) $ECHO_C" >&6
  2243. else
  2244. if test -n "$ac_ct_CC"; then
  2245. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2246. else
  2247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2248. for as_dir in $PATH
  2249. do
  2250. IFS=$as_save_IFS
  2251. test -z "$as_dir" && as_dir=.
  2252. for ac_exec_ext in '' $ac_executable_extensions; do
  2253. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2254. ac_cv_prog_ac_ct_CC="gcc"
  2255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2256. break 2
  2257. fi
  2258. done
  2259. done
  2260. IFS=$as_save_IFS
  2261. fi
  2262. fi
  2263. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2264. if test -n "$ac_ct_CC"; then
  2265. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2266. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2267. else
  2268. { echo "$as_me:$LINENO: result: no" >&5
  2269. echo "${ECHO_T}no" >&6; }
  2270. fi
  2271. if test "x$ac_ct_CC" = x; then
  2272. CC=""
  2273. else
  2274. case $cross_compiling:$ac_tool_warned in
  2275. yes:)
  2276. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2277. whose name does not start with the host triplet. If you think this
  2278. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2279. echo "$as_me: 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." >&2;}
  2282. ac_tool_warned=yes ;;
  2283. esac
  2284. CC=$ac_ct_CC
  2285. fi
  2286. else
  2287. CC="$ac_cv_prog_CC"
  2288. fi
  2289. if test -z "$CC"; then
  2290. if test -n "$ac_tool_prefix"; then
  2291. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2292. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2293. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2294. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2295. if test "${ac_cv_prog_CC+set}" = set; then
  2296. echo $ECHO_N "(cached) $ECHO_C" >&6
  2297. else
  2298. if test -n "$CC"; then
  2299. ac_cv_prog_CC="$CC" # Let the user override the test.
  2300. else
  2301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2302. for as_dir in $PATH
  2303. do
  2304. IFS=$as_save_IFS
  2305. test -z "$as_dir" && as_dir=.
  2306. for ac_exec_ext in '' $ac_executable_extensions; do
  2307. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2308. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2309. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2310. break 2
  2311. fi
  2312. done
  2313. done
  2314. IFS=$as_save_IFS
  2315. fi
  2316. fi
  2317. CC=$ac_cv_prog_CC
  2318. if test -n "$CC"; then
  2319. { echo "$as_me:$LINENO: result: $CC" >&5
  2320. echo "${ECHO_T}$CC" >&6; }
  2321. else
  2322. { echo "$as_me:$LINENO: result: no" >&5
  2323. echo "${ECHO_T}no" >&6; }
  2324. fi
  2325. fi
  2326. fi
  2327. if test -z "$CC"; then
  2328. # Extract the first word of "cc", so it can be a program name with args.
  2329. set dummy cc; ac_word=$2
  2330. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2331. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2332. if test "${ac_cv_prog_CC+set}" = set; then
  2333. echo $ECHO_N "(cached) $ECHO_C" >&6
  2334. else
  2335. if test -n "$CC"; then
  2336. ac_cv_prog_CC="$CC" # Let the user override the test.
  2337. else
  2338. ac_prog_rejected=no
  2339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2340. for as_dir in $PATH
  2341. do
  2342. IFS=$as_save_IFS
  2343. test -z "$as_dir" && as_dir=.
  2344. for ac_exec_ext in '' $ac_executable_extensions; do
  2345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2346. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2347. ac_prog_rejected=yes
  2348. continue
  2349. fi
  2350. ac_cv_prog_CC="cc"
  2351. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. if test $ac_prog_rejected = yes; then
  2358. # We found a bogon in the path, so make sure we never use it.
  2359. set dummy $ac_cv_prog_CC
  2360. shift
  2361. if test $# != 0; then
  2362. # We chose a different compiler from the bogus one.
  2363. # However, it has the same basename, so the bogon will be chosen
  2364. # first if we set CC to just the basename; use the full file name.
  2365. shift
  2366. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2367. fi
  2368. fi
  2369. fi
  2370. fi
  2371. CC=$ac_cv_prog_CC
  2372. if test -n "$CC"; then
  2373. { echo "$as_me:$LINENO: result: $CC" >&5
  2374. echo "${ECHO_T}$CC" >&6; }
  2375. else
  2376. { echo "$as_me:$LINENO: result: no" >&5
  2377. echo "${ECHO_T}no" >&6; }
  2378. fi
  2379. fi
  2380. if test -z "$CC"; then
  2381. if test -n "$ac_tool_prefix"; then
  2382. for ac_prog in cl.exe
  2383. do
  2384. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2385. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2386. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2387. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2388. if test "${ac_cv_prog_CC+set}" = set; then
  2389. echo $ECHO_N "(cached) $ECHO_C" >&6
  2390. else
  2391. if test -n "$CC"; then
  2392. ac_cv_prog_CC="$CC" # Let the user override the test.
  2393. else
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_exec_ext in '' $ac_executable_extensions; do
  2400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2401. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2402. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2403. break 2
  2404. fi
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. fi
  2410. CC=$ac_cv_prog_CC
  2411. if test -n "$CC"; then
  2412. { echo "$as_me:$LINENO: result: $CC" >&5
  2413. echo "${ECHO_T}$CC" >&6; }
  2414. else
  2415. { echo "$as_me:$LINENO: result: no" >&5
  2416. echo "${ECHO_T}no" >&6; }
  2417. fi
  2418. test -n "$CC" && break
  2419. done
  2420. fi
  2421. if test -z "$CC"; then
  2422. ac_ct_CC=$CC
  2423. for ac_prog in cl.exe
  2424. do
  2425. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2426. set dummy $ac_prog; ac_word=$2
  2427. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2428. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2429. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2430. echo $ECHO_N "(cached) $ECHO_C" >&6
  2431. else
  2432. if test -n "$ac_ct_CC"; then
  2433. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2434. else
  2435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2436. for as_dir in $PATH
  2437. do
  2438. IFS=$as_save_IFS
  2439. test -z "$as_dir" && as_dir=.
  2440. for ac_exec_ext in '' $ac_executable_extensions; do
  2441. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2442. ac_cv_prog_ac_ct_CC="$ac_prog"
  2443. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2444. break 2
  2445. fi
  2446. done
  2447. done
  2448. IFS=$as_save_IFS
  2449. fi
  2450. fi
  2451. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2452. if test -n "$ac_ct_CC"; then
  2453. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2454. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2455. else
  2456. { echo "$as_me:$LINENO: result: no" >&5
  2457. echo "${ECHO_T}no" >&6; }
  2458. fi
  2459. test -n "$ac_ct_CC" && break
  2460. done
  2461. if test "x$ac_ct_CC" = x; then
  2462. CC=""
  2463. else
  2464. case $cross_compiling:$ac_tool_warned in
  2465. yes:)
  2466. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2467. whose name does not start with the host triplet. If you think this
  2468. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2469. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2470. whose name does not start with the host triplet. If you think this
  2471. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2472. ac_tool_warned=yes ;;
  2473. esac
  2474. CC=$ac_ct_CC
  2475. fi
  2476. fi
  2477. fi
  2478. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2479. See \`config.log' for more details." >&5
  2480. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2481. See \`config.log' for more details." >&2;}
  2482. { (exit 1); exit 1; }; }
  2483. # Provide some information about the compiler.
  2484. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2485. ac_compiler=`set X $ac_compile; echo $2`
  2486. { (ac_try="$ac_compiler --version >&5"
  2487. case "(($ac_try" in
  2488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2489. *) ac_try_echo=$ac_try;;
  2490. esac
  2491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2492. (eval "$ac_compiler --version >&5") 2>&5
  2493. ac_status=$?
  2494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2495. (exit $ac_status); }
  2496. { (ac_try="$ac_compiler -v >&5"
  2497. case "(($ac_try" in
  2498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2499. *) ac_try_echo=$ac_try;;
  2500. esac
  2501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2502. (eval "$ac_compiler -v >&5") 2>&5
  2503. ac_status=$?
  2504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2505. (exit $ac_status); }
  2506. { (ac_try="$ac_compiler -V >&5"
  2507. case "(($ac_try" in
  2508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2509. *) ac_try_echo=$ac_try;;
  2510. esac
  2511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2512. (eval "$ac_compiler -V >&5") 2>&5
  2513. ac_status=$?
  2514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2515. (exit $ac_status); }
  2516. cat >conftest.$ac_ext <<_ACEOF
  2517. /* confdefs.h. */
  2518. _ACEOF
  2519. cat confdefs.h >>conftest.$ac_ext
  2520. cat >>conftest.$ac_ext <<_ACEOF
  2521. /* end confdefs.h. */
  2522. int
  2523. main ()
  2524. {
  2525. ;
  2526. return 0;
  2527. }
  2528. _ACEOF
  2529. ac_clean_files_save=$ac_clean_files
  2530. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2531. # Try to create an executable without -o first, disregard a.out.
  2532. # It will help us diagnose broken compilers, and finding out an intuition
  2533. # of exeext.
  2534. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2535. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2536. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2537. #
  2538. # List of possible output files, starting from the most likely.
  2539. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2540. # only as a last resort. b.out is created by i960 compilers.
  2541. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2542. #
  2543. # The IRIX 6 linker writes into existing files which may not be
  2544. # executable, retaining their permissions. Remove them first so a
  2545. # subsequent execution test works.
  2546. ac_rmfiles=
  2547. for ac_file in $ac_files
  2548. do
  2549. case $ac_file in
  2550. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2551. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2552. esac
  2553. done
  2554. rm -f $ac_rmfiles
  2555. if { (ac_try="$ac_link_default"
  2556. case "(($ac_try" in
  2557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2558. *) ac_try_echo=$ac_try;;
  2559. esac
  2560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2561. (eval "$ac_link_default") 2>&5
  2562. ac_status=$?
  2563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2564. (exit $ac_status); }; then
  2565. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2566. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2567. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2568. # so that the user can short-circuit this test for compilers unknown to
  2569. # Autoconf.
  2570. for ac_file in $ac_files
  2571. do
  2572. test -f "$ac_file" || continue
  2573. case $ac_file in
  2574. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2575. ;;
  2576. [ab].out )
  2577. # We found the default executable, but exeext='' is most
  2578. # certainly right.
  2579. break;;
  2580. *.* )
  2581. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2582. then :; else
  2583. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2584. fi
  2585. # We set ac_cv_exeext here because the later test for it is not
  2586. # safe: cross compilers may not add the suffix if given an `-o'
  2587. # argument, so we may need to know it at that point already.
  2588. # Even if this section looks crufty: it has the advantage of
  2589. # actually working.
  2590. break;;
  2591. * )
  2592. break;;
  2593. esac
  2594. done
  2595. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2596. else
  2597. echo "$as_me: failed program was:" >&5
  2598. sed 's/^/| /' conftest.$ac_ext >&5
  2599. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2600. See \`config.log' for more details." >&5
  2601. echo "$as_me: error: C compiler cannot create executables
  2602. See \`config.log' for more details." >&2;}
  2603. { (exit 77); exit 77; }; }
  2604. fi
  2605. ac_exeext=$ac_cv_exeext
  2606. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2607. echo "${ECHO_T}$ac_file" >&6; }
  2608. # Check that the compiler produces executables we can run. If not, either
  2609. # the compiler is broken, or we cross compile.
  2610. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2611. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2612. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2613. # If not cross compiling, check that we can run a simple program.
  2614. if test "$cross_compiling" != yes; then
  2615. if { ac_try='./$ac_file'
  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_try") 2>&5
  2622. ac_status=$?
  2623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2624. (exit $ac_status); }; }; then
  2625. cross_compiling=no
  2626. else
  2627. if test "$cross_compiling" = maybe; then
  2628. cross_compiling=yes
  2629. else
  2630. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2631. If you meant to cross compile, use \`--host'.
  2632. See \`config.log' for more details." >&5
  2633. echo "$as_me: error: cannot run C compiled programs.
  2634. If you meant to cross compile, use \`--host'.
  2635. See \`config.log' for more details." >&2;}
  2636. { (exit 1); exit 1; }; }
  2637. fi
  2638. fi
  2639. fi
  2640. { echo "$as_me:$LINENO: result: yes" >&5
  2641. echo "${ECHO_T}yes" >&6; }
  2642. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2643. ac_clean_files=$ac_clean_files_save
  2644. # Check that the compiler produces executables we can run. If not, either
  2645. # the compiler is broken, or we cross compile.
  2646. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2647. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2648. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2649. echo "${ECHO_T}$cross_compiling" >&6; }
  2650. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2651. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2652. if { (ac_try="$ac_link"
  2653. case "(($ac_try" in
  2654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2655. *) ac_try_echo=$ac_try;;
  2656. esac
  2657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2658. (eval "$ac_link") 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; then
  2662. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2663. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2664. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2665. # `rm'.
  2666. for ac_file in conftest.exe conftest conftest.*; do
  2667. test -f "$ac_file" || continue
  2668. case $ac_file in
  2669. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2670. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2671. break;;
  2672. * ) break;;
  2673. esac
  2674. done
  2675. else
  2676. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2677. See \`config.log' for more details." >&5
  2678. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2679. See \`config.log' for more details." >&2;}
  2680. { (exit 1); exit 1; }; }
  2681. fi
  2682. rm -f conftest$ac_cv_exeext
  2683. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2684. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2685. rm -f conftest.$ac_ext
  2686. EXEEXT=$ac_cv_exeext
  2687. ac_exeext=$EXEEXT
  2688. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2689. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2690. if test "${ac_cv_objext+set}" = set; then
  2691. echo $ECHO_N "(cached) $ECHO_C" >&6
  2692. else
  2693. cat >conftest.$ac_ext <<_ACEOF
  2694. /* confdefs.h. */
  2695. _ACEOF
  2696. cat confdefs.h >>conftest.$ac_ext
  2697. cat >>conftest.$ac_ext <<_ACEOF
  2698. /* end confdefs.h. */
  2699. int
  2700. main ()
  2701. {
  2702. ;
  2703. return 0;
  2704. }
  2705. _ACEOF
  2706. rm -f conftest.o conftest.obj
  2707. if { (ac_try="$ac_compile"
  2708. case "(($ac_try" in
  2709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2710. *) ac_try_echo=$ac_try;;
  2711. esac
  2712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2713. (eval "$ac_compile") 2>&5
  2714. ac_status=$?
  2715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2716. (exit $ac_status); }; then
  2717. for ac_file in conftest.o conftest.obj conftest.*; do
  2718. test -f "$ac_file" || continue;
  2719. case $ac_file in
  2720. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2721. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2722. break;;
  2723. esac
  2724. done
  2725. else
  2726. echo "$as_me: failed program was:" >&5
  2727. sed 's/^/| /' conftest.$ac_ext >&5
  2728. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2729. See \`config.log' for more details." >&5
  2730. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2731. See \`config.log' for more details." >&2;}
  2732. { (exit 1); exit 1; }; }
  2733. fi
  2734. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2735. fi
  2736. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2737. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2738. OBJEXT=$ac_cv_objext
  2739. ac_objext=$OBJEXT
  2740. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2741. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2742. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. cat >conftest.$ac_ext <<_ACEOF
  2746. /* confdefs.h. */
  2747. _ACEOF
  2748. cat confdefs.h >>conftest.$ac_ext
  2749. cat >>conftest.$ac_ext <<_ACEOF
  2750. /* end confdefs.h. */
  2751. int
  2752. main ()
  2753. {
  2754. #ifndef __GNUC__
  2755. choke me
  2756. #endif
  2757. ;
  2758. return 0;
  2759. }
  2760. _ACEOF
  2761. rm -f conftest.$ac_objext
  2762. if { (ac_try="$ac_compile"
  2763. case "(($ac_try" in
  2764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2765. *) ac_try_echo=$ac_try;;
  2766. esac
  2767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2768. (eval "$ac_compile") 2>conftest.er1
  2769. ac_status=$?
  2770. grep -v '^ *+' conftest.er1 >conftest.err
  2771. rm -f conftest.er1
  2772. cat conftest.err >&5
  2773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2774. (exit $ac_status); } &&
  2775. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2776. { (case "(($ac_try" in
  2777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2778. *) ac_try_echo=$ac_try;;
  2779. esac
  2780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2781. (eval "$ac_try") 2>&5
  2782. ac_status=$?
  2783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2784. (exit $ac_status); }; } &&
  2785. { ac_try='test -s conftest.$ac_objext'
  2786. { (case "(($ac_try" in
  2787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2788. *) ac_try_echo=$ac_try;;
  2789. esac
  2790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2791. (eval "$ac_try") 2>&5
  2792. ac_status=$?
  2793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2794. (exit $ac_status); }; }; then
  2795. ac_compiler_gnu=yes
  2796. else
  2797. echo "$as_me: failed program was:" >&5
  2798. sed 's/^/| /' conftest.$ac_ext >&5
  2799. ac_compiler_gnu=no
  2800. fi
  2801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2802. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2803. fi
  2804. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2805. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2806. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2807. ac_test_CFLAGS=${CFLAGS+set}
  2808. ac_save_CFLAGS=$CFLAGS
  2809. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2810. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2811. if test "${ac_cv_prog_cc_g+set}" = set; then
  2812. echo $ECHO_N "(cached) $ECHO_C" >&6
  2813. else
  2814. ac_save_c_werror_flag=$ac_c_werror_flag
  2815. ac_c_werror_flag=yes
  2816. ac_cv_prog_cc_g=no
  2817. CFLAGS="-g"
  2818. cat >conftest.$ac_ext <<_ACEOF
  2819. /* confdefs.h. */
  2820. _ACEOF
  2821. cat confdefs.h >>conftest.$ac_ext
  2822. cat >>conftest.$ac_ext <<_ACEOF
  2823. /* end confdefs.h. */
  2824. int
  2825. main ()
  2826. {
  2827. ;
  2828. return 0;
  2829. }
  2830. _ACEOF
  2831. rm -f conftest.$ac_objext
  2832. if { (ac_try="$ac_compile"
  2833. case "(($ac_try" in
  2834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2835. *) ac_try_echo=$ac_try;;
  2836. esac
  2837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2838. (eval "$ac_compile") 2>conftest.er1
  2839. ac_status=$?
  2840. grep -v '^ *+' conftest.er1 >conftest.err
  2841. rm -f conftest.er1
  2842. cat conftest.err >&5
  2843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2844. (exit $ac_status); } &&
  2845. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2846. { (case "(($ac_try" in
  2847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2848. *) ac_try_echo=$ac_try;;
  2849. esac
  2850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2851. (eval "$ac_try") 2>&5
  2852. ac_status=$?
  2853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2854. (exit $ac_status); }; } &&
  2855. { ac_try='test -s conftest.$ac_objext'
  2856. { (case "(($ac_try" in
  2857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2858. *) ac_try_echo=$ac_try;;
  2859. esac
  2860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2861. (eval "$ac_try") 2>&5
  2862. ac_status=$?
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); }; }; then
  2865. ac_cv_prog_cc_g=yes
  2866. else
  2867. echo "$as_me: failed program was:" >&5
  2868. sed 's/^/| /' conftest.$ac_ext >&5
  2869. CFLAGS=""
  2870. cat >conftest.$ac_ext <<_ACEOF
  2871. /* confdefs.h. */
  2872. _ACEOF
  2873. cat confdefs.h >>conftest.$ac_ext
  2874. cat >>conftest.$ac_ext <<_ACEOF
  2875. /* end confdefs.h. */
  2876. int
  2877. main ()
  2878. {
  2879. ;
  2880. return 0;
  2881. }
  2882. _ACEOF
  2883. rm -f conftest.$ac_objext
  2884. if { (ac_try="$ac_compile"
  2885. case "(($ac_try" in
  2886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2887. *) ac_try_echo=$ac_try;;
  2888. esac
  2889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2890. (eval "$ac_compile") 2>conftest.er1
  2891. ac_status=$?
  2892. grep -v '^ *+' conftest.er1 >conftest.err
  2893. rm -f conftest.er1
  2894. cat conftest.err >&5
  2895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2896. (exit $ac_status); } &&
  2897. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2898. { (case "(($ac_try" in
  2899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2900. *) ac_try_echo=$ac_try;;
  2901. esac
  2902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2903. (eval "$ac_try") 2>&5
  2904. ac_status=$?
  2905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2906. (exit $ac_status); }; } &&
  2907. { ac_try='test -s conftest.$ac_objext'
  2908. { (case "(($ac_try" in
  2909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2910. *) ac_try_echo=$ac_try;;
  2911. esac
  2912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2913. (eval "$ac_try") 2>&5
  2914. ac_status=$?
  2915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2916. (exit $ac_status); }; }; then
  2917. :
  2918. else
  2919. echo "$as_me: failed program was:" >&5
  2920. sed 's/^/| /' conftest.$ac_ext >&5
  2921. ac_c_werror_flag=$ac_save_c_werror_flag
  2922. CFLAGS="-g"
  2923. cat >conftest.$ac_ext <<_ACEOF
  2924. /* confdefs.h. */
  2925. _ACEOF
  2926. cat confdefs.h >>conftest.$ac_ext
  2927. cat >>conftest.$ac_ext <<_ACEOF
  2928. /* end confdefs.h. */
  2929. int
  2930. main ()
  2931. {
  2932. ;
  2933. return 0;
  2934. }
  2935. _ACEOF
  2936. rm -f conftest.$ac_objext
  2937. if { (ac_try="$ac_compile"
  2938. case "(($ac_try" in
  2939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940. *) ac_try_echo=$ac_try;;
  2941. esac
  2942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2943. (eval "$ac_compile") 2>conftest.er1
  2944. ac_status=$?
  2945. grep -v '^ *+' conftest.er1 >conftest.err
  2946. rm -f conftest.er1
  2947. cat conftest.err >&5
  2948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2949. (exit $ac_status); } &&
  2950. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2951. { (case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2956. (eval "$ac_try") 2>&5
  2957. ac_status=$?
  2958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2959. (exit $ac_status); }; } &&
  2960. { ac_try='test -s conftest.$ac_objext'
  2961. { (case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2966. (eval "$ac_try") 2>&5
  2967. ac_status=$?
  2968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2969. (exit $ac_status); }; }; then
  2970. ac_cv_prog_cc_g=yes
  2971. else
  2972. echo "$as_me: failed program was:" >&5
  2973. sed 's/^/| /' conftest.$ac_ext >&5
  2974. fi
  2975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2976. fi
  2977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2978. fi
  2979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2980. ac_c_werror_flag=$ac_save_c_werror_flag
  2981. fi
  2982. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2983. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2984. if test "$ac_test_CFLAGS" = set; then
  2985. CFLAGS=$ac_save_CFLAGS
  2986. elif test $ac_cv_prog_cc_g = yes; then
  2987. if test "$GCC" = yes; then
  2988. CFLAGS="-g -O2"
  2989. else
  2990. CFLAGS="-g"
  2991. fi
  2992. else
  2993. if test "$GCC" = yes; then
  2994. CFLAGS="-O2"
  2995. else
  2996. CFLAGS=
  2997. fi
  2998. fi
  2999. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3000. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3001. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3002. echo $ECHO_N "(cached) $ECHO_C" >&6
  3003. else
  3004. ac_cv_prog_cc_c89=no
  3005. ac_save_CC=$CC
  3006. cat >conftest.$ac_ext <<_ACEOF
  3007. /* confdefs.h. */
  3008. _ACEOF
  3009. cat confdefs.h >>conftest.$ac_ext
  3010. cat >>conftest.$ac_ext <<_ACEOF
  3011. /* end confdefs.h. */
  3012. #include <stdarg.h>
  3013. #include <stdio.h>
  3014. #include <sys/types.h>
  3015. #include <sys/stat.h>
  3016. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3017. struct buf { int x; };
  3018. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3019. static char *e (p, i)
  3020. char **p;
  3021. int i;
  3022. {
  3023. return p[i];
  3024. }
  3025. static char *f (char * (*g) (char **, int), char **p, ...)
  3026. {
  3027. char *s;
  3028. va_list v;
  3029. va_start (v,p);
  3030. s = g (p, va_arg (v,int));
  3031. va_end (v);
  3032. return s;
  3033. }
  3034. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3035. function prototypes and stuff, but not '\xHH' hex character constants.
  3036. These don't provoke an error unfortunately, instead are silently treated
  3037. as 'x'. The following induces an error, until -std is added to get
  3038. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3039. array size at least. It's necessary to write '\x00'==0 to get something
  3040. that's true only with -std. */
  3041. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3042. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3043. inside strings and character constants. */
  3044. #define FOO(x) 'x'
  3045. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3046. int test (int i, double x);
  3047. struct s1 {int (*f) (int a);};
  3048. struct s2 {int (*f) (double a);};
  3049. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3050. int argc;
  3051. char **argv;
  3052. int
  3053. main ()
  3054. {
  3055. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3056. ;
  3057. return 0;
  3058. }
  3059. _ACEOF
  3060. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3061. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3062. do
  3063. CC="$ac_save_CC $ac_arg"
  3064. rm -f conftest.$ac_objext
  3065. if { (ac_try="$ac_compile"
  3066. case "(($ac_try" in
  3067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3068. *) ac_try_echo=$ac_try;;
  3069. esac
  3070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3071. (eval "$ac_compile") 2>conftest.er1
  3072. ac_status=$?
  3073. grep -v '^ *+' conftest.er1 >conftest.err
  3074. rm -f conftest.er1
  3075. cat conftest.err >&5
  3076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3077. (exit $ac_status); } &&
  3078. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3079. { (case "(($ac_try" in
  3080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3081. *) ac_try_echo=$ac_try;;
  3082. esac
  3083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3084. (eval "$ac_try") 2>&5
  3085. ac_status=$?
  3086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3087. (exit $ac_status); }; } &&
  3088. { ac_try='test -s conftest.$ac_objext'
  3089. { (case "(($ac_try" in
  3090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3091. *) ac_try_echo=$ac_try;;
  3092. esac
  3093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3094. (eval "$ac_try") 2>&5
  3095. ac_status=$?
  3096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3097. (exit $ac_status); }; }; then
  3098. ac_cv_prog_cc_c89=$ac_arg
  3099. else
  3100. echo "$as_me: failed program was:" >&5
  3101. sed 's/^/| /' conftest.$ac_ext >&5
  3102. fi
  3103. rm -f core conftest.err conftest.$ac_objext
  3104. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3105. done
  3106. rm -f conftest.$ac_ext
  3107. CC=$ac_save_CC
  3108. fi
  3109. # AC_CACHE_VAL
  3110. case "x$ac_cv_prog_cc_c89" in
  3111. x)
  3112. { echo "$as_me:$LINENO: result: none needed" >&5
  3113. echo "${ECHO_T}none needed" >&6; } ;;
  3114. xno)
  3115. { echo "$as_me:$LINENO: result: unsupported" >&5
  3116. echo "${ECHO_T}unsupported" >&6; } ;;
  3117. *)
  3118. CC="$CC $ac_cv_prog_cc_c89"
  3119. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3120. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3121. esac
  3122. ac_ext=c
  3123. ac_cpp='$CPP $CPPFLAGS'
  3124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3127. ac_ext=c
  3128. ac_cpp='$CPP $CPPFLAGS'
  3129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3132. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3133. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3134. # On Suns, sometimes $CPP names a directory.
  3135. if test -n "$CPP" && test -d "$CPP"; then
  3136. CPP=
  3137. fi
  3138. if test -z "$CPP"; then
  3139. if test "${ac_cv_prog_CPP+set}" = set; then
  3140. echo $ECHO_N "(cached) $ECHO_C" >&6
  3141. else
  3142. # Double quotes because CPP needs to be expanded
  3143. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3144. do
  3145. ac_preproc_ok=false
  3146. for ac_c_preproc_warn_flag in '' yes
  3147. do
  3148. # Use a header file that comes with gcc, so configuring glibc
  3149. # with a fresh cross-compiler works.
  3150. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3151. # <limits.h> exists even on freestanding compilers.
  3152. # On the NeXT, cc -E runs the code through the compiler's parser,
  3153. # not just through cpp. "Syntax error" is here to catch this case.
  3154. cat >conftest.$ac_ext <<_ACEOF
  3155. /* confdefs.h. */
  3156. _ACEOF
  3157. cat confdefs.h >>conftest.$ac_ext
  3158. cat >>conftest.$ac_ext <<_ACEOF
  3159. /* end confdefs.h. */
  3160. #ifdef __STDC__
  3161. # include <limits.h>
  3162. #else
  3163. # include <assert.h>
  3164. #endif
  3165. Syntax error
  3166. _ACEOF
  3167. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3168. case "(($ac_try" in
  3169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3170. *) ac_try_echo=$ac_try;;
  3171. esac
  3172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3173. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3174. ac_status=$?
  3175. grep -v '^ *+' conftest.er1 >conftest.err
  3176. rm -f conftest.er1
  3177. cat conftest.err >&5
  3178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3179. (exit $ac_status); } >/dev/null; then
  3180. if test -s conftest.err; then
  3181. ac_cpp_err=$ac_c_preproc_warn_flag
  3182. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3183. else
  3184. ac_cpp_err=
  3185. fi
  3186. else
  3187. ac_cpp_err=yes
  3188. fi
  3189. if test -z "$ac_cpp_err"; then
  3190. :
  3191. else
  3192. echo "$as_me: failed program was:" >&5
  3193. sed 's/^/| /' conftest.$ac_ext >&5
  3194. # Broken: fails on valid input.
  3195. continue
  3196. fi
  3197. rm -f conftest.err conftest.$ac_ext
  3198. # OK, works on sane cases. Now check whether nonexistent headers
  3199. # can be detected and how.
  3200. cat >conftest.$ac_ext <<_ACEOF
  3201. /* confdefs.h. */
  3202. _ACEOF
  3203. cat confdefs.h >>conftest.$ac_ext
  3204. cat >>conftest.$ac_ext <<_ACEOF
  3205. /* end confdefs.h. */
  3206. #include <ac_nonexistent.h>
  3207. _ACEOF
  3208. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3209. case "(($ac_try" in
  3210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3211. *) ac_try_echo=$ac_try;;
  3212. esac
  3213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3214. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3215. ac_status=$?
  3216. grep -v '^ *+' conftest.er1 >conftest.err
  3217. rm -f conftest.er1
  3218. cat conftest.err >&5
  3219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3220. (exit $ac_status); } >/dev/null; then
  3221. if test -s conftest.err; then
  3222. ac_cpp_err=$ac_c_preproc_warn_flag
  3223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3224. else
  3225. ac_cpp_err=
  3226. fi
  3227. else
  3228. ac_cpp_err=yes
  3229. fi
  3230. if test -z "$ac_cpp_err"; then
  3231. # Broken: success on invalid input.
  3232. continue
  3233. else
  3234. echo "$as_me: failed program was:" >&5
  3235. sed 's/^/| /' conftest.$ac_ext >&5
  3236. # Passes both tests.
  3237. ac_preproc_ok=:
  3238. break
  3239. fi
  3240. rm -f conftest.err conftest.$ac_ext
  3241. done
  3242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3243. rm -f conftest.err conftest.$ac_ext
  3244. if $ac_preproc_ok; then
  3245. break
  3246. fi
  3247. done
  3248. ac_cv_prog_CPP=$CPP
  3249. fi
  3250. CPP=$ac_cv_prog_CPP
  3251. else
  3252. ac_cv_prog_CPP=$CPP
  3253. fi
  3254. { echo "$as_me:$LINENO: result: $CPP" >&5
  3255. echo "${ECHO_T}$CPP" >&6; }
  3256. ac_preproc_ok=false
  3257. for ac_c_preproc_warn_flag in '' yes
  3258. do
  3259. # Use a header file that comes with gcc, so configuring glibc
  3260. # with a fresh cross-compiler works.
  3261. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3262. # <limits.h> exists even on freestanding compilers.
  3263. # On the NeXT, cc -E runs the code through the compiler's parser,
  3264. # not just through cpp. "Syntax error" is here to catch this case.
  3265. cat >conftest.$ac_ext <<_ACEOF
  3266. /* confdefs.h. */
  3267. _ACEOF
  3268. cat confdefs.h >>conftest.$ac_ext
  3269. cat >>conftest.$ac_ext <<_ACEOF
  3270. /* end confdefs.h. */
  3271. #ifdef __STDC__
  3272. # include <limits.h>
  3273. #else
  3274. # include <assert.h>
  3275. #endif
  3276. Syntax error
  3277. _ACEOF
  3278. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3279. case "(($ac_try" in
  3280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3281. *) ac_try_echo=$ac_try;;
  3282. esac
  3283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3285. ac_status=$?
  3286. grep -v '^ *+' conftest.er1 >conftest.err
  3287. rm -f conftest.er1
  3288. cat conftest.err >&5
  3289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3290. (exit $ac_status); } >/dev/null; then
  3291. if test -s conftest.err; then
  3292. ac_cpp_err=$ac_c_preproc_warn_flag
  3293. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3294. else
  3295. ac_cpp_err=
  3296. fi
  3297. else
  3298. ac_cpp_err=yes
  3299. fi
  3300. if test -z "$ac_cpp_err"; then
  3301. :
  3302. else
  3303. echo "$as_me: failed program was:" >&5
  3304. sed 's/^/| /' conftest.$ac_ext >&5
  3305. # Broken: fails on valid input.
  3306. continue
  3307. fi
  3308. rm -f conftest.err conftest.$ac_ext
  3309. # OK, works on sane cases. Now check whether nonexistent headers
  3310. # can be detected and how.
  3311. cat >conftest.$ac_ext <<_ACEOF
  3312. /* confdefs.h. */
  3313. _ACEOF
  3314. cat confdefs.h >>conftest.$ac_ext
  3315. cat >>conftest.$ac_ext <<_ACEOF
  3316. /* end confdefs.h. */
  3317. #include <ac_nonexistent.h>
  3318. _ACEOF
  3319. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3320. case "(($ac_try" in
  3321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3322. *) ac_try_echo=$ac_try;;
  3323. esac
  3324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3325. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3326. ac_status=$?
  3327. grep -v '^ *+' conftest.er1 >conftest.err
  3328. rm -f conftest.er1
  3329. cat conftest.err >&5
  3330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3331. (exit $ac_status); } >/dev/null; then
  3332. if test -s conftest.err; then
  3333. ac_cpp_err=$ac_c_preproc_warn_flag
  3334. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3335. else
  3336. ac_cpp_err=
  3337. fi
  3338. else
  3339. ac_cpp_err=yes
  3340. fi
  3341. if test -z "$ac_cpp_err"; then
  3342. # Broken: success on invalid input.
  3343. continue
  3344. else
  3345. echo "$as_me: failed program was:" >&5
  3346. sed 's/^/| /' conftest.$ac_ext >&5
  3347. # Passes both tests.
  3348. ac_preproc_ok=:
  3349. break
  3350. fi
  3351. rm -f conftest.err conftest.$ac_ext
  3352. done
  3353. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3354. rm -f conftest.err conftest.$ac_ext
  3355. if $ac_preproc_ok; then
  3356. :
  3357. else
  3358. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3359. See \`config.log' for more details." >&5
  3360. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3361. See \`config.log' for more details." >&2;}
  3362. { (exit 1); exit 1; }; }
  3363. fi
  3364. ac_ext=c
  3365. ac_cpp='$CPP $CPPFLAGS'
  3366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3369. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3370. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3371. if test "${ac_cv_path_GREP+set}" = set; then
  3372. echo $ECHO_N "(cached) $ECHO_C" >&6
  3373. else
  3374. # Extract the first word of "grep ggrep" to use in msg output
  3375. if test -z "$GREP"; then
  3376. set dummy grep ggrep; ac_prog_name=$2
  3377. if test "${ac_cv_path_GREP+set}" = set; then
  3378. echo $ECHO_N "(cached) $ECHO_C" >&6
  3379. else
  3380. ac_path_GREP_found=false
  3381. # Loop through the user's path and test for each of PROGNAME-LIST
  3382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3383. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3384. do
  3385. IFS=$as_save_IFS
  3386. test -z "$as_dir" && as_dir=.
  3387. for ac_prog in grep ggrep; do
  3388. for ac_exec_ext in '' $ac_executable_extensions; do
  3389. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3390. { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  3391. # Check for GNU ac_path_GREP and select it if it is found.
  3392. # Check for GNU $ac_path_GREP
  3393. case `"$ac_path_GREP" --version 2>&1` in
  3394. *GNU*)
  3395. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3396. *)
  3397. ac_count=0
  3398. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3399. while :
  3400. do
  3401. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3402. mv "conftest.tmp" "conftest.in"
  3403. cp "conftest.in" "conftest.nl"
  3404. echo 'GREP' >> "conftest.nl"
  3405. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3406. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3407. ac_count=`expr $ac_count + 1`
  3408. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3409. # Best one so far, save it but keep looking for a better one
  3410. ac_cv_path_GREP="$ac_path_GREP"
  3411. ac_path_GREP_max=$ac_count
  3412. fi
  3413. # 10*(2^10) chars as input seems more than enough
  3414. test $ac_count -gt 10 && break
  3415. done
  3416. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3417. esac
  3418. $ac_path_GREP_found && break 3
  3419. done
  3420. done
  3421. done
  3422. IFS=$as_save_IFS
  3423. fi
  3424. GREP="$ac_cv_path_GREP"
  3425. if test -z "$GREP"; then
  3426. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3427. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3428. { (exit 1); exit 1; }; }
  3429. fi
  3430. else
  3431. ac_cv_path_GREP=$GREP
  3432. fi
  3433. fi
  3434. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3435. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3436. GREP="$ac_cv_path_GREP"
  3437. { echo "$as_me:$LINENO: checking for egrep" >&5
  3438. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3439. if test "${ac_cv_path_EGREP+set}" = set; then
  3440. echo $ECHO_N "(cached) $ECHO_C" >&6
  3441. else
  3442. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3443. then ac_cv_path_EGREP="$GREP -E"
  3444. else
  3445. # Extract the first word of "egrep" to use in msg output
  3446. if test -z "$EGREP"; then
  3447. set dummy egrep; ac_prog_name=$2
  3448. if test "${ac_cv_path_EGREP+set}" = set; then
  3449. echo $ECHO_N "(cached) $ECHO_C" >&6
  3450. else
  3451. ac_path_EGREP_found=false
  3452. # Loop through the user's path and test for each of PROGNAME-LIST
  3453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3454. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3455. do
  3456. IFS=$as_save_IFS
  3457. test -z "$as_dir" && as_dir=.
  3458. for ac_prog in egrep; do
  3459. for ac_exec_ext in '' $ac_executable_extensions; do
  3460. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3461. { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  3462. # Check for GNU ac_path_EGREP and select it if it is found.
  3463. # Check for GNU $ac_path_EGREP
  3464. case `"$ac_path_EGREP" --version 2>&1` in
  3465. *GNU*)
  3466. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3467. *)
  3468. ac_count=0
  3469. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3470. while :
  3471. do
  3472. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3473. mv "conftest.tmp" "conftest.in"
  3474. cp "conftest.in" "conftest.nl"
  3475. echo 'EGREP' >> "conftest.nl"
  3476. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3477. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3478. ac_count=`expr $ac_count + 1`
  3479. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3480. # Best one so far, save it but keep looking for a better one
  3481. ac_cv_path_EGREP="$ac_path_EGREP"
  3482. ac_path_EGREP_max=$ac_count
  3483. fi
  3484. # 10*(2^10) chars as input seems more than enough
  3485. test $ac_count -gt 10 && break
  3486. done
  3487. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3488. esac
  3489. $ac_path_EGREP_found && break 3
  3490. done
  3491. done
  3492. done
  3493. IFS=$as_save_IFS
  3494. fi
  3495. EGREP="$ac_cv_path_EGREP"
  3496. if test -z "$EGREP"; then
  3497. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3498. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3499. { (exit 1); exit 1; }; }
  3500. fi
  3501. else
  3502. ac_cv_path_EGREP=$EGREP
  3503. fi
  3504. fi
  3505. fi
  3506. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3507. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3508. EGREP="$ac_cv_path_EGREP"
  3509. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3510. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3511. if test "${ac_cv_header_stdc+set}" = set; then
  3512. echo $ECHO_N "(cached) $ECHO_C" >&6
  3513. else
  3514. cat >conftest.$ac_ext <<_ACEOF
  3515. /* confdefs.h. */
  3516. _ACEOF
  3517. cat confdefs.h >>conftest.$ac_ext
  3518. cat >>conftest.$ac_ext <<_ACEOF
  3519. /* end confdefs.h. */
  3520. #include <stdlib.h>
  3521. #include <stdarg.h>
  3522. #include <string.h>
  3523. #include <float.h>
  3524. int
  3525. main ()
  3526. {
  3527. ;
  3528. return 0;
  3529. }
  3530. _ACEOF
  3531. rm -f conftest.$ac_objext
  3532. if { (ac_try="$ac_compile"
  3533. case "(($ac_try" in
  3534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3535. *) ac_try_echo=$ac_try;;
  3536. esac
  3537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3538. (eval "$ac_compile") 2>conftest.er1
  3539. ac_status=$?
  3540. grep -v '^ *+' conftest.er1 >conftest.err
  3541. rm -f conftest.er1
  3542. cat conftest.err >&5
  3543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3544. (exit $ac_status); } &&
  3545. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3546. { (case "(($ac_try" in
  3547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3548. *) ac_try_echo=$ac_try;;
  3549. esac
  3550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3551. (eval "$ac_try") 2>&5
  3552. ac_status=$?
  3553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3554. (exit $ac_status); }; } &&
  3555. { ac_try='test -s conftest.$ac_objext'
  3556. { (case "(($ac_try" in
  3557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3558. *) ac_try_echo=$ac_try;;
  3559. esac
  3560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3561. (eval "$ac_try") 2>&5
  3562. ac_status=$?
  3563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3564. (exit $ac_status); }; }; then
  3565. ac_cv_header_stdc=yes
  3566. else
  3567. echo "$as_me: failed program was:" >&5
  3568. sed 's/^/| /' conftest.$ac_ext >&5
  3569. ac_cv_header_stdc=no
  3570. fi
  3571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3572. if test $ac_cv_header_stdc = yes; then
  3573. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3574. cat >conftest.$ac_ext <<_ACEOF
  3575. /* confdefs.h. */
  3576. _ACEOF
  3577. cat confdefs.h >>conftest.$ac_ext
  3578. cat >>conftest.$ac_ext <<_ACEOF
  3579. /* end confdefs.h. */
  3580. #include <string.h>
  3581. _ACEOF
  3582. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3583. $EGREP "memchr" >/dev/null 2>&1; then
  3584. :
  3585. else
  3586. ac_cv_header_stdc=no
  3587. fi
  3588. rm -f conftest*
  3589. fi
  3590. if test $ac_cv_header_stdc = yes; then
  3591. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3592. cat >conftest.$ac_ext <<_ACEOF
  3593. /* confdefs.h. */
  3594. _ACEOF
  3595. cat confdefs.h >>conftest.$ac_ext
  3596. cat >>conftest.$ac_ext <<_ACEOF
  3597. /* end confdefs.h. */
  3598. #include <stdlib.h>
  3599. _ACEOF
  3600. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3601. $EGREP "free" >/dev/null 2>&1; then
  3602. :
  3603. else
  3604. ac_cv_header_stdc=no
  3605. fi
  3606. rm -f conftest*
  3607. fi
  3608. if test $ac_cv_header_stdc = yes; then
  3609. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3610. if test "$cross_compiling" = yes; then
  3611. :
  3612. else
  3613. cat >conftest.$ac_ext <<_ACEOF
  3614. /* confdefs.h. */
  3615. _ACEOF
  3616. cat confdefs.h >>conftest.$ac_ext
  3617. cat >>conftest.$ac_ext <<_ACEOF
  3618. /* end confdefs.h. */
  3619. #include <ctype.h>
  3620. #include <stdlib.h>
  3621. #if ((' ' & 0x0FF) == 0x020)
  3622. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3623. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3624. #else
  3625. # define ISLOWER(c) \
  3626. (('a' <= (c) && (c) <= 'i') \
  3627. || ('j' <= (c) && (c) <= 'r') \
  3628. || ('s' <= (c) && (c) <= 'z'))
  3629. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3630. #endif
  3631. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3632. int
  3633. main ()
  3634. {
  3635. int i;
  3636. for (i = 0; i < 256; i++)
  3637. if (XOR (islower (i), ISLOWER (i))
  3638. || toupper (i) != TOUPPER (i))
  3639. return 2;
  3640. return 0;
  3641. }
  3642. _ACEOF
  3643. rm -f conftest$ac_exeext
  3644. if { (ac_try="$ac_link"
  3645. case "(($ac_try" in
  3646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3647. *) ac_try_echo=$ac_try;;
  3648. esac
  3649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3650. (eval "$ac_link") 2>&5
  3651. ac_status=$?
  3652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3653. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3654. { (case "(($ac_try" in
  3655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3656. *) ac_try_echo=$ac_try;;
  3657. esac
  3658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3659. (eval "$ac_try") 2>&5
  3660. ac_status=$?
  3661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3662. (exit $ac_status); }; }; then
  3663. :
  3664. else
  3665. echo "$as_me: program exited with status $ac_status" >&5
  3666. echo "$as_me: failed program was:" >&5
  3667. sed 's/^/| /' conftest.$ac_ext >&5
  3668. ( exit $ac_status )
  3669. ac_cv_header_stdc=no
  3670. fi
  3671. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3672. fi
  3673. fi
  3674. fi
  3675. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3676. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3677. if test $ac_cv_header_stdc = yes; then
  3678. cat >>confdefs.h <<\_ACEOF
  3679. #define STDC_HEADERS 1
  3680. _ACEOF
  3681. fi
  3682. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3683. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3684. inttypes.h stdint.h unistd.h
  3685. do
  3686. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3687. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3688. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3689. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3690. echo $ECHO_N "(cached) $ECHO_C" >&6
  3691. else
  3692. cat >conftest.$ac_ext <<_ACEOF
  3693. /* confdefs.h. */
  3694. _ACEOF
  3695. cat confdefs.h >>conftest.$ac_ext
  3696. cat >>conftest.$ac_ext <<_ACEOF
  3697. /* end confdefs.h. */
  3698. $ac_includes_default
  3699. #include <$ac_header>
  3700. _ACEOF
  3701. rm -f conftest.$ac_objext
  3702. if { (ac_try="$ac_compile"
  3703. case "(($ac_try" in
  3704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3705. *) ac_try_echo=$ac_try;;
  3706. esac
  3707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3708. (eval "$ac_compile") 2>conftest.er1
  3709. ac_status=$?
  3710. grep -v '^ *+' conftest.er1 >conftest.err
  3711. rm -f conftest.er1
  3712. cat conftest.err >&5
  3713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3714. (exit $ac_status); } &&
  3715. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3716. { (case "(($ac_try" in
  3717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3718. *) ac_try_echo=$ac_try;;
  3719. esac
  3720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3721. (eval "$ac_try") 2>&5
  3722. ac_status=$?
  3723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3724. (exit $ac_status); }; } &&
  3725. { ac_try='test -s conftest.$ac_objext'
  3726. { (case "(($ac_try" in
  3727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728. *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3731. (eval "$ac_try") 2>&5
  3732. ac_status=$?
  3733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3734. (exit $ac_status); }; }; then
  3735. eval "$as_ac_Header=yes"
  3736. else
  3737. echo "$as_me: failed program was:" >&5
  3738. sed 's/^/| /' conftest.$ac_ext >&5
  3739. eval "$as_ac_Header=no"
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. fi
  3743. ac_res=`eval echo '${'$as_ac_Header'}'`
  3744. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3745. echo "${ECHO_T}$ac_res" >&6; }
  3746. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3747. cat >>confdefs.h <<_ACEOF
  3748. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3749. _ACEOF
  3750. fi
  3751. done
  3752. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  3753. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  3754. if test "${ac_cv_c_bigendian+set}" = set; then
  3755. echo $ECHO_N "(cached) $ECHO_C" >&6
  3756. else
  3757. # See if sys/param.h defines the BYTE_ORDER macro.
  3758. cat >conftest.$ac_ext <<_ACEOF
  3759. /* confdefs.h. */
  3760. _ACEOF
  3761. cat confdefs.h >>conftest.$ac_ext
  3762. cat >>conftest.$ac_ext <<_ACEOF
  3763. /* end confdefs.h. */
  3764. #include <sys/types.h>
  3765. #include <sys/param.h>
  3766. int
  3767. main ()
  3768. {
  3769. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  3770. bogus endian macros
  3771. #endif
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. rm -f conftest.$ac_objext
  3777. if { (ac_try="$ac_compile"
  3778. case "(($ac_try" in
  3779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3780. *) ac_try_echo=$ac_try;;
  3781. esac
  3782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3783. (eval "$ac_compile") 2>conftest.er1
  3784. ac_status=$?
  3785. grep -v '^ *+' conftest.er1 >conftest.err
  3786. rm -f conftest.er1
  3787. cat conftest.err >&5
  3788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3789. (exit $ac_status); } &&
  3790. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3791. { (case "(($ac_try" in
  3792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3793. *) ac_try_echo=$ac_try;;
  3794. esac
  3795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3796. (eval "$ac_try") 2>&5
  3797. ac_status=$?
  3798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3799. (exit $ac_status); }; } &&
  3800. { ac_try='test -s conftest.$ac_objext'
  3801. { (case "(($ac_try" in
  3802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3803. *) ac_try_echo=$ac_try;;
  3804. esac
  3805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3806. (eval "$ac_try") 2>&5
  3807. ac_status=$?
  3808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3809. (exit $ac_status); }; }; then
  3810. # It does; now see whether it defined to BIG_ENDIAN or not.
  3811. cat >conftest.$ac_ext <<_ACEOF
  3812. /* confdefs.h. */
  3813. _ACEOF
  3814. cat confdefs.h >>conftest.$ac_ext
  3815. cat >>conftest.$ac_ext <<_ACEOF
  3816. /* end confdefs.h. */
  3817. #include <sys/types.h>
  3818. #include <sys/param.h>
  3819. int
  3820. main ()
  3821. {
  3822. #if BYTE_ORDER != BIG_ENDIAN
  3823. not big endian
  3824. #endif
  3825. ;
  3826. return 0;
  3827. }
  3828. _ACEOF
  3829. rm -f conftest.$ac_objext
  3830. if { (ac_try="$ac_compile"
  3831. case "(($ac_try" in
  3832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3833. *) ac_try_echo=$ac_try;;
  3834. esac
  3835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3836. (eval "$ac_compile") 2>conftest.er1
  3837. ac_status=$?
  3838. grep -v '^ *+' conftest.er1 >conftest.err
  3839. rm -f conftest.er1
  3840. cat conftest.err >&5
  3841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3842. (exit $ac_status); } &&
  3843. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3844. { (case "(($ac_try" in
  3845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3846. *) ac_try_echo=$ac_try;;
  3847. esac
  3848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3849. (eval "$ac_try") 2>&5
  3850. ac_status=$?
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); }; } &&
  3853. { ac_try='test -s conftest.$ac_objext'
  3854. { (case "(($ac_try" in
  3855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3856. *) ac_try_echo=$ac_try;;
  3857. esac
  3858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3859. (eval "$ac_try") 2>&5
  3860. ac_status=$?
  3861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862. (exit $ac_status); }; }; then
  3863. ac_cv_c_bigendian=yes
  3864. else
  3865. echo "$as_me: failed program was:" >&5
  3866. sed 's/^/| /' conftest.$ac_ext >&5
  3867. ac_cv_c_bigendian=no
  3868. fi
  3869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3870. else
  3871. echo "$as_me: failed program was:" >&5
  3872. sed 's/^/| /' conftest.$ac_ext >&5
  3873. # It does not; compile a test program.
  3874. if test "$cross_compiling" = yes; then
  3875. # try to guess the endianness by grepping values into an object file
  3876. ac_cv_c_bigendian=unknown
  3877. cat >conftest.$ac_ext <<_ACEOF
  3878. /* confdefs.h. */
  3879. _ACEOF
  3880. cat confdefs.h >>conftest.$ac_ext
  3881. cat >>conftest.$ac_ext <<_ACEOF
  3882. /* end confdefs.h. */
  3883. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  3884. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  3885. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  3886. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  3887. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  3888. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  3889. int
  3890. main ()
  3891. {
  3892. _ascii (); _ebcdic ();
  3893. ;
  3894. return 0;
  3895. }
  3896. _ACEOF
  3897. rm -f conftest.$ac_objext
  3898. if { (ac_try="$ac_compile"
  3899. case "(($ac_try" in
  3900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3901. *) ac_try_echo=$ac_try;;
  3902. esac
  3903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3904. (eval "$ac_compile") 2>conftest.er1
  3905. ac_status=$?
  3906. grep -v '^ *+' conftest.er1 >conftest.err
  3907. rm -f conftest.er1
  3908. cat conftest.err >&5
  3909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3910. (exit $ac_status); } &&
  3911. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3912. { (case "(($ac_try" in
  3913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3914. *) ac_try_echo=$ac_try;;
  3915. esac
  3916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3917. (eval "$ac_try") 2>&5
  3918. ac_status=$?
  3919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3920. (exit $ac_status); }; } &&
  3921. { ac_try='test -s conftest.$ac_objext'
  3922. { (case "(($ac_try" in
  3923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3924. *) ac_try_echo=$ac_try;;
  3925. esac
  3926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3927. (eval "$ac_try") 2>&5
  3928. ac_status=$?
  3929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3930. (exit $ac_status); }; }; then
  3931. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  3932. ac_cv_c_bigendian=yes
  3933. fi
  3934. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  3935. if test "$ac_cv_c_bigendian" = unknown; then
  3936. ac_cv_c_bigendian=no
  3937. else
  3938. # finding both strings is unlikely to happen, but who knows?
  3939. ac_cv_c_bigendian=unknown
  3940. fi
  3941. fi
  3942. else
  3943. echo "$as_me: failed program was:" >&5
  3944. sed 's/^/| /' conftest.$ac_ext >&5
  3945. fi
  3946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3947. else
  3948. cat >conftest.$ac_ext <<_ACEOF
  3949. /* confdefs.h. */
  3950. _ACEOF
  3951. cat confdefs.h >>conftest.$ac_ext
  3952. cat >>conftest.$ac_ext <<_ACEOF
  3953. /* end confdefs.h. */
  3954. $ac_includes_default
  3955. int
  3956. main ()
  3957. {
  3958. /* Are we little or big endian? From Harbison&Steele. */
  3959. union
  3960. {
  3961. long int l;
  3962. char c[sizeof (long int)];
  3963. } u;
  3964. u.l = 1;
  3965. return u.c[sizeof (long int) - 1] == 1;
  3966. ;
  3967. return 0;
  3968. }
  3969. _ACEOF
  3970. rm -f conftest$ac_exeext
  3971. if { (ac_try="$ac_link"
  3972. case "(($ac_try" in
  3973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3974. *) ac_try_echo=$ac_try;;
  3975. esac
  3976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3977. (eval "$ac_link") 2>&5
  3978. ac_status=$?
  3979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3980. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3981. { (case "(($ac_try" in
  3982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3983. *) ac_try_echo=$ac_try;;
  3984. esac
  3985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3986. (eval "$ac_try") 2>&5
  3987. ac_status=$?
  3988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3989. (exit $ac_status); }; }; then
  3990. ac_cv_c_bigendian=no
  3991. else
  3992. echo "$as_me: program exited with status $ac_status" >&5
  3993. echo "$as_me: failed program was:" >&5
  3994. sed 's/^/| /' conftest.$ac_ext >&5
  3995. ( exit $ac_status )
  3996. ac_cv_c_bigendian=yes
  3997. fi
  3998. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3999. fi
  4000. fi
  4001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4002. fi
  4003. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4004. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  4005. case $ac_cv_c_bigendian in
  4006. yes)
  4007. ENDIAN=big
  4008. ;;
  4009. no)
  4010. ENDIAN=little
  4011. ;;
  4012. *)
  4013. { { echo "$as_me:$LINENO: error: unknown endianness
  4014. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4015. echo "$as_me: error: unknown endianness
  4016. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4017. { (exit 1); exit 1; }; } ;;
  4018. esac
  4019. if test "$cross_compiling" = yes; then
  4020. LLVM_CROSS_COMPILING=1
  4021. { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
  4022. echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
  4023. if test "${ac_cv_build_exeext+set}" = set; then
  4024. echo $ECHO_N "(cached) $ECHO_C" >&6
  4025. else
  4026. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  4027. ac_cv_build_exeext=.exe
  4028. else
  4029. ac_build_prefix=${build_alias}-
  4030. # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
  4031. set dummy ${ac_build_prefix}gcc; ac_word=$2
  4032. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4033. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4034. if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  4035. echo $ECHO_N "(cached) $ECHO_C" >&6
  4036. else
  4037. if test -n "$BUILD_CC"; then
  4038. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  4039. else
  4040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4041. for as_dir in $PATH
  4042. do
  4043. IFS=$as_save_IFS
  4044. test -z "$as_dir" && as_dir=.
  4045. for ac_exec_ext in '' $ac_executable_extensions; do
  4046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4047. ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
  4048. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4049. break 2
  4050. fi
  4051. done
  4052. done
  4053. IFS=$as_save_IFS
  4054. fi
  4055. fi
  4056. BUILD_CC=$ac_cv_prog_BUILD_CC
  4057. if test -n "$BUILD_CC"; then
  4058. { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
  4059. echo "${ECHO_T}$BUILD_CC" >&6; }
  4060. else
  4061. { echo "$as_me:$LINENO: result: no" >&5
  4062. echo "${ECHO_T}no" >&6; }
  4063. fi
  4064. if test -z "$BUILD_CC"; then
  4065. # Extract the first word of "gcc", so it can be a program name with args.
  4066. set dummy gcc; ac_word=$2
  4067. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4068. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4069. if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  4070. echo $ECHO_N "(cached) $ECHO_C" >&6
  4071. else
  4072. if test -n "$BUILD_CC"; then
  4073. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  4074. else
  4075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4076. for as_dir in $PATH
  4077. do
  4078. IFS=$as_save_IFS
  4079. test -z "$as_dir" && as_dir=.
  4080. for ac_exec_ext in '' $ac_executable_extensions; do
  4081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4082. ac_cv_prog_BUILD_CC="gcc"
  4083. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4084. break 2
  4085. fi
  4086. done
  4087. done
  4088. IFS=$as_save_IFS
  4089. fi
  4090. fi
  4091. BUILD_CC=$ac_cv_prog_BUILD_CC
  4092. if test -n "$BUILD_CC"; then
  4093. { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
  4094. echo "${ECHO_T}$BUILD_CC" >&6; }
  4095. else
  4096. { echo "$as_me:$LINENO: result: no" >&5
  4097. echo "${ECHO_T}no" >&6; }
  4098. fi
  4099. if test -z "$BUILD_CC"; then
  4100. # Extract the first word of "cc", so it can be a program name with args.
  4101. set dummy cc; ac_word=$2
  4102. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4104. if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  4105. echo $ECHO_N "(cached) $ECHO_C" >&6
  4106. else
  4107. if test -n "$BUILD_CC"; then
  4108. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  4109. else
  4110. ac_prog_rejected=no
  4111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4112. for as_dir in $PATH
  4113. do
  4114. IFS=$as_save_IFS
  4115. test -z "$as_dir" && as_dir=.
  4116. for ac_exec_ext in '' $ac_executable_extensions; do
  4117. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4118. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4119. ac_prog_rejected=yes
  4120. continue
  4121. fi
  4122. ac_cv_prog_BUILD_CC="cc"
  4123. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4124. break 2
  4125. fi
  4126. done
  4127. done
  4128. IFS=$as_save_IFS
  4129. if test $ac_prog_rejected = yes; then
  4130. # We found a bogon in the path, so make sure we never use it.
  4131. set dummy $ac_cv_prog_BUILD_CC
  4132. shift
  4133. if test $# != 0; then
  4134. # We chose a different compiler from the bogus one.
  4135. # However, it has the same basename, so the bogon will be chosen
  4136. # first if we set BUILD_CC to just the basename; use the full file name.
  4137. shift
  4138. ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
  4139. fi
  4140. fi
  4141. fi
  4142. fi
  4143. BUILD_CC=$ac_cv_prog_BUILD_CC
  4144. if test -n "$BUILD_CC"; then
  4145. { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
  4146. echo "${ECHO_T}$BUILD_CC" >&6; }
  4147. else
  4148. { echo "$as_me:$LINENO: result: no" >&5
  4149. echo "${ECHO_T}no" >&6; }
  4150. fi
  4151. fi
  4152. fi
  4153. test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
  4154. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  4155. { (exit 1); exit 1; }; }
  4156. ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4157. rm -f conftest*
  4158. echo 'int main () { return 0; }' > conftest.$ac_ext
  4159. ac_cv_build_exeext=
  4160. if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
  4161. (eval $ac_build_link) 2>&5
  4162. ac_status=$?
  4163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4164. (exit $ac_status); }; then
  4165. for file in conftest.*; do
  4166. case $file in
  4167. *.c | *.o | *.obj | *.dSYM) ;;
  4168. *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  4169. esac
  4170. done
  4171. else
  4172. { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
  4173. echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
  4174. { (exit 1); exit 1; }; }
  4175. fi
  4176. rm -f conftest*
  4177. test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
  4178. fi
  4179. fi
  4180. BUILD_EXEEXT=""
  4181. test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
  4182. { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
  4183. echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
  4184. ac_build_exeext=$BUILD_EXEEXT
  4185. ac_build_prefix=${build_alias}-
  4186. # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
  4187. set dummy ${ac_build_prefix}g++; ac_word=$2
  4188. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4189. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4190. if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
  4191. echo $ECHO_N "(cached) $ECHO_C" >&6
  4192. else
  4193. if test -n "$BUILD_CXX"; then
  4194. ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
  4195. else
  4196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4197. for as_dir in $PATH
  4198. do
  4199. IFS=$as_save_IFS
  4200. test -z "$as_dir" && as_dir=.
  4201. for ac_exec_ext in '' $ac_executable_extensions; do
  4202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4203. ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
  4204. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4205. break 2
  4206. fi
  4207. done
  4208. done
  4209. IFS=$as_save_IFS
  4210. fi
  4211. fi
  4212. BUILD_CXX=$ac_cv_prog_BUILD_CXX
  4213. if test -n "$BUILD_CXX"; then
  4214. { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
  4215. echo "${ECHO_T}$BUILD_CXX" >&6; }
  4216. else
  4217. { echo "$as_me:$LINENO: result: no" >&5
  4218. echo "${ECHO_T}no" >&6; }
  4219. fi
  4220. if test -z "$BUILD_CXX"; then
  4221. # Extract the first word of "g++", so it can be a program name with args.
  4222. set dummy g++; ac_word=$2
  4223. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4224. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4225. if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
  4226. echo $ECHO_N "(cached) $ECHO_C" >&6
  4227. else
  4228. if test -n "$BUILD_CXX"; then
  4229. ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
  4230. else
  4231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4232. for as_dir in $PATH
  4233. do
  4234. IFS=$as_save_IFS
  4235. test -z "$as_dir" && as_dir=.
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4238. ac_cv_prog_BUILD_CXX="g++"
  4239. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4240. break 2
  4241. fi
  4242. done
  4243. done
  4244. IFS=$as_save_IFS
  4245. fi
  4246. fi
  4247. BUILD_CXX=$ac_cv_prog_BUILD_CXX
  4248. if test -n "$BUILD_CXX"; then
  4249. { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
  4250. echo "${ECHO_T}$BUILD_CXX" >&6; }
  4251. else
  4252. { echo "$as_me:$LINENO: result: no" >&5
  4253. echo "${ECHO_T}no" >&6; }
  4254. fi
  4255. if test -z "$BUILD_CXX"; then
  4256. # Extract the first word of "c++", so it can be a program name with args.
  4257. set dummy c++; ac_word=$2
  4258. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4259. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4260. if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
  4261. echo $ECHO_N "(cached) $ECHO_C" >&6
  4262. else
  4263. if test -n "$BUILD_CXX"; then
  4264. ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
  4265. else
  4266. ac_prog_rejected=no
  4267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4268. for as_dir in $PATH
  4269. do
  4270. IFS=$as_save_IFS
  4271. test -z "$as_dir" && as_dir=.
  4272. for ac_exec_ext in '' $ac_executable_extensions; do
  4273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4274. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
  4275. ac_prog_rejected=yes
  4276. continue
  4277. fi
  4278. ac_cv_prog_BUILD_CXX="c++"
  4279. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4280. break 2
  4281. fi
  4282. done
  4283. done
  4284. IFS=$as_save_IFS
  4285. if test $ac_prog_rejected = yes; then
  4286. # We found a bogon in the path, so make sure we never use it.
  4287. set dummy $ac_cv_prog_BUILD_CXX
  4288. shift
  4289. if test $# != 0; then
  4290. # We chose a different compiler from the bogus one.
  4291. # However, it has the same basename, so the bogon will be chosen
  4292. # first if we set BUILD_CXX to just the basename; use the full file name.
  4293. shift
  4294. ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
  4295. fi
  4296. fi
  4297. fi
  4298. fi
  4299. BUILD_CXX=$ac_cv_prog_BUILD_CXX
  4300. if test -n "$BUILD_CXX"; then
  4301. { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
  4302. echo "${ECHO_T}$BUILD_CXX" >&6; }
  4303. else
  4304. { echo "$as_me:$LINENO: result: no" >&5
  4305. echo "${ECHO_T}no" >&6; }
  4306. fi
  4307. fi
  4308. fi
  4309. else
  4310. LLVM_CROSS_COMPILING=0
  4311. fi
  4312. if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
  4313. cvsbuild="yes"
  4314. optimize="no"
  4315. CVSBUILD=CVSBUILD=1
  4316. else
  4317. cvsbuild="no"
  4318. optimize="yes"
  4319. fi
  4320. # Check whether --enable-optimized was given.
  4321. if test "${enable_optimized+set}" = set; then
  4322. enableval=$enable_optimized;
  4323. else
  4324. enableval=$optimize
  4325. fi
  4326. if test ${enableval} = "no" ; then
  4327. ENABLE_OPTIMIZED=
  4328. else
  4329. ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
  4330. fi
  4331. # Check whether --enable-profiling was given.
  4332. if test "${enable_profiling+set}" = set; then
  4333. enableval=$enable_profiling;
  4334. else
  4335. enableval="no"
  4336. fi
  4337. if test ${enableval} = "no" ; then
  4338. ENABLE_PROFILING=
  4339. else
  4340. ENABLE_PROFILING=ENABLE_PROFILING=1
  4341. fi
  4342. # Check whether --enable-assertions was given.
  4343. if test "${enable_assertions+set}" = set; then
  4344. enableval=$enable_assertions;
  4345. else
  4346. enableval="yes"
  4347. fi
  4348. if test ${enableval} = "yes" ; then
  4349. DISABLE_ASSERTIONS=
  4350. else
  4351. DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
  4352. fi
  4353. if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
  4354. LLVM_COMPACT_SENTINELS=1
  4355. else
  4356. LLVM_COMPACT_SENTINELS=0
  4357. fi
  4358. cat >>confdefs.h <<_ACEOF
  4359. #define LLVM_COMPACT_SENTINELS $LLVM_COMPACT_SENTINELS
  4360. _ACEOF
  4361. # Check whether --enable-expensive-checks was given.
  4362. if test "${enable_expensive_checks+set}" = set; then
  4363. enableval=$enable_expensive_checks;
  4364. else
  4365. enableval="no"
  4366. fi
  4367. if test ${enableval} = "yes" ; then
  4368. ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
  4369. EXPENSIVE_CHECKS=yes
  4370. else
  4371. ENABLE_EXPENSIVE_CHECKS=
  4372. EXPENSIVE_CHECKS=no
  4373. fi
  4374. # Check whether --enable-debug-runtime was given.
  4375. if test "${enable_debug_runtime+set}" = set; then
  4376. enableval=$enable_debug_runtime;
  4377. else
  4378. enableval=no
  4379. fi
  4380. if test ${enableval} = "no" ; then
  4381. DEBUG_RUNTIME=
  4382. else
  4383. DEBUG_RUNTIME=DEBUG_RUNTIME=1
  4384. fi
  4385. # Check whether --enable-jit was given.
  4386. if test "${enable_jit+set}" = set; then
  4387. enableval=$enable_jit;
  4388. else
  4389. enableval=default
  4390. fi
  4391. if test ${enableval} = "no"
  4392. then
  4393. JIT=
  4394. else
  4395. case "$llvm_cv_target_arch" in
  4396. x86) TARGET_HAS_JIT=1
  4397. ;;
  4398. Sparc) TARGET_HAS_JIT=0
  4399. ;;
  4400. PowerPC) TARGET_HAS_JIT=1
  4401. ;;
  4402. x86_64) TARGET_HAS_JIT=1
  4403. ;;
  4404. Alpha) TARGET_HAS_JIT=1
  4405. ;;
  4406. ARM) TARGET_HAS_JIT=1
  4407. ;;
  4408. Mips) TARGET_HAS_JIT=0
  4409. ;;
  4410. PIC16) TARGET_HAS_JIT=0
  4411. ;;
  4412. XCore) TARGET_HAS_JIT=0
  4413. ;;
  4414. MSP430) TARGET_HAS_JIT=0
  4415. ;;
  4416. SystemZ) TARGET_HAS_JIT=0
  4417. ;;
  4418. Blackfin) TARGET_HAS_JIT=0
  4419. ;;
  4420. *) TARGET_HAS_JIT=0
  4421. ;;
  4422. esac
  4423. fi
  4424. # Check whether --enable-doxygen was given.
  4425. if test "${enable_doxygen+set}" = set; then
  4426. enableval=$enable_doxygen;
  4427. else
  4428. enableval=default
  4429. fi
  4430. case "$enableval" in
  4431. yes) ENABLE_DOXYGEN=1
  4432. ;;
  4433. no) ENABLE_DOXYGEN=0
  4434. ;;
  4435. default) ENABLE_DOXYGEN=0
  4436. ;;
  4437. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
  4438. echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
  4439. { (exit 1); exit 1; }; } ;;
  4440. esac
  4441. # Check whether --enable-threads was given.
  4442. if test "${enable_threads+set}" = set; then
  4443. enableval=$enable_threads;
  4444. else
  4445. enableval=default
  4446. fi
  4447. case "$enableval" in
  4448. yes) ENABLE_THREADS=1
  4449. ;;
  4450. no) ENABLE_THREADS=0
  4451. ;;
  4452. default) ENABLE_THREADS=1
  4453. ;;
  4454. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
  4455. echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
  4456. { (exit 1); exit 1; }; } ;;
  4457. esac
  4458. cat >>confdefs.h <<_ACEOF
  4459. #define ENABLE_THREADS $ENABLE_THREADS
  4460. _ACEOF
  4461. # Check whether --enable-pic was given.
  4462. if test "${enable_pic+set}" = set; then
  4463. enableval=$enable_pic;
  4464. else
  4465. enableval=default
  4466. fi
  4467. case "$enableval" in
  4468. yes) ENABLE_PIC=1
  4469. ;;
  4470. no) ENABLE_PIC=0
  4471. ;;
  4472. default) ENABLE_PIC=1
  4473. ;;
  4474. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
  4475. echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
  4476. { (exit 1); exit 1; }; } ;;
  4477. esac
  4478. cat >>confdefs.h <<_ACEOF
  4479. #define ENABLE_PIC $ENABLE_PIC
  4480. _ACEOF
  4481. TARGETS_TO_BUILD=""
  4482. # Check whether --enable-targets was given.
  4483. if test "${enable_targets+set}" = set; then
  4484. enableval=$enable_targets;
  4485. else
  4486. enableval=all
  4487. fi
  4488. case "$enableval" in
  4489. all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
  4490. host-only)
  4491. case "$llvm_cv_target_arch" in
  4492. x86) TARGETS_TO_BUILD="X86" ;;
  4493. x86_64) TARGETS_TO_BUILD="X86" ;;
  4494. Sparc) TARGETS_TO_BUILD="Sparc" ;;
  4495. PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
  4496. Alpha) TARGETS_TO_BUILD="Alpha" ;;
  4497. ARM) TARGETS_TO_BUILD="ARM" ;;
  4498. Mips) TARGETS_TO_BUILD="Mips" ;;
  4499. CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
  4500. PIC16) TARGETS_TO_BUILD="PIC16" ;;
  4501. XCore) TARGETS_TO_BUILD="XCore" ;;
  4502. MSP430) TARGETS_TO_BUILD="MSP430" ;;
  4503. SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
  4504. Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
  4505. *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
  4506. echo "$as_me: error: Can not set target to build" >&2;}
  4507. { (exit 1); exit 1; }; } ;;
  4508. esac
  4509. ;;
  4510. *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
  4511. case "$a_target" in
  4512. x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
  4513. x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
  4514. sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
  4515. powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
  4516. alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
  4517. arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
  4518. mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
  4519. spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
  4520. pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
  4521. xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
  4522. msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
  4523. systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
  4524. blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
  4525. cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
  4526. msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
  4527. cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
  4528. *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
  4529. echo "$as_me: error: Unrecognized target $a_target" >&2;}
  4530. { (exit 1); exit 1; }; } ;;
  4531. esac
  4532. done
  4533. ;;
  4534. esac
  4535. TARGETS_TO_BUILD=$TARGETS_TO_BUILD
  4536. # Determine whether we are building LLVM support for the native architecture.
  4537. # If so, define LLVM_NATIVE_ARCH to that LLVM target.
  4538. for a_target in $TARGETS_TO_BUILD; do
  4539. if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
  4540. LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
  4541. cat >>confdefs.h <<_ACEOF
  4542. #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
  4543. _ACEOF
  4544. fi
  4545. done
  4546. # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
  4547. # Targets.def, AsmPrinters.def, and AsmParsers.def.
  4548. LLVM_ENUM_TARGETS=""
  4549. LLVM_ENUM_ASM_PRINTERS=""
  4550. LLVM_ENUM_ASM_PARSERS=""
  4551. for target_to_build in $TARGETS_TO_BUILD; do
  4552. LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
  4553. if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
  4554. LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
  4555. fi
  4556. if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
  4557. LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
  4558. fi
  4559. done
  4560. # Check whether --enable-cbe-printf-a was given.
  4561. if test "${enable_cbe_printf_a+set}" = set; then
  4562. enableval=$enable_cbe_printf_a;
  4563. else
  4564. enableval=default
  4565. fi
  4566. case "$enableval" in
  4567. yes) ENABLE_CBE_PRINTF_A=1
  4568. ;;
  4569. no) ENABLE_CBE_PRINTF_A=0
  4570. ;;
  4571. default) ENABLE_CBE_PRINTF_A=1
  4572. ;;
  4573. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
  4574. echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
  4575. { (exit 1); exit 1; }; } ;;
  4576. esac
  4577. cat >>confdefs.h <<_ACEOF
  4578. #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
  4579. _ACEOF
  4580. # Check whether --with-llvmgccdir was given.
  4581. if test "${with_llvmgccdir+set}" = set; then
  4582. withval=$with_llvmgccdir;
  4583. else
  4584. withval=default
  4585. fi
  4586. case "$withval" in
  4587. default) WITH_LLVMGCCDIR=default ;;
  4588. /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
  4589. *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
  4590. echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
  4591. { (exit 1); exit 1; }; } ;;
  4592. esac
  4593. # Check whether --with-llvmgcc was given.
  4594. if test "${with_llvmgcc+set}" = set; then
  4595. withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
  4596. WITH_LLVMGCCDIR=""
  4597. fi
  4598. # Check whether --with-llvmgxx was given.
  4599. if test "${with_llvmgxx+set}" = set; then
  4600. withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
  4601. WITH_LLVMGCCDIR=""
  4602. fi
  4603. if test -n "$LLVMGCC"; then
  4604. LLVMGCCCOMMAND="$LLVMGCC"
  4605. fi
  4606. if test -n "$LLVMGXX"; then
  4607. LLVMGXXCOMMAND="$LLVMGXX"
  4608. fi
  4609. if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
  4610. { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
  4611. echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
  4612. { (exit 1); exit 1; }; };
  4613. fi
  4614. if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
  4615. { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
  4616. echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
  4617. { (exit 1); exit 1; }; };
  4618. fi
  4619. # Check whether --with-extra-options was given.
  4620. if test "${with_extra_options+set}" = set; then
  4621. withval=$with_extra_options;
  4622. else
  4623. withval=default
  4624. fi
  4625. case "$withval" in
  4626. default) EXTRA_OPTIONS= ;;
  4627. *) EXTRA_OPTIONS=$withval ;;
  4628. esac
  4629. EXTRA_OPTIONS=$EXTRA_OPTIONS
  4630. # Check whether --enable-bindings was given.
  4631. if test "${enable_bindings+set}" = set; then
  4632. enableval=$enable_bindings;
  4633. else
  4634. enableval=default
  4635. fi
  4636. BINDINGS_TO_BUILD=""
  4637. case "$enableval" in
  4638. yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
  4639. all ) BINDINGS_TO_BUILD="ocaml" ;;
  4640. none | no) BINDINGS_TO_BUILD="" ;;
  4641. *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
  4642. case "$a_binding" in
  4643. ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
  4644. *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
  4645. echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
  4646. { (exit 1); exit 1; }; } ;;
  4647. esac
  4648. done
  4649. ;;
  4650. esac
  4651. # Check whether --with-ocaml-libdir was given.
  4652. if test "${with_ocaml_libdir+set}" = set; then
  4653. withval=$with_ocaml_libdir;
  4654. else
  4655. withval=auto
  4656. fi
  4657. case "$withval" in
  4658. auto) with_ocaml_libdir="$withval" ;;
  4659. /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
  4660. *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
  4661. echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
  4662. { (exit 1); exit 1; }; } ;;
  4663. esac
  4664. # Check whether --with-binutils-include was given.
  4665. if test "${with_binutils_include+set}" = set; then
  4666. withval=$with_binutils_include;
  4667. else
  4668. withval=default
  4669. fi
  4670. case "$withval" in
  4671. default) WITH_BINUTILS_INCDIR=default ;;
  4672. /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
  4673. *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
  4674. echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
  4675. { (exit 1); exit 1; }; } ;;
  4676. esac
  4677. if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
  4678. BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
  4679. if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
  4680. echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
  4681. { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
  4682. echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
  4683. { (exit 1); exit 1; }; };
  4684. fi
  4685. fi
  4686. # Check whether --enable-libffi was given.
  4687. if test "${enable_libffi+set}" = set; then
  4688. enableval=$enable_libffi;
  4689. else
  4690. enableval=yes
  4691. fi
  4692. case "$enableval" in
  4693. yes) llvm_cv_enable_libffi="yes" ;;
  4694. no) llvm_cv_enable_libffi="no" ;;
  4695. *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
  4696. echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
  4697. { (exit 1); exit 1; }; } ;;
  4698. esac
  4699. if test "$llvm_cv_os_type" = "Win32" ; then
  4700. llvmc_dynamic="yes"
  4701. else
  4702. llvmc_dynamic="no"
  4703. fi
  4704. # Check whether --enable-llvmc-dynamic was given.
  4705. if test "${enable_llvmc_dynamic+set}" = set; then
  4706. enableval=$enable_llvmc_dynamic;
  4707. else
  4708. enableval=$llvmc_dynamic
  4709. fi
  4710. if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
  4711. ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
  4712. else
  4713. ENABLE_LLVMC_DYNAMIC=
  4714. fi
  4715. # Check whether --enable-llvmc-dynamic-plugins was given.
  4716. if test "${enable_llvmc_dynamic_plugins+set}" = set; then
  4717. enableval=$enable_llvmc_dynamic_plugins;
  4718. else
  4719. enableval=yes
  4720. fi
  4721. if test ${enableval} = "yes" ; then
  4722. ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
  4723. else
  4724. ENABLE_LLVMC_DYNAMIC_PLUGINS=
  4725. fi
  4726. ac_ext=c
  4727. ac_cpp='$CPP $CPPFLAGS'
  4728. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4729. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4730. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4731. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4732. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4733. # On Suns, sometimes $CPP names a directory.
  4734. if test -n "$CPP" && test -d "$CPP"; then
  4735. CPP=
  4736. fi
  4737. if test -z "$CPP"; then
  4738. if test "${ac_cv_prog_CPP+set}" = set; then
  4739. echo $ECHO_N "(cached) $ECHO_C" >&6
  4740. else
  4741. # Double quotes because CPP needs to be expanded
  4742. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4743. do
  4744. ac_preproc_ok=false
  4745. for ac_c_preproc_warn_flag in '' yes
  4746. do
  4747. # Use a header file that comes with gcc, so configuring glibc
  4748. # with a fresh cross-compiler works.
  4749. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4750. # <limits.h> exists even on freestanding compilers.
  4751. # On the NeXT, cc -E runs the code through the compiler's parser,
  4752. # not just through cpp. "Syntax error" is here to catch this case.
  4753. cat >conftest.$ac_ext <<_ACEOF
  4754. /* confdefs.h. */
  4755. _ACEOF
  4756. cat confdefs.h >>conftest.$ac_ext
  4757. cat >>conftest.$ac_ext <<_ACEOF
  4758. /* end confdefs.h. */
  4759. #ifdef __STDC__
  4760. # include <limits.h>
  4761. #else
  4762. # include <assert.h>
  4763. #endif
  4764. Syntax error
  4765. _ACEOF
  4766. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4767. case "(($ac_try" in
  4768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4769. *) ac_try_echo=$ac_try;;
  4770. esac
  4771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4772. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4773. ac_status=$?
  4774. grep -v '^ *+' conftest.er1 >conftest.err
  4775. rm -f conftest.er1
  4776. cat conftest.err >&5
  4777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4778. (exit $ac_status); } >/dev/null; then
  4779. if test -s conftest.err; then
  4780. ac_cpp_err=$ac_c_preproc_warn_flag
  4781. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4782. else
  4783. ac_cpp_err=
  4784. fi
  4785. else
  4786. ac_cpp_err=yes
  4787. fi
  4788. if test -z "$ac_cpp_err"; then
  4789. :
  4790. else
  4791. echo "$as_me: failed program was:" >&5
  4792. sed 's/^/| /' conftest.$ac_ext >&5
  4793. # Broken: fails on valid input.
  4794. continue
  4795. fi
  4796. rm -f conftest.err conftest.$ac_ext
  4797. # OK, works on sane cases. Now check whether nonexistent headers
  4798. # can be detected and how.
  4799. cat >conftest.$ac_ext <<_ACEOF
  4800. /* confdefs.h. */
  4801. _ACEOF
  4802. cat confdefs.h >>conftest.$ac_ext
  4803. cat >>conftest.$ac_ext <<_ACEOF
  4804. /* end confdefs.h. */
  4805. #include <ac_nonexistent.h>
  4806. _ACEOF
  4807. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4808. case "(($ac_try" in
  4809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4810. *) ac_try_echo=$ac_try;;
  4811. esac
  4812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4813. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4814. ac_status=$?
  4815. grep -v '^ *+' conftest.er1 >conftest.err
  4816. rm -f conftest.er1
  4817. cat conftest.err >&5
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); } >/dev/null; then
  4820. if test -s conftest.err; then
  4821. ac_cpp_err=$ac_c_preproc_warn_flag
  4822. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4823. else
  4824. ac_cpp_err=
  4825. fi
  4826. else
  4827. ac_cpp_err=yes
  4828. fi
  4829. if test -z "$ac_cpp_err"; then
  4830. # Broken: success on invalid input.
  4831. continue
  4832. else
  4833. echo "$as_me: failed program was:" >&5
  4834. sed 's/^/| /' conftest.$ac_ext >&5
  4835. # Passes both tests.
  4836. ac_preproc_ok=:
  4837. break
  4838. fi
  4839. rm -f conftest.err conftest.$ac_ext
  4840. done
  4841. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4842. rm -f conftest.err conftest.$ac_ext
  4843. if $ac_preproc_ok; then
  4844. break
  4845. fi
  4846. done
  4847. ac_cv_prog_CPP=$CPP
  4848. fi
  4849. CPP=$ac_cv_prog_CPP
  4850. else
  4851. ac_cv_prog_CPP=$CPP
  4852. fi
  4853. { echo "$as_me:$LINENO: result: $CPP" >&5
  4854. echo "${ECHO_T}$CPP" >&6; }
  4855. ac_preproc_ok=false
  4856. for ac_c_preproc_warn_flag in '' yes
  4857. do
  4858. # Use a header file that comes with gcc, so configuring glibc
  4859. # with a fresh cross-compiler works.
  4860. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4861. # <limits.h> exists even on freestanding compilers.
  4862. # On the NeXT, cc -E runs the code through the compiler's parser,
  4863. # not just through cpp. "Syntax error" is here to catch this case.
  4864. cat >conftest.$ac_ext <<_ACEOF
  4865. /* confdefs.h. */
  4866. _ACEOF
  4867. cat confdefs.h >>conftest.$ac_ext
  4868. cat >>conftest.$ac_ext <<_ACEOF
  4869. /* end confdefs.h. */
  4870. #ifdef __STDC__
  4871. # include <limits.h>
  4872. #else
  4873. # include <assert.h>
  4874. #endif
  4875. Syntax error
  4876. _ACEOF
  4877. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4878. case "(($ac_try" in
  4879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4880. *) ac_try_echo=$ac_try;;
  4881. esac
  4882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4883. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4884. ac_status=$?
  4885. grep -v '^ *+' conftest.er1 >conftest.err
  4886. rm -f conftest.er1
  4887. cat conftest.err >&5
  4888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4889. (exit $ac_status); } >/dev/null; then
  4890. if test -s conftest.err; then
  4891. ac_cpp_err=$ac_c_preproc_warn_flag
  4892. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4893. else
  4894. ac_cpp_err=
  4895. fi
  4896. else
  4897. ac_cpp_err=yes
  4898. fi
  4899. if test -z "$ac_cpp_err"; then
  4900. :
  4901. else
  4902. echo "$as_me: failed program was:" >&5
  4903. sed 's/^/| /' conftest.$ac_ext >&5
  4904. # Broken: fails on valid input.
  4905. continue
  4906. fi
  4907. rm -f conftest.err conftest.$ac_ext
  4908. # OK, works on sane cases. Now check whether nonexistent headers
  4909. # can be detected and how.
  4910. cat >conftest.$ac_ext <<_ACEOF
  4911. /* confdefs.h. */
  4912. _ACEOF
  4913. cat confdefs.h >>conftest.$ac_ext
  4914. cat >>conftest.$ac_ext <<_ACEOF
  4915. /* end confdefs.h. */
  4916. #include <ac_nonexistent.h>
  4917. _ACEOF
  4918. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4919. case "(($ac_try" in
  4920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4921. *) ac_try_echo=$ac_try;;
  4922. esac
  4923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4924. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4925. ac_status=$?
  4926. grep -v '^ *+' conftest.er1 >conftest.err
  4927. rm -f conftest.er1
  4928. cat conftest.err >&5
  4929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4930. (exit $ac_status); } >/dev/null; then
  4931. if test -s conftest.err; then
  4932. ac_cpp_err=$ac_c_preproc_warn_flag
  4933. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4934. else
  4935. ac_cpp_err=
  4936. fi
  4937. else
  4938. ac_cpp_err=yes
  4939. fi
  4940. if test -z "$ac_cpp_err"; then
  4941. # Broken: success on invalid input.
  4942. continue
  4943. else
  4944. echo "$as_me: failed program was:" >&5
  4945. sed 's/^/| /' conftest.$ac_ext >&5
  4946. # Passes both tests.
  4947. ac_preproc_ok=:
  4948. break
  4949. fi
  4950. rm -f conftest.err conftest.$ac_ext
  4951. done
  4952. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4953. rm -f conftest.err conftest.$ac_ext
  4954. if $ac_preproc_ok; then
  4955. :
  4956. else
  4957. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4958. See \`config.log' for more details." >&5
  4959. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4960. See \`config.log' for more details." >&2;}
  4961. { (exit 1); exit 1; }; }
  4962. fi
  4963. ac_ext=c
  4964. ac_cpp='$CPP $CPPFLAGS'
  4965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4968. ac_ext=c
  4969. ac_cpp='$CPP $CPPFLAGS'
  4970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4973. if test -n "$ac_tool_prefix"; then
  4974. for ac_prog in gcc
  4975. do
  4976. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4977. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4978. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4980. if test "${ac_cv_prog_CC+set}" = set; then
  4981. echo $ECHO_N "(cached) $ECHO_C" >&6
  4982. else
  4983. if test -n "$CC"; then
  4984. ac_cv_prog_CC="$CC" # Let the user override the test.
  4985. else
  4986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4987. for as_dir in $PATH
  4988. do
  4989. IFS=$as_save_IFS
  4990. test -z "$as_dir" && as_dir=.
  4991. for ac_exec_ext in '' $ac_executable_extensions; do
  4992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4993. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4994. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4995. break 2
  4996. fi
  4997. done
  4998. done
  4999. IFS=$as_save_IFS
  5000. fi
  5001. fi
  5002. CC=$ac_cv_prog_CC
  5003. if test -n "$CC"; then
  5004. { echo "$as_me:$LINENO: result: $CC" >&5
  5005. echo "${ECHO_T}$CC" >&6; }
  5006. else
  5007. { echo "$as_me:$LINENO: result: no" >&5
  5008. echo "${ECHO_T}no" >&6; }
  5009. fi
  5010. test -n "$CC" && break
  5011. done
  5012. fi
  5013. if test -z "$CC"; then
  5014. ac_ct_CC=$CC
  5015. for ac_prog in gcc
  5016. do
  5017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5018. set dummy $ac_prog; ac_word=$2
  5019. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5020. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5021. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5022. echo $ECHO_N "(cached) $ECHO_C" >&6
  5023. else
  5024. if test -n "$ac_ct_CC"; then
  5025. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5026. else
  5027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5028. for as_dir in $PATH
  5029. do
  5030. IFS=$as_save_IFS
  5031. test -z "$as_dir" && as_dir=.
  5032. for ac_exec_ext in '' $ac_executable_extensions; do
  5033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5034. ac_cv_prog_ac_ct_CC="$ac_prog"
  5035. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5036. break 2
  5037. fi
  5038. done
  5039. done
  5040. IFS=$as_save_IFS
  5041. fi
  5042. fi
  5043. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5044. if test -n "$ac_ct_CC"; then
  5045. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5046. echo "${ECHO_T}$ac_ct_CC" >&6; }
  5047. else
  5048. { echo "$as_me:$LINENO: result: no" >&5
  5049. echo "${ECHO_T}no" >&6; }
  5050. fi
  5051. test -n "$ac_ct_CC" && break
  5052. done
  5053. if test "x$ac_ct_CC" = x; then
  5054. CC=""
  5055. else
  5056. case $cross_compiling:$ac_tool_warned in
  5057. yes:)
  5058. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5059. whose name does not start with the host triplet. If you think this
  5060. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5061. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5062. whose name does not start with the host triplet. If you think this
  5063. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5064. ac_tool_warned=yes ;;
  5065. esac
  5066. CC=$ac_ct_CC
  5067. fi
  5068. fi
  5069. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5070. See \`config.log' for more details." >&5
  5071. echo "$as_me: error: no acceptable C compiler found in \$PATH
  5072. See \`config.log' for more details." >&2;}
  5073. { (exit 1); exit 1; }; }
  5074. # Provide some information about the compiler.
  5075. echo "$as_me:$LINENO: checking for C compiler version" >&5
  5076. ac_compiler=`set X $ac_compile; echo $2`
  5077. { (ac_try="$ac_compiler --version >&5"
  5078. case "(($ac_try" in
  5079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5080. *) ac_try_echo=$ac_try;;
  5081. esac
  5082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5083. (eval "$ac_compiler --version >&5") 2>&5
  5084. ac_status=$?
  5085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5086. (exit $ac_status); }
  5087. { (ac_try="$ac_compiler -v >&5"
  5088. case "(($ac_try" in
  5089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5090. *) ac_try_echo=$ac_try;;
  5091. esac
  5092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5093. (eval "$ac_compiler -v >&5") 2>&5
  5094. ac_status=$?
  5095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5096. (exit $ac_status); }
  5097. { (ac_try="$ac_compiler -V >&5"
  5098. case "(($ac_try" in
  5099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5100. *) ac_try_echo=$ac_try;;
  5101. esac
  5102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5103. (eval "$ac_compiler -V >&5") 2>&5
  5104. ac_status=$?
  5105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5106. (exit $ac_status); }
  5107. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5108. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  5109. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5110. echo $ECHO_N "(cached) $ECHO_C" >&6
  5111. else
  5112. cat >conftest.$ac_ext <<_ACEOF
  5113. /* confdefs.h. */
  5114. _ACEOF
  5115. cat confdefs.h >>conftest.$ac_ext
  5116. cat >>conftest.$ac_ext <<_ACEOF
  5117. /* end confdefs.h. */
  5118. int
  5119. main ()
  5120. {
  5121. #ifndef __GNUC__
  5122. choke me
  5123. #endif
  5124. ;
  5125. return 0;
  5126. }
  5127. _ACEOF
  5128. rm -f conftest.$ac_objext
  5129. if { (ac_try="$ac_compile"
  5130. case "(($ac_try" in
  5131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5132. *) ac_try_echo=$ac_try;;
  5133. esac
  5134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5135. (eval "$ac_compile") 2>conftest.er1
  5136. ac_status=$?
  5137. grep -v '^ *+' conftest.er1 >conftest.err
  5138. rm -f conftest.er1
  5139. cat conftest.err >&5
  5140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5141. (exit $ac_status); } &&
  5142. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5143. { (case "(($ac_try" in
  5144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5145. *) ac_try_echo=$ac_try;;
  5146. esac
  5147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5148. (eval "$ac_try") 2>&5
  5149. ac_status=$?
  5150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151. (exit $ac_status); }; } &&
  5152. { ac_try='test -s conftest.$ac_objext'
  5153. { (case "(($ac_try" in
  5154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5155. *) ac_try_echo=$ac_try;;
  5156. esac
  5157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5158. (eval "$ac_try") 2>&5
  5159. ac_status=$?
  5160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5161. (exit $ac_status); }; }; then
  5162. ac_compiler_gnu=yes
  5163. else
  5164. echo "$as_me: failed program was:" >&5
  5165. sed 's/^/| /' conftest.$ac_ext >&5
  5166. ac_compiler_gnu=no
  5167. fi
  5168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5169. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5170. fi
  5171. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5172. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  5173. GCC=`test $ac_compiler_gnu = yes && echo yes`
  5174. ac_test_CFLAGS=${CFLAGS+set}
  5175. ac_save_CFLAGS=$CFLAGS
  5176. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5177. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  5178. if test "${ac_cv_prog_cc_g+set}" = set; then
  5179. echo $ECHO_N "(cached) $ECHO_C" >&6
  5180. else
  5181. ac_save_c_werror_flag=$ac_c_werror_flag
  5182. ac_c_werror_flag=yes
  5183. ac_cv_prog_cc_g=no
  5184. CFLAGS="-g"
  5185. cat >conftest.$ac_ext <<_ACEOF
  5186. /* confdefs.h. */
  5187. _ACEOF
  5188. cat confdefs.h >>conftest.$ac_ext
  5189. cat >>conftest.$ac_ext <<_ACEOF
  5190. /* end confdefs.h. */
  5191. int
  5192. main ()
  5193. {
  5194. ;
  5195. return 0;
  5196. }
  5197. _ACEOF
  5198. rm -f conftest.$ac_objext
  5199. if { (ac_try="$ac_compile"
  5200. case "(($ac_try" in
  5201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5202. *) ac_try_echo=$ac_try;;
  5203. esac
  5204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5205. (eval "$ac_compile") 2>conftest.er1
  5206. ac_status=$?
  5207. grep -v '^ *+' conftest.er1 >conftest.err
  5208. rm -f conftest.er1
  5209. cat conftest.err >&5
  5210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5211. (exit $ac_status); } &&
  5212. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5213. { (case "(($ac_try" in
  5214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5215. *) ac_try_echo=$ac_try;;
  5216. esac
  5217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5218. (eval "$ac_try") 2>&5
  5219. ac_status=$?
  5220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5221. (exit $ac_status); }; } &&
  5222. { ac_try='test -s conftest.$ac_objext'
  5223. { (case "(($ac_try" in
  5224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5225. *) ac_try_echo=$ac_try;;
  5226. esac
  5227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5228. (eval "$ac_try") 2>&5
  5229. ac_status=$?
  5230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5231. (exit $ac_status); }; }; then
  5232. ac_cv_prog_cc_g=yes
  5233. else
  5234. echo "$as_me: failed program was:" >&5
  5235. sed 's/^/| /' conftest.$ac_ext >&5
  5236. CFLAGS=""
  5237. cat >conftest.$ac_ext <<_ACEOF
  5238. /* confdefs.h. */
  5239. _ACEOF
  5240. cat confdefs.h >>conftest.$ac_ext
  5241. cat >>conftest.$ac_ext <<_ACEOF
  5242. /* end confdefs.h. */
  5243. int
  5244. main ()
  5245. {
  5246. ;
  5247. return 0;
  5248. }
  5249. _ACEOF
  5250. rm -f conftest.$ac_objext
  5251. if { (ac_try="$ac_compile"
  5252. case "(($ac_try" in
  5253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5254. *) ac_try_echo=$ac_try;;
  5255. esac
  5256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5257. (eval "$ac_compile") 2>conftest.er1
  5258. ac_status=$?
  5259. grep -v '^ *+' conftest.er1 >conftest.err
  5260. rm -f conftest.er1
  5261. cat conftest.err >&5
  5262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5263. (exit $ac_status); } &&
  5264. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5265. { (case "(($ac_try" in
  5266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5267. *) ac_try_echo=$ac_try;;
  5268. esac
  5269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5270. (eval "$ac_try") 2>&5
  5271. ac_status=$?
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); }; } &&
  5274. { ac_try='test -s conftest.$ac_objext'
  5275. { (case "(($ac_try" in
  5276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5277. *) ac_try_echo=$ac_try;;
  5278. esac
  5279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5280. (eval "$ac_try") 2>&5
  5281. ac_status=$?
  5282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5283. (exit $ac_status); }; }; then
  5284. :
  5285. else
  5286. echo "$as_me: failed program was:" >&5
  5287. sed 's/^/| /' conftest.$ac_ext >&5
  5288. ac_c_werror_flag=$ac_save_c_werror_flag
  5289. CFLAGS="-g"
  5290. cat >conftest.$ac_ext <<_ACEOF
  5291. /* confdefs.h. */
  5292. _ACEOF
  5293. cat confdefs.h >>conftest.$ac_ext
  5294. cat >>conftest.$ac_ext <<_ACEOF
  5295. /* end confdefs.h. */
  5296. int
  5297. main ()
  5298. {
  5299. ;
  5300. return 0;
  5301. }
  5302. _ACEOF
  5303. rm -f conftest.$ac_objext
  5304. if { (ac_try="$ac_compile"
  5305. case "(($ac_try" in
  5306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5307. *) ac_try_echo=$ac_try;;
  5308. esac
  5309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5310. (eval "$ac_compile") 2>conftest.er1
  5311. ac_status=$?
  5312. grep -v '^ *+' conftest.er1 >conftest.err
  5313. rm -f conftest.er1
  5314. cat conftest.err >&5
  5315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5316. (exit $ac_status); } &&
  5317. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5318. { (case "(($ac_try" in
  5319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5320. *) ac_try_echo=$ac_try;;
  5321. esac
  5322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5323. (eval "$ac_try") 2>&5
  5324. ac_status=$?
  5325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5326. (exit $ac_status); }; } &&
  5327. { ac_try='test -s conftest.$ac_objext'
  5328. { (case "(($ac_try" in
  5329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5330. *) ac_try_echo=$ac_try;;
  5331. esac
  5332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5333. (eval "$ac_try") 2>&5
  5334. ac_status=$?
  5335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5336. (exit $ac_status); }; }; then
  5337. ac_cv_prog_cc_g=yes
  5338. else
  5339. echo "$as_me: failed program was:" >&5
  5340. sed 's/^/| /' conftest.$ac_ext >&5
  5341. fi
  5342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5343. fi
  5344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5345. fi
  5346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5347. ac_c_werror_flag=$ac_save_c_werror_flag
  5348. fi
  5349. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5350. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  5351. if test "$ac_test_CFLAGS" = set; then
  5352. CFLAGS=$ac_save_CFLAGS
  5353. elif test $ac_cv_prog_cc_g = yes; then
  5354. if test "$GCC" = yes; then
  5355. CFLAGS="-g -O2"
  5356. else
  5357. CFLAGS="-g"
  5358. fi
  5359. else
  5360. if test "$GCC" = yes; then
  5361. CFLAGS="-O2"
  5362. else
  5363. CFLAGS=
  5364. fi
  5365. fi
  5366. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5367. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  5368. if test "${ac_cv_prog_cc_c89+set}" = set; then
  5369. echo $ECHO_N "(cached) $ECHO_C" >&6
  5370. else
  5371. ac_cv_prog_cc_c89=no
  5372. ac_save_CC=$CC
  5373. cat >conftest.$ac_ext <<_ACEOF
  5374. /* confdefs.h. */
  5375. _ACEOF
  5376. cat confdefs.h >>conftest.$ac_ext
  5377. cat >>conftest.$ac_ext <<_ACEOF
  5378. /* end confdefs.h. */
  5379. #include <stdarg.h>
  5380. #include <stdio.h>
  5381. #include <sys/types.h>
  5382. #include <sys/stat.h>
  5383. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5384. struct buf { int x; };
  5385. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5386. static char *e (p, i)
  5387. char **p;
  5388. int i;
  5389. {
  5390. return p[i];
  5391. }
  5392. static char *f (char * (*g) (char **, int), char **p, ...)
  5393. {
  5394. char *s;
  5395. va_list v;
  5396. va_start (v,p);
  5397. s = g (p, va_arg (v,int));
  5398. va_end (v);
  5399. return s;
  5400. }
  5401. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5402. function prototypes and stuff, but not '\xHH' hex character constants.
  5403. These don't provoke an error unfortunately, instead are silently treated
  5404. as 'x'. The following induces an error, until -std is added to get
  5405. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5406. array size at least. It's necessary to write '\x00'==0 to get something
  5407. that's true only with -std. */
  5408. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5409. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5410. inside strings and character constants. */
  5411. #define FOO(x) 'x'
  5412. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5413. int test (int i, double x);
  5414. struct s1 {int (*f) (int a);};
  5415. struct s2 {int (*f) (double a);};
  5416. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5417. int argc;
  5418. char **argv;
  5419. int
  5420. main ()
  5421. {
  5422. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5423. ;
  5424. return 0;
  5425. }
  5426. _ACEOF
  5427. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5428. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5429. do
  5430. CC="$ac_save_CC $ac_arg"
  5431. rm -f conftest.$ac_objext
  5432. if { (ac_try="$ac_compile"
  5433. case "(($ac_try" in
  5434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5435. *) ac_try_echo=$ac_try;;
  5436. esac
  5437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5438. (eval "$ac_compile") 2>conftest.er1
  5439. ac_status=$?
  5440. grep -v '^ *+' conftest.er1 >conftest.err
  5441. rm -f conftest.er1
  5442. cat conftest.err >&5
  5443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5444. (exit $ac_status); } &&
  5445. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5446. { (case "(($ac_try" in
  5447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5448. *) ac_try_echo=$ac_try;;
  5449. esac
  5450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5451. (eval "$ac_try") 2>&5
  5452. ac_status=$?
  5453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5454. (exit $ac_status); }; } &&
  5455. { ac_try='test -s conftest.$ac_objext'
  5456. { (case "(($ac_try" in
  5457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5458. *) ac_try_echo=$ac_try;;
  5459. esac
  5460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5461. (eval "$ac_try") 2>&5
  5462. ac_status=$?
  5463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5464. (exit $ac_status); }; }; then
  5465. ac_cv_prog_cc_c89=$ac_arg
  5466. else
  5467. echo "$as_me: failed program was:" >&5
  5468. sed 's/^/| /' conftest.$ac_ext >&5
  5469. fi
  5470. rm -f core conftest.err conftest.$ac_objext
  5471. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5472. done
  5473. rm -f conftest.$ac_ext
  5474. CC=$ac_save_CC
  5475. fi
  5476. # AC_CACHE_VAL
  5477. case "x$ac_cv_prog_cc_c89" in
  5478. x)
  5479. { echo "$as_me:$LINENO: result: none needed" >&5
  5480. echo "${ECHO_T}none needed" >&6; } ;;
  5481. xno)
  5482. { echo "$as_me:$LINENO: result: unsupported" >&5
  5483. echo "${ECHO_T}unsupported" >&6; } ;;
  5484. *)
  5485. CC="$CC $ac_cv_prog_cc_c89"
  5486. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5487. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  5488. esac
  5489. ac_ext=c
  5490. ac_cpp='$CPP $CPPFLAGS'
  5491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5494. ac_ext=cpp
  5495. ac_cpp='$CXXCPP $CPPFLAGS'
  5496. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5497. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5498. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5499. if test -z "$CXX"; then
  5500. if test -n "$CCC"; then
  5501. CXX=$CCC
  5502. else
  5503. if test -n "$ac_tool_prefix"; then
  5504. for ac_prog in g++
  5505. do
  5506. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5507. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5508. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5509. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5510. if test "${ac_cv_prog_CXX+set}" = set; then
  5511. echo $ECHO_N "(cached) $ECHO_C" >&6
  5512. else
  5513. if test -n "$CXX"; then
  5514. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5515. else
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH
  5518. do
  5519. IFS=$as_save_IFS
  5520. test -z "$as_dir" && as_dir=.
  5521. for ac_exec_ext in '' $ac_executable_extensions; do
  5522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5523. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5524. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5525. break 2
  5526. fi
  5527. done
  5528. done
  5529. IFS=$as_save_IFS
  5530. fi
  5531. fi
  5532. CXX=$ac_cv_prog_CXX
  5533. if test -n "$CXX"; then
  5534. { echo "$as_me:$LINENO: result: $CXX" >&5
  5535. echo "${ECHO_T}$CXX" >&6; }
  5536. else
  5537. { echo "$as_me:$LINENO: result: no" >&5
  5538. echo "${ECHO_T}no" >&6; }
  5539. fi
  5540. test -n "$CXX" && break
  5541. done
  5542. fi
  5543. if test -z "$CXX"; then
  5544. ac_ct_CXX=$CXX
  5545. for ac_prog in g++
  5546. do
  5547. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5548. set dummy $ac_prog; ac_word=$2
  5549. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5550. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5551. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  5552. echo $ECHO_N "(cached) $ECHO_C" >&6
  5553. else
  5554. if test -n "$ac_ct_CXX"; then
  5555. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5556. else
  5557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5558. for as_dir in $PATH
  5559. do
  5560. IFS=$as_save_IFS
  5561. test -z "$as_dir" && as_dir=.
  5562. for ac_exec_ext in '' $ac_executable_extensions; do
  5563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5564. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5565. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5566. break 2
  5567. fi
  5568. done
  5569. done
  5570. IFS=$as_save_IFS
  5571. fi
  5572. fi
  5573. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5574. if test -n "$ac_ct_CXX"; then
  5575. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  5576. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  5577. else
  5578. { echo "$as_me:$LINENO: result: no" >&5
  5579. echo "${ECHO_T}no" >&6; }
  5580. fi
  5581. test -n "$ac_ct_CXX" && break
  5582. done
  5583. if test "x$ac_ct_CXX" = x; then
  5584. CXX="g++"
  5585. else
  5586. case $cross_compiling:$ac_tool_warned in
  5587. yes:)
  5588. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5589. whose name does not start with the host triplet. If you think this
  5590. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5591. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5592. whose name does not start with the host triplet. If you think this
  5593. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5594. ac_tool_warned=yes ;;
  5595. esac
  5596. CXX=$ac_ct_CXX
  5597. fi
  5598. fi
  5599. fi
  5600. fi
  5601. # Provide some information about the compiler.
  5602. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  5603. ac_compiler=`set X $ac_compile; echo $2`
  5604. { (ac_try="$ac_compiler --version >&5"
  5605. case "(($ac_try" in
  5606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5607. *) ac_try_echo=$ac_try;;
  5608. esac
  5609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5610. (eval "$ac_compiler --version >&5") 2>&5
  5611. ac_status=$?
  5612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5613. (exit $ac_status); }
  5614. { (ac_try="$ac_compiler -v >&5"
  5615. case "(($ac_try" in
  5616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5617. *) ac_try_echo=$ac_try;;
  5618. esac
  5619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5620. (eval "$ac_compiler -v >&5") 2>&5
  5621. ac_status=$?
  5622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5623. (exit $ac_status); }
  5624. { (ac_try="$ac_compiler -V >&5"
  5625. case "(($ac_try" in
  5626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5627. *) ac_try_echo=$ac_try;;
  5628. esac
  5629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5630. (eval "$ac_compiler -V >&5") 2>&5
  5631. ac_status=$?
  5632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5633. (exit $ac_status); }
  5634. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5635. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  5636. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5637. echo $ECHO_N "(cached) $ECHO_C" >&6
  5638. else
  5639. cat >conftest.$ac_ext <<_ACEOF
  5640. /* confdefs.h. */
  5641. _ACEOF
  5642. cat confdefs.h >>conftest.$ac_ext
  5643. cat >>conftest.$ac_ext <<_ACEOF
  5644. /* end confdefs.h. */
  5645. int
  5646. main ()
  5647. {
  5648. #ifndef __GNUC__
  5649. choke me
  5650. #endif
  5651. ;
  5652. return 0;
  5653. }
  5654. _ACEOF
  5655. rm -f conftest.$ac_objext
  5656. if { (ac_try="$ac_compile"
  5657. case "(($ac_try" in
  5658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5659. *) ac_try_echo=$ac_try;;
  5660. esac
  5661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5662. (eval "$ac_compile") 2>conftest.er1
  5663. ac_status=$?
  5664. grep -v '^ *+' conftest.er1 >conftest.err
  5665. rm -f conftest.er1
  5666. cat conftest.err >&5
  5667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5668. (exit $ac_status); } &&
  5669. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5670. { (case "(($ac_try" in
  5671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5672. *) ac_try_echo=$ac_try;;
  5673. esac
  5674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5675. (eval "$ac_try") 2>&5
  5676. ac_status=$?
  5677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5678. (exit $ac_status); }; } &&
  5679. { ac_try='test -s conftest.$ac_objext'
  5680. { (case "(($ac_try" in
  5681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5682. *) ac_try_echo=$ac_try;;
  5683. esac
  5684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5685. (eval "$ac_try") 2>&5
  5686. ac_status=$?
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); }; }; then
  5689. ac_compiler_gnu=yes
  5690. else
  5691. echo "$as_me: failed program was:" >&5
  5692. sed 's/^/| /' conftest.$ac_ext >&5
  5693. ac_compiler_gnu=no
  5694. fi
  5695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5696. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5697. fi
  5698. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5699. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  5700. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5701. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5702. ac_save_CXXFLAGS=$CXXFLAGS
  5703. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5704. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5705. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5706. echo $ECHO_N "(cached) $ECHO_C" >&6
  5707. else
  5708. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5709. ac_cxx_werror_flag=yes
  5710. ac_cv_prog_cxx_g=no
  5711. CXXFLAGS="-g"
  5712. cat >conftest.$ac_ext <<_ACEOF
  5713. /* confdefs.h. */
  5714. _ACEOF
  5715. cat confdefs.h >>conftest.$ac_ext
  5716. cat >>conftest.$ac_ext <<_ACEOF
  5717. /* end confdefs.h. */
  5718. int
  5719. main ()
  5720. {
  5721. ;
  5722. return 0;
  5723. }
  5724. _ACEOF
  5725. rm -f conftest.$ac_objext
  5726. if { (ac_try="$ac_compile"
  5727. case "(($ac_try" in
  5728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5729. *) ac_try_echo=$ac_try;;
  5730. esac
  5731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5732. (eval "$ac_compile") 2>conftest.er1
  5733. ac_status=$?
  5734. grep -v '^ *+' conftest.er1 >conftest.err
  5735. rm -f conftest.er1
  5736. cat conftest.err >&5
  5737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738. (exit $ac_status); } &&
  5739. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5740. { (case "(($ac_try" in
  5741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5742. *) ac_try_echo=$ac_try;;
  5743. esac
  5744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5745. (eval "$ac_try") 2>&5
  5746. ac_status=$?
  5747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5748. (exit $ac_status); }; } &&
  5749. { ac_try='test -s conftest.$ac_objext'
  5750. { (case "(($ac_try" in
  5751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5752. *) ac_try_echo=$ac_try;;
  5753. esac
  5754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5755. (eval "$ac_try") 2>&5
  5756. ac_status=$?
  5757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5758. (exit $ac_status); }; }; then
  5759. ac_cv_prog_cxx_g=yes
  5760. else
  5761. echo "$as_me: failed program was:" >&5
  5762. sed 's/^/| /' conftest.$ac_ext >&5
  5763. CXXFLAGS=""
  5764. cat >conftest.$ac_ext <<_ACEOF
  5765. /* confdefs.h. */
  5766. _ACEOF
  5767. cat confdefs.h >>conftest.$ac_ext
  5768. cat >>conftest.$ac_ext <<_ACEOF
  5769. /* end confdefs.h. */
  5770. int
  5771. main ()
  5772. {
  5773. ;
  5774. return 0;
  5775. }
  5776. _ACEOF
  5777. rm -f conftest.$ac_objext
  5778. if { (ac_try="$ac_compile"
  5779. case "(($ac_try" in
  5780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5781. *) ac_try_echo=$ac_try;;
  5782. esac
  5783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5784. (eval "$ac_compile") 2>conftest.er1
  5785. ac_status=$?
  5786. grep -v '^ *+' conftest.er1 >conftest.err
  5787. rm -f conftest.er1
  5788. cat conftest.err >&5
  5789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5790. (exit $ac_status); } &&
  5791. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5792. { (case "(($ac_try" in
  5793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5794. *) ac_try_echo=$ac_try;;
  5795. esac
  5796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5797. (eval "$ac_try") 2>&5
  5798. ac_status=$?
  5799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5800. (exit $ac_status); }; } &&
  5801. { ac_try='test -s conftest.$ac_objext'
  5802. { (case "(($ac_try" in
  5803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5804. *) ac_try_echo=$ac_try;;
  5805. esac
  5806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5807. (eval "$ac_try") 2>&5
  5808. ac_status=$?
  5809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5810. (exit $ac_status); }; }; then
  5811. :
  5812. else
  5813. echo "$as_me: failed program was:" >&5
  5814. sed 's/^/| /' conftest.$ac_ext >&5
  5815. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5816. CXXFLAGS="-g"
  5817. cat >conftest.$ac_ext <<_ACEOF
  5818. /* confdefs.h. */
  5819. _ACEOF
  5820. cat confdefs.h >>conftest.$ac_ext
  5821. cat >>conftest.$ac_ext <<_ACEOF
  5822. /* end confdefs.h. */
  5823. int
  5824. main ()
  5825. {
  5826. ;
  5827. return 0;
  5828. }
  5829. _ACEOF
  5830. rm -f conftest.$ac_objext
  5831. if { (ac_try="$ac_compile"
  5832. case "(($ac_try" in
  5833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5834. *) ac_try_echo=$ac_try;;
  5835. esac
  5836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5837. (eval "$ac_compile") 2>conftest.er1
  5838. ac_status=$?
  5839. grep -v '^ *+' conftest.er1 >conftest.err
  5840. rm -f conftest.er1
  5841. cat conftest.err >&5
  5842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5843. (exit $ac_status); } &&
  5844. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5845. { (case "(($ac_try" in
  5846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5847. *) ac_try_echo=$ac_try;;
  5848. esac
  5849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5850. (eval "$ac_try") 2>&5
  5851. ac_status=$?
  5852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5853. (exit $ac_status); }; } &&
  5854. { ac_try='test -s conftest.$ac_objext'
  5855. { (case "(($ac_try" in
  5856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5857. *) ac_try_echo=$ac_try;;
  5858. esac
  5859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5860. (eval "$ac_try") 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5863. (exit $ac_status); }; }; then
  5864. ac_cv_prog_cxx_g=yes
  5865. else
  5866. echo "$as_me: failed program was:" >&5
  5867. sed 's/^/| /' conftest.$ac_ext >&5
  5868. fi
  5869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5870. fi
  5871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5872. fi
  5873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5874. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5875. fi
  5876. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5877. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5878. if test "$ac_test_CXXFLAGS" = set; then
  5879. CXXFLAGS=$ac_save_CXXFLAGS
  5880. elif test $ac_cv_prog_cxx_g = yes; then
  5881. if test "$GXX" = yes; then
  5882. CXXFLAGS="-g -O2"
  5883. else
  5884. CXXFLAGS="-g"
  5885. fi
  5886. else
  5887. if test "$GXX" = yes; then
  5888. CXXFLAGS="-O2"
  5889. else
  5890. CXXFLAGS=
  5891. fi
  5892. fi
  5893. ac_ext=c
  5894. ac_cpp='$CPP $CPPFLAGS'
  5895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5898. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  5899. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  5900. if test "${lt_cv_path_NM+set}" = set; then
  5901. echo $ECHO_N "(cached) $ECHO_C" >&6
  5902. else
  5903. if test -n "$NM"; then
  5904. # Let the user override the test.
  5905. lt_cv_path_NM="$NM"
  5906. else
  5907. lt_nm_to_check="${ac_tool_prefix}nm"
  5908. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5909. lt_nm_to_check="$lt_nm_to_check nm"
  5910. fi
  5911. for lt_tmp_nm in $lt_nm_to_check; do
  5912. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5913. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5914. IFS="$lt_save_ifs"
  5915. test -z "$ac_dir" && ac_dir=.
  5916. tmp_nm="$ac_dir/$lt_tmp_nm"
  5917. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5918. # Check to see if the nm accepts a BSD-compat flag.
  5919. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5920. # nm: unknown option "B" ignored
  5921. # Tru64's nm complains that /dev/null is an invalid object file
  5922. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5923. */dev/null* | *'Invalid file or object type'*)
  5924. lt_cv_path_NM="$tmp_nm -B"
  5925. break
  5926. ;;
  5927. *)
  5928. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5929. */dev/null*)
  5930. lt_cv_path_NM="$tmp_nm -p"
  5931. break
  5932. ;;
  5933. *)
  5934. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5935. continue # so that we can try to find one that supports BSD flags
  5936. ;;
  5937. esac
  5938. ;;
  5939. esac
  5940. fi
  5941. done
  5942. IFS="$lt_save_ifs"
  5943. done
  5944. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  5945. fi
  5946. fi
  5947. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5948. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  5949. NM="$lt_cv_path_NM"
  5950. { echo "$as_me:$LINENO: checking for GNU make" >&5
  5951. echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
  5952. if test "${llvm_cv_gnu_make_command+set}" = set; then
  5953. echo $ECHO_N "(cached) $ECHO_C" >&6
  5954. else
  5955. llvm_cv_gnu_make_command=''
  5956. for a in "$MAKE" make gmake gnumake ; do
  5957. if test -z "$a" ; then continue ; fi ;
  5958. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
  5959. then
  5960. llvm_cv_gnu_make_command=$a ;
  5961. break;
  5962. fi
  5963. done
  5964. fi
  5965. { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
  5966. echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
  5967. if test "x$llvm_cv_gnu_make_command" != "x" ; then
  5968. ifGNUmake='' ;
  5969. else
  5970. ifGNUmake='#' ;
  5971. { echo "$as_me:$LINENO: result: \"Not found\"" >&5
  5972. echo "${ECHO_T}\"Not found\"" >&6; };
  5973. fi
  5974. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5975. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  5976. LN_S=$as_ln_s
  5977. if test "$LN_S" = "ln -s"; then
  5978. { echo "$as_me:$LINENO: result: yes" >&5
  5979. echo "${ECHO_T}yes" >&6; }
  5980. else
  5981. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5982. echo "${ECHO_T}no, using $LN_S" >&6; }
  5983. fi
  5984. # Extract the first word of "cmp", so it can be a program name with args.
  5985. set dummy cmp; ac_word=$2
  5986. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5987. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5988. if test "${ac_cv_path_CMP+set}" = set; then
  5989. echo $ECHO_N "(cached) $ECHO_C" >&6
  5990. else
  5991. case $CMP in
  5992. [\\/]* | ?:[\\/]*)
  5993. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  5994. ;;
  5995. *)
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6003. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6004. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
  6011. ;;
  6012. esac
  6013. fi
  6014. CMP=$ac_cv_path_CMP
  6015. if test -n "$CMP"; then
  6016. { echo "$as_me:$LINENO: result: $CMP" >&5
  6017. echo "${ECHO_T}$CMP" >&6; }
  6018. else
  6019. { echo "$as_me:$LINENO: result: no" >&5
  6020. echo "${ECHO_T}no" >&6; }
  6021. fi
  6022. # Extract the first word of "cp", so it can be a program name with args.
  6023. set dummy cp; ac_word=$2
  6024. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6025. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6026. if test "${ac_cv_path_CP+set}" = set; then
  6027. echo $ECHO_N "(cached) $ECHO_C" >&6
  6028. else
  6029. case $CP in
  6030. [\\/]* | ?:[\\/]*)
  6031. ac_cv_path_CP="$CP" # Let the user override the test with a path.
  6032. ;;
  6033. *)
  6034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6035. for as_dir in $PATH
  6036. do
  6037. IFS=$as_save_IFS
  6038. test -z "$as_dir" && as_dir=.
  6039. for ac_exec_ext in '' $ac_executable_extensions; do
  6040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6041. ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
  6042. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6043. break 2
  6044. fi
  6045. done
  6046. done
  6047. IFS=$as_save_IFS
  6048. test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
  6049. ;;
  6050. esac
  6051. fi
  6052. CP=$ac_cv_path_CP
  6053. if test -n "$CP"; then
  6054. { echo "$as_me:$LINENO: result: $CP" >&5
  6055. echo "${ECHO_T}$CP" >&6; }
  6056. else
  6057. { echo "$as_me:$LINENO: result: no" >&5
  6058. echo "${ECHO_T}no" >&6; }
  6059. fi
  6060. # Extract the first word of "date", so it can be a program name with args.
  6061. set dummy date; ac_word=$2
  6062. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6063. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6064. if test "${ac_cv_path_DATE+set}" = set; then
  6065. echo $ECHO_N "(cached) $ECHO_C" >&6
  6066. else
  6067. case $DATE in
  6068. [\\/]* | ?:[\\/]*)
  6069. ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
  6070. ;;
  6071. *)
  6072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6073. for as_dir in $PATH
  6074. do
  6075. IFS=$as_save_IFS
  6076. test -z "$as_dir" && as_dir=.
  6077. for ac_exec_ext in '' $ac_executable_extensions; do
  6078. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6079. ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
  6080. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6081. break 2
  6082. fi
  6083. done
  6084. done
  6085. IFS=$as_save_IFS
  6086. test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
  6087. ;;
  6088. esac
  6089. fi
  6090. DATE=$ac_cv_path_DATE
  6091. if test -n "$DATE"; then
  6092. { echo "$as_me:$LINENO: result: $DATE" >&5
  6093. echo "${ECHO_T}$DATE" >&6; }
  6094. else
  6095. { echo "$as_me:$LINENO: result: no" >&5
  6096. echo "${ECHO_T}no" >&6; }
  6097. fi
  6098. # Extract the first word of "find", so it can be a program name with args.
  6099. set dummy find; ac_word=$2
  6100. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6101. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6102. if test "${ac_cv_path_FIND+set}" = set; then
  6103. echo $ECHO_N "(cached) $ECHO_C" >&6
  6104. else
  6105. case $FIND in
  6106. [\\/]* | ?:[\\/]*)
  6107. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6108. ;;
  6109. *)
  6110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6111. for as_dir in $PATH
  6112. do
  6113. IFS=$as_save_IFS
  6114. test -z "$as_dir" && as_dir=.
  6115. for ac_exec_ext in '' $ac_executable_extensions; do
  6116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6117. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6119. break 2
  6120. fi
  6121. done
  6122. done
  6123. IFS=$as_save_IFS
  6124. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
  6125. ;;
  6126. esac
  6127. fi
  6128. FIND=$ac_cv_path_FIND
  6129. if test -n "$FIND"; then
  6130. { echo "$as_me:$LINENO: result: $FIND" >&5
  6131. echo "${ECHO_T}$FIND" >&6; }
  6132. else
  6133. { echo "$as_me:$LINENO: result: no" >&5
  6134. echo "${ECHO_T}no" >&6; }
  6135. fi
  6136. # Extract the first word of "grep", so it can be a program name with args.
  6137. set dummy grep; ac_word=$2
  6138. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6139. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6140. if test "${ac_cv_path_GREP+set}" = set; then
  6141. echo $ECHO_N "(cached) $ECHO_C" >&6
  6142. else
  6143. case $GREP in
  6144. [\\/]* | ?:[\\/]*)
  6145. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6146. ;;
  6147. *)
  6148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6149. for as_dir in $PATH
  6150. do
  6151. IFS=$as_save_IFS
  6152. test -z "$as_dir" && as_dir=.
  6153. for ac_exec_ext in '' $ac_executable_extensions; do
  6154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6155. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6156. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6157. break 2
  6158. fi
  6159. done
  6160. done
  6161. IFS=$as_save_IFS
  6162. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
  6163. ;;
  6164. esac
  6165. fi
  6166. GREP=$ac_cv_path_GREP
  6167. if test -n "$GREP"; then
  6168. { echo "$as_me:$LINENO: result: $GREP" >&5
  6169. echo "${ECHO_T}$GREP" >&6; }
  6170. else
  6171. { echo "$as_me:$LINENO: result: no" >&5
  6172. echo "${ECHO_T}no" >&6; }
  6173. fi
  6174. # Extract the first word of "mkdir", so it can be a program name with args.
  6175. set dummy mkdir; ac_word=$2
  6176. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6178. if test "${ac_cv_path_MKDIR+set}" = set; then
  6179. echo $ECHO_N "(cached) $ECHO_C" >&6
  6180. else
  6181. case $MKDIR in
  6182. [\\/]* | ?:[\\/]*)
  6183. ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  6184. ;;
  6185. *)
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6193. ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
  6194. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
  6201. ;;
  6202. esac
  6203. fi
  6204. MKDIR=$ac_cv_path_MKDIR
  6205. if test -n "$MKDIR"; then
  6206. { echo "$as_me:$LINENO: result: $MKDIR" >&5
  6207. echo "${ECHO_T}$MKDIR" >&6; }
  6208. else
  6209. { echo "$as_me:$LINENO: result: no" >&5
  6210. echo "${ECHO_T}no" >&6; }
  6211. fi
  6212. # Extract the first word of "mv", so it can be a program name with args.
  6213. set dummy mv; ac_word=$2
  6214. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6215. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6216. if test "${ac_cv_path_MV+set}" = set; then
  6217. echo $ECHO_N "(cached) $ECHO_C" >&6
  6218. else
  6219. case $MV in
  6220. [\\/]* | ?:[\\/]*)
  6221. ac_cv_path_MV="$MV" # Let the user override the test with a path.
  6222. ;;
  6223. *)
  6224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6225. for as_dir in $PATH
  6226. do
  6227. IFS=$as_save_IFS
  6228. test -z "$as_dir" && as_dir=.
  6229. for ac_exec_ext in '' $ac_executable_extensions; do
  6230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6231. ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
  6232. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6233. break 2
  6234. fi
  6235. done
  6236. done
  6237. IFS=$as_save_IFS
  6238. test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
  6239. ;;
  6240. esac
  6241. fi
  6242. MV=$ac_cv_path_MV
  6243. if test -n "$MV"; then
  6244. { echo "$as_me:$LINENO: result: $MV" >&5
  6245. echo "${ECHO_T}$MV" >&6; }
  6246. else
  6247. { echo "$as_me:$LINENO: result: no" >&5
  6248. echo "${ECHO_T}no" >&6; }
  6249. fi
  6250. if test -n "$ac_tool_prefix"; then
  6251. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6252. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6253. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6254. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6255. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6256. echo $ECHO_N "(cached) $ECHO_C" >&6
  6257. else
  6258. if test -n "$RANLIB"; then
  6259. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6260. else
  6261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6262. for as_dir in $PATH
  6263. do
  6264. IFS=$as_save_IFS
  6265. test -z "$as_dir" && as_dir=.
  6266. for ac_exec_ext in '' $ac_executable_extensions; do
  6267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6268. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6269. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6270. break 2
  6271. fi
  6272. done
  6273. done
  6274. IFS=$as_save_IFS
  6275. fi
  6276. fi
  6277. RANLIB=$ac_cv_prog_RANLIB
  6278. if test -n "$RANLIB"; then
  6279. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6280. echo "${ECHO_T}$RANLIB" >&6; }
  6281. else
  6282. { echo "$as_me:$LINENO: result: no" >&5
  6283. echo "${ECHO_T}no" >&6; }
  6284. fi
  6285. fi
  6286. if test -z "$ac_cv_prog_RANLIB"; then
  6287. ac_ct_RANLIB=$RANLIB
  6288. # Extract the first word of "ranlib", so it can be a program name with args.
  6289. set dummy ranlib; ac_word=$2
  6290. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6291. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6292. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6293. echo $ECHO_N "(cached) $ECHO_C" >&6
  6294. else
  6295. if test -n "$ac_ct_RANLIB"; then
  6296. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6297. else
  6298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6299. for as_dir in $PATH
  6300. do
  6301. IFS=$as_save_IFS
  6302. test -z "$as_dir" && as_dir=.
  6303. for ac_exec_ext in '' $ac_executable_extensions; do
  6304. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6305. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6306. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6307. break 2
  6308. fi
  6309. done
  6310. done
  6311. IFS=$as_save_IFS
  6312. fi
  6313. fi
  6314. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6315. if test -n "$ac_ct_RANLIB"; then
  6316. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6317. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6318. else
  6319. { echo "$as_me:$LINENO: result: no" >&5
  6320. echo "${ECHO_T}no" >&6; }
  6321. fi
  6322. if test "x$ac_ct_RANLIB" = x; then
  6323. RANLIB=":"
  6324. else
  6325. case $cross_compiling:$ac_tool_warned in
  6326. yes:)
  6327. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6328. whose name does not start with the host triplet. If you think this
  6329. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6330. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6331. whose name does not start with the host triplet. If you think this
  6332. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6333. ac_tool_warned=yes ;;
  6334. esac
  6335. RANLIB=$ac_ct_RANLIB
  6336. fi
  6337. else
  6338. RANLIB="$ac_cv_prog_RANLIB"
  6339. fi
  6340. # Extract the first word of "rm", so it can be a program name with args.
  6341. set dummy rm; ac_word=$2
  6342. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6343. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6344. if test "${ac_cv_path_RM+set}" = set; then
  6345. echo $ECHO_N "(cached) $ECHO_C" >&6
  6346. else
  6347. case $RM in
  6348. [\\/]* | ?:[\\/]*)
  6349. ac_cv_path_RM="$RM" # Let the user override the test with a path.
  6350. ;;
  6351. *)
  6352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6353. for as_dir in $PATH
  6354. do
  6355. IFS=$as_save_IFS
  6356. test -z "$as_dir" && as_dir=.
  6357. for ac_exec_ext in '' $ac_executable_extensions; do
  6358. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6359. ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
  6360. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6361. break 2
  6362. fi
  6363. done
  6364. done
  6365. IFS=$as_save_IFS
  6366. test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
  6367. ;;
  6368. esac
  6369. fi
  6370. RM=$ac_cv_path_RM
  6371. if test -n "$RM"; then
  6372. { echo "$as_me:$LINENO: result: $RM" >&5
  6373. echo "${ECHO_T}$RM" >&6; }
  6374. else
  6375. { echo "$as_me:$LINENO: result: no" >&5
  6376. echo "${ECHO_T}no" >&6; }
  6377. fi
  6378. # Extract the first word of "sed", so it can be a program name with args.
  6379. set dummy sed; ac_word=$2
  6380. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6381. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6382. if test "${ac_cv_path_SED+set}" = set; then
  6383. echo $ECHO_N "(cached) $ECHO_C" >&6
  6384. else
  6385. case $SED in
  6386. [\\/]* | ?:[\\/]*)
  6387. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  6388. ;;
  6389. *)
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6397. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  6398. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
  6405. ;;
  6406. esac
  6407. fi
  6408. SED=$ac_cv_path_SED
  6409. if test -n "$SED"; then
  6410. { echo "$as_me:$LINENO: result: $SED" >&5
  6411. echo "${ECHO_T}$SED" >&6; }
  6412. else
  6413. { echo "$as_me:$LINENO: result: no" >&5
  6414. echo "${ECHO_T}no" >&6; }
  6415. fi
  6416. # Extract the first word of "tar", so it can be a program name with args.
  6417. set dummy tar; ac_word=$2
  6418. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6419. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6420. if test "${ac_cv_path_TAR+set}" = set; then
  6421. echo $ECHO_N "(cached) $ECHO_C" >&6
  6422. else
  6423. case $TAR in
  6424. [\\/]* | ?:[\\/]*)
  6425. ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
  6426. ;;
  6427. *)
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. test -z "$as_dir" && as_dir=.
  6433. for ac_exec_ext in '' $ac_executable_extensions; do
  6434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6435. ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
  6436. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437. break 2
  6438. fi
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
  6443. ;;
  6444. esac
  6445. fi
  6446. TAR=$ac_cv_path_TAR
  6447. if test -n "$TAR"; then
  6448. { echo "$as_me:$LINENO: result: $TAR" >&5
  6449. echo "${ECHO_T}$TAR" >&6; }
  6450. else
  6451. { echo "$as_me:$LINENO: result: no" >&5
  6452. echo "${ECHO_T}no" >&6; }
  6453. fi
  6454. # Extract the first word of "pwd", so it can be a program name with args.
  6455. set dummy pwd; ac_word=$2
  6456. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6457. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6458. if test "${ac_cv_path_BINPWD+set}" = set; then
  6459. echo $ECHO_N "(cached) $ECHO_C" >&6
  6460. else
  6461. case $BINPWD in
  6462. [\\/]* | ?:[\\/]*)
  6463. ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
  6464. ;;
  6465. *)
  6466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6467. for as_dir in $PATH
  6468. do
  6469. IFS=$as_save_IFS
  6470. test -z "$as_dir" && as_dir=.
  6471. for ac_exec_ext in '' $ac_executable_extensions; do
  6472. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6473. ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
  6474. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6475. break 2
  6476. fi
  6477. done
  6478. done
  6479. IFS=$as_save_IFS
  6480. test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
  6481. ;;
  6482. esac
  6483. fi
  6484. BINPWD=$ac_cv_path_BINPWD
  6485. if test -n "$BINPWD"; then
  6486. { echo "$as_me:$LINENO: result: $BINPWD" >&5
  6487. echo "${ECHO_T}$BINPWD" >&6; }
  6488. else
  6489. { echo "$as_me:$LINENO: result: no" >&5
  6490. echo "${ECHO_T}no" >&6; }
  6491. fi
  6492. # Extract the first word of "Graphviz", so it can be a program name with args.
  6493. set dummy Graphviz; ac_word=$2
  6494. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6495. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6496. if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
  6497. echo $ECHO_N "(cached) $ECHO_C" >&6
  6498. else
  6499. case $GRAPHVIZ in
  6500. [\\/]* | ?:[\\/]*)
  6501. ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
  6502. ;;
  6503. *)
  6504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6505. for as_dir in $PATH
  6506. do
  6507. IFS=$as_save_IFS
  6508. test -z "$as_dir" && as_dir=.
  6509. for ac_exec_ext in '' $ac_executable_extensions; do
  6510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6511. ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
  6512. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6513. break 2
  6514. fi
  6515. done
  6516. done
  6517. IFS=$as_save_IFS
  6518. test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
  6519. ;;
  6520. esac
  6521. fi
  6522. GRAPHVIZ=$ac_cv_path_GRAPHVIZ
  6523. if test -n "$GRAPHVIZ"; then
  6524. { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
  6525. echo "${ECHO_T}$GRAPHVIZ" >&6; }
  6526. else
  6527. { echo "$as_me:$LINENO: result: no" >&5
  6528. echo "${ECHO_T}no" >&6; }
  6529. fi
  6530. if test "$GRAPHVIZ" != "echo Graphviz" ; then
  6531. cat >>confdefs.h <<\_ACEOF
  6532. #define HAVE_GRAPHVIZ 1
  6533. _ACEOF
  6534. if test "$llvm_cv_os_type" = "MingW" ; then
  6535. GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6536. fi
  6537. cat >>confdefs.h <<_ACEOF
  6538. #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
  6539. _ACEOF
  6540. fi
  6541. # Extract the first word of "dot", so it can be a program name with args.
  6542. set dummy dot; ac_word=$2
  6543. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6544. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6545. if test "${ac_cv_path_DOT+set}" = set; then
  6546. echo $ECHO_N "(cached) $ECHO_C" >&6
  6547. else
  6548. case $DOT in
  6549. [\\/]* | ?:[\\/]*)
  6550. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6551. ;;
  6552. *)
  6553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6554. for as_dir in $PATH
  6555. do
  6556. IFS=$as_save_IFS
  6557. test -z "$as_dir" && as_dir=.
  6558. for ac_exec_ext in '' $ac_executable_extensions; do
  6559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6560. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6561. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6562. break 2
  6563. fi
  6564. done
  6565. done
  6566. IFS=$as_save_IFS
  6567. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
  6568. ;;
  6569. esac
  6570. fi
  6571. DOT=$ac_cv_path_DOT
  6572. if test -n "$DOT"; then
  6573. { echo "$as_me:$LINENO: result: $DOT" >&5
  6574. echo "${ECHO_T}$DOT" >&6; }
  6575. else
  6576. { echo "$as_me:$LINENO: result: no" >&5
  6577. echo "${ECHO_T}no" >&6; }
  6578. fi
  6579. if test "$DOT" != "echo dot" ; then
  6580. cat >>confdefs.h <<\_ACEOF
  6581. #define HAVE_DOT 1
  6582. _ACEOF
  6583. if test "$llvm_cv_os_type" = "MingW" ; then
  6584. DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6585. fi
  6586. cat >>confdefs.h <<_ACEOF
  6587. #define LLVM_PATH_DOT "$DOT${EXEEXT}"
  6588. _ACEOF
  6589. fi
  6590. # Extract the first word of "fdp", so it can be a program name with args.
  6591. set dummy fdp; ac_word=$2
  6592. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6593. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6594. if test "${ac_cv_path_FDP+set}" = set; then
  6595. echo $ECHO_N "(cached) $ECHO_C" >&6
  6596. else
  6597. case $FDP in
  6598. [\\/]* | ?:[\\/]*)
  6599. ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
  6600. ;;
  6601. *)
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. test -z "$as_dir" && as_dir=.
  6607. for ac_exec_ext in '' $ac_executable_extensions; do
  6608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6609. ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
  6610. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6611. break 2
  6612. fi
  6613. done
  6614. done
  6615. IFS=$as_save_IFS
  6616. test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
  6617. ;;
  6618. esac
  6619. fi
  6620. FDP=$ac_cv_path_FDP
  6621. if test -n "$FDP"; then
  6622. { echo "$as_me:$LINENO: result: $FDP" >&5
  6623. echo "${ECHO_T}$FDP" >&6; }
  6624. else
  6625. { echo "$as_me:$LINENO: result: no" >&5
  6626. echo "${ECHO_T}no" >&6; }
  6627. fi
  6628. if test "$FDP" != "echo fdp" ; then
  6629. cat >>confdefs.h <<\_ACEOF
  6630. #define HAVE_FDP 1
  6631. _ACEOF
  6632. if test "$llvm_cv_os_type" = "MingW" ; then
  6633. FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6634. fi
  6635. cat >>confdefs.h <<_ACEOF
  6636. #define LLVM_PATH_FDP "$FDP${EXEEXT}"
  6637. _ACEOF
  6638. fi
  6639. # Extract the first word of "neato", so it can be a program name with args.
  6640. set dummy neato; ac_word=$2
  6641. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6642. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6643. if test "${ac_cv_path_NEATO+set}" = set; then
  6644. echo $ECHO_N "(cached) $ECHO_C" >&6
  6645. else
  6646. case $NEATO in
  6647. [\\/]* | ?:[\\/]*)
  6648. ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
  6649. ;;
  6650. *)
  6651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6652. for as_dir in $PATH
  6653. do
  6654. IFS=$as_save_IFS
  6655. test -z "$as_dir" && as_dir=.
  6656. for ac_exec_ext in '' $ac_executable_extensions; do
  6657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6658. ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
  6659. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6660. break 2
  6661. fi
  6662. done
  6663. done
  6664. IFS=$as_save_IFS
  6665. test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
  6666. ;;
  6667. esac
  6668. fi
  6669. NEATO=$ac_cv_path_NEATO
  6670. if test -n "$NEATO"; then
  6671. { echo "$as_me:$LINENO: result: $NEATO" >&5
  6672. echo "${ECHO_T}$NEATO" >&6; }
  6673. else
  6674. { echo "$as_me:$LINENO: result: no" >&5
  6675. echo "${ECHO_T}no" >&6; }
  6676. fi
  6677. if test "$NEATO" != "echo neato" ; then
  6678. cat >>confdefs.h <<\_ACEOF
  6679. #define HAVE_NEATO 1
  6680. _ACEOF
  6681. if test "$llvm_cv_os_type" = "MingW" ; then
  6682. NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6683. fi
  6684. cat >>confdefs.h <<_ACEOF
  6685. #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
  6686. _ACEOF
  6687. fi
  6688. # Extract the first word of "twopi", so it can be a program name with args.
  6689. set dummy twopi; ac_word=$2
  6690. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6691. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6692. if test "${ac_cv_path_TWOPI+set}" = set; then
  6693. echo $ECHO_N "(cached) $ECHO_C" >&6
  6694. else
  6695. case $TWOPI in
  6696. [\\/]* | ?:[\\/]*)
  6697. ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
  6698. ;;
  6699. *)
  6700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6701. for as_dir in $PATH
  6702. do
  6703. IFS=$as_save_IFS
  6704. test -z "$as_dir" && as_dir=.
  6705. for ac_exec_ext in '' $ac_executable_extensions; do
  6706. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6707. ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
  6708. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6709. break 2
  6710. fi
  6711. done
  6712. done
  6713. IFS=$as_save_IFS
  6714. test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
  6715. ;;
  6716. esac
  6717. fi
  6718. TWOPI=$ac_cv_path_TWOPI
  6719. if test -n "$TWOPI"; then
  6720. { echo "$as_me:$LINENO: result: $TWOPI" >&5
  6721. echo "${ECHO_T}$TWOPI" >&6; }
  6722. else
  6723. { echo "$as_me:$LINENO: result: no" >&5
  6724. echo "${ECHO_T}no" >&6; }
  6725. fi
  6726. if test "$TWOPI" != "echo twopi" ; then
  6727. cat >>confdefs.h <<\_ACEOF
  6728. #define HAVE_TWOPI 1
  6729. _ACEOF
  6730. if test "$llvm_cv_os_type" = "MingW" ; then
  6731. TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6732. fi
  6733. cat >>confdefs.h <<_ACEOF
  6734. #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
  6735. _ACEOF
  6736. fi
  6737. # Extract the first word of "circo", so it can be a program name with args.
  6738. set dummy circo; ac_word=$2
  6739. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6740. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6741. if test "${ac_cv_path_CIRCO+set}" = set; then
  6742. echo $ECHO_N "(cached) $ECHO_C" >&6
  6743. else
  6744. case $CIRCO in
  6745. [\\/]* | ?:[\\/]*)
  6746. ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
  6747. ;;
  6748. *)
  6749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6750. for as_dir in $PATH
  6751. do
  6752. IFS=$as_save_IFS
  6753. test -z "$as_dir" && as_dir=.
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6756. ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
  6757. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6758. break 2
  6759. fi
  6760. done
  6761. done
  6762. IFS=$as_save_IFS
  6763. test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
  6764. ;;
  6765. esac
  6766. fi
  6767. CIRCO=$ac_cv_path_CIRCO
  6768. if test -n "$CIRCO"; then
  6769. { echo "$as_me:$LINENO: result: $CIRCO" >&5
  6770. echo "${ECHO_T}$CIRCO" >&6; }
  6771. else
  6772. { echo "$as_me:$LINENO: result: no" >&5
  6773. echo "${ECHO_T}no" >&6; }
  6774. fi
  6775. if test "$CIRCO" != "echo circo" ; then
  6776. cat >>confdefs.h <<\_ACEOF
  6777. #define HAVE_CIRCO 1
  6778. _ACEOF
  6779. if test "$llvm_cv_os_type" = "MingW" ; then
  6780. CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6781. fi
  6782. cat >>confdefs.h <<_ACEOF
  6783. #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
  6784. _ACEOF
  6785. fi
  6786. for ac_prog in gv gsview32
  6787. do
  6788. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6789. set dummy $ac_prog; ac_word=$2
  6790. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6792. if test "${ac_cv_path_GV+set}" = set; then
  6793. echo $ECHO_N "(cached) $ECHO_C" >&6
  6794. else
  6795. case $GV in
  6796. [\\/]* | ?:[\\/]*)
  6797. ac_cv_path_GV="$GV" # Let the user override the test with a path.
  6798. ;;
  6799. *)
  6800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6801. for as_dir in $PATH
  6802. do
  6803. IFS=$as_save_IFS
  6804. test -z "$as_dir" && as_dir=.
  6805. for ac_exec_ext in '' $ac_executable_extensions; do
  6806. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6807. ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
  6808. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6809. break 2
  6810. fi
  6811. done
  6812. done
  6813. IFS=$as_save_IFS
  6814. ;;
  6815. esac
  6816. fi
  6817. GV=$ac_cv_path_GV
  6818. if test -n "$GV"; then
  6819. { echo "$as_me:$LINENO: result: $GV" >&5
  6820. echo "${ECHO_T}$GV" >&6; }
  6821. else
  6822. { echo "$as_me:$LINENO: result: no" >&5
  6823. echo "${ECHO_T}no" >&6; }
  6824. fi
  6825. test -n "$GV" && break
  6826. done
  6827. test -n "$GV" || GV="echo gv"
  6828. if test "$GV" != "echo gv" ; then
  6829. cat >>confdefs.h <<\_ACEOF
  6830. #define HAVE_GV 1
  6831. _ACEOF
  6832. if test "$llvm_cv_os_type" = "MingW" ; then
  6833. GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6834. fi
  6835. cat >>confdefs.h <<_ACEOF
  6836. #define LLVM_PATH_GV "$GV${EXEEXT}"
  6837. _ACEOF
  6838. fi
  6839. # Extract the first word of "dotty", so it can be a program name with args.
  6840. set dummy dotty; ac_word=$2
  6841. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6842. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6843. if test "${ac_cv_path_DOTTY+set}" = set; then
  6844. echo $ECHO_N "(cached) $ECHO_C" >&6
  6845. else
  6846. case $DOTTY in
  6847. [\\/]* | ?:[\\/]*)
  6848. ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
  6849. ;;
  6850. *)
  6851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6852. for as_dir in $PATH
  6853. do
  6854. IFS=$as_save_IFS
  6855. test -z "$as_dir" && as_dir=.
  6856. for ac_exec_ext in '' $ac_executable_extensions; do
  6857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6858. ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
  6859. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6860. break 2
  6861. fi
  6862. done
  6863. done
  6864. IFS=$as_save_IFS
  6865. test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
  6866. ;;
  6867. esac
  6868. fi
  6869. DOTTY=$ac_cv_path_DOTTY
  6870. if test -n "$DOTTY"; then
  6871. { echo "$as_me:$LINENO: result: $DOTTY" >&5
  6872. echo "${ECHO_T}$DOTTY" >&6; }
  6873. else
  6874. { echo "$as_me:$LINENO: result: no" >&5
  6875. echo "${ECHO_T}no" >&6; }
  6876. fi
  6877. if test "$DOTTY" != "echo dotty" ; then
  6878. cat >>confdefs.h <<\_ACEOF
  6879. #define HAVE_DOTTY 1
  6880. _ACEOF
  6881. if test "$llvm_cv_os_type" = "MingW" ; then
  6882. DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
  6883. fi
  6884. cat >>confdefs.h <<_ACEOF
  6885. #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
  6886. _ACEOF
  6887. fi
  6888. # Extract the first word of "perl", so it can be a program name with args.
  6889. set dummy perl; ac_word=$2
  6890. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6891. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6892. if test "${ac_cv_path_PERL+set}" = set; then
  6893. echo $ECHO_N "(cached) $ECHO_C" >&6
  6894. else
  6895. case $PERL in
  6896. [\\/]* | ?:[\\/]*)
  6897. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  6898. ;;
  6899. *)
  6900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6901. for as_dir in $PATH
  6902. do
  6903. IFS=$as_save_IFS
  6904. test -z "$as_dir" && as_dir=.
  6905. for ac_exec_ext in '' $ac_executable_extensions; do
  6906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6907. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  6908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6909. break 2
  6910. fi
  6911. done
  6912. done
  6913. IFS=$as_save_IFS
  6914. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
  6915. ;;
  6916. esac
  6917. fi
  6918. PERL=$ac_cv_path_PERL
  6919. if test -n "$PERL"; then
  6920. { echo "$as_me:$LINENO: result: $PERL" >&5
  6921. echo "${ECHO_T}$PERL" >&6; }
  6922. else
  6923. { echo "$as_me:$LINENO: result: no" >&5
  6924. echo "${ECHO_T}no" >&6; }
  6925. fi
  6926. if test "$PERL" != "none"; then
  6927. { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
  6928. echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
  6929. if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
  6930. { echo "$as_me:$LINENO: result: yes" >&5
  6931. echo "${ECHO_T}yes" >&6; }
  6932. else
  6933. PERL=none
  6934. { echo "$as_me:$LINENO: result: not found" >&5
  6935. echo "${ECHO_T}not found" >&6; }
  6936. fi
  6937. fi
  6938. if test x"$PERL" = xnone; then
  6939. HAVE_PERL=0
  6940. { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
  6941. echo "$as_me: error: perl is required but was not found, please install it" >&2;}
  6942. { (exit 1); exit 1; }; }
  6943. else
  6944. HAVE_PERL=1
  6945. fi
  6946. # Find a good install program. We prefer a C program (faster),
  6947. # so one script is as good as another. But avoid the broken or
  6948. # incompatible versions:
  6949. # SysV /etc/install, /usr/sbin/install
  6950. # SunOS /usr/etc/install
  6951. # IRIX /sbin/install
  6952. # AIX /bin/install
  6953. # AmigaOS /C/install, which installs bootblocks on floppy discs
  6954. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  6955. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  6956. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6957. # OS/2's system install, which has a completely different semantic
  6958. # ./install, which can be erroneously created by make from ./install.sh.
  6959. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  6960. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  6961. if test -z "$INSTALL"; then
  6962. if test "${ac_cv_path_install+set}" = set; then
  6963. echo $ECHO_N "(cached) $ECHO_C" >&6
  6964. else
  6965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6966. for as_dir in $PATH
  6967. do
  6968. IFS=$as_save_IFS
  6969. test -z "$as_dir" && as_dir=.
  6970. # Account for people who put trailing slashes in PATH elements.
  6971. case $as_dir/ in
  6972. ./ | .// | /cC/* | \
  6973. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  6974. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  6975. /usr/ucb/* ) ;;
  6976. *)
  6977. # OSF1 and SCO ODT 3.0 have their own names for install.
  6978. # Don't use installbsd from OSF since it installs stuff as root
  6979. # by default.
  6980. for ac_prog in ginstall scoinst install; do
  6981. for ac_exec_ext in '' $ac_executable_extensions; do
  6982. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  6983. if test $ac_prog = install &&
  6984. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6985. # AIX install. It has an incompatible calling convention.
  6986. :
  6987. elif test $ac_prog = install &&
  6988. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6989. # program-specific install script used by HP pwplus--don't use.
  6990. :
  6991. else
  6992. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  6993. break 3
  6994. fi
  6995. fi
  6996. done
  6997. done
  6998. ;;
  6999. esac
  7000. done
  7001. IFS=$as_save_IFS
  7002. fi
  7003. if test "${ac_cv_path_install+set}" = set; then
  7004. INSTALL=$ac_cv_path_install
  7005. else
  7006. # As a last resort, use the slow shell script. Don't cache a
  7007. # value for INSTALL within a source directory, because that will
  7008. # break other packages using the cache if that directory is
  7009. # removed, or if the value is a relative name.
  7010. INSTALL=$ac_install_sh
  7011. fi
  7012. fi
  7013. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  7014. echo "${ECHO_T}$INSTALL" >&6; }
  7015. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  7016. # It thinks the first close brace ends the variable substitution.
  7017. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  7018. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  7019. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  7020. # Extract the first word of "bzip2", so it can be a program name with args.
  7021. set dummy bzip2; ac_word=$2
  7022. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7023. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7024. if test "${ac_cv_path_BZIP2+set}" = set; then
  7025. echo $ECHO_N "(cached) $ECHO_C" >&6
  7026. else
  7027. case $BZIP2 in
  7028. [\\/]* | ?:[\\/]*)
  7029. ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
  7030. ;;
  7031. *)
  7032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7033. for as_dir in $PATH
  7034. do
  7035. IFS=$as_save_IFS
  7036. test -z "$as_dir" && as_dir=.
  7037. for ac_exec_ext in '' $ac_executable_extensions; do
  7038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7039. ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
  7040. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7041. break 2
  7042. fi
  7043. done
  7044. done
  7045. IFS=$as_save_IFS
  7046. ;;
  7047. esac
  7048. fi
  7049. BZIP2=$ac_cv_path_BZIP2
  7050. if test -n "$BZIP2"; then
  7051. { echo "$as_me:$LINENO: result: $BZIP2" >&5
  7052. echo "${ECHO_T}$BZIP2" >&6; }
  7053. else
  7054. { echo "$as_me:$LINENO: result: no" >&5
  7055. echo "${ECHO_T}no" >&6; }
  7056. fi
  7057. # Extract the first word of "doxygen", so it can be a program name with args.
  7058. set dummy doxygen; ac_word=$2
  7059. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7060. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7061. if test "${ac_cv_path_DOXYGEN+set}" = set; then
  7062. echo $ECHO_N "(cached) $ECHO_C" >&6
  7063. else
  7064. case $DOXYGEN in
  7065. [\\/]* | ?:[\\/]*)
  7066. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  7067. ;;
  7068. *)
  7069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7070. for as_dir in $PATH
  7071. do
  7072. IFS=$as_save_IFS
  7073. test -z "$as_dir" && as_dir=.
  7074. for ac_exec_ext in '' $ac_executable_extensions; do
  7075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7076. ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  7077. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7078. break 2
  7079. fi
  7080. done
  7081. done
  7082. IFS=$as_save_IFS
  7083. ;;
  7084. esac
  7085. fi
  7086. DOXYGEN=$ac_cv_path_DOXYGEN
  7087. if test -n "$DOXYGEN"; then
  7088. { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
  7089. echo "${ECHO_T}$DOXYGEN" >&6; }
  7090. else
  7091. { echo "$as_me:$LINENO: result: no" >&5
  7092. echo "${ECHO_T}no" >&6; }
  7093. fi
  7094. # Extract the first word of "groff", so it can be a program name with args.
  7095. set dummy groff; ac_word=$2
  7096. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7097. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7098. if test "${ac_cv_path_GROFF+set}" = set; then
  7099. echo $ECHO_N "(cached) $ECHO_C" >&6
  7100. else
  7101. case $GROFF in
  7102. [\\/]* | ?:[\\/]*)
  7103. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  7104. ;;
  7105. *)
  7106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7107. for as_dir in $PATH
  7108. do
  7109. IFS=$as_save_IFS
  7110. test -z "$as_dir" && as_dir=.
  7111. for ac_exec_ext in '' $ac_executable_extensions; do
  7112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7113. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  7114. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7115. break 2
  7116. fi
  7117. done
  7118. done
  7119. IFS=$as_save_IFS
  7120. ;;
  7121. esac
  7122. fi
  7123. GROFF=$ac_cv_path_GROFF
  7124. if test -n "$GROFF"; then
  7125. { echo "$as_me:$LINENO: result: $GROFF" >&5
  7126. echo "${ECHO_T}$GROFF" >&6; }
  7127. else
  7128. { echo "$as_me:$LINENO: result: no" >&5
  7129. echo "${ECHO_T}no" >&6; }
  7130. fi
  7131. # Extract the first word of "gzip", so it can be a program name with args.
  7132. set dummy gzip; ac_word=$2
  7133. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7134. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7135. if test "${ac_cv_path_GZIP+set}" = set; then
  7136. echo $ECHO_N "(cached) $ECHO_C" >&6
  7137. else
  7138. case $GZIP in
  7139. [\\/]* | ?:[\\/]*)
  7140. ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
  7141. ;;
  7142. *)
  7143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7144. for as_dir in $PATH
  7145. do
  7146. IFS=$as_save_IFS
  7147. test -z "$as_dir" && as_dir=.
  7148. for ac_exec_ext in '' $ac_executable_extensions; do
  7149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7150. ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
  7151. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7152. break 2
  7153. fi
  7154. done
  7155. done
  7156. IFS=$as_save_IFS
  7157. ;;
  7158. esac
  7159. fi
  7160. GZIP=$ac_cv_path_GZIP
  7161. if test -n "$GZIP"; then
  7162. { echo "$as_me:$LINENO: result: $GZIP" >&5
  7163. echo "${ECHO_T}$GZIP" >&6; }
  7164. else
  7165. { echo "$as_me:$LINENO: result: no" >&5
  7166. echo "${ECHO_T}no" >&6; }
  7167. fi
  7168. # Extract the first word of "pod2html", so it can be a program name with args.
  7169. set dummy pod2html; ac_word=$2
  7170. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7171. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7172. if test "${ac_cv_path_POD2HTML+set}" = set; then
  7173. echo $ECHO_N "(cached) $ECHO_C" >&6
  7174. else
  7175. case $POD2HTML in
  7176. [\\/]* | ?:[\\/]*)
  7177. ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
  7178. ;;
  7179. *)
  7180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7181. for as_dir in $PATH
  7182. do
  7183. IFS=$as_save_IFS
  7184. test -z "$as_dir" && as_dir=.
  7185. for ac_exec_ext in '' $ac_executable_extensions; do
  7186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7187. ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
  7188. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7189. break 2
  7190. fi
  7191. done
  7192. done
  7193. IFS=$as_save_IFS
  7194. ;;
  7195. esac
  7196. fi
  7197. POD2HTML=$ac_cv_path_POD2HTML
  7198. if test -n "$POD2HTML"; then
  7199. { echo "$as_me:$LINENO: result: $POD2HTML" >&5
  7200. echo "${ECHO_T}$POD2HTML" >&6; }
  7201. else
  7202. { echo "$as_me:$LINENO: result: no" >&5
  7203. echo "${ECHO_T}no" >&6; }
  7204. fi
  7205. # Extract the first word of "pod2man", so it can be a program name with args.
  7206. set dummy pod2man; ac_word=$2
  7207. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7209. if test "${ac_cv_path_POD2MAN+set}" = set; then
  7210. echo $ECHO_N "(cached) $ECHO_C" >&6
  7211. else
  7212. case $POD2MAN in
  7213. [\\/]* | ?:[\\/]*)
  7214. ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
  7215. ;;
  7216. *)
  7217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7218. for as_dir in $PATH
  7219. do
  7220. IFS=$as_save_IFS
  7221. test -z "$as_dir" && as_dir=.
  7222. for ac_exec_ext in '' $ac_executable_extensions; do
  7223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7224. ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
  7225. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7226. break 2
  7227. fi
  7228. done
  7229. done
  7230. IFS=$as_save_IFS
  7231. ;;
  7232. esac
  7233. fi
  7234. POD2MAN=$ac_cv_path_POD2MAN
  7235. if test -n "$POD2MAN"; then
  7236. { echo "$as_me:$LINENO: result: $POD2MAN" >&5
  7237. echo "${ECHO_T}$POD2MAN" >&6; }
  7238. else
  7239. { echo "$as_me:$LINENO: result: no" >&5
  7240. echo "${ECHO_T}no" >&6; }
  7241. fi
  7242. # Extract the first word of "runtest", so it can be a program name with args.
  7243. set dummy runtest; ac_word=$2
  7244. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7246. if test "${ac_cv_path_RUNTEST+set}" = set; then
  7247. echo $ECHO_N "(cached) $ECHO_C" >&6
  7248. else
  7249. case $RUNTEST in
  7250. [\\/]* | ?:[\\/]*)
  7251. ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
  7252. ;;
  7253. *)
  7254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7255. for as_dir in $PATH
  7256. do
  7257. IFS=$as_save_IFS
  7258. test -z "$as_dir" && as_dir=.
  7259. for ac_exec_ext in '' $ac_executable_extensions; do
  7260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7261. ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
  7262. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7263. break 2
  7264. fi
  7265. done
  7266. done
  7267. IFS=$as_save_IFS
  7268. ;;
  7269. esac
  7270. fi
  7271. RUNTEST=$ac_cv_path_RUNTEST
  7272. if test -n "$RUNTEST"; then
  7273. { echo "$as_me:$LINENO: result: $RUNTEST" >&5
  7274. echo "${ECHO_T}$RUNTEST" >&6; }
  7275. else
  7276. { echo "$as_me:$LINENO: result: no" >&5
  7277. echo "${ECHO_T}no" >&6; }
  7278. fi
  7279. no_itcl=true
  7280. { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
  7281. echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
  7282. # Check whether --with-tclinclude was given.
  7283. if test "${with_tclinclude+set}" = set; then
  7284. withval=$with_tclinclude; with_tclinclude=${withval}
  7285. else
  7286. with_tclinclude=''
  7287. fi
  7288. if test "${ac_cv_path_tclsh+set}" = set; then
  7289. echo $ECHO_N "(cached) $ECHO_C" >&6
  7290. else
  7291. if test x"${with_tclinclude}" != x ; then
  7292. if test -f ${with_tclinclude}/tclsh ; then
  7293. ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
  7294. elif test -f ${with_tclinclude}/src/tclsh ; then
  7295. ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
  7296. else
  7297. { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
  7298. echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
  7299. { (exit 1); exit 1; }; }
  7300. fi
  7301. fi
  7302. if test x"${ac_cv_path_tclsh}" = x ; then
  7303. { echo "$as_me:$LINENO: result: none" >&5
  7304. echo "${ECHO_T}none" >&6; }
  7305. for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
  7306. do
  7307. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7308. set dummy $ac_prog; ac_word=$2
  7309. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7310. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7311. if test "${ac_cv_path_TCLSH+set}" = set; then
  7312. echo $ECHO_N "(cached) $ECHO_C" >&6
  7313. else
  7314. case $TCLSH in
  7315. [\\/]* | ?:[\\/]*)
  7316. ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
  7317. ;;
  7318. *)
  7319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7320. for as_dir in $PATH
  7321. do
  7322. IFS=$as_save_IFS
  7323. test -z "$as_dir" && as_dir=.
  7324. for ac_exec_ext in '' $ac_executable_extensions; do
  7325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7326. ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
  7327. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7328. break 2
  7329. fi
  7330. done
  7331. done
  7332. IFS=$as_save_IFS
  7333. ;;
  7334. esac
  7335. fi
  7336. TCLSH=$ac_cv_path_TCLSH
  7337. if test -n "$TCLSH"; then
  7338. { echo "$as_me:$LINENO: result: $TCLSH" >&5
  7339. echo "${ECHO_T}$TCLSH" >&6; }
  7340. else
  7341. { echo "$as_me:$LINENO: result: no" >&5
  7342. echo "${ECHO_T}no" >&6; }
  7343. fi
  7344. test -n "$TCLSH" && break
  7345. done
  7346. if test x"${TCLSH}" = x ; then
  7347. ac_cv_path_tclsh='';
  7348. else
  7349. ac_cv_path_tclsh="${TCLSH}";
  7350. fi
  7351. else
  7352. { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
  7353. echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
  7354. TCLSH="${ac_cv_path_tclsh}"
  7355. fi
  7356. fi
  7357. # Extract the first word of "zip", so it can be a program name with args.
  7358. set dummy zip; ac_word=$2
  7359. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7361. if test "${ac_cv_path_ZIP+set}" = set; then
  7362. echo $ECHO_N "(cached) $ECHO_C" >&6
  7363. else
  7364. case $ZIP in
  7365. [\\/]* | ?:[\\/]*)
  7366. ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  7367. ;;
  7368. *)
  7369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7370. for as_dir in $PATH
  7371. do
  7372. IFS=$as_save_IFS
  7373. test -z "$as_dir" && as_dir=.
  7374. for ac_exec_ext in '' $ac_executable_extensions; do
  7375. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7376. ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
  7377. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7378. break 2
  7379. fi
  7380. done
  7381. done
  7382. IFS=$as_save_IFS
  7383. ;;
  7384. esac
  7385. fi
  7386. ZIP=$ac_cv_path_ZIP
  7387. if test -n "$ZIP"; then
  7388. { echo "$as_me:$LINENO: result: $ZIP" >&5
  7389. echo "${ECHO_T}$ZIP" >&6; }
  7390. else
  7391. { echo "$as_me:$LINENO: result: no" >&5
  7392. echo "${ECHO_T}no" >&6; }
  7393. fi
  7394. for ac_prog in ocamlc
  7395. do
  7396. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7397. set dummy $ac_prog; ac_word=$2
  7398. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7399. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7400. if test "${ac_cv_path_OCAMLC+set}" = set; then
  7401. echo $ECHO_N "(cached) $ECHO_C" >&6
  7402. else
  7403. case $OCAMLC in
  7404. [\\/]* | ?:[\\/]*)
  7405. ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
  7406. ;;
  7407. *)
  7408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7409. for as_dir in $PATH
  7410. do
  7411. IFS=$as_save_IFS
  7412. test -z "$as_dir" && as_dir=.
  7413. for ac_exec_ext in '' $ac_executable_extensions; do
  7414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7415. ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
  7416. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7417. break 2
  7418. fi
  7419. done
  7420. done
  7421. IFS=$as_save_IFS
  7422. ;;
  7423. esac
  7424. fi
  7425. OCAMLC=$ac_cv_path_OCAMLC
  7426. if test -n "$OCAMLC"; then
  7427. { echo "$as_me:$LINENO: result: $OCAMLC" >&5
  7428. echo "${ECHO_T}$OCAMLC" >&6; }
  7429. else
  7430. { echo "$as_me:$LINENO: result: no" >&5
  7431. echo "${ECHO_T}no" >&6; }
  7432. fi
  7433. test -n "$OCAMLC" && break
  7434. done
  7435. for ac_prog in ocamlopt
  7436. do
  7437. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7438. set dummy $ac_prog; ac_word=$2
  7439. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7440. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7441. if test "${ac_cv_path_OCAMLOPT+set}" = set; then
  7442. echo $ECHO_N "(cached) $ECHO_C" >&6
  7443. else
  7444. case $OCAMLOPT in
  7445. [\\/]* | ?:[\\/]*)
  7446. ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
  7447. ;;
  7448. *)
  7449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7450. for as_dir in $PATH
  7451. do
  7452. IFS=$as_save_IFS
  7453. test -z "$as_dir" && as_dir=.
  7454. for ac_exec_ext in '' $ac_executable_extensions; do
  7455. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7456. ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
  7457. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7458. break 2
  7459. fi
  7460. done
  7461. done
  7462. IFS=$as_save_IFS
  7463. ;;
  7464. esac
  7465. fi
  7466. OCAMLOPT=$ac_cv_path_OCAMLOPT
  7467. if test -n "$OCAMLOPT"; then
  7468. { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
  7469. echo "${ECHO_T}$OCAMLOPT" >&6; }
  7470. else
  7471. { echo "$as_me:$LINENO: result: no" >&5
  7472. echo "${ECHO_T}no" >&6; }
  7473. fi
  7474. test -n "$OCAMLOPT" && break
  7475. done
  7476. for ac_prog in ocamldep
  7477. do
  7478. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7479. set dummy $ac_prog; ac_word=$2
  7480. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7481. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7482. if test "${ac_cv_path_OCAMLDEP+set}" = set; then
  7483. echo $ECHO_N "(cached) $ECHO_C" >&6
  7484. else
  7485. case $OCAMLDEP in
  7486. [\\/]* | ?:[\\/]*)
  7487. ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
  7488. ;;
  7489. *)
  7490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7491. for as_dir in $PATH
  7492. do
  7493. IFS=$as_save_IFS
  7494. test -z "$as_dir" && as_dir=.
  7495. for ac_exec_ext in '' $ac_executable_extensions; do
  7496. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7497. ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
  7498. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7499. break 2
  7500. fi
  7501. done
  7502. done
  7503. IFS=$as_save_IFS
  7504. ;;
  7505. esac
  7506. fi
  7507. OCAMLDEP=$ac_cv_path_OCAMLDEP
  7508. if test -n "$OCAMLDEP"; then
  7509. { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
  7510. echo "${ECHO_T}$OCAMLDEP" >&6; }
  7511. else
  7512. { echo "$as_me:$LINENO: result: no" >&5
  7513. echo "${ECHO_T}no" >&6; }
  7514. fi
  7515. test -n "$OCAMLDEP" && break
  7516. done
  7517. for ac_prog in ocamldoc
  7518. do
  7519. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7520. set dummy $ac_prog; ac_word=$2
  7521. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7522. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7523. if test "${ac_cv_path_OCAMLDOC+set}" = set; then
  7524. echo $ECHO_N "(cached) $ECHO_C" >&6
  7525. else
  7526. case $OCAMLDOC in
  7527. [\\/]* | ?:[\\/]*)
  7528. ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
  7529. ;;
  7530. *)
  7531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7532. for as_dir in $PATH
  7533. do
  7534. IFS=$as_save_IFS
  7535. test -z "$as_dir" && as_dir=.
  7536. for ac_exec_ext in '' $ac_executable_extensions; do
  7537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7538. ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
  7539. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7540. break 2
  7541. fi
  7542. done
  7543. done
  7544. IFS=$as_save_IFS
  7545. ;;
  7546. esac
  7547. fi
  7548. OCAMLDOC=$ac_cv_path_OCAMLDOC
  7549. if test -n "$OCAMLDOC"; then
  7550. { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
  7551. echo "${ECHO_T}$OCAMLDOC" >&6; }
  7552. else
  7553. { echo "$as_me:$LINENO: result: no" >&5
  7554. echo "${ECHO_T}no" >&6; }
  7555. fi
  7556. test -n "$OCAMLDOC" && break
  7557. done
  7558. for ac_prog in gas as
  7559. do
  7560. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7561. set dummy $ac_prog; ac_word=$2
  7562. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7563. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7564. if test "${ac_cv_path_GAS+set}" = set; then
  7565. echo $ECHO_N "(cached) $ECHO_C" >&6
  7566. else
  7567. case $GAS in
  7568. [\\/]* | ?:[\\/]*)
  7569. ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
  7570. ;;
  7571. *)
  7572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7573. for as_dir in $PATH
  7574. do
  7575. IFS=$as_save_IFS
  7576. test -z "$as_dir" && as_dir=.
  7577. for ac_exec_ext in '' $ac_executable_extensions; do
  7578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7579. ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
  7580. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7581. break 2
  7582. fi
  7583. done
  7584. done
  7585. IFS=$as_save_IFS
  7586. ;;
  7587. esac
  7588. fi
  7589. GAS=$ac_cv_path_GAS
  7590. if test -n "$GAS"; then
  7591. { echo "$as_me:$LINENO: result: $GAS" >&5
  7592. echo "${ECHO_T}$GAS" >&6; }
  7593. else
  7594. { echo "$as_me:$LINENO: result: no" >&5
  7595. echo "${ECHO_T}no" >&6; }
  7596. fi
  7597. test -n "$GAS" && break
  7598. done
  7599. { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
  7600. echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
  7601. if test "${llvm_cv_link_use_r+set}" = set; then
  7602. echo $ECHO_N "(cached) $ECHO_C" >&6
  7603. else
  7604. ac_ext=c
  7605. ac_cpp='$CPP $CPPFLAGS'
  7606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7609. oldcflags="$CFLAGS"
  7610. CFLAGS="$CFLAGS -Wl,-R."
  7611. cat >conftest.$ac_ext <<_ACEOF
  7612. /* confdefs.h. */
  7613. _ACEOF
  7614. cat confdefs.h >>conftest.$ac_ext
  7615. cat >>conftest.$ac_ext <<_ACEOF
  7616. /* end confdefs.h. */
  7617. int
  7618. main ()
  7619. {
  7620. int main() { return 0; }
  7621. ;
  7622. return 0;
  7623. }
  7624. _ACEOF
  7625. rm -f conftest.$ac_objext conftest$ac_exeext
  7626. if { (ac_try="$ac_link"
  7627. case "(($ac_try" in
  7628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7629. *) ac_try_echo=$ac_try;;
  7630. esac
  7631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7632. (eval "$ac_link") 2>conftest.er1
  7633. ac_status=$?
  7634. grep -v '^ *+' conftest.er1 >conftest.err
  7635. rm -f conftest.er1
  7636. cat conftest.err >&5
  7637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. (exit $ac_status); } &&
  7639. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7640. { (case "(($ac_try" in
  7641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7642. *) ac_try_echo=$ac_try;;
  7643. esac
  7644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7645. (eval "$ac_try") 2>&5
  7646. ac_status=$?
  7647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7648. (exit $ac_status); }; } &&
  7649. { ac_try='test -s conftest$ac_exeext'
  7650. { (case "(($ac_try" in
  7651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7652. *) ac_try_echo=$ac_try;;
  7653. esac
  7654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7655. (eval "$ac_try") 2>&5
  7656. ac_status=$?
  7657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. (exit $ac_status); }; }; then
  7659. llvm_cv_link_use_r=yes
  7660. else
  7661. echo "$as_me: failed program was:" >&5
  7662. sed 's/^/| /' conftest.$ac_ext >&5
  7663. llvm_cv_link_use_r=no
  7664. fi
  7665. rm -f core conftest.err conftest.$ac_objext \
  7666. conftest$ac_exeext conftest.$ac_ext
  7667. CFLAGS="$oldcflags"
  7668. ac_ext=c
  7669. ac_cpp='$CPP $CPPFLAGS'
  7670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7673. fi
  7674. { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
  7675. echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
  7676. if test "$llvm_cv_link_use_r" = yes ; then
  7677. cat >>confdefs.h <<\_ACEOF
  7678. #define HAVE_LINK_R 1
  7679. _ACEOF
  7680. fi
  7681. { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
  7682. echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
  7683. if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
  7684. echo $ECHO_N "(cached) $ECHO_C" >&6
  7685. else
  7686. ac_ext=c
  7687. ac_cpp='$CPP $CPPFLAGS'
  7688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7691. oldcflags="$CFLAGS"
  7692. CFLAGS="$CFLAGS -Wl,-export-dynamic"
  7693. cat >conftest.$ac_ext <<_ACEOF
  7694. /* confdefs.h. */
  7695. _ACEOF
  7696. cat confdefs.h >>conftest.$ac_ext
  7697. cat >>conftest.$ac_ext <<_ACEOF
  7698. /* end confdefs.h. */
  7699. int
  7700. main ()
  7701. {
  7702. int main() { return 0; }
  7703. ;
  7704. return 0;
  7705. }
  7706. _ACEOF
  7707. rm -f conftest.$ac_objext conftest$ac_exeext
  7708. if { (ac_try="$ac_link"
  7709. case "(($ac_try" in
  7710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7711. *) ac_try_echo=$ac_try;;
  7712. esac
  7713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7714. (eval "$ac_link") 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } &&
  7721. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7722. { (case "(($ac_try" in
  7723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7724. *) ac_try_echo=$ac_try;;
  7725. esac
  7726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7727. (eval "$ac_try") 2>&5
  7728. ac_status=$?
  7729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7730. (exit $ac_status); }; } &&
  7731. { ac_try='test -s conftest$ac_exeext'
  7732. { (case "(($ac_try" in
  7733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7734. *) ac_try_echo=$ac_try;;
  7735. esac
  7736. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7737. (eval "$ac_try") 2>&5
  7738. ac_status=$?
  7739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7740. (exit $ac_status); }; }; then
  7741. llvm_cv_link_use_export_dynamic=yes
  7742. else
  7743. echo "$as_me: failed program was:" >&5
  7744. sed 's/^/| /' conftest.$ac_ext >&5
  7745. llvm_cv_link_use_export_dynamic=no
  7746. fi
  7747. rm -f core conftest.err conftest.$ac_objext \
  7748. conftest$ac_exeext conftest.$ac_ext
  7749. CFLAGS="$oldcflags"
  7750. ac_ext=c
  7751. ac_cpp='$CPP $CPPFLAGS'
  7752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7755. fi
  7756. { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
  7757. echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
  7758. if test "$llvm_cv_link_use_export_dynamic" = yes ; then
  7759. cat >>confdefs.h <<\_ACEOF
  7760. #define HAVE_LINK_EXPORT_DYNAMIC 1
  7761. _ACEOF
  7762. fi
  7763. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7764. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7765. if test "${ac_cv_c_const+set}" = set; then
  7766. echo $ECHO_N "(cached) $ECHO_C" >&6
  7767. else
  7768. cat >conftest.$ac_ext <<_ACEOF
  7769. /* confdefs.h. */
  7770. _ACEOF
  7771. cat confdefs.h >>conftest.$ac_ext
  7772. cat >>conftest.$ac_ext <<_ACEOF
  7773. /* end confdefs.h. */
  7774. int
  7775. main ()
  7776. {
  7777. /* FIXME: Include the comments suggested by Paul. */
  7778. #ifndef __cplusplus
  7779. /* Ultrix mips cc rejects this. */
  7780. typedef int charset[2];
  7781. const charset x;
  7782. /* SunOS 4.1.1 cc rejects this. */
  7783. char const *const *ccp;
  7784. char **p;
  7785. /* NEC SVR4.0.2 mips cc rejects this. */
  7786. struct point {int x, y;};
  7787. static struct point const zero = {0,0};
  7788. /* AIX XL C 1.02.0.0 rejects this.
  7789. It does not let you subtract one const X* pointer from another in
  7790. an arm of an if-expression whose if-part is not a constant
  7791. expression */
  7792. const char *g = "string";
  7793. ccp = &g + (g ? g-g : 0);
  7794. /* HPUX 7.0 cc rejects these. */
  7795. ++ccp;
  7796. p = (char**) ccp;
  7797. ccp = (char const *const *) p;
  7798. { /* SCO 3.2v4 cc rejects this. */
  7799. char *t;
  7800. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7801. *t++ = 0;
  7802. if (s) return 0;
  7803. }
  7804. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7805. int x[] = {25, 17};
  7806. const int *foo = &x[0];
  7807. ++foo;
  7808. }
  7809. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7810. typedef const int *iptr;
  7811. iptr p = 0;
  7812. ++p;
  7813. }
  7814. { /* AIX XL C 1.02.0.0 rejects this saying
  7815. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7816. struct s { int j; const int *ap[3]; };
  7817. struct s *b; b->j = 5;
  7818. }
  7819. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7820. const int foo = 10;
  7821. if (!foo) return 0;
  7822. }
  7823. return !x[0] && !zero.x;
  7824. #endif
  7825. ;
  7826. return 0;
  7827. }
  7828. _ACEOF
  7829. rm -f conftest.$ac_objext
  7830. if { (ac_try="$ac_compile"
  7831. case "(($ac_try" in
  7832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7833. *) ac_try_echo=$ac_try;;
  7834. esac
  7835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7836. (eval "$ac_compile") 2>conftest.er1
  7837. ac_status=$?
  7838. grep -v '^ *+' conftest.er1 >conftest.err
  7839. rm -f conftest.er1
  7840. cat conftest.err >&5
  7841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7842. (exit $ac_status); } &&
  7843. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7844. { (case "(($ac_try" in
  7845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7846. *) ac_try_echo=$ac_try;;
  7847. esac
  7848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7849. (eval "$ac_try") 2>&5
  7850. ac_status=$?
  7851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7852. (exit $ac_status); }; } &&
  7853. { ac_try='test -s conftest.$ac_objext'
  7854. { (case "(($ac_try" in
  7855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7856. *) ac_try_echo=$ac_try;;
  7857. esac
  7858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7859. (eval "$ac_try") 2>&5
  7860. ac_status=$?
  7861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7862. (exit $ac_status); }; }; then
  7863. ac_cv_c_const=yes
  7864. else
  7865. echo "$as_me: failed program was:" >&5
  7866. sed 's/^/| /' conftest.$ac_ext >&5
  7867. ac_cv_c_const=no
  7868. fi
  7869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7870. fi
  7871. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7872. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7873. if test $ac_cv_c_const = no; then
  7874. cat >>confdefs.h <<\_ACEOF
  7875. #define const
  7876. _ACEOF
  7877. fi
  7878. ac_header_dirent=no
  7879. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  7880. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  7881. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  7882. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  7883. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7884. echo $ECHO_N "(cached) $ECHO_C" >&6
  7885. else
  7886. cat >conftest.$ac_ext <<_ACEOF
  7887. /* confdefs.h. */
  7888. _ACEOF
  7889. cat confdefs.h >>conftest.$ac_ext
  7890. cat >>conftest.$ac_ext <<_ACEOF
  7891. /* end confdefs.h. */
  7892. #include <sys/types.h>
  7893. #include <$ac_hdr>
  7894. int
  7895. main ()
  7896. {
  7897. if ((DIR *) 0)
  7898. return 0;
  7899. ;
  7900. return 0;
  7901. }
  7902. _ACEOF
  7903. rm -f conftest.$ac_objext
  7904. if { (ac_try="$ac_compile"
  7905. case "(($ac_try" in
  7906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7907. *) ac_try_echo=$ac_try;;
  7908. esac
  7909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7910. (eval "$ac_compile") 2>conftest.er1
  7911. ac_status=$?
  7912. grep -v '^ *+' conftest.er1 >conftest.err
  7913. rm -f conftest.er1
  7914. cat conftest.err >&5
  7915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7916. (exit $ac_status); } &&
  7917. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7918. { (case "(($ac_try" in
  7919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7920. *) ac_try_echo=$ac_try;;
  7921. esac
  7922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7923. (eval "$ac_try") 2>&5
  7924. ac_status=$?
  7925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7926. (exit $ac_status); }; } &&
  7927. { ac_try='test -s conftest.$ac_objext'
  7928. { (case "(($ac_try" in
  7929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7930. *) ac_try_echo=$ac_try;;
  7931. esac
  7932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7933. (eval "$ac_try") 2>&5
  7934. ac_status=$?
  7935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7936. (exit $ac_status); }; }; then
  7937. eval "$as_ac_Header=yes"
  7938. else
  7939. echo "$as_me: failed program was:" >&5
  7940. sed 's/^/| /' conftest.$ac_ext >&5
  7941. eval "$as_ac_Header=no"
  7942. fi
  7943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7944. fi
  7945. ac_res=`eval echo '${'$as_ac_Header'}'`
  7946. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7947. echo "${ECHO_T}$ac_res" >&6; }
  7948. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7949. cat >>confdefs.h <<_ACEOF
  7950. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  7951. _ACEOF
  7952. ac_header_dirent=$ac_hdr; break
  7953. fi
  7954. done
  7955. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  7956. if test $ac_header_dirent = dirent.h; then
  7957. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  7958. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  7959. if test "${ac_cv_search_opendir+set}" = set; then
  7960. echo $ECHO_N "(cached) $ECHO_C" >&6
  7961. else
  7962. ac_func_search_save_LIBS=$LIBS
  7963. cat >conftest.$ac_ext <<_ACEOF
  7964. /* confdefs.h. */
  7965. _ACEOF
  7966. cat confdefs.h >>conftest.$ac_ext
  7967. cat >>conftest.$ac_ext <<_ACEOF
  7968. /* end confdefs.h. */
  7969. /* Override any GCC internal prototype to avoid an error.
  7970. Use char because int might match the return type of a GCC
  7971. builtin and then its argument prototype would still apply. */
  7972. #ifdef __cplusplus
  7973. extern "C"
  7974. #endif
  7975. char opendir ();
  7976. int
  7977. main ()
  7978. {
  7979. return opendir ();
  7980. ;
  7981. return 0;
  7982. }
  7983. _ACEOF
  7984. for ac_lib in '' dir; do
  7985. if test -z "$ac_lib"; then
  7986. ac_res="none required"
  7987. else
  7988. ac_res=-l$ac_lib
  7989. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7990. fi
  7991. rm -f conftest.$ac_objext conftest$ac_exeext
  7992. if { (ac_try="$ac_link"
  7993. case "(($ac_try" in
  7994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7995. *) ac_try_echo=$ac_try;;
  7996. esac
  7997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7998. (eval "$ac_link") 2>conftest.er1
  7999. ac_status=$?
  8000. grep -v '^ *+' conftest.er1 >conftest.err
  8001. rm -f conftest.er1
  8002. cat conftest.err >&5
  8003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004. (exit $ac_status); } &&
  8005. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8006. { (case "(($ac_try" in
  8007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8008. *) ac_try_echo=$ac_try;;
  8009. esac
  8010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8011. (eval "$ac_try") 2>&5
  8012. ac_status=$?
  8013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8014. (exit $ac_status); }; } &&
  8015. { ac_try='test -s conftest$ac_exeext'
  8016. { (case "(($ac_try" in
  8017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8018. *) ac_try_echo=$ac_try;;
  8019. esac
  8020. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8021. (eval "$ac_try") 2>&5
  8022. ac_status=$?
  8023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); }; }; then
  8025. ac_cv_search_opendir=$ac_res
  8026. else
  8027. echo "$as_me: failed program was:" >&5
  8028. sed 's/^/| /' conftest.$ac_ext >&5
  8029. fi
  8030. rm -f core conftest.err conftest.$ac_objext \
  8031. conftest$ac_exeext
  8032. if test "${ac_cv_search_opendir+set}" = set; then
  8033. break
  8034. fi
  8035. done
  8036. if test "${ac_cv_search_opendir+set}" = set; then
  8037. :
  8038. else
  8039. ac_cv_search_opendir=no
  8040. fi
  8041. rm conftest.$ac_ext
  8042. LIBS=$ac_func_search_save_LIBS
  8043. fi
  8044. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  8045. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  8046. ac_res=$ac_cv_search_opendir
  8047. if test "$ac_res" != no; then
  8048. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8049. fi
  8050. else
  8051. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  8052. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  8053. if test "${ac_cv_search_opendir+set}" = set; then
  8054. echo $ECHO_N "(cached) $ECHO_C" >&6
  8055. else
  8056. ac_func_search_save_LIBS=$LIBS
  8057. cat >conftest.$ac_ext <<_ACEOF
  8058. /* confdefs.h. */
  8059. _ACEOF
  8060. cat confdefs.h >>conftest.$ac_ext
  8061. cat >>conftest.$ac_ext <<_ACEOF
  8062. /* end confdefs.h. */
  8063. /* Override any GCC internal prototype to avoid an error.
  8064. Use char because int might match the return type of a GCC
  8065. builtin and then its argument prototype would still apply. */
  8066. #ifdef __cplusplus
  8067. extern "C"
  8068. #endif
  8069. char opendir ();
  8070. int
  8071. main ()
  8072. {
  8073. return opendir ();
  8074. ;
  8075. return 0;
  8076. }
  8077. _ACEOF
  8078. for ac_lib in '' x; do
  8079. if test -z "$ac_lib"; then
  8080. ac_res="none required"
  8081. else
  8082. ac_res=-l$ac_lib
  8083. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8084. fi
  8085. rm -f conftest.$ac_objext conftest$ac_exeext
  8086. if { (ac_try="$ac_link"
  8087. case "(($ac_try" in
  8088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8089. *) ac_try_echo=$ac_try;;
  8090. esac
  8091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8092. (eval "$ac_link") 2>conftest.er1
  8093. ac_status=$?
  8094. grep -v '^ *+' conftest.er1 >conftest.err
  8095. rm -f conftest.er1
  8096. cat conftest.err >&5
  8097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8098. (exit $ac_status); } &&
  8099. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8100. { (case "(($ac_try" in
  8101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8102. *) ac_try_echo=$ac_try;;
  8103. esac
  8104. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8105. (eval "$ac_try") 2>&5
  8106. ac_status=$?
  8107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8108. (exit $ac_status); }; } &&
  8109. { ac_try='test -s conftest$ac_exeext'
  8110. { (case "(($ac_try" in
  8111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8112. *) ac_try_echo=$ac_try;;
  8113. esac
  8114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8115. (eval "$ac_try") 2>&5
  8116. ac_status=$?
  8117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8118. (exit $ac_status); }; }; then
  8119. ac_cv_search_opendir=$ac_res
  8120. else
  8121. echo "$as_me: failed program was:" >&5
  8122. sed 's/^/| /' conftest.$ac_ext >&5
  8123. fi
  8124. rm -f core conftest.err conftest.$ac_objext \
  8125. conftest$ac_exeext
  8126. if test "${ac_cv_search_opendir+set}" = set; then
  8127. break
  8128. fi
  8129. done
  8130. if test "${ac_cv_search_opendir+set}" = set; then
  8131. :
  8132. else
  8133. ac_cv_search_opendir=no
  8134. fi
  8135. rm conftest.$ac_ext
  8136. LIBS=$ac_func_search_save_LIBS
  8137. fi
  8138. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  8139. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  8140. ac_res=$ac_cv_search_opendir
  8141. if test "$ac_res" != no; then
  8142. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8143. fi
  8144. fi
  8145. for ac_header in dlfcn.h
  8146. do
  8147. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8148. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8149. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8150. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8151. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8152. echo $ECHO_N "(cached) $ECHO_C" >&6
  8153. fi
  8154. ac_res=`eval echo '${'$as_ac_Header'}'`
  8155. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8156. echo "${ECHO_T}$ac_res" >&6; }
  8157. else
  8158. # Is the header compilable?
  8159. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8160. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8161. cat >conftest.$ac_ext <<_ACEOF
  8162. /* confdefs.h. */
  8163. _ACEOF
  8164. cat confdefs.h >>conftest.$ac_ext
  8165. cat >>conftest.$ac_ext <<_ACEOF
  8166. /* end confdefs.h. */
  8167. $ac_includes_default
  8168. #include <$ac_header>
  8169. _ACEOF
  8170. rm -f conftest.$ac_objext
  8171. if { (ac_try="$ac_compile"
  8172. case "(($ac_try" in
  8173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8174. *) ac_try_echo=$ac_try;;
  8175. esac
  8176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8177. (eval "$ac_compile") 2>conftest.er1
  8178. ac_status=$?
  8179. grep -v '^ *+' conftest.er1 >conftest.err
  8180. rm -f conftest.er1
  8181. cat conftest.err >&5
  8182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8183. (exit $ac_status); } &&
  8184. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8185. { (case "(($ac_try" in
  8186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8187. *) ac_try_echo=$ac_try;;
  8188. esac
  8189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8190. (eval "$ac_try") 2>&5
  8191. ac_status=$?
  8192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8193. (exit $ac_status); }; } &&
  8194. { ac_try='test -s conftest.$ac_objext'
  8195. { (case "(($ac_try" in
  8196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8197. *) ac_try_echo=$ac_try;;
  8198. esac
  8199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8200. (eval "$ac_try") 2>&5
  8201. ac_status=$?
  8202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8203. (exit $ac_status); }; }; then
  8204. ac_header_compiler=yes
  8205. else
  8206. echo "$as_me: failed program was:" >&5
  8207. sed 's/^/| /' conftest.$ac_ext >&5
  8208. ac_header_compiler=no
  8209. fi
  8210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8211. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8212. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8213. # Is the header present?
  8214. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8215. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8216. cat >conftest.$ac_ext <<_ACEOF
  8217. /* confdefs.h. */
  8218. _ACEOF
  8219. cat confdefs.h >>conftest.$ac_ext
  8220. cat >>conftest.$ac_ext <<_ACEOF
  8221. /* end confdefs.h. */
  8222. #include <$ac_header>
  8223. _ACEOF
  8224. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8225. case "(($ac_try" in
  8226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8227. *) ac_try_echo=$ac_try;;
  8228. esac
  8229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8230. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8231. ac_status=$?
  8232. grep -v '^ *+' conftest.er1 >conftest.err
  8233. rm -f conftest.er1
  8234. cat conftest.err >&5
  8235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8236. (exit $ac_status); } >/dev/null; then
  8237. if test -s conftest.err; then
  8238. ac_cpp_err=$ac_c_preproc_warn_flag
  8239. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8240. else
  8241. ac_cpp_err=
  8242. fi
  8243. else
  8244. ac_cpp_err=yes
  8245. fi
  8246. if test -z "$ac_cpp_err"; then
  8247. ac_header_preproc=yes
  8248. else
  8249. echo "$as_me: failed program was:" >&5
  8250. sed 's/^/| /' conftest.$ac_ext >&5
  8251. ac_header_preproc=no
  8252. fi
  8253. rm -f conftest.err conftest.$ac_ext
  8254. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8255. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8256. # So? What about this header?
  8257. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8258. yes:no: )
  8259. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8260. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8261. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8262. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8263. ac_header_preproc=yes
  8264. ;;
  8265. no:yes:* )
  8266. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8267. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8268. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8269. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8270. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8271. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8272. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8273. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8274. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8275. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8276. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8277. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8278. ( cat <<\_ASBOX
  8279. ## ----------------------------------- ##
  8280. ## Report this to llvmbugs@cs.uiuc.edu ##
  8281. ## ----------------------------------- ##
  8282. _ASBOX
  8283. ) | sed "s/^/$as_me: WARNING: /" >&2
  8284. ;;
  8285. esac
  8286. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8287. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8288. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8289. echo $ECHO_N "(cached) $ECHO_C" >&6
  8290. else
  8291. eval "$as_ac_Header=\$ac_header_preproc"
  8292. fi
  8293. ac_res=`eval echo '${'$as_ac_Header'}'`
  8294. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8295. echo "${ECHO_T}$ac_res" >&6; }
  8296. fi
  8297. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8298. cat >>confdefs.h <<_ACEOF
  8299. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8300. _ACEOF
  8301. fi
  8302. done
  8303. # Check whether --enable-ltdl-install was given.
  8304. if test "${enable_ltdl_install+set}" = set; then
  8305. enableval=$enable_ltdl_install;
  8306. fi
  8307. if test x"${enable_ltdl_install-no}" != xno; then
  8308. INSTALL_LTDL_TRUE=
  8309. INSTALL_LTDL_FALSE='#'
  8310. else
  8311. INSTALL_LTDL_TRUE='#'
  8312. INSTALL_LTDL_FALSE=
  8313. fi
  8314. if test x"${enable_ltdl_convenience-no}" != xno; then
  8315. CONVENIENCE_LTDL_TRUE=
  8316. CONVENIENCE_LTDL_FALSE='#'
  8317. else
  8318. CONVENIENCE_LTDL_TRUE='#'
  8319. CONVENIENCE_LTDL_FALSE=
  8320. fi
  8321. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8322. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8323. library_names_spec=
  8324. libname_spec='lib$name'
  8325. soname_spec=
  8326. shrext_cmds=".so"
  8327. postinstall_cmds=
  8328. postuninstall_cmds=
  8329. finish_cmds=
  8330. finish_eval=
  8331. shlibpath_var=
  8332. shlibpath_overrides_runpath=unknown
  8333. version_type=none
  8334. dynamic_linker="$host_os ld.so"
  8335. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8336. if test "$GCC" = yes; then
  8337. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8338. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8339. # if the path contains ";" then we assume it to be the separator
  8340. # otherwise default to the standard path separator (i.e. ":") - it is
  8341. # assumed that no part of a normal pathname contains ";" but that should
  8342. # okay in the real world where ";" in dirpaths is itself problematic.
  8343. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8344. else
  8345. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8346. fi
  8347. else
  8348. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8349. fi
  8350. need_lib_prefix=unknown
  8351. hardcode_into_libs=no
  8352. # when you set need_version to no, make sure it does not cause -set_version
  8353. # flags to be left without arguments
  8354. need_version=unknown
  8355. case $host_os in
  8356. aix3*)
  8357. version_type=linux
  8358. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8359. shlibpath_var=LIBPATH
  8360. # AIX 3 has no versioning support, so we append a major version to the name.
  8361. soname_spec='${libname}${release}${shared_ext}$major'
  8362. ;;
  8363. aix4* | aix5*)
  8364. version_type=linux
  8365. need_lib_prefix=no
  8366. need_version=no
  8367. hardcode_into_libs=yes
  8368. if test "$host_cpu" = ia64; then
  8369. # AIX 5 supports IA64
  8370. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8371. shlibpath_var=LD_LIBRARY_PATH
  8372. else
  8373. # With GCC up to 2.95.x, collect2 would create an import file
  8374. # for dependence libraries. The import file would start with
  8375. # the line `#! .'. This would cause the generated library to
  8376. # depend on `.', always an invalid library. This was fixed in
  8377. # development snapshots of GCC prior to 3.0.
  8378. case $host_os in
  8379. aix4 | aix4.[01] | aix4.[01].*)
  8380. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8381. echo ' yes '
  8382. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8383. :
  8384. else
  8385. can_build_shared=no
  8386. fi
  8387. ;;
  8388. esac
  8389. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8390. # soname into executable. Probably we can add versioning support to
  8391. # collect2, so additional links can be useful in future.
  8392. if test "$aix_use_runtimelinking" = yes; then
  8393. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8394. # instead of lib<name>.a to let people know that these are not
  8395. # typical AIX shared libraries.
  8396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8397. else
  8398. # We preserve .a as extension for shared libraries through AIX4.2
  8399. # and later when we are not doing run time linking.
  8400. library_names_spec='${libname}${release}.a $libname.a'
  8401. soname_spec='${libname}${release}${shared_ext}$major'
  8402. fi
  8403. shlibpath_var=LIBPATH
  8404. fi
  8405. ;;
  8406. amigaos*)
  8407. library_names_spec='$libname.ixlibrary $libname.a'
  8408. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8409. 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'
  8410. ;;
  8411. beos*)
  8412. library_names_spec='${libname}${shared_ext}'
  8413. dynamic_linker="$host_os ld.so"
  8414. shlibpath_var=LIBRARY_PATH
  8415. ;;
  8416. bsdi[45]*)
  8417. version_type=linux
  8418. need_version=no
  8419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8420. soname_spec='${libname}${release}${shared_ext}$major'
  8421. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8422. shlibpath_var=LD_LIBRARY_PATH
  8423. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8424. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8425. # the default ld.so.conf also contains /usr/contrib/lib and
  8426. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8427. # libtool to hard-code these into programs
  8428. ;;
  8429. cygwin* | mingw* | pw32*)
  8430. version_type=windows
  8431. shrext_cmds=".dll"
  8432. need_version=no
  8433. need_lib_prefix=no
  8434. case $GCC,$host_os in
  8435. yes,cygwin* | yes,mingw* | yes,pw32*)
  8436. library_names_spec='$libname.dll.a'
  8437. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8438. postinstall_cmds='base_file=`basename \${file}`~
  8439. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8440. dldir=$destdir/`dirname \$dlpath`~
  8441. test -d \$dldir || mkdir -p \$dldir~
  8442. $install_prog $dir/$dlname \$dldir/$dlname~
  8443. chmod a+x \$dldir/$dlname'
  8444. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8445. dlpath=$dir/\$dldll~
  8446. $rm \$dlpath'
  8447. shlibpath_overrides_runpath=yes
  8448. case $host_os in
  8449. cygwin*)
  8450. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8451. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8452. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8453. ;;
  8454. mingw*)
  8455. # MinGW DLLs use traditional 'lib' prefix
  8456. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8457. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8458. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8459. # It is most probably a Windows format PATH printed by
  8460. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8461. # path with ; separators, and with drive letters. We can handle the
  8462. # drive letters (cygwin fileutils understands them), so leave them,
  8463. # especially as we might pass files found there to a mingw objdump,
  8464. # which wouldn't understand a cygwinified path. Ahh.
  8465. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8466. else
  8467. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8468. fi
  8469. ;;
  8470. pw32*)
  8471. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8472. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8473. ;;
  8474. esac
  8475. ;;
  8476. *)
  8477. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8478. ;;
  8479. esac
  8480. dynamic_linker='Win32 ld.exe'
  8481. # FIXME: first we should search . and the directory the executable is in
  8482. shlibpath_var=PATH
  8483. ;;
  8484. darwin* | rhapsody*)
  8485. dynamic_linker="$host_os dyld"
  8486. version_type=darwin
  8487. need_lib_prefix=no
  8488. need_version=no
  8489. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8490. soname_spec='${libname}${release}${major}$shared_ext'
  8491. shlibpath_overrides_runpath=yes
  8492. shlibpath_var=DYLD_LIBRARY_PATH
  8493. shrext_cmds='.dylib'
  8494. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8495. if test "$GCC" = yes; then
  8496. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  8497. else
  8498. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8499. fi
  8500. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8501. ;;
  8502. dgux*)
  8503. version_type=linux
  8504. need_lib_prefix=no
  8505. need_version=no
  8506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8507. soname_spec='${libname}${release}${shared_ext}$major'
  8508. shlibpath_var=LD_LIBRARY_PATH
  8509. ;;
  8510. freebsd1*)
  8511. dynamic_linker=no
  8512. ;;
  8513. kfreebsd*-gnu)
  8514. version_type=linux
  8515. need_lib_prefix=no
  8516. need_version=no
  8517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8518. soname_spec='${libname}${release}${shared_ext}$major'
  8519. shlibpath_var=LD_LIBRARY_PATH
  8520. shlibpath_overrides_runpath=no
  8521. hardcode_into_libs=yes
  8522. dynamic_linker='GNU ld.so'
  8523. ;;
  8524. freebsd* | dragonfly*)
  8525. # DragonFly does not have aout. When/if they implement a new
  8526. # versioning mechanism, adjust this.
  8527. if test -x /usr/bin/objformat; then
  8528. objformat=`/usr/bin/objformat`
  8529. else
  8530. case $host_os in
  8531. freebsd[123]*) objformat=aout ;;
  8532. *) objformat=elf ;;
  8533. esac
  8534. fi
  8535. version_type=freebsd-$objformat
  8536. case $version_type in
  8537. freebsd-elf*)
  8538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8539. need_version=no
  8540. need_lib_prefix=no
  8541. ;;
  8542. freebsd-*)
  8543. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8544. need_version=yes
  8545. ;;
  8546. esac
  8547. shlibpath_var=LD_LIBRARY_PATH
  8548. case $host_os in
  8549. freebsd2*)
  8550. shlibpath_overrides_runpath=yes
  8551. ;;
  8552. freebsd3.[01]* | freebsdelf3.[01]*)
  8553. shlibpath_overrides_runpath=yes
  8554. hardcode_into_libs=yes
  8555. ;;
  8556. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8557. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8558. shlibpath_overrides_runpath=no
  8559. hardcode_into_libs=yes
  8560. ;;
  8561. freebsd*) # from 4.6 on
  8562. shlibpath_overrides_runpath=yes
  8563. hardcode_into_libs=yes
  8564. ;;
  8565. esac
  8566. ;;
  8567. gnu*)
  8568. version_type=linux
  8569. need_lib_prefix=no
  8570. need_version=no
  8571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8572. soname_spec='${libname}${release}${shared_ext}$major'
  8573. shlibpath_var=LD_LIBRARY_PATH
  8574. hardcode_into_libs=yes
  8575. ;;
  8576. hpux9* | hpux10* | hpux11*)
  8577. # Give a soname corresponding to the major version so that dld.sl refuses to
  8578. # link against other versions.
  8579. version_type=sunos
  8580. need_lib_prefix=no
  8581. need_version=no
  8582. case $host_cpu in
  8583. ia64*)
  8584. shrext_cmds='.so'
  8585. hardcode_into_libs=yes
  8586. dynamic_linker="$host_os dld.so"
  8587. shlibpath_var=LD_LIBRARY_PATH
  8588. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8590. soname_spec='${libname}${release}${shared_ext}$major'
  8591. if test "X$HPUX_IA64_MODE" = X32; then
  8592. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8593. else
  8594. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8595. fi
  8596. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8597. ;;
  8598. hppa*64*)
  8599. shrext_cmds='.sl'
  8600. hardcode_into_libs=yes
  8601. dynamic_linker="$host_os dld.sl"
  8602. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8603. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8605. soname_spec='${libname}${release}${shared_ext}$major'
  8606. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8607. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8608. ;;
  8609. *)
  8610. shrext_cmds='.sl'
  8611. dynamic_linker="$host_os dld.sl"
  8612. shlibpath_var=SHLIB_PATH
  8613. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8615. soname_spec='${libname}${release}${shared_ext}$major'
  8616. ;;
  8617. esac
  8618. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8619. postinstall_cmds='chmod 555 $lib'
  8620. ;;
  8621. interix3*)
  8622. version_type=linux
  8623. need_lib_prefix=no
  8624. need_version=no
  8625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8626. soname_spec='${libname}${release}${shared_ext}$major'
  8627. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8628. shlibpath_var=LD_LIBRARY_PATH
  8629. shlibpath_overrides_runpath=no
  8630. hardcode_into_libs=yes
  8631. ;;
  8632. irix5* | irix6* | nonstopux*)
  8633. case $host_os in
  8634. nonstopux*) version_type=nonstopux ;;
  8635. *)
  8636. if test "$lt_cv_prog_gnu_ld" = yes; then
  8637. version_type=linux
  8638. else
  8639. version_type=irix
  8640. fi ;;
  8641. esac
  8642. need_lib_prefix=no
  8643. need_version=no
  8644. soname_spec='${libname}${release}${shared_ext}$major'
  8645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8646. case $host_os in
  8647. irix5* | nonstopux*)
  8648. libsuff= shlibsuff=
  8649. ;;
  8650. *)
  8651. case $LD in # libtool.m4 will add one of these switches to LD
  8652. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8653. libsuff= shlibsuff= libmagic=32-bit;;
  8654. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8655. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8656. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8657. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8658. *) libsuff= shlibsuff= libmagic=never-match;;
  8659. esac
  8660. ;;
  8661. esac
  8662. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8663. shlibpath_overrides_runpath=no
  8664. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8665. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8666. hardcode_into_libs=yes
  8667. ;;
  8668. # No shared lib support for Linux oldld, aout, or coff.
  8669. linux*oldld* | linux*aout* | linux*coff*)
  8670. dynamic_linker=no
  8671. ;;
  8672. # This must be Linux ELF.
  8673. linux*)
  8674. version_type=linux
  8675. need_lib_prefix=no
  8676. need_version=no
  8677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8678. soname_spec='${libname}${release}${shared_ext}$major'
  8679. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8680. shlibpath_var=LD_LIBRARY_PATH
  8681. shlibpath_overrides_runpath=no
  8682. # This implies no fast_install, which is unacceptable.
  8683. # Some rework will be needed to allow for fast_install
  8684. # before this can be enabled.
  8685. hardcode_into_libs=yes
  8686. # Append ld.so.conf contents to the search path
  8687. if test -f /etc/ld.so.conf; then
  8688. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8689. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8690. fi
  8691. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8692. # powerpc, because MkLinux only supported shared libraries with the
  8693. # GNU dynamic linker. Since this was broken with cross compilers,
  8694. # most powerpc-linux boxes support dynamic linking these days and
  8695. # people can always --disable-shared, the test was removed, and we
  8696. # assume the GNU/Linux dynamic linker is in use.
  8697. dynamic_linker='GNU/Linux ld.so'
  8698. ;;
  8699. knetbsd*-gnu)
  8700. version_type=linux
  8701. need_lib_prefix=no
  8702. need_version=no
  8703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8704. soname_spec='${libname}${release}${shared_ext}$major'
  8705. shlibpath_var=LD_LIBRARY_PATH
  8706. shlibpath_overrides_runpath=no
  8707. hardcode_into_libs=yes
  8708. dynamic_linker='GNU ld.so'
  8709. ;;
  8710. netbsd*)
  8711. version_type=sunos
  8712. need_lib_prefix=no
  8713. need_version=no
  8714. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8716. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8717. dynamic_linker='NetBSD (a.out) ld.so'
  8718. else
  8719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8720. soname_spec='${libname}${release}${shared_ext}$major'
  8721. dynamic_linker='NetBSD ld.elf_so'
  8722. fi
  8723. shlibpath_var=LD_LIBRARY_PATH
  8724. shlibpath_overrides_runpath=yes
  8725. hardcode_into_libs=yes
  8726. ;;
  8727. newsos6)
  8728. version_type=linux
  8729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. shlibpath_overrides_runpath=yes
  8732. ;;
  8733. nto-qnx*)
  8734. version_type=linux
  8735. need_lib_prefix=no
  8736. need_version=no
  8737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8738. soname_spec='${libname}${release}${shared_ext}$major'
  8739. shlibpath_var=LD_LIBRARY_PATH
  8740. shlibpath_overrides_runpath=yes
  8741. ;;
  8742. openbsd*)
  8743. version_type=sunos
  8744. sys_lib_dlsearch_path_spec="/usr/lib"
  8745. need_lib_prefix=no
  8746. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8747. case $host_os in
  8748. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8749. *) need_version=no ;;
  8750. esac
  8751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8752. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8753. shlibpath_var=LD_LIBRARY_PATH
  8754. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8755. case $host_os in
  8756. openbsd2.[89] | openbsd2.[89].*)
  8757. shlibpath_overrides_runpath=no
  8758. ;;
  8759. *)
  8760. shlibpath_overrides_runpath=yes
  8761. ;;
  8762. esac
  8763. else
  8764. shlibpath_overrides_runpath=yes
  8765. fi
  8766. ;;
  8767. os2*)
  8768. libname_spec='$name'
  8769. shrext_cmds=".dll"
  8770. need_lib_prefix=no
  8771. library_names_spec='$libname${shared_ext} $libname.a'
  8772. dynamic_linker='OS/2 ld.exe'
  8773. shlibpath_var=LIBPATH
  8774. ;;
  8775. osf3* | osf4* | osf5*)
  8776. version_type=osf
  8777. need_lib_prefix=no
  8778. need_version=no
  8779. soname_spec='${libname}${release}${shared_ext}$major'
  8780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8781. shlibpath_var=LD_LIBRARY_PATH
  8782. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8783. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8784. ;;
  8785. solaris*)
  8786. version_type=linux
  8787. need_lib_prefix=no
  8788. need_version=no
  8789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. shlibpath_var=LD_LIBRARY_PATH
  8792. shlibpath_overrides_runpath=yes
  8793. hardcode_into_libs=yes
  8794. # ldd complains unless libraries are executable
  8795. postinstall_cmds='chmod +x $lib'
  8796. ;;
  8797. sunos4*)
  8798. version_type=sunos
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8800. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8801. shlibpath_var=LD_LIBRARY_PATH
  8802. shlibpath_overrides_runpath=yes
  8803. if test "$with_gnu_ld" = yes; then
  8804. need_lib_prefix=no
  8805. fi
  8806. need_version=yes
  8807. ;;
  8808. sysv4 | sysv4.3*)
  8809. version_type=linux
  8810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8811. soname_spec='${libname}${release}${shared_ext}$major'
  8812. shlibpath_var=LD_LIBRARY_PATH
  8813. case $host_vendor in
  8814. sni)
  8815. shlibpath_overrides_runpath=no
  8816. need_lib_prefix=no
  8817. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8818. runpath_var=LD_RUN_PATH
  8819. ;;
  8820. siemens)
  8821. need_lib_prefix=no
  8822. ;;
  8823. motorola)
  8824. need_lib_prefix=no
  8825. need_version=no
  8826. shlibpath_overrides_runpath=no
  8827. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8828. ;;
  8829. esac
  8830. ;;
  8831. sysv4*MP*)
  8832. if test -d /usr/nec ;then
  8833. version_type=linux
  8834. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8835. soname_spec='$libname${shared_ext}.$major'
  8836. shlibpath_var=LD_LIBRARY_PATH
  8837. fi
  8838. ;;
  8839. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8840. version_type=freebsd-elf
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8844. soname_spec='${libname}${release}${shared_ext}$major'
  8845. shlibpath_var=LD_LIBRARY_PATH
  8846. hardcode_into_libs=yes
  8847. if test "$with_gnu_ld" = yes; then
  8848. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8849. shlibpath_overrides_runpath=no
  8850. else
  8851. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8852. shlibpath_overrides_runpath=yes
  8853. case $host_os in
  8854. sco3.2v5*)
  8855. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8856. ;;
  8857. esac
  8858. fi
  8859. sys_lib_dlsearch_path_spec='/usr/lib'
  8860. ;;
  8861. uts4*)
  8862. version_type=linux
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8864. soname_spec='${libname}${release}${shared_ext}$major'
  8865. shlibpath_var=LD_LIBRARY_PATH
  8866. ;;
  8867. *)
  8868. dynamic_linker=no
  8869. ;;
  8870. esac
  8871. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8872. echo "${ECHO_T}$dynamic_linker" >&6; }
  8873. test "$dynamic_linker" = no && can_build_shared=no
  8874. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8875. if test "$GCC" = yes; then
  8876. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8877. fi
  8878. { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
  8879. echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
  8880. if test "${libltdl_cv_shlibext+set}" = set; then
  8881. echo $ECHO_N "(cached) $ECHO_C" >&6
  8882. else
  8883. module=yes
  8884. eval libltdl_cv_shlibext=$shrext_cmds
  8885. fi
  8886. { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
  8887. echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
  8888. if test -n "$libltdl_cv_shlibext"; then
  8889. cat >>confdefs.h <<_ACEOF
  8890. #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
  8891. _ACEOF
  8892. fi
  8893. { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
  8894. echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
  8895. if test "${libltdl_cv_shlibpath_var+set}" = set; then
  8896. echo $ECHO_N "(cached) $ECHO_C" >&6
  8897. else
  8898. libltdl_cv_shlibpath_var="$shlibpath_var"
  8899. fi
  8900. { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
  8901. echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
  8902. if test -n "$libltdl_cv_shlibpath_var"; then
  8903. cat >>confdefs.h <<_ACEOF
  8904. #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
  8905. _ACEOF
  8906. fi
  8907. { echo "$as_me:$LINENO: checking for the default library search path" >&5
  8908. echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
  8909. if test "${libltdl_cv_sys_search_path+set}" = set; then
  8910. echo $ECHO_N "(cached) $ECHO_C" >&6
  8911. else
  8912. libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
  8913. fi
  8914. { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
  8915. echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
  8916. if test -n "$libltdl_cv_sys_search_path"; then
  8917. sys_search_path=
  8918. for dir in $libltdl_cv_sys_search_path; do
  8919. if test -z "$sys_search_path"; then
  8920. sys_search_path="$dir"
  8921. else
  8922. sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
  8923. fi
  8924. done
  8925. cat >>confdefs.h <<_ACEOF
  8926. #define LTDL_SYSSEARCHPATH "$sys_search_path"
  8927. _ACEOF
  8928. fi
  8929. { echo "$as_me:$LINENO: checking for objdir" >&5
  8930. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  8931. if test "${libltdl_cv_objdir+set}" = set; then
  8932. echo $ECHO_N "(cached) $ECHO_C" >&6
  8933. else
  8934. libltdl_cv_objdir="$objdir"
  8935. if test -n "$objdir"; then
  8936. :
  8937. else
  8938. rm -f .libs 2>/dev/null
  8939. mkdir .libs 2>/dev/null
  8940. if test -d .libs; then
  8941. libltdl_cv_objdir=.libs
  8942. else
  8943. # MS-DOS does not allow filenames that begin with a dot.
  8944. libltdl_cv_objdir=_libs
  8945. fi
  8946. rmdir .libs 2>/dev/null
  8947. fi
  8948. fi
  8949. { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
  8950. echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
  8951. cat >>confdefs.h <<_ACEOF
  8952. #define LTDL_OBJDIR "$libltdl_cv_objdir/"
  8953. _ACEOF
  8954. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8955. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  8956. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  8957. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  8958. echo $ECHO_N "(cached) $ECHO_C" >&6
  8959. else
  8960. # These are sane defaults that work on at least a few old systems.
  8961. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8962. # Character class describing NM global symbol codes.
  8963. symcode='[BCDEGRST]'
  8964. # Regexp to match symbols that can be accessed directly from C.
  8965. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8966. # Transform an extracted symbol line into a proper C declaration
  8967. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8968. # Transform an extracted symbol line into symbol name and symbol address
  8969. 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'"
  8970. # Define system-specific variables.
  8971. case $host_os in
  8972. aix*)
  8973. symcode='[BCDT]'
  8974. ;;
  8975. cygwin* | mingw* | pw32*)
  8976. symcode='[ABCDGISTW]'
  8977. ;;
  8978. hpux*) # Its linker distinguishes data from code symbols
  8979. if test "$host_cpu" = ia64; then
  8980. symcode='[ABCDEGRST]'
  8981. fi
  8982. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8983. 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'"
  8984. ;;
  8985. linux*)
  8986. if test "$host_cpu" = ia64; then
  8987. symcode='[ABCDGIRSTW]'
  8988. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8989. 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'"
  8990. fi
  8991. ;;
  8992. irix* | nonstopux*)
  8993. symcode='[BCDEGRST]'
  8994. ;;
  8995. osf*)
  8996. symcode='[BCDEGQRST]'
  8997. ;;
  8998. solaris*)
  8999. symcode='[BDRT]'
  9000. ;;
  9001. sco3.2v5*)
  9002. symcode='[DT]'
  9003. ;;
  9004. sysv4.2uw2*)
  9005. symcode='[DT]'
  9006. ;;
  9007. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  9008. symcode='[ABDT]'
  9009. ;;
  9010. sysv4)
  9011. symcode='[DFNSTU]'
  9012. ;;
  9013. esac
  9014. # Handle CRLF in mingw tool chain
  9015. opt_cr=
  9016. case $build_os in
  9017. mingw*)
  9018. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  9019. ;;
  9020. esac
  9021. # If we're using GNU nm, then use its standard symbol codes.
  9022. case `$NM -V 2>&1` in
  9023. *GNU* | *'with BFD'*)
  9024. symcode='[ABCDGIRSTW]' ;;
  9025. esac
  9026. # Try without a prefix undercore, then with it.
  9027. for ac_symprfx in "" "_"; do
  9028. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9029. symxfrm="\\1 $ac_symprfx\\2 \\2"
  9030. # Write the raw and C identifiers.
  9031. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9032. # Check to see that the pipe works correctly.
  9033. pipe_works=no
  9034. rm -f conftest*
  9035. cat > conftest.$ac_ext <<EOF
  9036. #ifdef __cplusplus
  9037. extern "C" {
  9038. #endif
  9039. char nm_test_var;
  9040. void nm_test_func(){}
  9041. #ifdef __cplusplus
  9042. }
  9043. #endif
  9044. int main(){nm_test_var='a';nm_test_func();return(0);}
  9045. EOF
  9046. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9047. (eval $ac_compile) 2>&5
  9048. ac_status=$?
  9049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9050. (exit $ac_status); }; then
  9051. # Now try to grab the symbols.
  9052. nlist=conftest.nm
  9053. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  9054. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  9055. ac_status=$?
  9056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9057. (exit $ac_status); } && test -s "$nlist"; then
  9058. # Try sorting and uniquifying the output.
  9059. if sort "$nlist" | uniq > "$nlist"T; then
  9060. mv -f "$nlist"T "$nlist"
  9061. else
  9062. rm -f "$nlist"T
  9063. fi
  9064. # Make sure that we snagged all the symbols we need.
  9065. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  9066. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  9067. cat <<EOF > conftest.$ac_ext
  9068. #ifdef __cplusplus
  9069. extern "C" {
  9070. #endif
  9071. EOF
  9072. # Now generate the symbol file.
  9073. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  9074. cat <<EOF >> conftest.$ac_ext
  9075. #if defined (__STDC__) && __STDC__
  9076. # define lt_ptr_t void *
  9077. #else
  9078. # define lt_ptr_t char *
  9079. # define const
  9080. #endif
  9081. /* The mapping between symbol names and symbols. */
  9082. const struct {
  9083. const char *name;
  9084. lt_ptr_t address;
  9085. }
  9086. lt_preloaded_symbols[] =
  9087. {
  9088. EOF
  9089. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  9090. cat <<\EOF >> conftest.$ac_ext
  9091. {0, (lt_ptr_t) 0}
  9092. };
  9093. #ifdef __cplusplus
  9094. }
  9095. #endif
  9096. EOF
  9097. # Now try linking the two files.
  9098. mv conftest.$ac_objext conftstm.$ac_objext
  9099. lt_save_LIBS="$LIBS"
  9100. lt_save_CFLAGS="$CFLAGS"
  9101. LIBS="conftstm.$ac_objext"
  9102. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  9103. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9104. (eval $ac_link) 2>&5
  9105. ac_status=$?
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  9108. pipe_works=yes
  9109. fi
  9110. LIBS="$lt_save_LIBS"
  9111. CFLAGS="$lt_save_CFLAGS"
  9112. else
  9113. echo "cannot find nm_test_func in $nlist" >&5
  9114. fi
  9115. else
  9116. echo "cannot find nm_test_var in $nlist" >&5
  9117. fi
  9118. else
  9119. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9120. fi
  9121. else
  9122. echo "$progname: failed program was:" >&5
  9123. cat conftest.$ac_ext >&5
  9124. fi
  9125. rm -f conftest* conftst*
  9126. # Do not use the global_symbol_pipe unless it works.
  9127. if test "$pipe_works" = yes; then
  9128. break
  9129. else
  9130. lt_cv_sys_global_symbol_pipe=
  9131. fi
  9132. done
  9133. fi
  9134. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9135. lt_cv_sys_global_symbol_to_cdecl=
  9136. fi
  9137. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9138. { echo "$as_me:$LINENO: result: failed" >&5
  9139. echo "${ECHO_T}failed" >&6; }
  9140. else
  9141. { echo "$as_me:$LINENO: result: ok" >&5
  9142. echo "${ECHO_T}ok" >&6; }
  9143. fi
  9144. { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
  9145. echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
  9146. if test "${libltdl_cv_preloaded_symbols+set}" = set; then
  9147. echo $ECHO_N "(cached) $ECHO_C" >&6
  9148. else
  9149. if test -n "$lt_cv_sys_global_symbol_pipe"; then
  9150. libltdl_cv_preloaded_symbols=yes
  9151. else
  9152. libltdl_cv_preloaded_symbols=no
  9153. fi
  9154. fi
  9155. { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
  9156. echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
  9157. if test x"$libltdl_cv_preloaded_symbols" = xyes; then
  9158. cat >>confdefs.h <<\_ACEOF
  9159. #define HAVE_PRELOADED_SYMBOLS 1
  9160. _ACEOF
  9161. fi
  9162. LIBADD_DL=
  9163. ac_ext=c
  9164. ac_cpp='$CPP $CPPFLAGS'
  9165. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9166. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9167. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9168. { echo "$as_me:$LINENO: checking for shl_load" >&5
  9169. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  9170. if test "${ac_cv_func_shl_load+set}" = set; then
  9171. echo $ECHO_N "(cached) $ECHO_C" >&6
  9172. else
  9173. cat >conftest.$ac_ext <<_ACEOF
  9174. /* confdefs.h. */
  9175. _ACEOF
  9176. cat confdefs.h >>conftest.$ac_ext
  9177. cat >>conftest.$ac_ext <<_ACEOF
  9178. /* end confdefs.h. */
  9179. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9180. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9181. #define shl_load innocuous_shl_load
  9182. /* System header to define __stub macros and hopefully few prototypes,
  9183. which can conflict with char shl_load (); below.
  9184. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9185. <limits.h> exists even on freestanding compilers. */
  9186. #ifdef __STDC__
  9187. # include <limits.h>
  9188. #else
  9189. # include <assert.h>
  9190. #endif
  9191. #undef shl_load
  9192. /* Override any GCC internal prototype to avoid an error.
  9193. Use char because int might match the return type of a GCC
  9194. builtin and then its argument prototype would still apply. */
  9195. #ifdef __cplusplus
  9196. extern "C"
  9197. #endif
  9198. char shl_load ();
  9199. /* The GNU C library defines this for functions which it implements
  9200. to always fail with ENOSYS. Some functions are actually named
  9201. something starting with __ and the normal name is an alias. */
  9202. #if defined __stub_shl_load || defined __stub___shl_load
  9203. choke me
  9204. #endif
  9205. int
  9206. main ()
  9207. {
  9208. return shl_load ();
  9209. ;
  9210. return 0;
  9211. }
  9212. _ACEOF
  9213. rm -f conftest.$ac_objext conftest$ac_exeext
  9214. if { (ac_try="$ac_link"
  9215. case "(($ac_try" in
  9216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9217. *) ac_try_echo=$ac_try;;
  9218. esac
  9219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9220. (eval "$ac_link") 2>conftest.er1
  9221. ac_status=$?
  9222. grep -v '^ *+' conftest.er1 >conftest.err
  9223. rm -f conftest.er1
  9224. cat conftest.err >&5
  9225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9226. (exit $ac_status); } &&
  9227. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9228. { (case "(($ac_try" in
  9229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9230. *) ac_try_echo=$ac_try;;
  9231. esac
  9232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9233. (eval "$ac_try") 2>&5
  9234. ac_status=$?
  9235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9236. (exit $ac_status); }; } &&
  9237. { ac_try='test -s conftest$ac_exeext'
  9238. { (case "(($ac_try" in
  9239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9240. *) ac_try_echo=$ac_try;;
  9241. esac
  9242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9243. (eval "$ac_try") 2>&5
  9244. ac_status=$?
  9245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9246. (exit $ac_status); }; }; then
  9247. ac_cv_func_shl_load=yes
  9248. else
  9249. echo "$as_me: failed program was:" >&5
  9250. sed 's/^/| /' conftest.$ac_ext >&5
  9251. ac_cv_func_shl_load=no
  9252. fi
  9253. rm -f core conftest.err conftest.$ac_objext \
  9254. conftest$ac_exeext conftest.$ac_ext
  9255. fi
  9256. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9257. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  9258. if test $ac_cv_func_shl_load = yes; then
  9259. cat >>confdefs.h <<\_ACEOF
  9260. #define HAVE_SHL_LOAD 1
  9261. _ACEOF
  9262. else
  9263. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9264. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  9265. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9266. echo $ECHO_N "(cached) $ECHO_C" >&6
  9267. else
  9268. ac_check_lib_save_LIBS=$LIBS
  9269. LIBS="-ldld $LIBS"
  9270. cat >conftest.$ac_ext <<_ACEOF
  9271. /* confdefs.h. */
  9272. _ACEOF
  9273. cat confdefs.h >>conftest.$ac_ext
  9274. cat >>conftest.$ac_ext <<_ACEOF
  9275. /* end confdefs.h. */
  9276. /* Override any GCC internal prototype to avoid an error.
  9277. Use char because int might match the return type of a GCC
  9278. builtin and then its argument prototype would still apply. */
  9279. #ifdef __cplusplus
  9280. extern "C"
  9281. #endif
  9282. char shl_load ();
  9283. int
  9284. main ()
  9285. {
  9286. return shl_load ();
  9287. ;
  9288. return 0;
  9289. }
  9290. _ACEOF
  9291. rm -f conftest.$ac_objext conftest$ac_exeext
  9292. if { (ac_try="$ac_link"
  9293. case "(($ac_try" in
  9294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9295. *) ac_try_echo=$ac_try;;
  9296. esac
  9297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9298. (eval "$ac_link") 2>conftest.er1
  9299. ac_status=$?
  9300. grep -v '^ *+' conftest.er1 >conftest.err
  9301. rm -f conftest.er1
  9302. cat conftest.err >&5
  9303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9304. (exit $ac_status); } &&
  9305. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9306. { (case "(($ac_try" in
  9307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9308. *) ac_try_echo=$ac_try;;
  9309. esac
  9310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9311. (eval "$ac_try") 2>&5
  9312. ac_status=$?
  9313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9314. (exit $ac_status); }; } &&
  9315. { ac_try='test -s conftest$ac_exeext'
  9316. { (case "(($ac_try" in
  9317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9318. *) ac_try_echo=$ac_try;;
  9319. esac
  9320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9321. (eval "$ac_try") 2>&5
  9322. ac_status=$?
  9323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); }; }; then
  9325. ac_cv_lib_dld_shl_load=yes
  9326. else
  9327. echo "$as_me: failed program was:" >&5
  9328. sed 's/^/| /' conftest.$ac_ext >&5
  9329. ac_cv_lib_dld_shl_load=no
  9330. fi
  9331. rm -f core conftest.err conftest.$ac_objext \
  9332. conftest$ac_exeext conftest.$ac_ext
  9333. LIBS=$ac_check_lib_save_LIBS
  9334. fi
  9335. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9336. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  9337. if test $ac_cv_lib_dld_shl_load = yes; then
  9338. cat >>confdefs.h <<\_ACEOF
  9339. #define HAVE_SHL_LOAD 1
  9340. _ACEOF
  9341. LIBADD_DL="$LIBADD_DL -ldld"
  9342. else
  9343. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9344. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9345. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9346. echo $ECHO_N "(cached) $ECHO_C" >&6
  9347. else
  9348. ac_check_lib_save_LIBS=$LIBS
  9349. LIBS="-ldl $LIBS"
  9350. cat >conftest.$ac_ext <<_ACEOF
  9351. /* confdefs.h. */
  9352. _ACEOF
  9353. cat confdefs.h >>conftest.$ac_ext
  9354. cat >>conftest.$ac_ext <<_ACEOF
  9355. /* end confdefs.h. */
  9356. /* Override any GCC internal prototype to avoid an error.
  9357. Use char because int might match the return type of a GCC
  9358. builtin and then its argument prototype would still apply. */
  9359. #ifdef __cplusplus
  9360. extern "C"
  9361. #endif
  9362. char dlopen ();
  9363. int
  9364. main ()
  9365. {
  9366. return dlopen ();
  9367. ;
  9368. return 0;
  9369. }
  9370. _ACEOF
  9371. rm -f conftest.$ac_objext conftest$ac_exeext
  9372. if { (ac_try="$ac_link"
  9373. case "(($ac_try" in
  9374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9375. *) ac_try_echo=$ac_try;;
  9376. esac
  9377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9378. (eval "$ac_link") 2>conftest.er1
  9379. ac_status=$?
  9380. grep -v '^ *+' conftest.er1 >conftest.err
  9381. rm -f conftest.er1
  9382. cat conftest.err >&5
  9383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9384. (exit $ac_status); } &&
  9385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9386. { (case "(($ac_try" in
  9387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9388. *) ac_try_echo=$ac_try;;
  9389. esac
  9390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9391. (eval "$ac_try") 2>&5
  9392. ac_status=$?
  9393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9394. (exit $ac_status); }; } &&
  9395. { ac_try='test -s conftest$ac_exeext'
  9396. { (case "(($ac_try" in
  9397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9398. *) ac_try_echo=$ac_try;;
  9399. esac
  9400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9401. (eval "$ac_try") 2>&5
  9402. ac_status=$?
  9403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9404. (exit $ac_status); }; }; then
  9405. ac_cv_lib_dl_dlopen=yes
  9406. else
  9407. echo "$as_me: failed program was:" >&5
  9408. sed 's/^/| /' conftest.$ac_ext >&5
  9409. ac_cv_lib_dl_dlopen=no
  9410. fi
  9411. rm -f core conftest.err conftest.$ac_objext \
  9412. conftest$ac_exeext conftest.$ac_ext
  9413. LIBS=$ac_check_lib_save_LIBS
  9414. fi
  9415. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9416. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9417. if test $ac_cv_lib_dl_dlopen = yes; then
  9418. cat >>confdefs.h <<\_ACEOF
  9419. #define HAVE_LIBDL 1
  9420. _ACEOF
  9421. LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
  9422. else
  9423. cat >conftest.$ac_ext <<_ACEOF
  9424. /* confdefs.h. */
  9425. _ACEOF
  9426. cat confdefs.h >>conftest.$ac_ext
  9427. cat >>conftest.$ac_ext <<_ACEOF
  9428. /* end confdefs.h. */
  9429. #if HAVE_DLFCN_H
  9430. # include <dlfcn.h>
  9431. #endif
  9432. int
  9433. main ()
  9434. {
  9435. dlopen(0, 0);
  9436. ;
  9437. return 0;
  9438. }
  9439. _ACEOF
  9440. rm -f conftest.$ac_objext conftest$ac_exeext
  9441. if { (ac_try="$ac_link"
  9442. case "(($ac_try" in
  9443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9444. *) ac_try_echo=$ac_try;;
  9445. esac
  9446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9447. (eval "$ac_link") 2>conftest.er1
  9448. ac_status=$?
  9449. grep -v '^ *+' conftest.er1 >conftest.err
  9450. rm -f conftest.er1
  9451. cat conftest.err >&5
  9452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9453. (exit $ac_status); } &&
  9454. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9455. { (case "(($ac_try" in
  9456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9457. *) ac_try_echo=$ac_try;;
  9458. esac
  9459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9460. (eval "$ac_try") 2>&5
  9461. ac_status=$?
  9462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9463. (exit $ac_status); }; } &&
  9464. { ac_try='test -s conftest$ac_exeext'
  9465. { (case "(($ac_try" in
  9466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9467. *) ac_try_echo=$ac_try;;
  9468. esac
  9469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9470. (eval "$ac_try") 2>&5
  9471. ac_status=$?
  9472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9473. (exit $ac_status); }; }; then
  9474. cat >>confdefs.h <<\_ACEOF
  9475. #define HAVE_LIBDL 1
  9476. _ACEOF
  9477. libltdl_cv_func_dlopen="yes"
  9478. else
  9479. echo "$as_me: failed program was:" >&5
  9480. sed 's/^/| /' conftest.$ac_ext >&5
  9481. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9482. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9483. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9484. echo $ECHO_N "(cached) $ECHO_C" >&6
  9485. else
  9486. ac_check_lib_save_LIBS=$LIBS
  9487. LIBS="-lsvld $LIBS"
  9488. cat >conftest.$ac_ext <<_ACEOF
  9489. /* confdefs.h. */
  9490. _ACEOF
  9491. cat confdefs.h >>conftest.$ac_ext
  9492. cat >>conftest.$ac_ext <<_ACEOF
  9493. /* end confdefs.h. */
  9494. /* Override any GCC internal prototype to avoid an error.
  9495. Use char because int might match the return type of a GCC
  9496. builtin and then its argument prototype would still apply. */
  9497. #ifdef __cplusplus
  9498. extern "C"
  9499. #endif
  9500. char dlopen ();
  9501. int
  9502. main ()
  9503. {
  9504. return dlopen ();
  9505. ;
  9506. return 0;
  9507. }
  9508. _ACEOF
  9509. rm -f conftest.$ac_objext conftest$ac_exeext
  9510. if { (ac_try="$ac_link"
  9511. case "(($ac_try" in
  9512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9513. *) ac_try_echo=$ac_try;;
  9514. esac
  9515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9516. (eval "$ac_link") 2>conftest.er1
  9517. ac_status=$?
  9518. grep -v '^ *+' conftest.er1 >conftest.err
  9519. rm -f conftest.er1
  9520. cat conftest.err >&5
  9521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); } &&
  9523. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9524. { (case "(($ac_try" in
  9525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9526. *) ac_try_echo=$ac_try;;
  9527. esac
  9528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9529. (eval "$ac_try") 2>&5
  9530. ac_status=$?
  9531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9532. (exit $ac_status); }; } &&
  9533. { ac_try='test -s conftest$ac_exeext'
  9534. { (case "(($ac_try" in
  9535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9536. *) ac_try_echo=$ac_try;;
  9537. esac
  9538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9539. (eval "$ac_try") 2>&5
  9540. ac_status=$?
  9541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9542. (exit $ac_status); }; }; then
  9543. ac_cv_lib_svld_dlopen=yes
  9544. else
  9545. echo "$as_me: failed program was:" >&5
  9546. sed 's/^/| /' conftest.$ac_ext >&5
  9547. ac_cv_lib_svld_dlopen=no
  9548. fi
  9549. rm -f core conftest.err conftest.$ac_objext \
  9550. conftest$ac_exeext conftest.$ac_ext
  9551. LIBS=$ac_check_lib_save_LIBS
  9552. fi
  9553. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9554. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9555. if test $ac_cv_lib_svld_dlopen = yes; then
  9556. cat >>confdefs.h <<\_ACEOF
  9557. #define HAVE_LIBDL 1
  9558. _ACEOF
  9559. LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
  9560. else
  9561. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9562. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9563. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9564. echo $ECHO_N "(cached) $ECHO_C" >&6
  9565. else
  9566. ac_check_lib_save_LIBS=$LIBS
  9567. LIBS="-ldld $LIBS"
  9568. cat >conftest.$ac_ext <<_ACEOF
  9569. /* confdefs.h. */
  9570. _ACEOF
  9571. cat confdefs.h >>conftest.$ac_ext
  9572. cat >>conftest.$ac_ext <<_ACEOF
  9573. /* end confdefs.h. */
  9574. /* Override any GCC internal prototype to avoid an error.
  9575. Use char because int might match the return type of a GCC
  9576. builtin and then its argument prototype would still apply. */
  9577. #ifdef __cplusplus
  9578. extern "C"
  9579. #endif
  9580. char dld_link ();
  9581. int
  9582. main ()
  9583. {
  9584. return dld_link ();
  9585. ;
  9586. return 0;
  9587. }
  9588. _ACEOF
  9589. rm -f conftest.$ac_objext conftest$ac_exeext
  9590. if { (ac_try="$ac_link"
  9591. case "(($ac_try" in
  9592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9593. *) ac_try_echo=$ac_try;;
  9594. esac
  9595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9596. (eval "$ac_link") 2>conftest.er1
  9597. ac_status=$?
  9598. grep -v '^ *+' conftest.er1 >conftest.err
  9599. rm -f conftest.er1
  9600. cat conftest.err >&5
  9601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9602. (exit $ac_status); } &&
  9603. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9604. { (case "(($ac_try" in
  9605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9606. *) ac_try_echo=$ac_try;;
  9607. esac
  9608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9609. (eval "$ac_try") 2>&5
  9610. ac_status=$?
  9611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9612. (exit $ac_status); }; } &&
  9613. { ac_try='test -s conftest$ac_exeext'
  9614. { (case "(($ac_try" in
  9615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9616. *) ac_try_echo=$ac_try;;
  9617. esac
  9618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9619. (eval "$ac_try") 2>&5
  9620. ac_status=$?
  9621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9622. (exit $ac_status); }; }; then
  9623. ac_cv_lib_dld_dld_link=yes
  9624. else
  9625. echo "$as_me: failed program was:" >&5
  9626. sed 's/^/| /' conftest.$ac_ext >&5
  9627. ac_cv_lib_dld_dld_link=no
  9628. fi
  9629. rm -f core conftest.err conftest.$ac_objext \
  9630. conftest$ac_exeext conftest.$ac_ext
  9631. LIBS=$ac_check_lib_save_LIBS
  9632. fi
  9633. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9634. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9635. if test $ac_cv_lib_dld_dld_link = yes; then
  9636. cat >>confdefs.h <<\_ACEOF
  9637. #define HAVE_DLD 1
  9638. _ACEOF
  9639. LIBADD_DL="$LIBADD_DL -ldld"
  9640. else
  9641. { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
  9642. echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
  9643. if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
  9644. echo $ECHO_N "(cached) $ECHO_C" >&6
  9645. else
  9646. cat >conftest.$ac_ext <<_ACEOF
  9647. /* confdefs.h. */
  9648. _ACEOF
  9649. cat confdefs.h >>conftest.$ac_ext
  9650. cat >>conftest.$ac_ext <<_ACEOF
  9651. /* end confdefs.h. */
  9652. /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
  9653. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9654. #define _dyld_func_lookup innocuous__dyld_func_lookup
  9655. /* System header to define __stub macros and hopefully few prototypes,
  9656. which can conflict with char _dyld_func_lookup (); below.
  9657. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9658. <limits.h> exists even on freestanding compilers. */
  9659. #ifdef __STDC__
  9660. # include <limits.h>
  9661. #else
  9662. # include <assert.h>
  9663. #endif
  9664. #undef _dyld_func_lookup
  9665. /* Override any GCC internal prototype to avoid an error.
  9666. Use char because int might match the return type of a GCC
  9667. builtin and then its argument prototype would still apply. */
  9668. #ifdef __cplusplus
  9669. extern "C"
  9670. #endif
  9671. char _dyld_func_lookup ();
  9672. /* The GNU C library defines this for functions which it implements
  9673. to always fail with ENOSYS. Some functions are actually named
  9674. something starting with __ and the normal name is an alias. */
  9675. #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
  9676. choke me
  9677. #endif
  9678. int
  9679. main ()
  9680. {
  9681. return _dyld_func_lookup ();
  9682. ;
  9683. return 0;
  9684. }
  9685. _ACEOF
  9686. rm -f conftest.$ac_objext conftest$ac_exeext
  9687. if { (ac_try="$ac_link"
  9688. case "(($ac_try" in
  9689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9690. *) ac_try_echo=$ac_try;;
  9691. esac
  9692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9693. (eval "$ac_link") 2>conftest.er1
  9694. ac_status=$?
  9695. grep -v '^ *+' conftest.er1 >conftest.err
  9696. rm -f conftest.er1
  9697. cat conftest.err >&5
  9698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9699. (exit $ac_status); } &&
  9700. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9701. { (case "(($ac_try" in
  9702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9703. *) ac_try_echo=$ac_try;;
  9704. esac
  9705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9706. (eval "$ac_try") 2>&5
  9707. ac_status=$?
  9708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9709. (exit $ac_status); }; } &&
  9710. { ac_try='test -s conftest$ac_exeext'
  9711. { (case "(($ac_try" in
  9712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9713. *) ac_try_echo=$ac_try;;
  9714. esac
  9715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9716. (eval "$ac_try") 2>&5
  9717. ac_status=$?
  9718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9719. (exit $ac_status); }; }; then
  9720. ac_cv_func__dyld_func_lookup=yes
  9721. else
  9722. echo "$as_me: failed program was:" >&5
  9723. sed 's/^/| /' conftest.$ac_ext >&5
  9724. ac_cv_func__dyld_func_lookup=no
  9725. fi
  9726. rm -f core conftest.err conftest.$ac_objext \
  9727. conftest$ac_exeext conftest.$ac_ext
  9728. fi
  9729. { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
  9730. echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
  9731. if test $ac_cv_func__dyld_func_lookup = yes; then
  9732. cat >>confdefs.h <<\_ACEOF
  9733. #define HAVE_DYLD 1
  9734. _ACEOF
  9735. fi
  9736. fi
  9737. fi
  9738. fi
  9739. rm -f core conftest.err conftest.$ac_objext \
  9740. conftest$ac_exeext conftest.$ac_ext
  9741. fi
  9742. fi
  9743. fi
  9744. if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
  9745. then
  9746. lt_save_LIBS="$LIBS"
  9747. LIBS="$LIBS $LIBADD_DL"
  9748. for ac_func in dlerror
  9749. do
  9750. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9751. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9752. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9753. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9754. echo $ECHO_N "(cached) $ECHO_C" >&6
  9755. else
  9756. cat >conftest.$ac_ext <<_ACEOF
  9757. /* confdefs.h. */
  9758. _ACEOF
  9759. cat confdefs.h >>conftest.$ac_ext
  9760. cat >>conftest.$ac_ext <<_ACEOF
  9761. /* end confdefs.h. */
  9762. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9763. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9764. #define $ac_func innocuous_$ac_func
  9765. /* System header to define __stub macros and hopefully few prototypes,
  9766. which can conflict with char $ac_func (); below.
  9767. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9768. <limits.h> exists even on freestanding compilers. */
  9769. #ifdef __STDC__
  9770. # include <limits.h>
  9771. #else
  9772. # include <assert.h>
  9773. #endif
  9774. #undef $ac_func
  9775. /* Override any GCC internal prototype to avoid an error.
  9776. Use char because int might match the return type of a GCC
  9777. builtin and then its argument prototype would still apply. */
  9778. #ifdef __cplusplus
  9779. extern "C"
  9780. #endif
  9781. char $ac_func ();
  9782. /* The GNU C library defines this for functions which it implements
  9783. to always fail with ENOSYS. Some functions are actually named
  9784. something starting with __ and the normal name is an alias. */
  9785. #if defined __stub_$ac_func || defined __stub___$ac_func
  9786. choke me
  9787. #endif
  9788. int
  9789. main ()
  9790. {
  9791. return $ac_func ();
  9792. ;
  9793. return 0;
  9794. }
  9795. _ACEOF
  9796. rm -f conftest.$ac_objext conftest$ac_exeext
  9797. if { (ac_try="$ac_link"
  9798. case "(($ac_try" in
  9799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9800. *) ac_try_echo=$ac_try;;
  9801. esac
  9802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9803. (eval "$ac_link") 2>conftest.er1
  9804. ac_status=$?
  9805. grep -v '^ *+' conftest.er1 >conftest.err
  9806. rm -f conftest.er1
  9807. cat conftest.err >&5
  9808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9809. (exit $ac_status); } &&
  9810. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9811. { (case "(($ac_try" in
  9812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9813. *) ac_try_echo=$ac_try;;
  9814. esac
  9815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9816. (eval "$ac_try") 2>&5
  9817. ac_status=$?
  9818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9819. (exit $ac_status); }; } &&
  9820. { ac_try='test -s conftest$ac_exeext'
  9821. { (case "(($ac_try" in
  9822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9823. *) ac_try_echo=$ac_try;;
  9824. esac
  9825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9826. (eval "$ac_try") 2>&5
  9827. ac_status=$?
  9828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9829. (exit $ac_status); }; }; then
  9830. eval "$as_ac_var=yes"
  9831. else
  9832. echo "$as_me: failed program was:" >&5
  9833. sed 's/^/| /' conftest.$ac_ext >&5
  9834. eval "$as_ac_var=no"
  9835. fi
  9836. rm -f core conftest.err conftest.$ac_objext \
  9837. conftest$ac_exeext conftest.$ac_ext
  9838. fi
  9839. ac_res=`eval echo '${'$as_ac_var'}'`
  9840. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9841. echo "${ECHO_T}$ac_res" >&6; }
  9842. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9843. cat >>confdefs.h <<_ACEOF
  9844. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9845. _ACEOF
  9846. fi
  9847. done
  9848. LIBS="$lt_save_LIBS"
  9849. fi
  9850. ac_ext=c
  9851. ac_cpp='$CPP $CPPFLAGS'
  9852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9855. { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
  9856. echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
  9857. if test "${ac_cv_sys_symbol_underscore+set}" = set; then
  9858. echo $ECHO_N "(cached) $ECHO_C" >&6
  9859. else
  9860. ac_cv_sys_symbol_underscore=no
  9861. cat > conftest.$ac_ext <<EOF
  9862. void nm_test_func(){}
  9863. int main(){nm_test_func;return 0;}
  9864. EOF
  9865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9866. (eval $ac_compile) 2>&5
  9867. ac_status=$?
  9868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9869. (exit $ac_status); }; then
  9870. # Now try to grab the symbols.
  9871. ac_nlist=conftest.nm
  9872. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
  9873. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  9874. ac_status=$?
  9875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9876. (exit $ac_status); } && test -s "$ac_nlist"; then
  9877. # See whether the symbols have a leading underscore.
  9878. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  9879. ac_cv_sys_symbol_underscore=yes
  9880. else
  9881. if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  9882. :
  9883. else
  9884. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  9885. fi
  9886. fi
  9887. else
  9888. echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9889. fi
  9890. else
  9891. echo "configure: failed program was:" >&5
  9892. cat conftest.c >&5
  9893. fi
  9894. rm -rf conftest*
  9895. fi
  9896. { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
  9897. echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
  9898. if test x"$ac_cv_sys_symbol_underscore" = xyes; then
  9899. if test x"$libltdl_cv_func_dlopen" = xyes ||
  9900. test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
  9901. { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
  9902. echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
  9903. if test "${libltdl_cv_need_uscore+set}" = set; then
  9904. echo $ECHO_N "(cached) $ECHO_C" >&6
  9905. else
  9906. libltdl_cv_need_uscore=unknown
  9907. save_LIBS="$LIBS"
  9908. LIBS="$LIBS $LIBADD_DL"
  9909. if test "$cross_compiling" = yes; then :
  9910. libltdl_cv_need_uscore=cross
  9911. else
  9912. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9913. lt_status=$lt_dlunknown
  9914. cat > conftest.$ac_ext <<EOF
  9915. #line 10991 "configure"
  9916. #include "confdefs.h"
  9917. #if HAVE_DLFCN_H
  9918. #include <dlfcn.h>
  9919. #endif
  9920. #include <stdio.h>
  9921. #ifdef RTLD_GLOBAL
  9922. # define LT_DLGLOBAL RTLD_GLOBAL
  9923. #else
  9924. # ifdef DL_GLOBAL
  9925. # define LT_DLGLOBAL DL_GLOBAL
  9926. # else
  9927. # define LT_DLGLOBAL 0
  9928. # endif
  9929. #endif
  9930. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9931. find out it does not work in some platform. */
  9932. #ifndef LT_DLLAZY_OR_NOW
  9933. # ifdef RTLD_LAZY
  9934. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9935. # else
  9936. # ifdef DL_LAZY
  9937. # define LT_DLLAZY_OR_NOW DL_LAZY
  9938. # else
  9939. # ifdef RTLD_NOW
  9940. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9941. # else
  9942. # ifdef DL_NOW
  9943. # define LT_DLLAZY_OR_NOW DL_NOW
  9944. # else
  9945. # define LT_DLLAZY_OR_NOW 0
  9946. # endif
  9947. # endif
  9948. # endif
  9949. # endif
  9950. #endif
  9951. #ifdef __cplusplus
  9952. extern "C" void exit (int);
  9953. #endif
  9954. void fnord() { int i=42;}
  9955. int main ()
  9956. {
  9957. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9958. int status = $lt_dlunknown;
  9959. if (self)
  9960. {
  9961. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9962. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9963. /* dlclose (self); */
  9964. }
  9965. else
  9966. puts (dlerror ());
  9967. exit (status);
  9968. }
  9969. EOF
  9970. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9971. (eval $ac_link) 2>&5
  9972. ac_status=$?
  9973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9974. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9975. (./conftest; exit; ) >&5 2>/dev/null
  9976. lt_status=$?
  9977. case x$lt_status in
  9978. x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
  9979. x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
  9980. x$lt_dlunknown|x*) ;;
  9981. esac
  9982. else :
  9983. # compilation failed
  9984. fi
  9985. fi
  9986. rm -fr conftest*
  9987. LIBS="$save_LIBS"
  9988. fi
  9989. { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
  9990. echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
  9991. fi
  9992. fi
  9993. if test x"$libltdl_cv_need_uscore" = xyes; then
  9994. cat >>confdefs.h <<\_ACEOF
  9995. #define NEED_USCORE 1
  9996. _ACEOF
  9997. fi
  9998. { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
  9999. echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
  10000. if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
  10001. echo $ECHO_N "(cached) $ECHO_C" >&6
  10002. else
  10003. # PORTME does your system automatically load deplibs for dlopen?
  10004. # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  10005. # For now, we just catch OSes we know something about -- in the
  10006. # future, we'll try test this programmatically.
  10007. libltdl_cv_sys_dlopen_deplibs=unknown
  10008. case "$host_os" in
  10009. aix3*|aix4.1.*|aix4.2.*)
  10010. # Unknown whether this is true for these versions of AIX, but
  10011. # we want this `case' here to explicitly catch those versions.
  10012. libltdl_cv_sys_dlopen_deplibs=unknown
  10013. ;;
  10014. aix[45]*)
  10015. libltdl_cv_sys_dlopen_deplibs=yes
  10016. ;;
  10017. darwin*)
  10018. # Assuming the user has installed a libdl from somewhere, this is true
  10019. # If you are looking for one http://www.opendarwin.org/projects/dlcompat
  10020. libltdl_cv_sys_dlopen_deplibs=yes
  10021. ;;
  10022. gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
  10023. # GNU and its variants, using gnu ld.so (Glibc)
  10024. libltdl_cv_sys_dlopen_deplibs=yes
  10025. ;;
  10026. hpux10*|hpux11*)
  10027. libltdl_cv_sys_dlopen_deplibs=yes
  10028. ;;
  10029. interix*)
  10030. libltdl_cv_sys_dlopen_deplibs=yes
  10031. ;;
  10032. irix[12345]*|irix6.[01]*)
  10033. # Catch all versions of IRIX before 6.2, and indicate that we don't
  10034. # know how it worked for any of those versions.
  10035. libltdl_cv_sys_dlopen_deplibs=unknown
  10036. ;;
  10037. irix*)
  10038. # The case above catches anything before 6.2, and it's known that
  10039. # at 6.2 and later dlopen does load deplibs.
  10040. libltdl_cv_sys_dlopen_deplibs=yes
  10041. ;;
  10042. netbsd*)
  10043. libltdl_cv_sys_dlopen_deplibs=yes
  10044. ;;
  10045. openbsd*)
  10046. libltdl_cv_sys_dlopen_deplibs=yes
  10047. ;;
  10048. osf[1234]*)
  10049. # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
  10050. # it did *not* use an RPATH in a shared library to find objects the
  10051. # library depends on, so we explictly say `no'.
  10052. libltdl_cv_sys_dlopen_deplibs=no
  10053. ;;
  10054. osf5.0|osf5.0a|osf5.1)
  10055. # dlopen *does* load deplibs and with the right loader patch applied
  10056. # it even uses RPATH in a shared library to search for shared objects
  10057. # that the library depends on, but there's no easy way to know if that
  10058. # patch is installed. Since this is the case, all we can really
  10059. # say is unknown -- it depends on the patch being installed. If
  10060. # it is, this changes to `yes'. Without it, it would be `no'.
  10061. libltdl_cv_sys_dlopen_deplibs=unknown
  10062. ;;
  10063. osf*)
  10064. # the two cases above should catch all versions of osf <= 5.1. Read
  10065. # the comments above for what we know about them.
  10066. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
  10067. # is used to find them so we can finally say `yes'.
  10068. libltdl_cv_sys_dlopen_deplibs=yes
  10069. ;;
  10070. solaris*)
  10071. libltdl_cv_sys_dlopen_deplibs=yes
  10072. ;;
  10073. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10074. libltdl_cv_sys_dlopen_deplibs=yes
  10075. ;;
  10076. esac
  10077. fi
  10078. { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
  10079. echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
  10080. if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
  10081. cat >>confdefs.h <<\_ACEOF
  10082. #define LTDL_DLOPEN_DEPLIBS 1
  10083. _ACEOF
  10084. fi
  10085. for ac_header in argz.h
  10086. do
  10087. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10088. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10089. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10090. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10091. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10092. echo $ECHO_N "(cached) $ECHO_C" >&6
  10093. fi
  10094. ac_res=`eval echo '${'$as_ac_Header'}'`
  10095. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10096. echo "${ECHO_T}$ac_res" >&6; }
  10097. else
  10098. # Is the header compilable?
  10099. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10100. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10101. cat >conftest.$ac_ext <<_ACEOF
  10102. /* confdefs.h. */
  10103. _ACEOF
  10104. cat confdefs.h >>conftest.$ac_ext
  10105. cat >>conftest.$ac_ext <<_ACEOF
  10106. /* end confdefs.h. */
  10107. $ac_includes_default
  10108. #include <$ac_header>
  10109. _ACEOF
  10110. rm -f conftest.$ac_objext
  10111. if { (ac_try="$ac_compile"
  10112. case "(($ac_try" in
  10113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10114. *) ac_try_echo=$ac_try;;
  10115. esac
  10116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10117. (eval "$ac_compile") 2>conftest.er1
  10118. ac_status=$?
  10119. grep -v '^ *+' conftest.er1 >conftest.err
  10120. rm -f conftest.er1
  10121. cat conftest.err >&5
  10122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10123. (exit $ac_status); } &&
  10124. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10125. { (case "(($ac_try" in
  10126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10127. *) ac_try_echo=$ac_try;;
  10128. esac
  10129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10130. (eval "$ac_try") 2>&5
  10131. ac_status=$?
  10132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10133. (exit $ac_status); }; } &&
  10134. { ac_try='test -s conftest.$ac_objext'
  10135. { (case "(($ac_try" in
  10136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10137. *) ac_try_echo=$ac_try;;
  10138. esac
  10139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10140. (eval "$ac_try") 2>&5
  10141. ac_status=$?
  10142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10143. (exit $ac_status); }; }; then
  10144. ac_header_compiler=yes
  10145. else
  10146. echo "$as_me: failed program was:" >&5
  10147. sed 's/^/| /' conftest.$ac_ext >&5
  10148. ac_header_compiler=no
  10149. fi
  10150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10151. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10152. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10153. # Is the header present?
  10154. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10155. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10156. cat >conftest.$ac_ext <<_ACEOF
  10157. /* confdefs.h. */
  10158. _ACEOF
  10159. cat confdefs.h >>conftest.$ac_ext
  10160. cat >>conftest.$ac_ext <<_ACEOF
  10161. /* end confdefs.h. */
  10162. #include <$ac_header>
  10163. _ACEOF
  10164. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10165. case "(($ac_try" in
  10166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10167. *) ac_try_echo=$ac_try;;
  10168. esac
  10169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10170. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10171. ac_status=$?
  10172. grep -v '^ *+' conftest.er1 >conftest.err
  10173. rm -f conftest.er1
  10174. cat conftest.err >&5
  10175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10176. (exit $ac_status); } >/dev/null; then
  10177. if test -s conftest.err; then
  10178. ac_cpp_err=$ac_c_preproc_warn_flag
  10179. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10180. else
  10181. ac_cpp_err=
  10182. fi
  10183. else
  10184. ac_cpp_err=yes
  10185. fi
  10186. if test -z "$ac_cpp_err"; then
  10187. ac_header_preproc=yes
  10188. else
  10189. echo "$as_me: failed program was:" >&5
  10190. sed 's/^/| /' conftest.$ac_ext >&5
  10191. ac_header_preproc=no
  10192. fi
  10193. rm -f conftest.err conftest.$ac_ext
  10194. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10195. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10196. # So? What about this header?
  10197. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10198. yes:no: )
  10199. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10200. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10201. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10202. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10203. ac_header_preproc=yes
  10204. ;;
  10205. no:yes:* )
  10206. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10207. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10208. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10209. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10210. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10211. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10212. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10213. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10214. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10215. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10216. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10217. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10218. ( cat <<\_ASBOX
  10219. ## ----------------------------------- ##
  10220. ## Report this to llvmbugs@cs.uiuc.edu ##
  10221. ## ----------------------------------- ##
  10222. _ASBOX
  10223. ) | sed "s/^/$as_me: WARNING: /" >&2
  10224. ;;
  10225. esac
  10226. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10227. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10228. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10229. echo $ECHO_N "(cached) $ECHO_C" >&6
  10230. else
  10231. eval "$as_ac_Header=\$ac_header_preproc"
  10232. fi
  10233. ac_res=`eval echo '${'$as_ac_Header'}'`
  10234. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10235. echo "${ECHO_T}$ac_res" >&6; }
  10236. fi
  10237. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10238. cat >>confdefs.h <<_ACEOF
  10239. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10240. _ACEOF
  10241. fi
  10242. done
  10243. { echo "$as_me:$LINENO: checking for error_t" >&5
  10244. echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
  10245. if test "${ac_cv_type_error_t+set}" = set; then
  10246. echo $ECHO_N "(cached) $ECHO_C" >&6
  10247. else
  10248. cat >conftest.$ac_ext <<_ACEOF
  10249. /* confdefs.h. */
  10250. _ACEOF
  10251. cat confdefs.h >>conftest.$ac_ext
  10252. cat >>conftest.$ac_ext <<_ACEOF
  10253. /* end confdefs.h. */
  10254. #if HAVE_ARGZ_H
  10255. # include <argz.h>
  10256. #endif
  10257. typedef error_t ac__type_new_;
  10258. int
  10259. main ()
  10260. {
  10261. if ((ac__type_new_ *) 0)
  10262. return 0;
  10263. if (sizeof (ac__type_new_))
  10264. return 0;
  10265. ;
  10266. return 0;
  10267. }
  10268. _ACEOF
  10269. rm -f conftest.$ac_objext
  10270. if { (ac_try="$ac_compile"
  10271. case "(($ac_try" in
  10272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10273. *) ac_try_echo=$ac_try;;
  10274. esac
  10275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10276. (eval "$ac_compile") 2>conftest.er1
  10277. ac_status=$?
  10278. grep -v '^ *+' conftest.er1 >conftest.err
  10279. rm -f conftest.er1
  10280. cat conftest.err >&5
  10281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10282. (exit $ac_status); } &&
  10283. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10284. { (case "(($ac_try" in
  10285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10286. *) ac_try_echo=$ac_try;;
  10287. esac
  10288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10289. (eval "$ac_try") 2>&5
  10290. ac_status=$?
  10291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10292. (exit $ac_status); }; } &&
  10293. { ac_try='test -s conftest.$ac_objext'
  10294. { (case "(($ac_try" in
  10295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10296. *) ac_try_echo=$ac_try;;
  10297. esac
  10298. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10299. (eval "$ac_try") 2>&5
  10300. ac_status=$?
  10301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10302. (exit $ac_status); }; }; then
  10303. ac_cv_type_error_t=yes
  10304. else
  10305. echo "$as_me: failed program was:" >&5
  10306. sed 's/^/| /' conftest.$ac_ext >&5
  10307. ac_cv_type_error_t=no
  10308. fi
  10309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10310. fi
  10311. { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
  10312. echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
  10313. if test $ac_cv_type_error_t = yes; then
  10314. cat >>confdefs.h <<_ACEOF
  10315. #define HAVE_ERROR_T 1
  10316. _ACEOF
  10317. else
  10318. cat >>confdefs.h <<\_ACEOF
  10319. #define error_t int
  10320. _ACEOF
  10321. fi
  10322. for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
  10323. do
  10324. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10325. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10326. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10327. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10328. echo $ECHO_N "(cached) $ECHO_C" >&6
  10329. else
  10330. cat >conftest.$ac_ext <<_ACEOF
  10331. /* confdefs.h. */
  10332. _ACEOF
  10333. cat confdefs.h >>conftest.$ac_ext
  10334. cat >>conftest.$ac_ext <<_ACEOF
  10335. /* end confdefs.h. */
  10336. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10337. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10338. #define $ac_func innocuous_$ac_func
  10339. /* System header to define __stub macros and hopefully few prototypes,
  10340. which can conflict with char $ac_func (); below.
  10341. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10342. <limits.h> exists even on freestanding compilers. */
  10343. #ifdef __STDC__
  10344. # include <limits.h>
  10345. #else
  10346. # include <assert.h>
  10347. #endif
  10348. #undef $ac_func
  10349. /* Override any GCC internal prototype to avoid an error.
  10350. Use char because int might match the return type of a GCC
  10351. builtin and then its argument prototype would still apply. */
  10352. #ifdef __cplusplus
  10353. extern "C"
  10354. #endif
  10355. char $ac_func ();
  10356. /* The GNU C library defines this for functions which it implements
  10357. to always fail with ENOSYS. Some functions are actually named
  10358. something starting with __ and the normal name is an alias. */
  10359. #if defined __stub_$ac_func || defined __stub___$ac_func
  10360. choke me
  10361. #endif
  10362. int
  10363. main ()
  10364. {
  10365. return $ac_func ();
  10366. ;
  10367. return 0;
  10368. }
  10369. _ACEOF
  10370. rm -f conftest.$ac_objext conftest$ac_exeext
  10371. if { (ac_try="$ac_link"
  10372. case "(($ac_try" in
  10373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10374. *) ac_try_echo=$ac_try;;
  10375. esac
  10376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10377. (eval "$ac_link") 2>conftest.er1
  10378. ac_status=$?
  10379. grep -v '^ *+' conftest.er1 >conftest.err
  10380. rm -f conftest.er1
  10381. cat conftest.err >&5
  10382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10383. (exit $ac_status); } &&
  10384. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10385. { (case "(($ac_try" in
  10386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10387. *) ac_try_echo=$ac_try;;
  10388. esac
  10389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10390. (eval "$ac_try") 2>&5
  10391. ac_status=$?
  10392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10393. (exit $ac_status); }; } &&
  10394. { ac_try='test -s conftest$ac_exeext'
  10395. { (case "(($ac_try" in
  10396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10397. *) ac_try_echo=$ac_try;;
  10398. esac
  10399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10400. (eval "$ac_try") 2>&5
  10401. ac_status=$?
  10402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10403. (exit $ac_status); }; }; then
  10404. eval "$as_ac_var=yes"
  10405. else
  10406. echo "$as_me: failed program was:" >&5
  10407. sed 's/^/| /' conftest.$ac_ext >&5
  10408. eval "$as_ac_var=no"
  10409. fi
  10410. rm -f core conftest.err conftest.$ac_objext \
  10411. conftest$ac_exeext conftest.$ac_ext
  10412. fi
  10413. ac_res=`eval echo '${'$as_ac_var'}'`
  10414. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10415. echo "${ECHO_T}$ac_res" >&6; }
  10416. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10417. cat >>confdefs.h <<_ACEOF
  10418. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10419. _ACEOF
  10420. fi
  10421. done
  10422. for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
  10423. stdio.h unistd.h
  10424. do
  10425. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10426. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10427. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10428. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10429. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10430. echo $ECHO_N "(cached) $ECHO_C" >&6
  10431. fi
  10432. ac_res=`eval echo '${'$as_ac_Header'}'`
  10433. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10434. echo "${ECHO_T}$ac_res" >&6; }
  10435. else
  10436. # Is the header compilable?
  10437. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10438. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10439. cat >conftest.$ac_ext <<_ACEOF
  10440. /* confdefs.h. */
  10441. _ACEOF
  10442. cat confdefs.h >>conftest.$ac_ext
  10443. cat >>conftest.$ac_ext <<_ACEOF
  10444. /* end confdefs.h. */
  10445. $ac_includes_default
  10446. #include <$ac_header>
  10447. _ACEOF
  10448. rm -f conftest.$ac_objext
  10449. if { (ac_try="$ac_compile"
  10450. case "(($ac_try" in
  10451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10452. *) ac_try_echo=$ac_try;;
  10453. esac
  10454. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10455. (eval "$ac_compile") 2>conftest.er1
  10456. ac_status=$?
  10457. grep -v '^ *+' conftest.er1 >conftest.err
  10458. rm -f conftest.er1
  10459. cat conftest.err >&5
  10460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10461. (exit $ac_status); } &&
  10462. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10463. { (case "(($ac_try" in
  10464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10465. *) ac_try_echo=$ac_try;;
  10466. esac
  10467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10468. (eval "$ac_try") 2>&5
  10469. ac_status=$?
  10470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10471. (exit $ac_status); }; } &&
  10472. { ac_try='test -s conftest.$ac_objext'
  10473. { (case "(($ac_try" in
  10474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10475. *) ac_try_echo=$ac_try;;
  10476. esac
  10477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10478. (eval "$ac_try") 2>&5
  10479. ac_status=$?
  10480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10481. (exit $ac_status); }; }; then
  10482. ac_header_compiler=yes
  10483. else
  10484. echo "$as_me: failed program was:" >&5
  10485. sed 's/^/| /' conftest.$ac_ext >&5
  10486. ac_header_compiler=no
  10487. fi
  10488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10489. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10490. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10491. # Is the header present?
  10492. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10493. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10494. cat >conftest.$ac_ext <<_ACEOF
  10495. /* confdefs.h. */
  10496. _ACEOF
  10497. cat confdefs.h >>conftest.$ac_ext
  10498. cat >>conftest.$ac_ext <<_ACEOF
  10499. /* end confdefs.h. */
  10500. #include <$ac_header>
  10501. _ACEOF
  10502. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10503. case "(($ac_try" in
  10504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10505. *) ac_try_echo=$ac_try;;
  10506. esac
  10507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10508. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10509. ac_status=$?
  10510. grep -v '^ *+' conftest.er1 >conftest.err
  10511. rm -f conftest.er1
  10512. cat conftest.err >&5
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); } >/dev/null; then
  10515. if test -s conftest.err; then
  10516. ac_cpp_err=$ac_c_preproc_warn_flag
  10517. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10518. else
  10519. ac_cpp_err=
  10520. fi
  10521. else
  10522. ac_cpp_err=yes
  10523. fi
  10524. if test -z "$ac_cpp_err"; then
  10525. ac_header_preproc=yes
  10526. else
  10527. echo "$as_me: failed program was:" >&5
  10528. sed 's/^/| /' conftest.$ac_ext >&5
  10529. ac_header_preproc=no
  10530. fi
  10531. rm -f conftest.err conftest.$ac_ext
  10532. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10533. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10534. # So? What about this header?
  10535. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10536. yes:no: )
  10537. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10538. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10539. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10540. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10541. ac_header_preproc=yes
  10542. ;;
  10543. no:yes:* )
  10544. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10545. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10546. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10547. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10548. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10549. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10550. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10551. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10552. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10553. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10554. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10555. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10556. ( cat <<\_ASBOX
  10557. ## ----------------------------------- ##
  10558. ## Report this to llvmbugs@cs.uiuc.edu ##
  10559. ## ----------------------------------- ##
  10560. _ASBOX
  10561. ) | sed "s/^/$as_me: WARNING: /" >&2
  10562. ;;
  10563. esac
  10564. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10565. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10566. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10567. echo $ECHO_N "(cached) $ECHO_C" >&6
  10568. else
  10569. eval "$as_ac_Header=\$ac_header_preproc"
  10570. fi
  10571. ac_res=`eval echo '${'$as_ac_Header'}'`
  10572. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10573. echo "${ECHO_T}$ac_res" >&6; }
  10574. fi
  10575. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10576. cat >>confdefs.h <<_ACEOF
  10577. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10578. _ACEOF
  10579. fi
  10580. done
  10581. for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
  10582. do
  10583. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10584. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10585. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10586. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10587. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10588. echo $ECHO_N "(cached) $ECHO_C" >&6
  10589. fi
  10590. ac_res=`eval echo '${'$as_ac_Header'}'`
  10591. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10592. echo "${ECHO_T}$ac_res" >&6; }
  10593. else
  10594. # Is the header compilable?
  10595. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10596. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10597. cat >conftest.$ac_ext <<_ACEOF
  10598. /* confdefs.h. */
  10599. _ACEOF
  10600. cat confdefs.h >>conftest.$ac_ext
  10601. cat >>conftest.$ac_ext <<_ACEOF
  10602. /* end confdefs.h. */
  10603. $ac_includes_default
  10604. #include <$ac_header>
  10605. _ACEOF
  10606. rm -f conftest.$ac_objext
  10607. if { (ac_try="$ac_compile"
  10608. case "(($ac_try" in
  10609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10610. *) ac_try_echo=$ac_try;;
  10611. esac
  10612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10613. (eval "$ac_compile") 2>conftest.er1
  10614. ac_status=$?
  10615. grep -v '^ *+' conftest.er1 >conftest.err
  10616. rm -f conftest.er1
  10617. cat conftest.err >&5
  10618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10619. (exit $ac_status); } &&
  10620. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10621. { (case "(($ac_try" in
  10622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10623. *) ac_try_echo=$ac_try;;
  10624. esac
  10625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10626. (eval "$ac_try") 2>&5
  10627. ac_status=$?
  10628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10629. (exit $ac_status); }; } &&
  10630. { ac_try='test -s conftest.$ac_objext'
  10631. { (case "(($ac_try" in
  10632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10633. *) ac_try_echo=$ac_try;;
  10634. esac
  10635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10636. (eval "$ac_try") 2>&5
  10637. ac_status=$?
  10638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10639. (exit $ac_status); }; }; then
  10640. ac_header_compiler=yes
  10641. else
  10642. echo "$as_me: failed program was:" >&5
  10643. sed 's/^/| /' conftest.$ac_ext >&5
  10644. ac_header_compiler=no
  10645. fi
  10646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10647. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10648. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10649. # Is the header present?
  10650. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10651. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10652. cat >conftest.$ac_ext <<_ACEOF
  10653. /* confdefs.h. */
  10654. _ACEOF
  10655. cat confdefs.h >>conftest.$ac_ext
  10656. cat >>conftest.$ac_ext <<_ACEOF
  10657. /* end confdefs.h. */
  10658. #include <$ac_header>
  10659. _ACEOF
  10660. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10661. case "(($ac_try" in
  10662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10663. *) ac_try_echo=$ac_try;;
  10664. esac
  10665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10666. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10667. ac_status=$?
  10668. grep -v '^ *+' conftest.er1 >conftest.err
  10669. rm -f conftest.er1
  10670. cat conftest.err >&5
  10671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10672. (exit $ac_status); } >/dev/null; then
  10673. if test -s conftest.err; then
  10674. ac_cpp_err=$ac_c_preproc_warn_flag
  10675. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10676. else
  10677. ac_cpp_err=
  10678. fi
  10679. else
  10680. ac_cpp_err=yes
  10681. fi
  10682. if test -z "$ac_cpp_err"; then
  10683. ac_header_preproc=yes
  10684. else
  10685. echo "$as_me: failed program was:" >&5
  10686. sed 's/^/| /' conftest.$ac_ext >&5
  10687. ac_header_preproc=no
  10688. fi
  10689. rm -f conftest.err conftest.$ac_ext
  10690. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10691. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10692. # So? What about this header?
  10693. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10694. yes:no: )
  10695. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10696. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10697. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10698. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10699. ac_header_preproc=yes
  10700. ;;
  10701. no:yes:* )
  10702. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10703. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10704. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10705. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10706. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10707. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10708. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10709. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10710. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10711. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10712. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10713. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10714. ( cat <<\_ASBOX
  10715. ## ----------------------------------- ##
  10716. ## Report this to llvmbugs@cs.uiuc.edu ##
  10717. ## ----------------------------------- ##
  10718. _ASBOX
  10719. ) | sed "s/^/$as_me: WARNING: /" >&2
  10720. ;;
  10721. esac
  10722. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10723. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10724. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10725. echo $ECHO_N "(cached) $ECHO_C" >&6
  10726. else
  10727. eval "$as_ac_Header=\$ac_header_preproc"
  10728. fi
  10729. ac_res=`eval echo '${'$as_ac_Header'}'`
  10730. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10731. echo "${ECHO_T}$ac_res" >&6; }
  10732. fi
  10733. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10734. cat >>confdefs.h <<_ACEOF
  10735. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10736. _ACEOF
  10737. fi
  10738. done
  10739. for ac_header in string.h strings.h
  10740. do
  10741. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10742. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10743. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10744. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10745. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10746. echo $ECHO_N "(cached) $ECHO_C" >&6
  10747. fi
  10748. ac_res=`eval echo '${'$as_ac_Header'}'`
  10749. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10750. echo "${ECHO_T}$ac_res" >&6; }
  10751. else
  10752. # Is the header compilable?
  10753. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10754. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10755. cat >conftest.$ac_ext <<_ACEOF
  10756. /* confdefs.h. */
  10757. _ACEOF
  10758. cat confdefs.h >>conftest.$ac_ext
  10759. cat >>conftest.$ac_ext <<_ACEOF
  10760. /* end confdefs.h. */
  10761. $ac_includes_default
  10762. #include <$ac_header>
  10763. _ACEOF
  10764. rm -f conftest.$ac_objext
  10765. if { (ac_try="$ac_compile"
  10766. case "(($ac_try" in
  10767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10768. *) ac_try_echo=$ac_try;;
  10769. esac
  10770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10771. (eval "$ac_compile") 2>conftest.er1
  10772. ac_status=$?
  10773. grep -v '^ *+' conftest.er1 >conftest.err
  10774. rm -f conftest.er1
  10775. cat conftest.err >&5
  10776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10777. (exit $ac_status); } &&
  10778. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10779. { (case "(($ac_try" in
  10780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10781. *) ac_try_echo=$ac_try;;
  10782. esac
  10783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10784. (eval "$ac_try") 2>&5
  10785. ac_status=$?
  10786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10787. (exit $ac_status); }; } &&
  10788. { ac_try='test -s conftest.$ac_objext'
  10789. { (case "(($ac_try" in
  10790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10791. *) ac_try_echo=$ac_try;;
  10792. esac
  10793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10794. (eval "$ac_try") 2>&5
  10795. ac_status=$?
  10796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10797. (exit $ac_status); }; }; then
  10798. ac_header_compiler=yes
  10799. else
  10800. echo "$as_me: failed program was:" >&5
  10801. sed 's/^/| /' conftest.$ac_ext >&5
  10802. ac_header_compiler=no
  10803. fi
  10804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10805. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10806. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10807. # Is the header present?
  10808. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10809. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10810. cat >conftest.$ac_ext <<_ACEOF
  10811. /* confdefs.h. */
  10812. _ACEOF
  10813. cat confdefs.h >>conftest.$ac_ext
  10814. cat >>conftest.$ac_ext <<_ACEOF
  10815. /* end confdefs.h. */
  10816. #include <$ac_header>
  10817. _ACEOF
  10818. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10819. case "(($ac_try" in
  10820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10821. *) ac_try_echo=$ac_try;;
  10822. esac
  10823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10824. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10825. ac_status=$?
  10826. grep -v '^ *+' conftest.er1 >conftest.err
  10827. rm -f conftest.er1
  10828. cat conftest.err >&5
  10829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10830. (exit $ac_status); } >/dev/null; then
  10831. if test -s conftest.err; then
  10832. ac_cpp_err=$ac_c_preproc_warn_flag
  10833. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10834. else
  10835. ac_cpp_err=
  10836. fi
  10837. else
  10838. ac_cpp_err=yes
  10839. fi
  10840. if test -z "$ac_cpp_err"; then
  10841. ac_header_preproc=yes
  10842. else
  10843. echo "$as_me: failed program was:" >&5
  10844. sed 's/^/| /' conftest.$ac_ext >&5
  10845. ac_header_preproc=no
  10846. fi
  10847. rm -f conftest.err conftest.$ac_ext
  10848. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10849. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10850. # So? What about this header?
  10851. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10852. yes:no: )
  10853. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10854. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10855. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10856. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10857. ac_header_preproc=yes
  10858. ;;
  10859. no:yes:* )
  10860. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10861. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10862. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10863. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10864. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10865. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10866. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10867. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10868. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10869. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10870. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10871. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10872. ( cat <<\_ASBOX
  10873. ## ----------------------------------- ##
  10874. ## Report this to llvmbugs@cs.uiuc.edu ##
  10875. ## ----------------------------------- ##
  10876. _ASBOX
  10877. ) | sed "s/^/$as_me: WARNING: /" >&2
  10878. ;;
  10879. esac
  10880. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10882. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10883. echo $ECHO_N "(cached) $ECHO_C" >&6
  10884. else
  10885. eval "$as_ac_Header=\$ac_header_preproc"
  10886. fi
  10887. ac_res=`eval echo '${'$as_ac_Header'}'`
  10888. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10889. echo "${ECHO_T}$ac_res" >&6; }
  10890. fi
  10891. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10892. cat >>confdefs.h <<_ACEOF
  10893. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10894. _ACEOF
  10895. break
  10896. fi
  10897. done
  10898. for ac_func in strchr index
  10899. do
  10900. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10901. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10902. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10903. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10904. echo $ECHO_N "(cached) $ECHO_C" >&6
  10905. else
  10906. cat >conftest.$ac_ext <<_ACEOF
  10907. /* confdefs.h. */
  10908. _ACEOF
  10909. cat confdefs.h >>conftest.$ac_ext
  10910. cat >>conftest.$ac_ext <<_ACEOF
  10911. /* end confdefs.h. */
  10912. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10913. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10914. #define $ac_func innocuous_$ac_func
  10915. /* System header to define __stub macros and hopefully few prototypes,
  10916. which can conflict with char $ac_func (); below.
  10917. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10918. <limits.h> exists even on freestanding compilers. */
  10919. #ifdef __STDC__
  10920. # include <limits.h>
  10921. #else
  10922. # include <assert.h>
  10923. #endif
  10924. #undef $ac_func
  10925. /* Override any GCC internal prototype to avoid an error.
  10926. Use char because int might match the return type of a GCC
  10927. builtin and then its argument prototype would still apply. */
  10928. #ifdef __cplusplus
  10929. extern "C"
  10930. #endif
  10931. char $ac_func ();
  10932. /* The GNU C library defines this for functions which it implements
  10933. to always fail with ENOSYS. Some functions are actually named
  10934. something starting with __ and the normal name is an alias. */
  10935. #if defined __stub_$ac_func || defined __stub___$ac_func
  10936. choke me
  10937. #endif
  10938. int
  10939. main ()
  10940. {
  10941. return $ac_func ();
  10942. ;
  10943. return 0;
  10944. }
  10945. _ACEOF
  10946. rm -f conftest.$ac_objext conftest$ac_exeext
  10947. if { (ac_try="$ac_link"
  10948. case "(($ac_try" in
  10949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10950. *) ac_try_echo=$ac_try;;
  10951. esac
  10952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10953. (eval "$ac_link") 2>conftest.er1
  10954. ac_status=$?
  10955. grep -v '^ *+' conftest.er1 >conftest.err
  10956. rm -f conftest.er1
  10957. cat conftest.err >&5
  10958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10959. (exit $ac_status); } &&
  10960. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10961. { (case "(($ac_try" in
  10962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10963. *) ac_try_echo=$ac_try;;
  10964. esac
  10965. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10966. (eval "$ac_try") 2>&5
  10967. ac_status=$?
  10968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10969. (exit $ac_status); }; } &&
  10970. { ac_try='test -s conftest$ac_exeext'
  10971. { (case "(($ac_try" in
  10972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10973. *) ac_try_echo=$ac_try;;
  10974. esac
  10975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10976. (eval "$ac_try") 2>&5
  10977. ac_status=$?
  10978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10979. (exit $ac_status); }; }; then
  10980. eval "$as_ac_var=yes"
  10981. else
  10982. echo "$as_me: failed program was:" >&5
  10983. sed 's/^/| /' conftest.$ac_ext >&5
  10984. eval "$as_ac_var=no"
  10985. fi
  10986. rm -f core conftest.err conftest.$ac_objext \
  10987. conftest$ac_exeext conftest.$ac_ext
  10988. fi
  10989. ac_res=`eval echo '${'$as_ac_var'}'`
  10990. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10991. echo "${ECHO_T}$ac_res" >&6; }
  10992. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10993. cat >>confdefs.h <<_ACEOF
  10994. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10995. _ACEOF
  10996. break
  10997. fi
  10998. done
  10999. for ac_func in strrchr rindex
  11000. do
  11001. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11002. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11003. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11004. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11005. echo $ECHO_N "(cached) $ECHO_C" >&6
  11006. else
  11007. cat >conftest.$ac_ext <<_ACEOF
  11008. /* confdefs.h. */
  11009. _ACEOF
  11010. cat confdefs.h >>conftest.$ac_ext
  11011. cat >>conftest.$ac_ext <<_ACEOF
  11012. /* end confdefs.h. */
  11013. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11014. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11015. #define $ac_func innocuous_$ac_func
  11016. /* System header to define __stub macros and hopefully few prototypes,
  11017. which can conflict with char $ac_func (); below.
  11018. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11019. <limits.h> exists even on freestanding compilers. */
  11020. #ifdef __STDC__
  11021. # include <limits.h>
  11022. #else
  11023. # include <assert.h>
  11024. #endif
  11025. #undef $ac_func
  11026. /* Override any GCC internal prototype to avoid an error.
  11027. Use char because int might match the return type of a GCC
  11028. builtin and then its argument prototype would still apply. */
  11029. #ifdef __cplusplus
  11030. extern "C"
  11031. #endif
  11032. char $ac_func ();
  11033. /* The GNU C library defines this for functions which it implements
  11034. to always fail with ENOSYS. Some functions are actually named
  11035. something starting with __ and the normal name is an alias. */
  11036. #if defined __stub_$ac_func || defined __stub___$ac_func
  11037. choke me
  11038. #endif
  11039. int
  11040. main ()
  11041. {
  11042. return $ac_func ();
  11043. ;
  11044. return 0;
  11045. }
  11046. _ACEOF
  11047. rm -f conftest.$ac_objext conftest$ac_exeext
  11048. if { (ac_try="$ac_link"
  11049. case "(($ac_try" in
  11050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11051. *) ac_try_echo=$ac_try;;
  11052. esac
  11053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11054. (eval "$ac_link") 2>conftest.er1
  11055. ac_status=$?
  11056. grep -v '^ *+' conftest.er1 >conftest.err
  11057. rm -f conftest.er1
  11058. cat conftest.err >&5
  11059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11060. (exit $ac_status); } &&
  11061. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11062. { (case "(($ac_try" in
  11063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11064. *) ac_try_echo=$ac_try;;
  11065. esac
  11066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11067. (eval "$ac_try") 2>&5
  11068. ac_status=$?
  11069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11070. (exit $ac_status); }; } &&
  11071. { ac_try='test -s conftest$ac_exeext'
  11072. { (case "(($ac_try" in
  11073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11074. *) ac_try_echo=$ac_try;;
  11075. esac
  11076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11077. (eval "$ac_try") 2>&5
  11078. ac_status=$?
  11079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11080. (exit $ac_status); }; }; then
  11081. eval "$as_ac_var=yes"
  11082. else
  11083. echo "$as_me: failed program was:" >&5
  11084. sed 's/^/| /' conftest.$ac_ext >&5
  11085. eval "$as_ac_var=no"
  11086. fi
  11087. rm -f core conftest.err conftest.$ac_objext \
  11088. conftest$ac_exeext conftest.$ac_ext
  11089. fi
  11090. ac_res=`eval echo '${'$as_ac_var'}'`
  11091. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11092. echo "${ECHO_T}$ac_res" >&6; }
  11093. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11094. cat >>confdefs.h <<_ACEOF
  11095. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11096. _ACEOF
  11097. break
  11098. fi
  11099. done
  11100. for ac_func in memcpy bcopy
  11101. do
  11102. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11103. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11104. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11105. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11106. echo $ECHO_N "(cached) $ECHO_C" >&6
  11107. else
  11108. cat >conftest.$ac_ext <<_ACEOF
  11109. /* confdefs.h. */
  11110. _ACEOF
  11111. cat confdefs.h >>conftest.$ac_ext
  11112. cat >>conftest.$ac_ext <<_ACEOF
  11113. /* end confdefs.h. */
  11114. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11115. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11116. #define $ac_func innocuous_$ac_func
  11117. /* System header to define __stub macros and hopefully few prototypes,
  11118. which can conflict with char $ac_func (); below.
  11119. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11120. <limits.h> exists even on freestanding compilers. */
  11121. #ifdef __STDC__
  11122. # include <limits.h>
  11123. #else
  11124. # include <assert.h>
  11125. #endif
  11126. #undef $ac_func
  11127. /* Override any GCC internal prototype to avoid an error.
  11128. Use char because int might match the return type of a GCC
  11129. builtin and then its argument prototype would still apply. */
  11130. #ifdef __cplusplus
  11131. extern "C"
  11132. #endif
  11133. char $ac_func ();
  11134. /* The GNU C library defines this for functions which it implements
  11135. to always fail with ENOSYS. Some functions are actually named
  11136. something starting with __ and the normal name is an alias. */
  11137. #if defined __stub_$ac_func || defined __stub___$ac_func
  11138. choke me
  11139. #endif
  11140. int
  11141. main ()
  11142. {
  11143. return $ac_func ();
  11144. ;
  11145. return 0;
  11146. }
  11147. _ACEOF
  11148. rm -f conftest.$ac_objext conftest$ac_exeext
  11149. if { (ac_try="$ac_link"
  11150. case "(($ac_try" in
  11151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11152. *) ac_try_echo=$ac_try;;
  11153. esac
  11154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11155. (eval "$ac_link") 2>conftest.er1
  11156. ac_status=$?
  11157. grep -v '^ *+' conftest.er1 >conftest.err
  11158. rm -f conftest.er1
  11159. cat conftest.err >&5
  11160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11161. (exit $ac_status); } &&
  11162. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11163. { (case "(($ac_try" in
  11164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11165. *) ac_try_echo=$ac_try;;
  11166. esac
  11167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11168. (eval "$ac_try") 2>&5
  11169. ac_status=$?
  11170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11171. (exit $ac_status); }; } &&
  11172. { ac_try='test -s conftest$ac_exeext'
  11173. { (case "(($ac_try" in
  11174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11175. *) ac_try_echo=$ac_try;;
  11176. esac
  11177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11178. (eval "$ac_try") 2>&5
  11179. ac_status=$?
  11180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11181. (exit $ac_status); }; }; then
  11182. eval "$as_ac_var=yes"
  11183. else
  11184. echo "$as_me: failed program was:" >&5
  11185. sed 's/^/| /' conftest.$ac_ext >&5
  11186. eval "$as_ac_var=no"
  11187. fi
  11188. rm -f core conftest.err conftest.$ac_objext \
  11189. conftest$ac_exeext conftest.$ac_ext
  11190. fi
  11191. ac_res=`eval echo '${'$as_ac_var'}'`
  11192. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11193. echo "${ECHO_T}$ac_res" >&6; }
  11194. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11195. cat >>confdefs.h <<_ACEOF
  11196. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11197. _ACEOF
  11198. break
  11199. fi
  11200. done
  11201. for ac_func in memmove strcmp
  11202. do
  11203. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11204. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11205. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11206. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11207. echo $ECHO_N "(cached) $ECHO_C" >&6
  11208. else
  11209. cat >conftest.$ac_ext <<_ACEOF
  11210. /* confdefs.h. */
  11211. _ACEOF
  11212. cat confdefs.h >>conftest.$ac_ext
  11213. cat >>conftest.$ac_ext <<_ACEOF
  11214. /* end confdefs.h. */
  11215. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11216. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11217. #define $ac_func innocuous_$ac_func
  11218. /* System header to define __stub macros and hopefully few prototypes,
  11219. which can conflict with char $ac_func (); below.
  11220. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11221. <limits.h> exists even on freestanding compilers. */
  11222. #ifdef __STDC__
  11223. # include <limits.h>
  11224. #else
  11225. # include <assert.h>
  11226. #endif
  11227. #undef $ac_func
  11228. /* Override any GCC internal prototype to avoid an error.
  11229. Use char because int might match the return type of a GCC
  11230. builtin and then its argument prototype would still apply. */
  11231. #ifdef __cplusplus
  11232. extern "C"
  11233. #endif
  11234. char $ac_func ();
  11235. /* The GNU C library defines this for functions which it implements
  11236. to always fail with ENOSYS. Some functions are actually named
  11237. something starting with __ and the normal name is an alias. */
  11238. #if defined __stub_$ac_func || defined __stub___$ac_func
  11239. choke me
  11240. #endif
  11241. int
  11242. main ()
  11243. {
  11244. return $ac_func ();
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. rm -f conftest.$ac_objext conftest$ac_exeext
  11250. if { (ac_try="$ac_link"
  11251. case "(($ac_try" in
  11252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11253. *) ac_try_echo=$ac_try;;
  11254. esac
  11255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11256. (eval "$ac_link") 2>conftest.er1
  11257. ac_status=$?
  11258. grep -v '^ *+' conftest.er1 >conftest.err
  11259. rm -f conftest.er1
  11260. cat conftest.err >&5
  11261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11262. (exit $ac_status); } &&
  11263. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11264. { (case "(($ac_try" in
  11265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11266. *) ac_try_echo=$ac_try;;
  11267. esac
  11268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11269. (eval "$ac_try") 2>&5
  11270. ac_status=$?
  11271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11272. (exit $ac_status); }; } &&
  11273. { ac_try='test -s conftest$ac_exeext'
  11274. { (case "(($ac_try" in
  11275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11276. *) ac_try_echo=$ac_try;;
  11277. esac
  11278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11279. (eval "$ac_try") 2>&5
  11280. ac_status=$?
  11281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11282. (exit $ac_status); }; }; then
  11283. eval "$as_ac_var=yes"
  11284. else
  11285. echo "$as_me: failed program was:" >&5
  11286. sed 's/^/| /' conftest.$ac_ext >&5
  11287. eval "$as_ac_var=no"
  11288. fi
  11289. rm -f core conftest.err conftest.$ac_objext \
  11290. conftest$ac_exeext conftest.$ac_ext
  11291. fi
  11292. ac_res=`eval echo '${'$as_ac_var'}'`
  11293. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11294. echo "${ECHO_T}$ac_res" >&6; }
  11295. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11296. cat >>confdefs.h <<_ACEOF
  11297. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11298. _ACEOF
  11299. fi
  11300. done
  11301. for ac_func in closedir opendir readdir
  11302. do
  11303. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11304. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11305. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11306. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11307. echo $ECHO_N "(cached) $ECHO_C" >&6
  11308. else
  11309. cat >conftest.$ac_ext <<_ACEOF
  11310. /* confdefs.h. */
  11311. _ACEOF
  11312. cat confdefs.h >>conftest.$ac_ext
  11313. cat >>conftest.$ac_ext <<_ACEOF
  11314. /* end confdefs.h. */
  11315. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11316. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11317. #define $ac_func innocuous_$ac_func
  11318. /* System header to define __stub macros and hopefully few prototypes,
  11319. which can conflict with char $ac_func (); below.
  11320. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11321. <limits.h> exists even on freestanding compilers. */
  11322. #ifdef __STDC__
  11323. # include <limits.h>
  11324. #else
  11325. # include <assert.h>
  11326. #endif
  11327. #undef $ac_func
  11328. /* Override any GCC internal prototype to avoid an error.
  11329. Use char because int might match the return type of a GCC
  11330. builtin and then its argument prototype would still apply. */
  11331. #ifdef __cplusplus
  11332. extern "C"
  11333. #endif
  11334. char $ac_func ();
  11335. /* The GNU C library defines this for functions which it implements
  11336. to always fail with ENOSYS. Some functions are actually named
  11337. something starting with __ and the normal name is an alias. */
  11338. #if defined __stub_$ac_func || defined __stub___$ac_func
  11339. choke me
  11340. #endif
  11341. int
  11342. main ()
  11343. {
  11344. return $ac_func ();
  11345. ;
  11346. return 0;
  11347. }
  11348. _ACEOF
  11349. rm -f conftest.$ac_objext conftest$ac_exeext
  11350. if { (ac_try="$ac_link"
  11351. case "(($ac_try" in
  11352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11353. *) ac_try_echo=$ac_try;;
  11354. esac
  11355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11356. (eval "$ac_link") 2>conftest.er1
  11357. ac_status=$?
  11358. grep -v '^ *+' conftest.er1 >conftest.err
  11359. rm -f conftest.er1
  11360. cat conftest.err >&5
  11361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11362. (exit $ac_status); } &&
  11363. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11364. { (case "(($ac_try" in
  11365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11366. *) ac_try_echo=$ac_try;;
  11367. esac
  11368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11369. (eval "$ac_try") 2>&5
  11370. ac_status=$?
  11371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11372. (exit $ac_status); }; } &&
  11373. { ac_try='test -s conftest$ac_exeext'
  11374. { (case "(($ac_try" in
  11375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11376. *) ac_try_echo=$ac_try;;
  11377. esac
  11378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11379. (eval "$ac_try") 2>&5
  11380. ac_status=$?
  11381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11382. (exit $ac_status); }; }; then
  11383. eval "$as_ac_var=yes"
  11384. else
  11385. echo "$as_me: failed program was:" >&5
  11386. sed 's/^/| /' conftest.$ac_ext >&5
  11387. eval "$as_ac_var=no"
  11388. fi
  11389. rm -f core conftest.err conftest.$ac_objext \
  11390. conftest$ac_exeext conftest.$ac_ext
  11391. fi
  11392. ac_res=`eval echo '${'$as_ac_var'}'`
  11393. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11394. echo "${ECHO_T}$ac_res" >&6; }
  11395. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11396. cat >>confdefs.h <<_ACEOF
  11397. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11398. _ACEOF
  11399. fi
  11400. done
  11401. # Check whether --enable-shared was given.
  11402. if test "${enable_shared+set}" = set; then
  11403. enableval=$enable_shared; p=${PACKAGE-default}
  11404. case $enableval in
  11405. yes) enable_shared=yes ;;
  11406. no) enable_shared=no ;;
  11407. *)
  11408. enable_shared=no
  11409. # Look at the argument we got. We use all the common list separators.
  11410. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11411. for pkg in $enableval; do
  11412. IFS="$lt_save_ifs"
  11413. if test "X$pkg" = "X$p"; then
  11414. enable_shared=yes
  11415. fi
  11416. done
  11417. IFS="$lt_save_ifs"
  11418. ;;
  11419. esac
  11420. else
  11421. enable_shared=yes
  11422. fi
  11423. # Check whether --enable-static was given.
  11424. if test "${enable_static+set}" = set; then
  11425. enableval=$enable_static; p=${PACKAGE-default}
  11426. case $enableval in
  11427. yes) enable_static=yes ;;
  11428. no) enable_static=no ;;
  11429. *)
  11430. enable_static=no
  11431. # Look at the argument we got. We use all the common list separators.
  11432. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11433. for pkg in $enableval; do
  11434. IFS="$lt_save_ifs"
  11435. if test "X$pkg" = "X$p"; then
  11436. enable_static=yes
  11437. fi
  11438. done
  11439. IFS="$lt_save_ifs"
  11440. ;;
  11441. esac
  11442. else
  11443. enable_static=yes
  11444. fi
  11445. # Check whether --enable-fast-install was given.
  11446. if test "${enable_fast_install+set}" = set; then
  11447. enableval=$enable_fast_install; p=${PACKAGE-default}
  11448. case $enableval in
  11449. yes) enable_fast_install=yes ;;
  11450. no) enable_fast_install=no ;;
  11451. *)
  11452. enable_fast_install=no
  11453. # Look at the argument we got. We use all the common list separators.
  11454. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11455. for pkg in $enableval; do
  11456. IFS="$lt_save_ifs"
  11457. if test "X$pkg" = "X$p"; then
  11458. enable_fast_install=yes
  11459. fi
  11460. done
  11461. IFS="$lt_save_ifs"
  11462. ;;
  11463. esac
  11464. else
  11465. enable_fast_install=yes
  11466. fi
  11467. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  11468. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  11469. if test "${lt_cv_path_SED+set}" = set; then
  11470. echo $ECHO_N "(cached) $ECHO_C" >&6
  11471. else
  11472. # Loop through the user's path and test for sed and gsed.
  11473. # Then use that list of sed's as ones to test for truncation.
  11474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11475. for as_dir in $PATH
  11476. do
  11477. IFS=$as_save_IFS
  11478. test -z "$as_dir" && as_dir=.
  11479. for lt_ac_prog in sed gsed; do
  11480. for ac_exec_ext in '' $ac_executable_extensions; do
  11481. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11482. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11483. fi
  11484. done
  11485. done
  11486. done
  11487. lt_ac_max=0
  11488. lt_ac_count=0
  11489. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11490. # along with /bin/sed that truncates output.
  11491. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11492. test ! -f $lt_ac_sed && continue
  11493. cat /dev/null > conftest.in
  11494. lt_ac_count=0
  11495. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11496. # Check for GNU sed and select it if it is found.
  11497. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11498. lt_cv_path_SED=$lt_ac_sed
  11499. break
  11500. fi
  11501. while true; do
  11502. cat conftest.in conftest.in >conftest.tmp
  11503. mv conftest.tmp conftest.in
  11504. cp conftest.in conftest.nl
  11505. echo >>conftest.nl
  11506. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11507. cmp -s conftest.out conftest.nl || break
  11508. # 10000 chars as input seems more than enough
  11509. test $lt_ac_count -gt 10 && break
  11510. lt_ac_count=`expr $lt_ac_count + 1`
  11511. if test $lt_ac_count -gt $lt_ac_max; then
  11512. lt_ac_max=$lt_ac_count
  11513. lt_cv_path_SED=$lt_ac_sed
  11514. fi
  11515. done
  11516. done
  11517. fi
  11518. SED=$lt_cv_path_SED
  11519. { echo "$as_me:$LINENO: result: $SED" >&5
  11520. echo "${ECHO_T}$SED" >&6; }
  11521. # Check whether --with-gnu-ld was given.
  11522. if test "${with_gnu_ld+set}" = set; then
  11523. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11524. else
  11525. with_gnu_ld=no
  11526. fi
  11527. ac_prog=ld
  11528. if test "$GCC" = yes; then
  11529. # Check if gcc -print-prog-name=ld gives a path.
  11530. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11531. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  11532. case $host in
  11533. *-*-mingw*)
  11534. # gcc leaves a trailing carriage return which upsets mingw
  11535. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11536. *)
  11537. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11538. esac
  11539. case $ac_prog in
  11540. # Accept absolute paths.
  11541. [\\/]* | ?:[\\/]*)
  11542. re_direlt='/[^/][^/]*/\.\./'
  11543. # Canonicalize the pathname of ld
  11544. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  11545. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11546. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  11547. done
  11548. test -z "$LD" && LD="$ac_prog"
  11549. ;;
  11550. "")
  11551. # If it fails, then pretend we aren't using GCC.
  11552. ac_prog=ld
  11553. ;;
  11554. *)
  11555. # If it is relative, then search for the first ld in PATH.
  11556. with_gnu_ld=unknown
  11557. ;;
  11558. esac
  11559. elif test "$with_gnu_ld" = yes; then
  11560. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  11561. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  11562. else
  11563. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11564. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  11565. fi
  11566. if test "${lt_cv_path_LD+set}" = set; then
  11567. echo $ECHO_N "(cached) $ECHO_C" >&6
  11568. else
  11569. if test -z "$LD"; then
  11570. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11571. for ac_dir in $PATH; do
  11572. IFS="$lt_save_ifs"
  11573. test -z "$ac_dir" && ac_dir=.
  11574. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11575. lt_cv_path_LD="$ac_dir/$ac_prog"
  11576. # Check to see if the program is GNU ld. I'd rather use --version,
  11577. # but apparently some variants of GNU ld only accept -v.
  11578. # Break only if it was the GNU/non-GNU ld that we prefer.
  11579. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11580. *GNU* | *'with BFD'*)
  11581. test "$with_gnu_ld" != no && break
  11582. ;;
  11583. *)
  11584. test "$with_gnu_ld" != yes && break
  11585. ;;
  11586. esac
  11587. fi
  11588. done
  11589. IFS="$lt_save_ifs"
  11590. else
  11591. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11592. fi
  11593. fi
  11594. LD="$lt_cv_path_LD"
  11595. if test -n "$LD"; then
  11596. { echo "$as_me:$LINENO: result: $LD" >&5
  11597. echo "${ECHO_T}$LD" >&6; }
  11598. else
  11599. { echo "$as_me:$LINENO: result: no" >&5
  11600. echo "${ECHO_T}no" >&6; }
  11601. fi
  11602. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11603. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11604. { (exit 1); exit 1; }; }
  11605. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11606. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  11607. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11608. echo $ECHO_N "(cached) $ECHO_C" >&6
  11609. else
  11610. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11611. case `$LD -v 2>&1 </dev/null` in
  11612. *GNU* | *'with BFD'*)
  11613. lt_cv_prog_gnu_ld=yes
  11614. ;;
  11615. *)
  11616. lt_cv_prog_gnu_ld=no
  11617. ;;
  11618. esac
  11619. fi
  11620. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11621. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  11622. with_gnu_ld=$lt_cv_prog_gnu_ld
  11623. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  11624. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  11625. if test "${lt_cv_ld_reload_flag+set}" = set; then
  11626. echo $ECHO_N "(cached) $ECHO_C" >&6
  11627. else
  11628. lt_cv_ld_reload_flag='-r'
  11629. fi
  11630. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  11631. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  11632. reload_flag=$lt_cv_ld_reload_flag
  11633. case $reload_flag in
  11634. "" | " "*) ;;
  11635. *) reload_flag=" $reload_flag" ;;
  11636. esac
  11637. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  11638. case $host_os in
  11639. darwin*)
  11640. if test "$GCC" = yes; then
  11641. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
  11642. else
  11643. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  11644. fi
  11645. ;;
  11646. esac
  11647. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  11648. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  11649. if test "${lt_cv_deplibs_check_method+set}" = set; then
  11650. echo $ECHO_N "(cached) $ECHO_C" >&6
  11651. else
  11652. lt_cv_file_magic_cmd='$MAGIC_CMD'
  11653. lt_cv_file_magic_test_file=
  11654. lt_cv_deplibs_check_method='unknown'
  11655. # Need to set the preceding variable on all platforms that support
  11656. # interlibrary dependencies.
  11657. # 'none' -- dependencies not supported.
  11658. # `unknown' -- same as none, but documents that we really don't know.
  11659. # 'pass_all' -- all dependencies passed with no checks.
  11660. # 'test_compile' -- check by making test program.
  11661. # 'file_magic [[regex]]' -- check by looking for files in library path
  11662. # which responds to the $file_magic_cmd with a given extended regex.
  11663. # If you have `file' or equivalent on your system and you're not sure
  11664. # whether `pass_all' will *always* work, you probably want this one.
  11665. case $host_os in
  11666. aix4* | aix5*)
  11667. lt_cv_deplibs_check_method=pass_all
  11668. ;;
  11669. beos*)
  11670. lt_cv_deplibs_check_method=pass_all
  11671. ;;
  11672. bsdi[45]*)
  11673. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  11674. lt_cv_file_magic_cmd='/usr/bin/file -L'
  11675. lt_cv_file_magic_test_file=/shlib/libc.so
  11676. ;;
  11677. cygwin*)
  11678. # func_win32_libid is a shell function defined in ltmain.sh
  11679. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  11680. lt_cv_file_magic_cmd='func_win32_libid'
  11681. ;;
  11682. mingw* | pw32*)
  11683. # Base MSYS/MinGW do not provide the 'file' command needed by
  11684. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  11685. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  11686. lt_cv_file_magic_cmd='$OBJDUMP -f'
  11687. ;;
  11688. darwin* | rhapsody*)
  11689. lt_cv_deplibs_check_method=pass_all
  11690. ;;
  11691. freebsd* | kfreebsd*-gnu | dragonfly*)
  11692. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  11693. case $host_cpu in
  11694. i*86 )
  11695. # Not sure whether the presence of OpenBSD here was a mistake.
  11696. # Let's accept both of them until this is cleared up.
  11697. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  11698. lt_cv_file_magic_cmd=/usr/bin/file
  11699. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  11700. ;;
  11701. esac
  11702. else
  11703. lt_cv_deplibs_check_method=pass_all
  11704. fi
  11705. ;;
  11706. gnu*)
  11707. lt_cv_deplibs_check_method=pass_all
  11708. ;;
  11709. hpux10.20* | hpux11*)
  11710. lt_cv_file_magic_cmd=/usr/bin/file
  11711. case $host_cpu in
  11712. ia64*)
  11713. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  11714. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  11715. ;;
  11716. hppa*64*)
  11717. 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]'
  11718. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  11719. ;;
  11720. *)
  11721. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  11722. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  11723. ;;
  11724. esac
  11725. ;;
  11726. interix3*)
  11727. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  11728. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  11729. ;;
  11730. irix5* | irix6* | nonstopux*)
  11731. case $LD in
  11732. *-32|*"-32 ") libmagic=32-bit;;
  11733. *-n32|*"-n32 ") libmagic=N32;;
  11734. *-64|*"-64 ") libmagic=64-bit;;
  11735. *) libmagic=never-match;;
  11736. esac
  11737. lt_cv_deplibs_check_method=pass_all
  11738. ;;
  11739. # This must be Linux ELF.
  11740. linux*)
  11741. lt_cv_deplibs_check_method=pass_all
  11742. ;;
  11743. netbsd*)
  11744. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  11745. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  11746. else
  11747. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  11748. fi
  11749. ;;
  11750. newos6*)
  11751. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  11752. lt_cv_file_magic_cmd=/usr/bin/file
  11753. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  11754. ;;
  11755. nto-qnx*)
  11756. lt_cv_deplibs_check_method=unknown
  11757. ;;
  11758. openbsd*)
  11759. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11760. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  11761. else
  11762. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  11763. fi
  11764. ;;
  11765. osf3* | osf4* | osf5*)
  11766. lt_cv_deplibs_check_method=pass_all
  11767. ;;
  11768. solaris*)
  11769. lt_cv_deplibs_check_method=pass_all
  11770. ;;
  11771. sysv4 | sysv4.3*)
  11772. case $host_vendor in
  11773. motorola)
  11774. 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]'
  11775. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  11776. ;;
  11777. ncr)
  11778. lt_cv_deplibs_check_method=pass_all
  11779. ;;
  11780. sequent)
  11781. lt_cv_file_magic_cmd='/bin/file'
  11782. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  11783. ;;
  11784. sni)
  11785. lt_cv_file_magic_cmd='/bin/file'
  11786. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  11787. lt_cv_file_magic_test_file=/lib/libc.so
  11788. ;;
  11789. siemens)
  11790. lt_cv_deplibs_check_method=pass_all
  11791. ;;
  11792. pc)
  11793. lt_cv_deplibs_check_method=pass_all
  11794. ;;
  11795. esac
  11796. ;;
  11797. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11798. lt_cv_deplibs_check_method=pass_all
  11799. ;;
  11800. esac
  11801. fi
  11802. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  11803. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  11804. file_magic_cmd=$lt_cv_file_magic_cmd
  11805. deplibs_check_method=$lt_cv_deplibs_check_method
  11806. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  11807. # If no C compiler was specified, use CC.
  11808. LTCC=${LTCC-"$CC"}
  11809. # If no C compiler flags were specified, use CFLAGS.
  11810. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11811. # Allow CC to be a program name with arguments.
  11812. compiler=$CC
  11813. # Check whether --enable-libtool-lock was given.
  11814. if test "${enable_libtool_lock+set}" = set; then
  11815. enableval=$enable_libtool_lock;
  11816. fi
  11817. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  11818. # Some flags need to be propagated to the compiler or linker for good
  11819. # libtool support.
  11820. case $host in
  11821. ia64-*-hpux*)
  11822. # Find out which ABI we are using.
  11823. echo 'int i;' > conftest.$ac_ext
  11824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11825. (eval $ac_compile) 2>&5
  11826. ac_status=$?
  11827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11828. (exit $ac_status); }; then
  11829. case `/usr/bin/file conftest.$ac_objext` in
  11830. *ELF-32*)
  11831. HPUX_IA64_MODE="32"
  11832. ;;
  11833. *ELF-64*)
  11834. HPUX_IA64_MODE="64"
  11835. ;;
  11836. esac
  11837. fi
  11838. rm -rf conftest*
  11839. ;;
  11840. *-*-irix6*)
  11841. # Find out which ABI we are using.
  11842. echo '#line 13135 "configure"' > conftest.$ac_ext
  11843. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11844. (eval $ac_compile) 2>&5
  11845. ac_status=$?
  11846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11847. (exit $ac_status); }; then
  11848. if test "$lt_cv_prog_gnu_ld" = yes; then
  11849. case `/usr/bin/file conftest.$ac_objext` in
  11850. *32-bit*)
  11851. LD="${LD-ld} -melf32bsmip"
  11852. ;;
  11853. *N32*)
  11854. LD="${LD-ld} -melf32bmipn32"
  11855. ;;
  11856. *64-bit*)
  11857. LD="${LD-ld} -melf64bmip"
  11858. ;;
  11859. esac
  11860. else
  11861. case `/usr/bin/file conftest.$ac_objext` in
  11862. *32-bit*)
  11863. LD="${LD-ld} -32"
  11864. ;;
  11865. *N32*)
  11866. LD="${LD-ld} -n32"
  11867. ;;
  11868. *64-bit*)
  11869. LD="${LD-ld} -64"
  11870. ;;
  11871. esac
  11872. fi
  11873. fi
  11874. rm -rf conftest*
  11875. ;;
  11876. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  11877. # Find out which ABI we are using.
  11878. echo 'int i;' > conftest.$ac_ext
  11879. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11880. (eval $ac_compile) 2>&5
  11881. ac_status=$?
  11882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11883. (exit $ac_status); }; then
  11884. case `/usr/bin/file conftest.o` in
  11885. *32-bit*)
  11886. case $host in
  11887. x86_64-*linux*)
  11888. LD="${LD-ld} -m elf_i386"
  11889. ;;
  11890. ppc64-*linux*|powerpc64-*linux*)
  11891. LD="${LD-ld} -m elf32ppclinux"
  11892. ;;
  11893. s390x-*linux*)
  11894. LD="${LD-ld} -m elf_s390"
  11895. ;;
  11896. sparc64-*linux*)
  11897. LD="${LD-ld} -m elf32_sparc"
  11898. ;;
  11899. esac
  11900. ;;
  11901. *64-bit*)
  11902. case $host in
  11903. x86_64-*linux*)
  11904. LD="${LD-ld} -m elf_x86_64"
  11905. ;;
  11906. ppc*-*linux*|powerpc*-*linux*)
  11907. LD="${LD-ld} -m elf64ppc"
  11908. ;;
  11909. s390*-*linux*)
  11910. LD="${LD-ld} -m elf64_s390"
  11911. ;;
  11912. sparc*-*linux*)
  11913. LD="${LD-ld} -m elf64_sparc"
  11914. ;;
  11915. esac
  11916. ;;
  11917. esac
  11918. fi
  11919. rm -rf conftest*
  11920. ;;
  11921. *-*-sco3.2v5*)
  11922. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  11923. SAVE_CFLAGS="$CFLAGS"
  11924. CFLAGS="$CFLAGS -belf"
  11925. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  11926. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  11927. if test "${lt_cv_cc_needs_belf+set}" = set; then
  11928. echo $ECHO_N "(cached) $ECHO_C" >&6
  11929. else
  11930. ac_ext=c
  11931. ac_cpp='$CPP $CPPFLAGS'
  11932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11935. cat >conftest.$ac_ext <<_ACEOF
  11936. /* confdefs.h. */
  11937. _ACEOF
  11938. cat confdefs.h >>conftest.$ac_ext
  11939. cat >>conftest.$ac_ext <<_ACEOF
  11940. /* end confdefs.h. */
  11941. int
  11942. main ()
  11943. {
  11944. ;
  11945. return 0;
  11946. }
  11947. _ACEOF
  11948. rm -f conftest.$ac_objext conftest$ac_exeext
  11949. if { (ac_try="$ac_link"
  11950. case "(($ac_try" in
  11951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11952. *) ac_try_echo=$ac_try;;
  11953. esac
  11954. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11955. (eval "$ac_link") 2>conftest.er1
  11956. ac_status=$?
  11957. grep -v '^ *+' conftest.er1 >conftest.err
  11958. rm -f conftest.er1
  11959. cat conftest.err >&5
  11960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11961. (exit $ac_status); } &&
  11962. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11963. { (case "(($ac_try" in
  11964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11965. *) ac_try_echo=$ac_try;;
  11966. esac
  11967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11968. (eval "$ac_try") 2>&5
  11969. ac_status=$?
  11970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11971. (exit $ac_status); }; } &&
  11972. { ac_try='test -s conftest$ac_exeext'
  11973. { (case "(($ac_try" in
  11974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11975. *) ac_try_echo=$ac_try;;
  11976. esac
  11977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11978. (eval "$ac_try") 2>&5
  11979. ac_status=$?
  11980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11981. (exit $ac_status); }; }; then
  11982. lt_cv_cc_needs_belf=yes
  11983. else
  11984. echo "$as_me: failed program was:" >&5
  11985. sed 's/^/| /' conftest.$ac_ext >&5
  11986. lt_cv_cc_needs_belf=no
  11987. fi
  11988. rm -f core conftest.err conftest.$ac_objext \
  11989. conftest$ac_exeext conftest.$ac_ext
  11990. ac_ext=c
  11991. ac_cpp='$CPP $CPPFLAGS'
  11992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11995. fi
  11996. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  11997. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  11998. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  11999. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  12000. CFLAGS="$SAVE_CFLAGS"
  12001. fi
  12002. ;;
  12003. sparc*-*solaris*)
  12004. # Find out which ABI we are using.
  12005. echo 'int i;' > conftest.$ac_ext
  12006. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12007. (eval $ac_compile) 2>&5
  12008. ac_status=$?
  12009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12010. (exit $ac_status); }; then
  12011. case `/usr/bin/file conftest.o` in
  12012. *64-bit*)
  12013. case $lt_cv_prog_gnu_ld in
  12014. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  12015. *) LD="${LD-ld} -64" ;;
  12016. esac
  12017. ;;
  12018. esac
  12019. fi
  12020. rm -rf conftest*
  12021. ;;
  12022. esac
  12023. need_locks="$enable_libtool_lock"
  12024. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  12025. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  12026. (test "X$CXX" != "Xg++"))) ; then
  12027. ac_ext=cpp
  12028. ac_cpp='$CXXCPP $CPPFLAGS'
  12029. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12030. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12031. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12032. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  12033. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  12034. if test -z "$CXXCPP"; then
  12035. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  12036. echo $ECHO_N "(cached) $ECHO_C" >&6
  12037. else
  12038. # Double quotes because CXXCPP needs to be expanded
  12039. for CXXCPP in "$CXX -E" "/lib/cpp"
  12040. do
  12041. ac_preproc_ok=false
  12042. for ac_cxx_preproc_warn_flag in '' yes
  12043. do
  12044. # Use a header file that comes with gcc, so configuring glibc
  12045. # with a fresh cross-compiler works.
  12046. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12047. # <limits.h> exists even on freestanding compilers.
  12048. # On the NeXT, cc -E runs the code through the compiler's parser,
  12049. # not just through cpp. "Syntax error" is here to catch this case.
  12050. cat >conftest.$ac_ext <<_ACEOF
  12051. /* confdefs.h. */
  12052. _ACEOF
  12053. cat confdefs.h >>conftest.$ac_ext
  12054. cat >>conftest.$ac_ext <<_ACEOF
  12055. /* end confdefs.h. */
  12056. #ifdef __STDC__
  12057. # include <limits.h>
  12058. #else
  12059. # include <assert.h>
  12060. #endif
  12061. Syntax error
  12062. _ACEOF
  12063. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12064. case "(($ac_try" in
  12065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12066. *) ac_try_echo=$ac_try;;
  12067. esac
  12068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12069. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12070. ac_status=$?
  12071. grep -v '^ *+' conftest.er1 >conftest.err
  12072. rm -f conftest.er1
  12073. cat conftest.err >&5
  12074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12075. (exit $ac_status); } >/dev/null; then
  12076. if test -s conftest.err; then
  12077. ac_cpp_err=$ac_cxx_preproc_warn_flag
  12078. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  12079. else
  12080. ac_cpp_err=
  12081. fi
  12082. else
  12083. ac_cpp_err=yes
  12084. fi
  12085. if test -z "$ac_cpp_err"; then
  12086. :
  12087. else
  12088. echo "$as_me: failed program was:" >&5
  12089. sed 's/^/| /' conftest.$ac_ext >&5
  12090. # Broken: fails on valid input.
  12091. continue
  12092. fi
  12093. rm -f conftest.err conftest.$ac_ext
  12094. # OK, works on sane cases. Now check whether nonexistent headers
  12095. # can be detected and how.
  12096. cat >conftest.$ac_ext <<_ACEOF
  12097. /* confdefs.h. */
  12098. _ACEOF
  12099. cat confdefs.h >>conftest.$ac_ext
  12100. cat >>conftest.$ac_ext <<_ACEOF
  12101. /* end confdefs.h. */
  12102. #include <ac_nonexistent.h>
  12103. _ACEOF
  12104. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12105. case "(($ac_try" in
  12106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12107. *) ac_try_echo=$ac_try;;
  12108. esac
  12109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12110. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12111. ac_status=$?
  12112. grep -v '^ *+' conftest.er1 >conftest.err
  12113. rm -f conftest.er1
  12114. cat conftest.err >&5
  12115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12116. (exit $ac_status); } >/dev/null; then
  12117. if test -s conftest.err; then
  12118. ac_cpp_err=$ac_cxx_preproc_warn_flag
  12119. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  12120. else
  12121. ac_cpp_err=
  12122. fi
  12123. else
  12124. ac_cpp_err=yes
  12125. fi
  12126. if test -z "$ac_cpp_err"; then
  12127. # Broken: success on invalid input.
  12128. continue
  12129. else
  12130. echo "$as_me: failed program was:" >&5
  12131. sed 's/^/| /' conftest.$ac_ext >&5
  12132. # Passes both tests.
  12133. ac_preproc_ok=:
  12134. break
  12135. fi
  12136. rm -f conftest.err conftest.$ac_ext
  12137. done
  12138. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12139. rm -f conftest.err conftest.$ac_ext
  12140. if $ac_preproc_ok; then
  12141. break
  12142. fi
  12143. done
  12144. ac_cv_prog_CXXCPP=$CXXCPP
  12145. fi
  12146. CXXCPP=$ac_cv_prog_CXXCPP
  12147. else
  12148. ac_cv_prog_CXXCPP=$CXXCPP
  12149. fi
  12150. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  12151. echo "${ECHO_T}$CXXCPP" >&6; }
  12152. ac_preproc_ok=false
  12153. for ac_cxx_preproc_warn_flag in '' yes
  12154. do
  12155. # Use a header file that comes with gcc, so configuring glibc
  12156. # with a fresh cross-compiler works.
  12157. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12158. # <limits.h> exists even on freestanding compilers.
  12159. # On the NeXT, cc -E runs the code through the compiler's parser,
  12160. # not just through cpp. "Syntax error" is here to catch this case.
  12161. cat >conftest.$ac_ext <<_ACEOF
  12162. /* confdefs.h. */
  12163. _ACEOF
  12164. cat confdefs.h >>conftest.$ac_ext
  12165. cat >>conftest.$ac_ext <<_ACEOF
  12166. /* end confdefs.h. */
  12167. #ifdef __STDC__
  12168. # include <limits.h>
  12169. #else
  12170. # include <assert.h>
  12171. #endif
  12172. Syntax error
  12173. _ACEOF
  12174. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12175. case "(($ac_try" in
  12176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12177. *) ac_try_echo=$ac_try;;
  12178. esac
  12179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12180. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12181. ac_status=$?
  12182. grep -v '^ *+' conftest.er1 >conftest.err
  12183. rm -f conftest.er1
  12184. cat conftest.err >&5
  12185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12186. (exit $ac_status); } >/dev/null; then
  12187. if test -s conftest.err; then
  12188. ac_cpp_err=$ac_cxx_preproc_warn_flag
  12189. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  12190. else
  12191. ac_cpp_err=
  12192. fi
  12193. else
  12194. ac_cpp_err=yes
  12195. fi
  12196. if test -z "$ac_cpp_err"; then
  12197. :
  12198. else
  12199. echo "$as_me: failed program was:" >&5
  12200. sed 's/^/| /' conftest.$ac_ext >&5
  12201. # Broken: fails on valid input.
  12202. continue
  12203. fi
  12204. rm -f conftest.err conftest.$ac_ext
  12205. # OK, works on sane cases. Now check whether nonexistent headers
  12206. # can be detected and how.
  12207. cat >conftest.$ac_ext <<_ACEOF
  12208. /* confdefs.h. */
  12209. _ACEOF
  12210. cat confdefs.h >>conftest.$ac_ext
  12211. cat >>conftest.$ac_ext <<_ACEOF
  12212. /* end confdefs.h. */
  12213. #include <ac_nonexistent.h>
  12214. _ACEOF
  12215. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12216. case "(($ac_try" in
  12217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12218. *) ac_try_echo=$ac_try;;
  12219. esac
  12220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12221. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12222. ac_status=$?
  12223. grep -v '^ *+' conftest.er1 >conftest.err
  12224. rm -f conftest.er1
  12225. cat conftest.err >&5
  12226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12227. (exit $ac_status); } >/dev/null; then
  12228. if test -s conftest.err; then
  12229. ac_cpp_err=$ac_cxx_preproc_warn_flag
  12230. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  12231. else
  12232. ac_cpp_err=
  12233. fi
  12234. else
  12235. ac_cpp_err=yes
  12236. fi
  12237. if test -z "$ac_cpp_err"; then
  12238. # Broken: success on invalid input.
  12239. continue
  12240. else
  12241. echo "$as_me: failed program was:" >&5
  12242. sed 's/^/| /' conftest.$ac_ext >&5
  12243. # Passes both tests.
  12244. ac_preproc_ok=:
  12245. break
  12246. fi
  12247. rm -f conftest.err conftest.$ac_ext
  12248. done
  12249. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12250. rm -f conftest.err conftest.$ac_ext
  12251. if $ac_preproc_ok; then
  12252. :
  12253. else
  12254. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  12255. See \`config.log' for more details." >&5
  12256. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  12257. See \`config.log' for more details." >&2;}
  12258. { (exit 1); exit 1; }; }
  12259. fi
  12260. ac_ext=cpp
  12261. ac_cpp='$CXXCPP $CPPFLAGS'
  12262. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12263. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12264. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12265. fi
  12266. ac_ext=f
  12267. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12268. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12269. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12270. if test -n "$ac_tool_prefix"; then
  12271. for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  12272. do
  12273. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12274. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12275. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12277. if test "${ac_cv_prog_F77+set}" = set; then
  12278. echo $ECHO_N "(cached) $ECHO_C" >&6
  12279. else
  12280. if test -n "$F77"; then
  12281. ac_cv_prog_F77="$F77" # Let the user override the test.
  12282. else
  12283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12284. for as_dir in $PATH
  12285. do
  12286. IFS=$as_save_IFS
  12287. test -z "$as_dir" && as_dir=.
  12288. for ac_exec_ext in '' $ac_executable_extensions; do
  12289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12290. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  12291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12292. break 2
  12293. fi
  12294. done
  12295. done
  12296. IFS=$as_save_IFS
  12297. fi
  12298. fi
  12299. F77=$ac_cv_prog_F77
  12300. if test -n "$F77"; then
  12301. { echo "$as_me:$LINENO: result: $F77" >&5
  12302. echo "${ECHO_T}$F77" >&6; }
  12303. else
  12304. { echo "$as_me:$LINENO: result: no" >&5
  12305. echo "${ECHO_T}no" >&6; }
  12306. fi
  12307. test -n "$F77" && break
  12308. done
  12309. fi
  12310. if test -z "$F77"; then
  12311. ac_ct_F77=$F77
  12312. for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  12313. do
  12314. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12315. set dummy $ac_prog; ac_word=$2
  12316. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12317. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12318. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  12319. echo $ECHO_N "(cached) $ECHO_C" >&6
  12320. else
  12321. if test -n "$ac_ct_F77"; then
  12322. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  12323. else
  12324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12325. for as_dir in $PATH
  12326. do
  12327. IFS=$as_save_IFS
  12328. test -z "$as_dir" && as_dir=.
  12329. for ac_exec_ext in '' $ac_executable_extensions; do
  12330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12331. ac_cv_prog_ac_ct_F77="$ac_prog"
  12332. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12333. break 2
  12334. fi
  12335. done
  12336. done
  12337. IFS=$as_save_IFS
  12338. fi
  12339. fi
  12340. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  12341. if test -n "$ac_ct_F77"; then
  12342. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  12343. echo "${ECHO_T}$ac_ct_F77" >&6; }
  12344. else
  12345. { echo "$as_me:$LINENO: result: no" >&5
  12346. echo "${ECHO_T}no" >&6; }
  12347. fi
  12348. test -n "$ac_ct_F77" && break
  12349. done
  12350. if test "x$ac_ct_F77" = x; then
  12351. F77=""
  12352. else
  12353. case $cross_compiling:$ac_tool_warned in
  12354. yes:)
  12355. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12356. whose name does not start with the host triplet. If you think this
  12357. configuration is useful to you, please write to autoconf@gnu.org." >&5
  12358. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12359. whose name does not start with the host triplet. If you think this
  12360. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  12361. ac_tool_warned=yes ;;
  12362. esac
  12363. F77=$ac_ct_F77
  12364. fi
  12365. fi
  12366. # Provide some information about the compiler.
  12367. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  12368. ac_compiler=`set X $ac_compile; echo $2`
  12369. { (ac_try="$ac_compiler --version >&5"
  12370. case "(($ac_try" in
  12371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12372. *) ac_try_echo=$ac_try;;
  12373. esac
  12374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12375. (eval "$ac_compiler --version >&5") 2>&5
  12376. ac_status=$?
  12377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12378. (exit $ac_status); }
  12379. { (ac_try="$ac_compiler -v >&5"
  12380. case "(($ac_try" in
  12381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12382. *) ac_try_echo=$ac_try;;
  12383. esac
  12384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12385. (eval "$ac_compiler -v >&5") 2>&5
  12386. ac_status=$?
  12387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12388. (exit $ac_status); }
  12389. { (ac_try="$ac_compiler -V >&5"
  12390. case "(($ac_try" in
  12391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12392. *) ac_try_echo=$ac_try;;
  12393. esac
  12394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12395. (eval "$ac_compiler -V >&5") 2>&5
  12396. ac_status=$?
  12397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12398. (exit $ac_status); }
  12399. rm -f a.out
  12400. # If we don't use `.F' as extension, the preprocessor is not run on the
  12401. # input file. (Note that this only needs to work for GNU compilers.)
  12402. ac_save_ext=$ac_ext
  12403. ac_ext=F
  12404. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  12405. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  12406. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  12407. echo $ECHO_N "(cached) $ECHO_C" >&6
  12408. else
  12409. cat >conftest.$ac_ext <<_ACEOF
  12410. program main
  12411. #ifndef __GNUC__
  12412. choke me
  12413. #endif
  12414. end
  12415. _ACEOF
  12416. rm -f conftest.$ac_objext
  12417. if { (ac_try="$ac_compile"
  12418. case "(($ac_try" in
  12419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12420. *) ac_try_echo=$ac_try;;
  12421. esac
  12422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12423. (eval "$ac_compile") 2>conftest.er1
  12424. ac_status=$?
  12425. grep -v '^ *+' conftest.er1 >conftest.err
  12426. rm -f conftest.er1
  12427. cat conftest.err >&5
  12428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12429. (exit $ac_status); } &&
  12430. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  12431. { (case "(($ac_try" in
  12432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12433. *) ac_try_echo=$ac_try;;
  12434. esac
  12435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12436. (eval "$ac_try") 2>&5
  12437. ac_status=$?
  12438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12439. (exit $ac_status); }; } &&
  12440. { ac_try='test -s conftest.$ac_objext'
  12441. { (case "(($ac_try" in
  12442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12443. *) ac_try_echo=$ac_try;;
  12444. esac
  12445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12446. (eval "$ac_try") 2>&5
  12447. ac_status=$?
  12448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12449. (exit $ac_status); }; }; then
  12450. ac_compiler_gnu=yes
  12451. else
  12452. echo "$as_me: failed program was:" >&5
  12453. sed 's/^/| /' conftest.$ac_ext >&5
  12454. ac_compiler_gnu=no
  12455. fi
  12456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12457. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  12458. fi
  12459. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  12460. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  12461. ac_ext=$ac_save_ext
  12462. ac_test_FFLAGS=${FFLAGS+set}
  12463. ac_save_FFLAGS=$FFLAGS
  12464. FFLAGS=
  12465. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  12466. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  12467. if test "${ac_cv_prog_f77_g+set}" = set; then
  12468. echo $ECHO_N "(cached) $ECHO_C" >&6
  12469. else
  12470. FFLAGS=-g
  12471. cat >conftest.$ac_ext <<_ACEOF
  12472. program main
  12473. end
  12474. _ACEOF
  12475. rm -f conftest.$ac_objext
  12476. if { (ac_try="$ac_compile"
  12477. case "(($ac_try" in
  12478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12479. *) ac_try_echo=$ac_try;;
  12480. esac
  12481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12482. (eval "$ac_compile") 2>conftest.er1
  12483. ac_status=$?
  12484. grep -v '^ *+' conftest.er1 >conftest.err
  12485. rm -f conftest.er1
  12486. cat conftest.err >&5
  12487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12488. (exit $ac_status); } &&
  12489. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  12490. { (case "(($ac_try" in
  12491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12492. *) ac_try_echo=$ac_try;;
  12493. esac
  12494. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12495. (eval "$ac_try") 2>&5
  12496. ac_status=$?
  12497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12498. (exit $ac_status); }; } &&
  12499. { ac_try='test -s conftest.$ac_objext'
  12500. { (case "(($ac_try" in
  12501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12502. *) ac_try_echo=$ac_try;;
  12503. esac
  12504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12505. (eval "$ac_try") 2>&5
  12506. ac_status=$?
  12507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12508. (exit $ac_status); }; }; then
  12509. ac_cv_prog_f77_g=yes
  12510. else
  12511. echo "$as_me: failed program was:" >&5
  12512. sed 's/^/| /' conftest.$ac_ext >&5
  12513. ac_cv_prog_f77_g=no
  12514. fi
  12515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12516. fi
  12517. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  12518. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  12519. if test "$ac_test_FFLAGS" = set; then
  12520. FFLAGS=$ac_save_FFLAGS
  12521. elif test $ac_cv_prog_f77_g = yes; then
  12522. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  12523. FFLAGS="-g -O2"
  12524. else
  12525. FFLAGS="-g"
  12526. fi
  12527. else
  12528. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  12529. FFLAGS="-O2"
  12530. else
  12531. FFLAGS=
  12532. fi
  12533. fi
  12534. G77=`test $ac_compiler_gnu = yes && echo yes`
  12535. ac_ext=c
  12536. ac_cpp='$CPP $CPPFLAGS'
  12537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12540. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  12541. # find the maximum length of command line arguments
  12542. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  12543. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  12544. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  12545. echo $ECHO_N "(cached) $ECHO_C" >&6
  12546. else
  12547. i=0
  12548. teststring="ABCD"
  12549. case $build_os in
  12550. msdosdjgpp*)
  12551. # On DJGPP, this test can blow up pretty badly due to problems in libc
  12552. # (any single argument exceeding 2000 bytes causes a buffer overrun
  12553. # during glob expansion). Even if it were fixed, the result of this
  12554. # check would be larger than it should be.
  12555. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  12556. ;;
  12557. gnu*)
  12558. # Under GNU Hurd, this test is not required because there is
  12559. # no limit to the length of command line arguments.
  12560. # Libtool will interpret -1 as no limit whatsoever
  12561. lt_cv_sys_max_cmd_len=-1;
  12562. ;;
  12563. cygwin* | mingw*)
  12564. # On Win9x/ME, this test blows up -- it succeeds, but takes
  12565. # about 5 minutes as the teststring grows exponentially.
  12566. # Worse, since 9x/ME are not pre-emptively multitasking,
  12567. # you end up with a "frozen" computer, even though with patience
  12568. # the test eventually succeeds (with a max line length of 256k).
  12569. # Instead, let's just punt: use the minimum linelength reported by
  12570. # all of the supported platforms: 8192 (on NT/2K/XP).
  12571. lt_cv_sys_max_cmd_len=8192;
  12572. ;;
  12573. amigaos*)
  12574. # On AmigaOS with pdksh, this test takes hours, literally.
  12575. # So we just punt and use a minimum line length of 8192.
  12576. lt_cv_sys_max_cmd_len=8192;
  12577. ;;
  12578. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  12579. # This has been around since 386BSD, at least. Likely further.
  12580. if test -x /sbin/sysctl; then
  12581. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  12582. elif test -x /usr/sbin/sysctl; then
  12583. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  12584. else
  12585. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  12586. fi
  12587. # And add a safety zone
  12588. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  12589. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  12590. ;;
  12591. interix*)
  12592. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  12593. lt_cv_sys_max_cmd_len=196608
  12594. ;;
  12595. osf*)
  12596. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  12597. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  12598. # nice to cause kernel panics so lets avoid the loop below.
  12599. # First set a reasonable default.
  12600. lt_cv_sys_max_cmd_len=16384
  12601. #
  12602. if test -x /sbin/sysconfig; then
  12603. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  12604. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  12605. esac
  12606. fi
  12607. ;;
  12608. sco3.2v5*)
  12609. lt_cv_sys_max_cmd_len=102400
  12610. ;;
  12611. sysv5* | sco5v6* | sysv4.2uw2*)
  12612. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  12613. if test -n "$kargmax"; then
  12614. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  12615. else
  12616. lt_cv_sys_max_cmd_len=32768
  12617. fi
  12618. ;;
  12619. *)
  12620. # If test is not a shell built-in, we'll probably end up computing a
  12621. # maximum length that is only half of the actual maximum length, but
  12622. # we can't tell.
  12623. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  12624. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  12625. = "XX$teststring") >/dev/null 2>&1 &&
  12626. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  12627. lt_cv_sys_max_cmd_len=$new_result &&
  12628. test $i != 17 # 1/2 MB should be enough
  12629. do
  12630. i=`expr $i + 1`
  12631. teststring=$teststring$teststring
  12632. done
  12633. teststring=
  12634. # Add a significant safety factor because C++ compilers can tack on massive
  12635. # amounts of additional arguments before passing them to the linker.
  12636. # It appears as though 1/2 is a usable value.
  12637. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  12638. ;;
  12639. esac
  12640. fi
  12641. if test -n $lt_cv_sys_max_cmd_len ; then
  12642. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  12643. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  12644. else
  12645. { echo "$as_me:$LINENO: result: none" >&5
  12646. echo "${ECHO_T}none" >&6; }
  12647. fi
  12648. # Check for command to grab the raw symbol name followed by C symbol from nm.
  12649. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  12650. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  12651. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  12652. echo $ECHO_N "(cached) $ECHO_C" >&6
  12653. else
  12654. # These are sane defaults that work on at least a few old systems.
  12655. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  12656. # Character class describing NM global symbol codes.
  12657. symcode='[BCDEGRST]'
  12658. # Regexp to match symbols that can be accessed directly from C.
  12659. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  12660. # Transform an extracted symbol line into a proper C declaration
  12661. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  12662. # Transform an extracted symbol line into symbol name and symbol address
  12663. 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'"
  12664. # Define system-specific variables.
  12665. case $host_os in
  12666. aix*)
  12667. symcode='[BCDT]'
  12668. ;;
  12669. cygwin* | mingw* | pw32*)
  12670. symcode='[ABCDGISTW]'
  12671. ;;
  12672. hpux*) # Its linker distinguishes data from code symbols
  12673. if test "$host_cpu" = ia64; then
  12674. symcode='[ABCDEGRST]'
  12675. fi
  12676. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  12677. 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'"
  12678. ;;
  12679. linux*)
  12680. if test "$host_cpu" = ia64; then
  12681. symcode='[ABCDGIRSTW]'
  12682. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  12683. 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'"
  12684. fi
  12685. ;;
  12686. irix* | nonstopux*)
  12687. symcode='[BCDEGRST]'
  12688. ;;
  12689. osf*)
  12690. symcode='[BCDEGQRST]'
  12691. ;;
  12692. solaris*)
  12693. symcode='[BDRT]'
  12694. ;;
  12695. sco3.2v5*)
  12696. symcode='[DT]'
  12697. ;;
  12698. sysv4.2uw2*)
  12699. symcode='[DT]'
  12700. ;;
  12701. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  12702. symcode='[ABDT]'
  12703. ;;
  12704. sysv4)
  12705. symcode='[DFNSTU]'
  12706. ;;
  12707. esac
  12708. # Handle CRLF in mingw tool chain
  12709. opt_cr=
  12710. case $build_os in
  12711. mingw*)
  12712. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  12713. ;;
  12714. esac
  12715. # If we're using GNU nm, then use its standard symbol codes.
  12716. case `$NM -V 2>&1` in
  12717. *GNU* | *'with BFD'*)
  12718. symcode='[ABCDGIRSTW]' ;;
  12719. esac
  12720. # Try without a prefix undercore, then with it.
  12721. for ac_symprfx in "" "_"; do
  12722. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  12723. symxfrm="\\1 $ac_symprfx\\2 \\2"
  12724. # Write the raw and C identifiers.
  12725. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  12726. # Check to see that the pipe works correctly.
  12727. pipe_works=no
  12728. rm -f conftest*
  12729. cat > conftest.$ac_ext <<EOF
  12730. #ifdef __cplusplus
  12731. extern "C" {
  12732. #endif
  12733. char nm_test_var;
  12734. void nm_test_func(){}
  12735. #ifdef __cplusplus
  12736. }
  12737. #endif
  12738. int main(){nm_test_var='a';nm_test_func();return(0);}
  12739. EOF
  12740. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12741. (eval $ac_compile) 2>&5
  12742. ac_status=$?
  12743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12744. (exit $ac_status); }; then
  12745. # Now try to grab the symbols.
  12746. nlist=conftest.nm
  12747. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  12748. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  12749. ac_status=$?
  12750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12751. (exit $ac_status); } && test -s "$nlist"; then
  12752. # Try sorting and uniquifying the output.
  12753. if sort "$nlist" | uniq > "$nlist"T; then
  12754. mv -f "$nlist"T "$nlist"
  12755. else
  12756. rm -f "$nlist"T
  12757. fi
  12758. # Make sure that we snagged all the symbols we need.
  12759. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  12760. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  12761. cat <<EOF > conftest.$ac_ext
  12762. #ifdef __cplusplus
  12763. extern "C" {
  12764. #endif
  12765. EOF
  12766. # Now generate the symbol file.
  12767. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  12768. cat <<EOF >> conftest.$ac_ext
  12769. #if defined (__STDC__) && __STDC__
  12770. # define lt_ptr_t void *
  12771. #else
  12772. # define lt_ptr_t char *
  12773. # define const
  12774. #endif
  12775. /* The mapping between symbol names and symbols. */
  12776. const struct {
  12777. const char *name;
  12778. lt_ptr_t address;
  12779. }
  12780. lt_preloaded_symbols[] =
  12781. {
  12782. EOF
  12783. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  12784. cat <<\EOF >> conftest.$ac_ext
  12785. {0, (lt_ptr_t) 0}
  12786. };
  12787. #ifdef __cplusplus
  12788. }
  12789. #endif
  12790. EOF
  12791. # Now try linking the two files.
  12792. mv conftest.$ac_objext conftstm.$ac_objext
  12793. lt_save_LIBS="$LIBS"
  12794. lt_save_CFLAGS="$CFLAGS"
  12795. LIBS="conftstm.$ac_objext"
  12796. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  12797. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12798. (eval $ac_link) 2>&5
  12799. ac_status=$?
  12800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12801. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  12802. pipe_works=yes
  12803. fi
  12804. LIBS="$lt_save_LIBS"
  12805. CFLAGS="$lt_save_CFLAGS"
  12806. else
  12807. echo "cannot find nm_test_func in $nlist" >&5
  12808. fi
  12809. else
  12810. echo "cannot find nm_test_var in $nlist" >&5
  12811. fi
  12812. else
  12813. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  12814. fi
  12815. else
  12816. echo "$progname: failed program was:" >&5
  12817. cat conftest.$ac_ext >&5
  12818. fi
  12819. rm -f conftest* conftst*
  12820. # Do not use the global_symbol_pipe unless it works.
  12821. if test "$pipe_works" = yes; then
  12822. break
  12823. else
  12824. lt_cv_sys_global_symbol_pipe=
  12825. fi
  12826. done
  12827. fi
  12828. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  12829. lt_cv_sys_global_symbol_to_cdecl=
  12830. fi
  12831. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  12832. { echo "$as_me:$LINENO: result: failed" >&5
  12833. echo "${ECHO_T}failed" >&6; }
  12834. else
  12835. { echo "$as_me:$LINENO: result: ok" >&5
  12836. echo "${ECHO_T}ok" >&6; }
  12837. fi
  12838. { echo "$as_me:$LINENO: checking for objdir" >&5
  12839. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  12840. if test "${lt_cv_objdir+set}" = set; then
  12841. echo $ECHO_N "(cached) $ECHO_C" >&6
  12842. else
  12843. rm -f .libs 2>/dev/null
  12844. mkdir .libs 2>/dev/null
  12845. if test -d .libs; then
  12846. lt_cv_objdir=.libs
  12847. else
  12848. # MS-DOS does not allow filenames that begin with a dot.
  12849. lt_cv_objdir=_libs
  12850. fi
  12851. rmdir .libs 2>/dev/null
  12852. fi
  12853. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  12854. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  12855. objdir=$lt_cv_objdir
  12856. case $host_os in
  12857. aix3*)
  12858. # AIX sometimes has problems with the GCC collect2 program. For some
  12859. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12860. # vanish in a puff of smoke.
  12861. if test "X${COLLECT_NAMES+set}" != Xset; then
  12862. COLLECT_NAMES=
  12863. export COLLECT_NAMES
  12864. fi
  12865. ;;
  12866. esac
  12867. # Sed substitution that helps us do robust quoting. It backslashifies
  12868. # metacharacters that are still active within double-quoted strings.
  12869. Xsed='sed -e 1s/^X//'
  12870. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  12871. # Same as above, but do not quote variable references.
  12872. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  12873. # Sed substitution to delay expansion of an escaped shell variable in a
  12874. # double_quote_subst'ed string.
  12875. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  12876. # Sed substitution to avoid accidental globbing in evaled expressions
  12877. no_glob_subst='s/\*/\\\*/g'
  12878. # Constants:
  12879. rm="rm -f"
  12880. # Global variables:
  12881. default_ofile=mklib
  12882. can_build_shared=yes
  12883. # All known linkers require a `.a' archive for static linking (except MSVC,
  12884. # which needs '.lib').
  12885. libext=a
  12886. ltmain="$ac_aux_dir/ltmain.sh"
  12887. ofile="$default_ofile"
  12888. with_gnu_ld="$lt_cv_prog_gnu_ld"
  12889. if test -n "$ac_tool_prefix"; then
  12890. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  12891. set dummy ${ac_tool_prefix}ar; ac_word=$2
  12892. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12894. if test "${ac_cv_prog_AR+set}" = set; then
  12895. echo $ECHO_N "(cached) $ECHO_C" >&6
  12896. else
  12897. if test -n "$AR"; then
  12898. ac_cv_prog_AR="$AR" # Let the user override the test.
  12899. else
  12900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12901. for as_dir in $PATH
  12902. do
  12903. IFS=$as_save_IFS
  12904. test -z "$as_dir" && as_dir=.
  12905. for ac_exec_ext in '' $ac_executable_extensions; do
  12906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12907. ac_cv_prog_AR="${ac_tool_prefix}ar"
  12908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12909. break 2
  12910. fi
  12911. done
  12912. done
  12913. IFS=$as_save_IFS
  12914. fi
  12915. fi
  12916. AR=$ac_cv_prog_AR
  12917. if test -n "$AR"; then
  12918. { echo "$as_me:$LINENO: result: $AR" >&5
  12919. echo "${ECHO_T}$AR" >&6; }
  12920. else
  12921. { echo "$as_me:$LINENO: result: no" >&5
  12922. echo "${ECHO_T}no" >&6; }
  12923. fi
  12924. fi
  12925. if test -z "$ac_cv_prog_AR"; then
  12926. ac_ct_AR=$AR
  12927. # Extract the first word of "ar", so it can be a program name with args.
  12928. set dummy ar; ac_word=$2
  12929. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12930. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12931. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  12932. echo $ECHO_N "(cached) $ECHO_C" >&6
  12933. else
  12934. if test -n "$ac_ct_AR"; then
  12935. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  12936. else
  12937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12938. for as_dir in $PATH
  12939. do
  12940. IFS=$as_save_IFS
  12941. test -z "$as_dir" && as_dir=.
  12942. for ac_exec_ext in '' $ac_executable_extensions; do
  12943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12944. ac_cv_prog_ac_ct_AR="ar"
  12945. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12946. break 2
  12947. fi
  12948. done
  12949. done
  12950. IFS=$as_save_IFS
  12951. fi
  12952. fi
  12953. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  12954. if test -n "$ac_ct_AR"; then
  12955. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  12956. echo "${ECHO_T}$ac_ct_AR" >&6; }
  12957. else
  12958. { echo "$as_me:$LINENO: result: no" >&5
  12959. echo "${ECHO_T}no" >&6; }
  12960. fi
  12961. if test "x$ac_ct_AR" = x; then
  12962. AR="false"
  12963. else
  12964. case $cross_compiling:$ac_tool_warned in
  12965. yes:)
  12966. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12967. whose name does not start with the host triplet. If you think this
  12968. configuration is useful to you, please write to autoconf@gnu.org." >&5
  12969. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12970. whose name does not start with the host triplet. If you think this
  12971. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  12972. ac_tool_warned=yes ;;
  12973. esac
  12974. AR=$ac_ct_AR
  12975. fi
  12976. else
  12977. AR="$ac_cv_prog_AR"
  12978. fi
  12979. if test -n "$ac_tool_prefix"; then
  12980. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  12981. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  12982. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12983. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12984. if test "${ac_cv_prog_RANLIB+set}" = set; then
  12985. echo $ECHO_N "(cached) $ECHO_C" >&6
  12986. else
  12987. if test -n "$RANLIB"; then
  12988. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  12989. else
  12990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12991. for as_dir in $PATH
  12992. do
  12993. IFS=$as_save_IFS
  12994. test -z "$as_dir" && as_dir=.
  12995. for ac_exec_ext in '' $ac_executable_extensions; do
  12996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  12997. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  12998. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12999. break 2
  13000. fi
  13001. done
  13002. done
  13003. IFS=$as_save_IFS
  13004. fi
  13005. fi
  13006. RANLIB=$ac_cv_prog_RANLIB
  13007. if test -n "$RANLIB"; then
  13008. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  13009. echo "${ECHO_T}$RANLIB" >&6; }
  13010. else
  13011. { echo "$as_me:$LINENO: result: no" >&5
  13012. echo "${ECHO_T}no" >&6; }
  13013. fi
  13014. fi
  13015. if test -z "$ac_cv_prog_RANLIB"; then
  13016. ac_ct_RANLIB=$RANLIB
  13017. # Extract the first word of "ranlib", so it can be a program name with args.
  13018. set dummy ranlib; ac_word=$2
  13019. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13020. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13021. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  13022. echo $ECHO_N "(cached) $ECHO_C" >&6
  13023. else
  13024. if test -n "$ac_ct_RANLIB"; then
  13025. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  13026. else
  13027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13028. for as_dir in $PATH
  13029. do
  13030. IFS=$as_save_IFS
  13031. test -z "$as_dir" && as_dir=.
  13032. for ac_exec_ext in '' $ac_executable_extensions; do
  13033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  13034. ac_cv_prog_ac_ct_RANLIB="ranlib"
  13035. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13036. break 2
  13037. fi
  13038. done
  13039. done
  13040. IFS=$as_save_IFS
  13041. fi
  13042. fi
  13043. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  13044. if test -n "$ac_ct_RANLIB"; then
  13045. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  13046. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  13047. else
  13048. { echo "$as_me:$LINENO: result: no" >&5
  13049. echo "${ECHO_T}no" >&6; }
  13050. fi
  13051. if test "x$ac_ct_RANLIB" = x; then
  13052. RANLIB=":"
  13053. else
  13054. case $cross_compiling:$ac_tool_warned in
  13055. yes:)
  13056. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13057. whose name does not start with the host triplet. If you think this
  13058. configuration is useful to you, please write to autoconf@gnu.org." >&5
  13059. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  13060. whose name does not start with the host triplet. If you think this
  13061. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  13062. ac_tool_warned=yes ;;
  13063. esac
  13064. RANLIB=$ac_ct_RANLIB
  13065. fi
  13066. else
  13067. RANLIB="$ac_cv_prog_RANLIB"
  13068. fi
  13069. if test -n "$ac_tool_prefix"; then
  13070. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13071. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13072. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13073. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13074. if test "${ac_cv_prog_STRIP+set}" = set; then
  13075. echo $ECHO_N "(cached) $ECHO_C" >&6
  13076. else
  13077. if test -n "$STRIP"; then
  13078. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13079. else
  13080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13081. for as_dir in $PATH
  13082. do
  13083. IFS=$as_save_IFS
  13084. test -z "$as_dir" && as_dir=.
  13085. for ac_exec_ext in '' $ac_executable_extensions; do
  13086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  13087. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13088. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13089. break 2
  13090. fi
  13091. done
  13092. done
  13093. IFS=$as_save_IFS
  13094. fi
  13095. fi
  13096. STRIP=$ac_cv_prog_STRIP
  13097. if test -n "$STRIP"; then
  13098. { echo "$as_me:$LINENO: result: $STRIP" >&5
  13099. echo "${ECHO_T}$STRIP" >&6; }
  13100. else
  13101. { echo "$as_me:$LINENO: result: no" >&5
  13102. echo "${ECHO_T}no" >&6; }
  13103. fi
  13104. fi
  13105. if test -z "$ac_cv_prog_STRIP"; then
  13106. ac_ct_STRIP=$STRIP
  13107. # Extract the first word of "strip", so it can be a program name with args.
  13108. set dummy strip; ac_word=$2
  13109. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13110. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13111. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  13112. echo $ECHO_N "(cached) $ECHO_C" >&6
  13113. else
  13114. if test -n "$ac_ct_STRIP"; then
  13115. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13116. else
  13117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13118. for as_dir in $PATH
  13119. do
  13120. IFS=$as_save_IFS
  13121. test -z "$as_dir" && as_dir=.
  13122. for ac_exec_ext in '' $ac_executable_extensions; do
  13123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  13124. ac_cv_prog_ac_ct_STRIP="strip"
  13125. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13126. break 2
  13127. fi
  13128. done
  13129. done
  13130. IFS=$as_save_IFS
  13131. fi
  13132. fi
  13133. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13134. if test -n "$ac_ct_STRIP"; then
  13135. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  13136. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  13137. else
  13138. { echo "$as_me:$LINENO: result: no" >&5
  13139. echo "${ECHO_T}no" >&6; }
  13140. fi
  13141. if test "x$ac_ct_STRIP" = x; then
  13142. STRIP=":"
  13143. else
  13144. case $cross_compiling:$ac_tool_warned in
  13145. yes:)
  13146. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13147. whose name does not start with the host triplet. If you think this
  13148. configuration is useful to you, please write to autoconf@gnu.org." >&5
  13149. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  13150. whose name does not start with the host triplet. If you think this
  13151. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  13152. ac_tool_warned=yes ;;
  13153. esac
  13154. STRIP=$ac_ct_STRIP
  13155. fi
  13156. else
  13157. STRIP="$ac_cv_prog_STRIP"
  13158. fi
  13159. old_CC="$CC"
  13160. old_CFLAGS="$CFLAGS"
  13161. # Set sane defaults for various variables
  13162. test -z "$AR" && AR=ar
  13163. test -z "$AR_FLAGS" && AR_FLAGS=cru
  13164. test -z "$AS" && AS=as
  13165. test -z "$CC" && CC=cc
  13166. test -z "$LTCC" && LTCC=$CC
  13167. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  13168. test -z "$DLLTOOL" && DLLTOOL=dlltool
  13169. test -z "$LD" && LD=ld
  13170. test -z "$LN_S" && LN_S="ln -s"
  13171. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  13172. test -z "$NM" && NM=nm
  13173. test -z "$SED" && SED=sed
  13174. test -z "$OBJDUMP" && OBJDUMP=objdump
  13175. test -z "$RANLIB" && RANLIB=:
  13176. test -z "$STRIP" && STRIP=:
  13177. test -z "$ac_objext" && ac_objext=o
  13178. # Determine commands to create old-style static archives.
  13179. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  13180. old_postinstall_cmds='chmod 644 $oldlib'
  13181. old_postuninstall_cmds=
  13182. if test -n "$RANLIB"; then
  13183. case $host_os in
  13184. openbsd*)
  13185. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  13186. ;;
  13187. *)
  13188. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  13189. ;;
  13190. esac
  13191. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  13192. fi
  13193. for cc_temp in $compiler""; do
  13194. case $cc_temp in
  13195. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13196. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13197. \-*) ;;
  13198. *) break;;
  13199. esac
  13200. done
  13201. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13202. # Only perform the check for file, if the check method requires it
  13203. case $deplibs_check_method in
  13204. file_magic*)
  13205. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  13206. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  13207. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  13208. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  13209. echo $ECHO_N "(cached) $ECHO_C" >&6
  13210. else
  13211. case $MAGIC_CMD in
  13212. [\\/*] | ?:[\\/]*)
  13213. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13214. ;;
  13215. *)
  13216. lt_save_MAGIC_CMD="$MAGIC_CMD"
  13217. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13218. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  13219. for ac_dir in $ac_dummy; do
  13220. IFS="$lt_save_ifs"
  13221. test -z "$ac_dir" && ac_dir=.
  13222. if test -f $ac_dir/${ac_tool_prefix}file; then
  13223. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  13224. if test -n "$file_magic_test_file"; then
  13225. case $deplibs_check_method in
  13226. "file_magic "*)
  13227. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  13228. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13229. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13230. $EGREP "$file_magic_regex" > /dev/null; then
  13231. :
  13232. else
  13233. cat <<EOF 1>&2
  13234. *** Warning: the command libtool uses to detect shared libraries,
  13235. *** $file_magic_cmd, produces output that libtool cannot recognize.
  13236. *** The result is that libtool may fail to recognize shared libraries
  13237. *** as such. This will affect the creation of libtool libraries that
  13238. *** depend on shared libraries, but programs linked with such libtool
  13239. *** libraries will work regardless of this problem. Nevertheless, you
  13240. *** may want to report the problem to your system manager and/or to
  13241. *** bug-libtool@gnu.org
  13242. EOF
  13243. fi ;;
  13244. esac
  13245. fi
  13246. break
  13247. fi
  13248. done
  13249. IFS="$lt_save_ifs"
  13250. MAGIC_CMD="$lt_save_MAGIC_CMD"
  13251. ;;
  13252. esac
  13253. fi
  13254. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13255. if test -n "$MAGIC_CMD"; then
  13256. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  13257. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  13258. else
  13259. { echo "$as_me:$LINENO: result: no" >&5
  13260. echo "${ECHO_T}no" >&6; }
  13261. fi
  13262. if test -z "$lt_cv_path_MAGIC_CMD"; then
  13263. if test -n "$ac_tool_prefix"; then
  13264. { echo "$as_me:$LINENO: checking for file" >&5
  13265. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  13266. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  13267. echo $ECHO_N "(cached) $ECHO_C" >&6
  13268. else
  13269. case $MAGIC_CMD in
  13270. [\\/*] | ?:[\\/]*)
  13271. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13272. ;;
  13273. *)
  13274. lt_save_MAGIC_CMD="$MAGIC_CMD"
  13275. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13276. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  13277. for ac_dir in $ac_dummy; do
  13278. IFS="$lt_save_ifs"
  13279. test -z "$ac_dir" && ac_dir=.
  13280. if test -f $ac_dir/file; then
  13281. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  13282. if test -n "$file_magic_test_file"; then
  13283. case $deplibs_check_method in
  13284. "file_magic "*)
  13285. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  13286. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13287. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13288. $EGREP "$file_magic_regex" > /dev/null; then
  13289. :
  13290. else
  13291. cat <<EOF 1>&2
  13292. *** Warning: the command libtool uses to detect shared libraries,
  13293. *** $file_magic_cmd, produces output that libtool cannot recognize.
  13294. *** The result is that libtool may fail to recognize shared libraries
  13295. *** as such. This will affect the creation of libtool libraries that
  13296. *** depend on shared libraries, but programs linked with such libtool
  13297. *** libraries will work regardless of this problem. Nevertheless, you
  13298. *** may want to report the problem to your system manager and/or to
  13299. *** bug-libtool@gnu.org
  13300. EOF
  13301. fi ;;
  13302. esac
  13303. fi
  13304. break
  13305. fi
  13306. done
  13307. IFS="$lt_save_ifs"
  13308. MAGIC_CMD="$lt_save_MAGIC_CMD"
  13309. ;;
  13310. esac
  13311. fi
  13312. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13313. if test -n "$MAGIC_CMD"; then
  13314. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  13315. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  13316. else
  13317. { echo "$as_me:$LINENO: result: no" >&5
  13318. echo "${ECHO_T}no" >&6; }
  13319. fi
  13320. else
  13321. MAGIC_CMD=:
  13322. fi
  13323. fi
  13324. fi
  13325. ;;
  13326. esac
  13327. enable_dlopen=yes
  13328. enable_win32_dll=no
  13329. # Check whether --enable-libtool-lock was given.
  13330. if test "${enable_libtool_lock+set}" = set; then
  13331. enableval=$enable_libtool_lock;
  13332. fi
  13333. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  13334. # Check whether --with-pic was given.
  13335. if test "${with_pic+set}" = set; then
  13336. withval=$with_pic; pic_mode="$withval"
  13337. else
  13338. pic_mode=default
  13339. fi
  13340. test -z "$pic_mode" && pic_mode=default
  13341. # Use C for the default configuration in the libtool script
  13342. tagname=
  13343. lt_save_CC="$CC"
  13344. ac_ext=c
  13345. ac_cpp='$CPP $CPPFLAGS'
  13346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13349. # Source file extension for C test sources.
  13350. ac_ext=c
  13351. # Object file extension for compiled C test sources.
  13352. objext=o
  13353. objext=$objext
  13354. # Code to be used in simple compile tests
  13355. lt_simple_compile_test_code="int some_variable = 0;\n"
  13356. # Code to be used in simple link tests
  13357. lt_simple_link_test_code='int main(){return(0);}\n'
  13358. # If no C compiler was specified, use CC.
  13359. LTCC=${LTCC-"$CC"}
  13360. # If no C compiler flags were specified, use CFLAGS.
  13361. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13362. # Allow CC to be a program name with arguments.
  13363. compiler=$CC
  13364. # save warnings/boilerplate of simple test code
  13365. ac_outfile=conftest.$ac_objext
  13366. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13367. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13368. _lt_compiler_boilerplate=`cat conftest.err`
  13369. $rm conftest*
  13370. ac_outfile=conftest.$ac_objext
  13371. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13372. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13373. _lt_linker_boilerplate=`cat conftest.err`
  13374. $rm conftest*
  13375. lt_prog_compiler_no_builtin_flag=
  13376. if test "$GCC" = yes; then
  13377. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  13378. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13379. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  13380. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13381. echo $ECHO_N "(cached) $ECHO_C" >&6
  13382. else
  13383. lt_cv_prog_compiler_rtti_exceptions=no
  13384. ac_outfile=conftest.$ac_objext
  13385. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13386. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13387. # Insert the option either (1) after the last *FLAGS variable, or
  13388. # (2) before a word containing "conftest.", or (3) at the end.
  13389. # Note that $ac_compile itself does not contain backslashes and begins
  13390. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13391. # The option is referenced via a variable to avoid confusing sed.
  13392. lt_compile=`echo "$ac_compile" | $SED \
  13393. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13394. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13395. -e 's:$: $lt_compiler_flag:'`
  13396. (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
  13397. (eval "$lt_compile" 2>conftest.err)
  13398. ac_status=$?
  13399. cat conftest.err >&5
  13400. echo "$as_me:14857: \$? = $ac_status" >&5
  13401. if (exit $ac_status) && test -s "$ac_outfile"; then
  13402. # The compiler can only warn and ignore the option if not recognized
  13403. # So say no if there are warnings other than the usual output.
  13404. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13405. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13406. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13407. lt_cv_prog_compiler_rtti_exceptions=yes
  13408. fi
  13409. fi
  13410. $rm conftest*
  13411. fi
  13412. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13413. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  13414. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13415. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  13416. else
  13417. :
  13418. fi
  13419. fi
  13420. lt_prog_compiler_wl=
  13421. lt_prog_compiler_pic=
  13422. lt_prog_compiler_static=
  13423. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13424. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  13425. if test "$GCC" = yes; then
  13426. lt_prog_compiler_wl='-Wl,'
  13427. lt_prog_compiler_static='-static'
  13428. case $host_os in
  13429. aix*)
  13430. # All AIX code is PIC.
  13431. if test "$host_cpu" = ia64; then
  13432. # AIX 5 now supports IA64 processor
  13433. lt_prog_compiler_static='-Bstatic'
  13434. fi
  13435. ;;
  13436. amigaos*)
  13437. # FIXME: we need at least 68020 code to build shared libraries, but
  13438. # adding the `-m68020' flag to GCC prevents building anything better,
  13439. # like `-m68040'.
  13440. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  13441. ;;
  13442. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13443. # PIC is the default for these OSes.
  13444. ;;
  13445. mingw* | pw32* | os2*)
  13446. # This hack is so that the source file can tell whether it is being
  13447. # built for inclusion in a dll (and should export symbols for example).
  13448. lt_prog_compiler_pic='-DDLL_EXPORT'
  13449. ;;
  13450. darwin* | rhapsody*)
  13451. # PIC is the default on this platform
  13452. # Common symbols not allowed in MH_DYLIB files
  13453. lt_prog_compiler_pic='-fno-common'
  13454. ;;
  13455. interix3*)
  13456. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13457. # Instead, we relocate shared libraries at runtime.
  13458. ;;
  13459. msdosdjgpp*)
  13460. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13461. # on systems that don't support them.
  13462. lt_prog_compiler_can_build_shared=no
  13463. enable_shared=no
  13464. ;;
  13465. sysv4*MP*)
  13466. if test -d /usr/nec; then
  13467. lt_prog_compiler_pic=-Kconform_pic
  13468. fi
  13469. ;;
  13470. hpux*)
  13471. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13472. # not for PA HP-UX.
  13473. case $host_cpu in
  13474. hppa*64*|ia64*)
  13475. # +Z the default
  13476. ;;
  13477. *)
  13478. lt_prog_compiler_pic='-fPIC'
  13479. ;;
  13480. esac
  13481. ;;
  13482. *)
  13483. lt_prog_compiler_pic='-fPIC'
  13484. ;;
  13485. esac
  13486. else
  13487. # PORTME Check for flag to pass linker flags through the system compiler.
  13488. case $host_os in
  13489. aix*)
  13490. lt_prog_compiler_wl='-Wl,'
  13491. if test "$host_cpu" = ia64; then
  13492. # AIX 5 now supports IA64 processor
  13493. lt_prog_compiler_static='-Bstatic'
  13494. else
  13495. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  13496. fi
  13497. ;;
  13498. darwin*)
  13499. # PIC is the default on this platform
  13500. # Common symbols not allowed in MH_DYLIB files
  13501. case $cc_basename in
  13502. xlc*)
  13503. lt_prog_compiler_pic='-qnocommon'
  13504. lt_prog_compiler_wl='-Wl,'
  13505. ;;
  13506. esac
  13507. ;;
  13508. mingw* | pw32* | os2*)
  13509. # This hack is so that the source file can tell whether it is being
  13510. # built for inclusion in a dll (and should export symbols for example).
  13511. lt_prog_compiler_pic='-DDLL_EXPORT'
  13512. ;;
  13513. hpux9* | hpux10* | hpux11*)
  13514. lt_prog_compiler_wl='-Wl,'
  13515. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13516. # not for PA HP-UX.
  13517. case $host_cpu in
  13518. hppa*64*|ia64*)
  13519. # +Z the default
  13520. ;;
  13521. *)
  13522. lt_prog_compiler_pic='+Z'
  13523. ;;
  13524. esac
  13525. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13526. lt_prog_compiler_static='${wl}-a ${wl}archive'
  13527. ;;
  13528. irix5* | irix6* | nonstopux*)
  13529. lt_prog_compiler_wl='-Wl,'
  13530. # PIC (with -KPIC) is the default.
  13531. lt_prog_compiler_static='-non_shared'
  13532. ;;
  13533. newsos6)
  13534. lt_prog_compiler_pic='-KPIC'
  13535. lt_prog_compiler_static='-Bstatic'
  13536. ;;
  13537. linux*)
  13538. case $cc_basename in
  13539. icc* | ecc*)
  13540. lt_prog_compiler_wl='-Wl,'
  13541. lt_prog_compiler_pic='-KPIC'
  13542. lt_prog_compiler_static='-static'
  13543. ;;
  13544. pgcc* | pgf77* | pgf90* | pgf95*)
  13545. # Portland Group compilers (*not* the Pentium gcc compiler,
  13546. # which looks to be a dead project)
  13547. lt_prog_compiler_wl='-Wl,'
  13548. lt_prog_compiler_pic='-fpic'
  13549. lt_prog_compiler_static='-Bstatic'
  13550. ;;
  13551. ccc*)
  13552. lt_prog_compiler_wl='-Wl,'
  13553. # All Alpha code is PIC.
  13554. lt_prog_compiler_static='-non_shared'
  13555. ;;
  13556. esac
  13557. ;;
  13558. osf3* | osf4* | osf5*)
  13559. lt_prog_compiler_wl='-Wl,'
  13560. # All OSF/1 code is PIC.
  13561. lt_prog_compiler_static='-non_shared'
  13562. ;;
  13563. solaris*)
  13564. lt_prog_compiler_pic='-KPIC'
  13565. lt_prog_compiler_static='-Bstatic'
  13566. case $cc_basename in
  13567. f77* | f90* | f95*)
  13568. lt_prog_compiler_wl='-Qoption ld ';;
  13569. *)
  13570. lt_prog_compiler_wl='-Wl,';;
  13571. esac
  13572. ;;
  13573. sunos4*)
  13574. lt_prog_compiler_wl='-Qoption ld '
  13575. lt_prog_compiler_pic='-PIC'
  13576. lt_prog_compiler_static='-Bstatic'
  13577. ;;
  13578. sysv4 | sysv4.2uw2* | sysv4.3*)
  13579. lt_prog_compiler_wl='-Wl,'
  13580. lt_prog_compiler_pic='-KPIC'
  13581. lt_prog_compiler_static='-Bstatic'
  13582. ;;
  13583. sysv4*MP*)
  13584. if test -d /usr/nec ;then
  13585. lt_prog_compiler_pic='-Kconform_pic'
  13586. lt_prog_compiler_static='-Bstatic'
  13587. fi
  13588. ;;
  13589. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13590. lt_prog_compiler_wl='-Wl,'
  13591. lt_prog_compiler_pic='-KPIC'
  13592. lt_prog_compiler_static='-Bstatic'
  13593. ;;
  13594. unicos*)
  13595. lt_prog_compiler_wl='-Wl,'
  13596. lt_prog_compiler_can_build_shared=no
  13597. ;;
  13598. uts4*)
  13599. lt_prog_compiler_pic='-pic'
  13600. lt_prog_compiler_static='-Bstatic'
  13601. ;;
  13602. *)
  13603. lt_prog_compiler_can_build_shared=no
  13604. ;;
  13605. esac
  13606. fi
  13607. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  13608. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  13609. #
  13610. # Check to make sure the PIC flag actually works.
  13611. #
  13612. if test -n "$lt_prog_compiler_pic"; then
  13613. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  13614. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  13615. if test "${lt_prog_compiler_pic_works+set}" = set; then
  13616. echo $ECHO_N "(cached) $ECHO_C" >&6
  13617. else
  13618. lt_prog_compiler_pic_works=no
  13619. ac_outfile=conftest.$ac_objext
  13620. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13621. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  13622. # Insert the option either (1) after the last *FLAGS variable, or
  13623. # (2) before a word containing "conftest.", or (3) at the end.
  13624. # Note that $ac_compile itself does not contain backslashes and begins
  13625. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13626. # The option is referenced via a variable to avoid confusing sed.
  13627. lt_compile=`echo "$ac_compile" | $SED \
  13628. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13629. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13630. -e 's:$: $lt_compiler_flag:'`
  13631. (eval echo "\"\$as_me:15121: $lt_compile\"" >&5)
  13632. (eval "$lt_compile" 2>conftest.err)
  13633. ac_status=$?
  13634. cat conftest.err >&5
  13635. echo "$as_me:15125: \$? = $ac_status" >&5
  13636. if (exit $ac_status) && test -s "$ac_outfile"; then
  13637. # The compiler can only warn and ignore the option if not recognized
  13638. # So say no if there are warnings other than the usual output.
  13639. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13641. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13642. lt_prog_compiler_pic_works=yes
  13643. fi
  13644. fi
  13645. $rm conftest*
  13646. fi
  13647. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  13648. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  13649. if test x"$lt_prog_compiler_pic_works" = xyes; then
  13650. case $lt_prog_compiler_pic in
  13651. "" | " "*) ;;
  13652. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  13653. esac
  13654. else
  13655. lt_prog_compiler_pic=
  13656. lt_prog_compiler_can_build_shared=no
  13657. fi
  13658. fi
  13659. case $host_os in
  13660. # For platforms which do not support PIC, -DPIC is meaningless:
  13661. *djgpp*)
  13662. lt_prog_compiler_pic=
  13663. ;;
  13664. *)
  13665. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  13666. ;;
  13667. esac
  13668. #
  13669. # Check to make sure the static flag actually works.
  13670. #
  13671. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  13672. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13673. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  13674. if test "${lt_prog_compiler_static_works+set}" = set; then
  13675. echo $ECHO_N "(cached) $ECHO_C" >&6
  13676. else
  13677. lt_prog_compiler_static_works=no
  13678. save_LDFLAGS="$LDFLAGS"
  13679. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13680. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  13681. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13682. # The linker can only warn and ignore the option if not recognized
  13683. # So say no if there are warnings
  13684. if test -s conftest.err; then
  13685. # Append any errors to the config.log.
  13686. cat conftest.err 1>&5
  13687. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13688. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13689. if diff conftest.exp conftest.er2 >/dev/null; then
  13690. lt_prog_compiler_static_works=yes
  13691. fi
  13692. else
  13693. lt_prog_compiler_static_works=yes
  13694. fi
  13695. fi
  13696. $rm conftest*
  13697. LDFLAGS="$save_LDFLAGS"
  13698. fi
  13699. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  13700. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  13701. if test x"$lt_prog_compiler_static_works" = xyes; then
  13702. :
  13703. else
  13704. lt_prog_compiler_static=
  13705. fi
  13706. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13707. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13708. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  13709. echo $ECHO_N "(cached) $ECHO_C" >&6
  13710. else
  13711. lt_cv_prog_compiler_c_o=no
  13712. $rm -r conftest 2>/dev/null
  13713. mkdir conftest
  13714. cd conftest
  13715. mkdir out
  13716. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13717. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13718. # Insert the option either (1) after the last *FLAGS variable, or
  13719. # (2) before a word containing "conftest.", or (3) at the end.
  13720. # Note that $ac_compile itself does not contain backslashes and begins
  13721. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13722. lt_compile=`echo "$ac_compile" | $SED \
  13723. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13724. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13725. -e 's:$: $lt_compiler_flag:'`
  13726. (eval echo "\"\$as_me:15225: $lt_compile\"" >&5)
  13727. (eval "$lt_compile" 2>out/conftest.err)
  13728. ac_status=$?
  13729. cat out/conftest.err >&5
  13730. echo "$as_me:15229: \$? = $ac_status" >&5
  13731. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13732. then
  13733. # The compiler can only warn and ignore the option if not recognized
  13734. # So say no if there are warnings
  13735. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13736. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13737. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13738. lt_cv_prog_compiler_c_o=yes
  13739. fi
  13740. fi
  13741. chmod u+w . 2>&5
  13742. $rm conftest*
  13743. # SGI C++ compiler will create directory out/ii_files/ for
  13744. # template instantiation
  13745. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13746. $rm out/* && rmdir out
  13747. cd ..
  13748. rmdir conftest
  13749. $rm conftest*
  13750. fi
  13751. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  13752. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  13753. hard_links="nottested"
  13754. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  13755. # do not overwrite the value of need_locks provided by the user
  13756. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13757. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13758. hard_links=yes
  13759. $rm conftest*
  13760. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13761. touch conftest.a
  13762. ln conftest.a conftest.b 2>&5 || hard_links=no
  13763. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13764. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13765. echo "${ECHO_T}$hard_links" >&6; }
  13766. if test "$hard_links" = no; then
  13767. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13768. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13769. need_locks=warn
  13770. fi
  13771. else
  13772. need_locks=no
  13773. fi
  13774. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13775. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13776. runpath_var=
  13777. allow_undefined_flag=
  13778. enable_shared_with_static_runtimes=no
  13779. archive_cmds=
  13780. archive_expsym_cmds=
  13781. old_archive_From_new_cmds=
  13782. old_archive_from_expsyms_cmds=
  13783. export_dynamic_flag_spec=
  13784. whole_archive_flag_spec=
  13785. thread_safe_flag_spec=
  13786. hardcode_libdir_flag_spec=
  13787. hardcode_libdir_flag_spec_ld=
  13788. hardcode_libdir_separator=
  13789. hardcode_direct=no
  13790. hardcode_minus_L=no
  13791. hardcode_shlibpath_var=unsupported
  13792. link_all_deplibs=unknown
  13793. hardcode_automatic=no
  13794. module_cmds=
  13795. module_expsym_cmds=
  13796. always_export_symbols=no
  13797. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13798. # include_expsyms should be a list of space-separated symbols to be *always*
  13799. # included in the symbol list
  13800. include_expsyms=
  13801. # exclude_expsyms can be an extended regexp of symbols to exclude
  13802. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13803. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13804. # as well as any symbol that contains `d'.
  13805. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  13806. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13807. # platforms (ab)use it in PIC code, but their linkers get confused if
  13808. # the symbol is explicitly referenced. Since portable code cannot
  13809. # rely on this symbol name, it's probably fine to never include it in
  13810. # preloaded symbol tables.
  13811. extract_expsyms_cmds=
  13812. # Just being paranoid about ensuring that cc_basename is set.
  13813. for cc_temp in $compiler""; do
  13814. case $cc_temp in
  13815. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13816. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13817. \-*) ;;
  13818. *) break;;
  13819. esac
  13820. done
  13821. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13822. case $host_os in
  13823. cygwin* | mingw* | pw32*)
  13824. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13825. # When not using gcc, we currently assume that we are using
  13826. # Microsoft Visual C++.
  13827. if test "$GCC" != yes; then
  13828. with_gnu_ld=no
  13829. fi
  13830. ;;
  13831. interix*)
  13832. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13833. with_gnu_ld=yes
  13834. ;;
  13835. openbsd*)
  13836. with_gnu_ld=no
  13837. ;;
  13838. esac
  13839. ld_shlibs=yes
  13840. if test "$with_gnu_ld" = yes; then
  13841. # If archive_cmds runs LD, not CC, wlarc should be empty
  13842. wlarc='${wl}'
  13843. # Set some defaults for GNU ld with shared library support. These
  13844. # are reset later if shared libraries are not supported. Putting them
  13845. # here allows them to be overridden if necessary.
  13846. runpath_var=LD_RUN_PATH
  13847. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  13848. export_dynamic_flag_spec='${wl}--export-dynamic'
  13849. # ancient GNU ld didn't support --whole-archive et. al.
  13850. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13851. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13852. else
  13853. whole_archive_flag_spec=
  13854. fi
  13855. supports_anon_versioning=no
  13856. case `$LD -v 2>/dev/null` in
  13857. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13858. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13859. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13860. *\ 2.11.*) ;; # other 2.11 versions
  13861. *) supports_anon_versioning=yes ;;
  13862. esac
  13863. # See if GNU ld supports shared libraries.
  13864. case $host_os in
  13865. aix3* | aix4* | aix5*)
  13866. # On AIX/PPC, the GNU linker is very broken
  13867. if test "$host_cpu" != ia64; then
  13868. ld_shlibs=no
  13869. cat <<EOF 1>&2
  13870. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13871. *** to be unable to reliably create shared libraries on AIX.
  13872. *** Therefore, libtool is disabling shared libraries support. If you
  13873. *** really care for shared libraries, you may want to modify your PATH
  13874. *** so that a non-GNU linker is found, and then restart.
  13875. EOF
  13876. fi
  13877. ;;
  13878. amigaos*)
  13879. 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)'
  13880. hardcode_libdir_flag_spec='-L$libdir'
  13881. hardcode_minus_L=yes
  13882. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13883. # that the semantics of dynamic libraries on AmigaOS, at least up
  13884. # to version 4, is to share data among multiple programs linked
  13885. # with the same dynamic library. Since this doesn't match the
  13886. # behavior of shared libraries on other platforms, we can't use
  13887. # them.
  13888. ld_shlibs=no
  13889. ;;
  13890. beos*)
  13891. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13892. allow_undefined_flag=unsupported
  13893. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13894. # support --undefined. This deserves some investigation. FIXME
  13895. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13896. else
  13897. ld_shlibs=no
  13898. fi
  13899. ;;
  13900. cygwin* | mingw* | pw32*)
  13901. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  13902. # as there is no search path for DLLs.
  13903. hardcode_libdir_flag_spec='-L$libdir'
  13904. allow_undefined_flag=unsupported
  13905. always_export_symbols=no
  13906. enable_shared_with_static_runtimes=yes
  13907. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13908. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13909. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13910. # If the export-symbols file already is a .def file (1st line
  13911. # is EXPORTS), use it as is; otherwise, prepend...
  13912. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13913. cp $export_symbols $output_objdir/$soname.def;
  13914. else
  13915. echo EXPORTS > $output_objdir/$soname.def;
  13916. cat $export_symbols >> $output_objdir/$soname.def;
  13917. fi~
  13918. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13919. else
  13920. ld_shlibs=no
  13921. fi
  13922. ;;
  13923. interix3*)
  13924. hardcode_direct=no
  13925. hardcode_shlibpath_var=no
  13926. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13927. export_dynamic_flag_spec='${wl}-E'
  13928. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13929. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13930. # default) and relocated if they conflict, which is a slow very memory
  13931. # consuming and fragmenting process. To avoid this, we pick a random,
  13932. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13933. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13934. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13935. 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'
  13936. ;;
  13937. linux*)
  13938. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13939. tmp_addflag=
  13940. case $cc_basename,$host_cpu in
  13941. pgcc*) # Portland Group C compiler
  13942. 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'
  13943. tmp_addflag=' $pic_flag'
  13944. ;;
  13945. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13946. 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'
  13947. tmp_addflag=' $pic_flag -Mnomain' ;;
  13948. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13949. tmp_addflag=' -i_dynamic' ;;
  13950. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13951. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13952. ifc* | ifort*) # Intel Fortran compiler
  13953. tmp_addflag=' -nofor_main' ;;
  13954. esac
  13955. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13956. if test $supports_anon_versioning = yes; then
  13957. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  13958. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13959. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13960. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13961. fi
  13962. else
  13963. ld_shlibs=no
  13964. fi
  13965. ;;
  13966. netbsd*)
  13967. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13968. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13969. wlarc=
  13970. else
  13971. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13972. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13973. fi
  13974. ;;
  13975. solaris*)
  13976. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13977. ld_shlibs=no
  13978. cat <<EOF 1>&2
  13979. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13980. *** create shared libraries on Solaris systems. Therefore, libtool
  13981. *** is disabling shared libraries support. We urge you to upgrade GNU
  13982. *** binutils to release 2.9.1 or newer. Another option is to modify
  13983. *** your PATH or compiler configuration so that the native linker is
  13984. *** used, and then restart.
  13985. EOF
  13986. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13987. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13988. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13989. else
  13990. ld_shlibs=no
  13991. fi
  13992. ;;
  13993. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13994. case `$LD -v 2>&1` in
  13995. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13996. ld_shlibs=no
  13997. cat <<_LT_EOF 1>&2
  13998. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13999. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14000. *** is disabling shared libraries support. We urge you to upgrade GNU
  14001. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14002. *** your PATH or compiler configuration so that the native linker is
  14003. *** used, and then restart.
  14004. _LT_EOF
  14005. ;;
  14006. *)
  14007. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14008. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14009. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14010. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14011. else
  14012. ld_shlibs=no
  14013. fi
  14014. ;;
  14015. esac
  14016. ;;
  14017. sunos4*)
  14018. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14019. wlarc=
  14020. hardcode_direct=yes
  14021. hardcode_shlibpath_var=no
  14022. ;;
  14023. *)
  14024. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14025. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14026. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14027. else
  14028. ld_shlibs=no
  14029. fi
  14030. ;;
  14031. esac
  14032. if test "$ld_shlibs" = no; then
  14033. runpath_var=
  14034. hardcode_libdir_flag_spec=
  14035. export_dynamic_flag_spec=
  14036. whole_archive_flag_spec=
  14037. fi
  14038. else
  14039. # PORTME fill in a description of your system's linker (not GNU ld)
  14040. case $host_os in
  14041. aix3*)
  14042. allow_undefined_flag=unsupported
  14043. always_export_symbols=yes
  14044. 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'
  14045. # Note: this linker hardcodes the directories in LIBPATH if there
  14046. # are no directories specified by -L.
  14047. hardcode_minus_L=yes
  14048. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14049. # Neither direct hardcoding nor static linking is supported with a
  14050. # broken collect2.
  14051. hardcode_direct=unsupported
  14052. fi
  14053. ;;
  14054. aix4* | aix5*)
  14055. if test "$host_cpu" = ia64; then
  14056. # On IA64, the linker does run time linking by default, so we don't
  14057. # have to do anything special.
  14058. aix_use_runtimelinking=no
  14059. exp_sym_flag='-Bexport'
  14060. no_entry_flag=""
  14061. else
  14062. # If we're using GNU nm, then we don't want the "-C" option.
  14063. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14064. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14065. 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'
  14066. else
  14067. 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'
  14068. fi
  14069. aix_use_runtimelinking=no
  14070. # Test if we are trying to use run time linking or normal
  14071. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14072. # need to do runtime linking.
  14073. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14074. for ld_flag in $LDFLAGS; do
  14075. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14076. aix_use_runtimelinking=yes
  14077. break
  14078. fi
  14079. done
  14080. ;;
  14081. esac
  14082. exp_sym_flag='-bexport'
  14083. no_entry_flag='-bnoentry'
  14084. fi
  14085. # When large executables or shared objects are built, AIX ld can
  14086. # have problems creating the table of contents. If linking a library
  14087. # or program results in "error TOC overflow" add -mminimal-toc to
  14088. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14089. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14090. archive_cmds=''
  14091. hardcode_direct=yes
  14092. hardcode_libdir_separator=':'
  14093. link_all_deplibs=yes
  14094. if test "$GCC" = yes; then
  14095. case $host_os in aix4.[012]|aix4.[012].*)
  14096. # We only want to do this on AIX 4.2 and lower, the check
  14097. # below for broken collect2 doesn't work under 4.3+
  14098. collect2name=`${CC} -print-prog-name=collect2`
  14099. if test -f "$collect2name" && \
  14100. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14101. then
  14102. # We have reworked collect2
  14103. hardcode_direct=yes
  14104. else
  14105. # We have old collect2
  14106. hardcode_direct=unsupported
  14107. # It fails to find uninstalled libraries when the uninstalled
  14108. # path is not listed in the libpath. Setting hardcode_minus_L
  14109. # to unsupported forces relinking
  14110. hardcode_minus_L=yes
  14111. hardcode_libdir_flag_spec='-L$libdir'
  14112. hardcode_libdir_separator=
  14113. fi
  14114. ;;
  14115. esac
  14116. shared_flag='-shared'
  14117. if test "$aix_use_runtimelinking" = yes; then
  14118. shared_flag="$shared_flag "'${wl}-G'
  14119. fi
  14120. else
  14121. # not using gcc
  14122. if test "$host_cpu" = ia64; then
  14123. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14124. # chokes on -Wl,-G. The following line is correct:
  14125. shared_flag='-G'
  14126. else
  14127. if test "$aix_use_runtimelinking" = yes; then
  14128. shared_flag='${wl}-G'
  14129. else
  14130. shared_flag='${wl}-bM:SRE'
  14131. fi
  14132. fi
  14133. fi
  14134. # It seems that -bexpall does not export symbols beginning with
  14135. # underscore (_), so it is better to generate a list of symbols to export.
  14136. always_export_symbols=yes
  14137. if test "$aix_use_runtimelinking" = yes; then
  14138. # Warning - without using the other runtime loading flags (-brtl),
  14139. # -berok will link without error, but may produce a broken library.
  14140. allow_undefined_flag='-berok'
  14141. # Determine the default libpath from the value encoded in an empty executable.
  14142. cat >conftest.$ac_ext <<_ACEOF
  14143. /* confdefs.h. */
  14144. _ACEOF
  14145. cat confdefs.h >>conftest.$ac_ext
  14146. cat >>conftest.$ac_ext <<_ACEOF
  14147. /* end confdefs.h. */
  14148. int
  14149. main ()
  14150. {
  14151. ;
  14152. return 0;
  14153. }
  14154. _ACEOF
  14155. rm -f conftest.$ac_objext conftest$ac_exeext
  14156. if { (ac_try="$ac_link"
  14157. case "(($ac_try" in
  14158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14159. *) ac_try_echo=$ac_try;;
  14160. esac
  14161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14162. (eval "$ac_link") 2>conftest.er1
  14163. ac_status=$?
  14164. grep -v '^ *+' conftest.er1 >conftest.err
  14165. rm -f conftest.er1
  14166. cat conftest.err >&5
  14167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14168. (exit $ac_status); } &&
  14169. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14170. { (case "(($ac_try" in
  14171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14172. *) ac_try_echo=$ac_try;;
  14173. esac
  14174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14175. (eval "$ac_try") 2>&5
  14176. ac_status=$?
  14177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14178. (exit $ac_status); }; } &&
  14179. { ac_try='test -s conftest$ac_exeext'
  14180. { (case "(($ac_try" in
  14181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14182. *) ac_try_echo=$ac_try;;
  14183. esac
  14184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14185. (eval "$ac_try") 2>&5
  14186. ac_status=$?
  14187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14188. (exit $ac_status); }; }; then
  14189. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14190. }'`
  14191. # Check for a 64-bit object if we didn't find anything.
  14192. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14193. }'`; fi
  14194. else
  14195. echo "$as_me: failed program was:" >&5
  14196. sed 's/^/| /' conftest.$ac_ext >&5
  14197. fi
  14198. rm -f core conftest.err conftest.$ac_objext \
  14199. conftest$ac_exeext conftest.$ac_ext
  14200. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14201. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  14202. 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"
  14203. else
  14204. if test "$host_cpu" = ia64; then
  14205. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  14206. allow_undefined_flag="-z nodefs"
  14207. 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"
  14208. else
  14209. # Determine the default libpath from the value encoded in an empty executable.
  14210. cat >conftest.$ac_ext <<_ACEOF
  14211. /* confdefs.h. */
  14212. _ACEOF
  14213. cat confdefs.h >>conftest.$ac_ext
  14214. cat >>conftest.$ac_ext <<_ACEOF
  14215. /* end confdefs.h. */
  14216. int
  14217. main ()
  14218. {
  14219. ;
  14220. return 0;
  14221. }
  14222. _ACEOF
  14223. rm -f conftest.$ac_objext conftest$ac_exeext
  14224. if { (ac_try="$ac_link"
  14225. case "(($ac_try" in
  14226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14227. *) ac_try_echo=$ac_try;;
  14228. esac
  14229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14230. (eval "$ac_link") 2>conftest.er1
  14231. ac_status=$?
  14232. grep -v '^ *+' conftest.er1 >conftest.err
  14233. rm -f conftest.er1
  14234. cat conftest.err >&5
  14235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14236. (exit $ac_status); } &&
  14237. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14238. { (case "(($ac_try" in
  14239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14240. *) ac_try_echo=$ac_try;;
  14241. esac
  14242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14243. (eval "$ac_try") 2>&5
  14244. ac_status=$?
  14245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14246. (exit $ac_status); }; } &&
  14247. { ac_try='test -s conftest$ac_exeext'
  14248. { (case "(($ac_try" in
  14249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14250. *) ac_try_echo=$ac_try;;
  14251. esac
  14252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14253. (eval "$ac_try") 2>&5
  14254. ac_status=$?
  14255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14256. (exit $ac_status); }; }; then
  14257. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14258. }'`
  14259. # Check for a 64-bit object if we didn't find anything.
  14260. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14261. }'`; fi
  14262. else
  14263. echo "$as_me: failed program was:" >&5
  14264. sed 's/^/| /' conftest.$ac_ext >&5
  14265. fi
  14266. rm -f core conftest.err conftest.$ac_objext \
  14267. conftest$ac_exeext conftest.$ac_ext
  14268. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14269. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  14270. # Warning - without using the other run time loading flags,
  14271. # -berok will link without error, but may produce a broken library.
  14272. no_undefined_flag=' ${wl}-bernotok'
  14273. allow_undefined_flag=' ${wl}-berok'
  14274. # Exported symbols can be pulled into shared objects from archives
  14275. whole_archive_flag_spec='$convenience'
  14276. archive_cmds_need_lc=yes
  14277. # This is similar to how AIX traditionally builds its shared libraries.
  14278. 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'
  14279. fi
  14280. fi
  14281. ;;
  14282. amigaos*)
  14283. 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)'
  14284. hardcode_libdir_flag_spec='-L$libdir'
  14285. hardcode_minus_L=yes
  14286. # see comment about different semantics on the GNU ld section
  14287. ld_shlibs=no
  14288. ;;
  14289. bsdi[45]*)
  14290. export_dynamic_flag_spec=-rdynamic
  14291. ;;
  14292. cygwin* | mingw* | pw32*)
  14293. # When not using gcc, we currently assume that we are using
  14294. # Microsoft Visual C++.
  14295. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14296. # no search path for DLLs.
  14297. hardcode_libdir_flag_spec=' '
  14298. allow_undefined_flag=unsupported
  14299. # Tell ltmain to make .lib files, not .a files.
  14300. libext=lib
  14301. # Tell ltmain to make .dll files, not .so files.
  14302. shrext_cmds=".dll"
  14303. # FIXME: Setting linknames here is a bad hack.
  14304. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14305. # The linker will automatically build a .lib file if we build a DLL.
  14306. old_archive_From_new_cmds='true'
  14307. # FIXME: Should let the user specify the lib program.
  14308. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14309. fix_srcfile_path='`cygpath -w "$srcfile"`'
  14310. enable_shared_with_static_runtimes=yes
  14311. ;;
  14312. darwin* | rhapsody*)
  14313. case $host_os in
  14314. rhapsody* | darwin1.[012])
  14315. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  14316. ;;
  14317. *) # Darwin 1.3 on
  14318. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14319. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14320. else
  14321. case ${MACOSX_DEPLOYMENT_TARGET} in
  14322. 10.[012])
  14323. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14324. ;;
  14325. 10.*)
  14326. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  14327. ;;
  14328. esac
  14329. fi
  14330. ;;
  14331. esac
  14332. archive_cmds_need_lc=no
  14333. hardcode_direct=no
  14334. hardcode_automatic=yes
  14335. hardcode_shlibpath_var=unsupported
  14336. whole_archive_flag_spec=''
  14337. link_all_deplibs=yes
  14338. if test "$GCC" = yes ; then
  14339. output_verbose_link_cmd='echo'
  14340. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14341. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14342. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14343. 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}'
  14344. 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}'
  14345. else
  14346. case $cc_basename in
  14347. xlc*)
  14348. output_verbose_link_cmd='echo'
  14349. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14350. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14351. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14352. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14353. 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}'
  14354. ;;
  14355. *)
  14356. ld_shlibs=no
  14357. ;;
  14358. esac
  14359. fi
  14360. ;;
  14361. dgux*)
  14362. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14363. hardcode_libdir_flag_spec='-L$libdir'
  14364. hardcode_shlibpath_var=no
  14365. ;;
  14366. freebsd1*)
  14367. ld_shlibs=no
  14368. ;;
  14369. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14370. # support. Future versions do this automatically, but an explicit c++rt0.o
  14371. # does not break anything, and helps significantly (at the cost of a little
  14372. # extra space).
  14373. freebsd2.2*)
  14374. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14375. hardcode_libdir_flag_spec='-R$libdir'
  14376. hardcode_direct=yes
  14377. hardcode_shlibpath_var=no
  14378. ;;
  14379. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14380. freebsd2*)
  14381. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14382. hardcode_direct=yes
  14383. hardcode_minus_L=yes
  14384. hardcode_shlibpath_var=no
  14385. ;;
  14386. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14387. freebsd* | kfreebsd*-gnu | dragonfly*)
  14388. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14389. hardcode_libdir_flag_spec='-R$libdir'
  14390. hardcode_direct=yes
  14391. hardcode_shlibpath_var=no
  14392. ;;
  14393. hpux9*)
  14394. if test "$GCC" = yes; then
  14395. 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'
  14396. else
  14397. 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'
  14398. fi
  14399. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14400. hardcode_libdir_separator=:
  14401. hardcode_direct=yes
  14402. # hardcode_minus_L: Not really in the search PATH,
  14403. # but as the default location of the library.
  14404. hardcode_minus_L=yes
  14405. export_dynamic_flag_spec='${wl}-E'
  14406. ;;
  14407. hpux10*)
  14408. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14409. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14410. else
  14411. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14412. fi
  14413. if test "$with_gnu_ld" = no; then
  14414. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14415. hardcode_libdir_separator=:
  14416. hardcode_direct=yes
  14417. export_dynamic_flag_spec='${wl}-E'
  14418. # hardcode_minus_L: Not really in the search PATH,
  14419. # but as the default location of the library.
  14420. hardcode_minus_L=yes
  14421. fi
  14422. ;;
  14423. hpux11*)
  14424. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14425. case $host_cpu in
  14426. hppa*64*)
  14427. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14428. ;;
  14429. ia64*)
  14430. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14431. ;;
  14432. *)
  14433. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14434. ;;
  14435. esac
  14436. else
  14437. case $host_cpu in
  14438. hppa*64*)
  14439. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14440. ;;
  14441. ia64*)
  14442. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14443. ;;
  14444. *)
  14445. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14446. ;;
  14447. esac
  14448. fi
  14449. if test "$with_gnu_ld" = no; then
  14450. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  14451. hardcode_libdir_separator=:
  14452. case $host_cpu in
  14453. hppa*64*|ia64*)
  14454. hardcode_libdir_flag_spec_ld='+b $libdir'
  14455. hardcode_direct=no
  14456. hardcode_shlibpath_var=no
  14457. ;;
  14458. *)
  14459. hardcode_direct=yes
  14460. export_dynamic_flag_spec='${wl}-E'
  14461. # hardcode_minus_L: Not really in the search PATH,
  14462. # but as the default location of the library.
  14463. hardcode_minus_L=yes
  14464. ;;
  14465. esac
  14466. fi
  14467. ;;
  14468. irix5* | irix6* | nonstopux*)
  14469. if test "$GCC" = yes; then
  14470. 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'
  14471. else
  14472. 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'
  14473. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  14474. fi
  14475. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14476. hardcode_libdir_separator=:
  14477. link_all_deplibs=yes
  14478. ;;
  14479. netbsd*)
  14480. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14481. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14482. else
  14483. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14484. fi
  14485. hardcode_libdir_flag_spec='-R$libdir'
  14486. hardcode_direct=yes
  14487. hardcode_shlibpath_var=no
  14488. ;;
  14489. newsos6)
  14490. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14491. hardcode_direct=yes
  14492. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14493. hardcode_libdir_separator=:
  14494. hardcode_shlibpath_var=no
  14495. ;;
  14496. openbsd*)
  14497. hardcode_direct=yes
  14498. hardcode_shlibpath_var=no
  14499. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14500. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14501. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14502. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  14503. export_dynamic_flag_spec='${wl}-E'
  14504. else
  14505. case $host_os in
  14506. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14507. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14508. hardcode_libdir_flag_spec='-R$libdir'
  14509. ;;
  14510. *)
  14511. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14512. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  14513. ;;
  14514. esac
  14515. fi
  14516. ;;
  14517. os2*)
  14518. hardcode_libdir_flag_spec='-L$libdir'
  14519. hardcode_minus_L=yes
  14520. allow_undefined_flag=unsupported
  14521. 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'
  14522. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14523. ;;
  14524. osf3*)
  14525. if test "$GCC" = yes; then
  14526. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  14527. 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'
  14528. else
  14529. allow_undefined_flag=' -expect_unresolved \*'
  14530. 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'
  14531. fi
  14532. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14533. hardcode_libdir_separator=:
  14534. ;;
  14535. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14536. if test "$GCC" = yes; then
  14537. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  14538. 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'
  14539. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14540. else
  14541. allow_undefined_flag=' -expect_unresolved \*'
  14542. 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'
  14543. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14544. $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'
  14545. # Both c and cxx compiler support -rpath directly
  14546. hardcode_libdir_flag_spec='-rpath $libdir'
  14547. fi
  14548. hardcode_libdir_separator=:
  14549. ;;
  14550. solaris*)
  14551. no_undefined_flag=' -z text'
  14552. if test "$GCC" = yes; then
  14553. wlarc='${wl}'
  14554. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14555. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14556. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14557. else
  14558. wlarc=''
  14559. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14560. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14561. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14562. fi
  14563. hardcode_libdir_flag_spec='-R$libdir'
  14564. hardcode_shlibpath_var=no
  14565. case $host_os in
  14566. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14567. *)
  14568. # The compiler driver will combine linker options so we
  14569. # cannot just pass the convience library names through
  14570. # without $wl, iff we do not link with $LD.
  14571. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14572. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14573. case $wlarc in
  14574. '')
  14575. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  14576. *)
  14577. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  14578. esac ;;
  14579. esac
  14580. link_all_deplibs=yes
  14581. ;;
  14582. sunos4*)
  14583. if test "x$host_vendor" = xsequent; then
  14584. # Use $CC to link under sequent, because it throws in some extra .o
  14585. # files that make .init and .fini sections work.
  14586. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14587. else
  14588. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14589. fi
  14590. hardcode_libdir_flag_spec='-L$libdir'
  14591. hardcode_direct=yes
  14592. hardcode_minus_L=yes
  14593. hardcode_shlibpath_var=no
  14594. ;;
  14595. sysv4)
  14596. case $host_vendor in
  14597. sni)
  14598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14599. hardcode_direct=yes # is this really true???
  14600. ;;
  14601. siemens)
  14602. ## LD is ld it makes a PLAMLIB
  14603. ## CC just makes a GrossModule.
  14604. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14605. reload_cmds='$CC -r -o $output$reload_objs'
  14606. hardcode_direct=no
  14607. ;;
  14608. motorola)
  14609. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14610. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  14611. ;;
  14612. esac
  14613. runpath_var='LD_RUN_PATH'
  14614. hardcode_shlibpath_var=no
  14615. ;;
  14616. sysv4.3*)
  14617. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14618. hardcode_shlibpath_var=no
  14619. export_dynamic_flag_spec='-Bexport'
  14620. ;;
  14621. sysv4*MP*)
  14622. if test -d /usr/nec; then
  14623. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14624. hardcode_shlibpath_var=no
  14625. runpath_var=LD_RUN_PATH
  14626. hardcode_runpath_var=yes
  14627. ld_shlibs=yes
  14628. fi
  14629. ;;
  14630. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  14631. no_undefined_flag='${wl}-z,text'
  14632. archive_cmds_need_lc=no
  14633. hardcode_shlibpath_var=no
  14634. runpath_var='LD_RUN_PATH'
  14635. if test "$GCC" = yes; then
  14636. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14637. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14638. else
  14639. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14640. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14641. fi
  14642. ;;
  14643. sysv5* | sco3.2v5* | sco5v6*)
  14644. # Note: We can NOT use -z defs as we might desire, because we do not
  14645. # link with -lc, and that would cause any symbols used from libc to
  14646. # always be unresolved, which means just about no library would
  14647. # ever link correctly. If we're not using GNU ld we use -z text
  14648. # though, which does catch some bad symbols but isn't as heavy-handed
  14649. # as -z defs.
  14650. no_undefined_flag='${wl}-z,text'
  14651. allow_undefined_flag='${wl}-z,nodefs'
  14652. archive_cmds_need_lc=no
  14653. hardcode_shlibpath_var=no
  14654. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  14655. hardcode_libdir_separator=':'
  14656. link_all_deplibs=yes
  14657. export_dynamic_flag_spec='${wl}-Bexport'
  14658. runpath_var='LD_RUN_PATH'
  14659. if test "$GCC" = yes; then
  14660. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14661. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14662. else
  14663. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14664. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14665. fi
  14666. ;;
  14667. uts4*)
  14668. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14669. hardcode_libdir_flag_spec='-L$libdir'
  14670. hardcode_shlibpath_var=no
  14671. ;;
  14672. *)
  14673. ld_shlibs=no
  14674. ;;
  14675. esac
  14676. fi
  14677. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  14678. echo "${ECHO_T}$ld_shlibs" >&6; }
  14679. test "$ld_shlibs" = no && can_build_shared=no
  14680. #
  14681. # Do we need to explicitly link libc?
  14682. #
  14683. case "x$archive_cmds_need_lc" in
  14684. x|xyes)
  14685. # Assume -lc should be added
  14686. archive_cmds_need_lc=yes
  14687. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14688. case $archive_cmds in
  14689. *'~'*)
  14690. # FIXME: we may have to deal with multi-command sequences.
  14691. ;;
  14692. '$CC '*)
  14693. # Test whether the compiler implicitly links with -lc since on some
  14694. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14695. # to ld, don't add -lc before -lgcc.
  14696. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14697. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  14698. $rm conftest*
  14699. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14700. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14701. (eval $ac_compile) 2>&5
  14702. ac_status=$?
  14703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14704. (exit $ac_status); } 2>conftest.err; then
  14705. soname=conftest
  14706. lib=conftest
  14707. libobjs=conftest.$ac_objext
  14708. deplibs=
  14709. wl=$lt_prog_compiler_wl
  14710. pic_flag=$lt_prog_compiler_pic
  14711. compiler_flags=-v
  14712. linker_flags=-v
  14713. verstring=
  14714. output_objdir=.
  14715. libname=conftest
  14716. lt_save_allow_undefined_flag=$allow_undefined_flag
  14717. allow_undefined_flag=
  14718. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14719. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14720. ac_status=$?
  14721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14722. (exit $ac_status); }
  14723. then
  14724. archive_cmds_need_lc=no
  14725. else
  14726. archive_cmds_need_lc=yes
  14727. fi
  14728. allow_undefined_flag=$lt_save_allow_undefined_flag
  14729. else
  14730. cat conftest.err 1>&5
  14731. fi
  14732. $rm conftest*
  14733. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  14734. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  14735. ;;
  14736. esac
  14737. fi
  14738. ;;
  14739. esac
  14740. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14741. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14742. library_names_spec=
  14743. libname_spec='lib$name'
  14744. soname_spec=
  14745. shrext_cmds=".so"
  14746. postinstall_cmds=
  14747. postuninstall_cmds=
  14748. finish_cmds=
  14749. finish_eval=
  14750. shlibpath_var=
  14751. shlibpath_overrides_runpath=unknown
  14752. version_type=none
  14753. dynamic_linker="$host_os ld.so"
  14754. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14755. if test "$GCC" = yes; then
  14756. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14757. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14758. # if the path contains ";" then we assume it to be the separator
  14759. # otherwise default to the standard path separator (i.e. ":") - it is
  14760. # assumed that no part of a normal pathname contains ";" but that should
  14761. # okay in the real world where ";" in dirpaths is itself problematic.
  14762. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14763. else
  14764. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14765. fi
  14766. else
  14767. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14768. fi
  14769. need_lib_prefix=unknown
  14770. hardcode_into_libs=no
  14771. # when you set need_version to no, make sure it does not cause -set_version
  14772. # flags to be left without arguments
  14773. need_version=unknown
  14774. case $host_os in
  14775. aix3*)
  14776. version_type=linux
  14777. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14778. shlibpath_var=LIBPATH
  14779. # AIX 3 has no versioning support, so we append a major version to the name.
  14780. soname_spec='${libname}${release}${shared_ext}$major'
  14781. ;;
  14782. aix4* | aix5*)
  14783. version_type=linux
  14784. need_lib_prefix=no
  14785. need_version=no
  14786. hardcode_into_libs=yes
  14787. if test "$host_cpu" = ia64; then
  14788. # AIX 5 supports IA64
  14789. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14790. shlibpath_var=LD_LIBRARY_PATH
  14791. else
  14792. # With GCC up to 2.95.x, collect2 would create an import file
  14793. # for dependence libraries. The import file would start with
  14794. # the line `#! .'. This would cause the generated library to
  14795. # depend on `.', always an invalid library. This was fixed in
  14796. # development snapshots of GCC prior to 3.0.
  14797. case $host_os in
  14798. aix4 | aix4.[01] | aix4.[01].*)
  14799. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14800. echo ' yes '
  14801. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14802. :
  14803. else
  14804. can_build_shared=no
  14805. fi
  14806. ;;
  14807. esac
  14808. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14809. # soname into executable. Probably we can add versioning support to
  14810. # collect2, so additional links can be useful in future.
  14811. if test "$aix_use_runtimelinking" = yes; then
  14812. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14813. # instead of lib<name>.a to let people know that these are not
  14814. # typical AIX shared libraries.
  14815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14816. else
  14817. # We preserve .a as extension for shared libraries through AIX4.2
  14818. # and later when we are not doing run time linking.
  14819. library_names_spec='${libname}${release}.a $libname.a'
  14820. soname_spec='${libname}${release}${shared_ext}$major'
  14821. fi
  14822. shlibpath_var=LIBPATH
  14823. fi
  14824. ;;
  14825. amigaos*)
  14826. library_names_spec='$libname.ixlibrary $libname.a'
  14827. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14828. 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'
  14829. ;;
  14830. beos*)
  14831. library_names_spec='${libname}${shared_ext}'
  14832. dynamic_linker="$host_os ld.so"
  14833. shlibpath_var=LIBRARY_PATH
  14834. ;;
  14835. bsdi[45]*)
  14836. version_type=linux
  14837. need_version=no
  14838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14839. soname_spec='${libname}${release}${shared_ext}$major'
  14840. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14841. shlibpath_var=LD_LIBRARY_PATH
  14842. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14843. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14844. # the default ld.so.conf also contains /usr/contrib/lib and
  14845. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14846. # libtool to hard-code these into programs
  14847. ;;
  14848. cygwin* | mingw* | pw32*)
  14849. version_type=windows
  14850. shrext_cmds=".dll"
  14851. need_version=no
  14852. need_lib_prefix=no
  14853. case $GCC,$host_os in
  14854. yes,cygwin* | yes,mingw* | yes,pw32*)
  14855. library_names_spec='$libname.dll.a'
  14856. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14857. postinstall_cmds='base_file=`basename \${file}`~
  14858. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14859. dldir=$destdir/`dirname \$dlpath`~
  14860. test -d \$dldir || mkdir -p \$dldir~
  14861. $install_prog $dir/$dlname \$dldir/$dlname~
  14862. chmod a+x \$dldir/$dlname'
  14863. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14864. dlpath=$dir/\$dldll~
  14865. $rm \$dlpath'
  14866. shlibpath_overrides_runpath=yes
  14867. case $host_os in
  14868. cygwin*)
  14869. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14870. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14871. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14872. ;;
  14873. mingw*)
  14874. # MinGW DLLs use traditional 'lib' prefix
  14875. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14876. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14877. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14878. # It is most probably a Windows format PATH printed by
  14879. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14880. # path with ; separators, and with drive letters. We can handle the
  14881. # drive letters (cygwin fileutils understands them), so leave them,
  14882. # especially as we might pass files found there to a mingw objdump,
  14883. # which wouldn't understand a cygwinified path. Ahh.
  14884. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14885. else
  14886. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14887. fi
  14888. ;;
  14889. pw32*)
  14890. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14891. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14892. ;;
  14893. esac
  14894. ;;
  14895. *)
  14896. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14897. ;;
  14898. esac
  14899. dynamic_linker='Win32 ld.exe'
  14900. # FIXME: first we should search . and the directory the executable is in
  14901. shlibpath_var=PATH
  14902. ;;
  14903. darwin* | rhapsody*)
  14904. dynamic_linker="$host_os dyld"
  14905. version_type=darwin
  14906. need_lib_prefix=no
  14907. need_version=no
  14908. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14909. soname_spec='${libname}${release}${major}$shared_ext'
  14910. shlibpath_overrides_runpath=yes
  14911. shlibpath_var=DYLD_LIBRARY_PATH
  14912. shrext_cmds='.dylib'
  14913. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14914. if test "$GCC" = yes; then
  14915. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14916. else
  14917. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14918. fi
  14919. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14920. ;;
  14921. dgux*)
  14922. version_type=linux
  14923. need_lib_prefix=no
  14924. need_version=no
  14925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14926. soname_spec='${libname}${release}${shared_ext}$major'
  14927. shlibpath_var=LD_LIBRARY_PATH
  14928. ;;
  14929. freebsd1*)
  14930. dynamic_linker=no
  14931. ;;
  14932. kfreebsd*-gnu)
  14933. version_type=linux
  14934. need_lib_prefix=no
  14935. need_version=no
  14936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14937. soname_spec='${libname}${release}${shared_ext}$major'
  14938. shlibpath_var=LD_LIBRARY_PATH
  14939. shlibpath_overrides_runpath=no
  14940. hardcode_into_libs=yes
  14941. dynamic_linker='GNU ld.so'
  14942. ;;
  14943. freebsd* | dragonfly*)
  14944. # DragonFly does not have aout. When/if they implement a new
  14945. # versioning mechanism, adjust this.
  14946. if test -x /usr/bin/objformat; then
  14947. objformat=`/usr/bin/objformat`
  14948. else
  14949. case $host_os in
  14950. freebsd[123]*) objformat=aout ;;
  14951. *) objformat=elf ;;
  14952. esac
  14953. fi
  14954. version_type=freebsd-$objformat
  14955. case $version_type in
  14956. freebsd-elf*)
  14957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14958. need_version=no
  14959. need_lib_prefix=no
  14960. ;;
  14961. freebsd-*)
  14962. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14963. need_version=yes
  14964. ;;
  14965. esac
  14966. shlibpath_var=LD_LIBRARY_PATH
  14967. case $host_os in
  14968. freebsd2*)
  14969. shlibpath_overrides_runpath=yes
  14970. ;;
  14971. freebsd3.[01]* | freebsdelf3.[01]*)
  14972. shlibpath_overrides_runpath=yes
  14973. hardcode_into_libs=yes
  14974. ;;
  14975. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14976. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14977. shlibpath_overrides_runpath=no
  14978. hardcode_into_libs=yes
  14979. ;;
  14980. freebsd*) # from 4.6 on
  14981. shlibpath_overrides_runpath=yes
  14982. hardcode_into_libs=yes
  14983. ;;
  14984. esac
  14985. ;;
  14986. gnu*)
  14987. version_type=linux
  14988. need_lib_prefix=no
  14989. need_version=no
  14990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14991. soname_spec='${libname}${release}${shared_ext}$major'
  14992. shlibpath_var=LD_LIBRARY_PATH
  14993. hardcode_into_libs=yes
  14994. ;;
  14995. hpux9* | hpux10* | hpux11*)
  14996. # Give a soname corresponding to the major version so that dld.sl refuses to
  14997. # link against other versions.
  14998. version_type=sunos
  14999. need_lib_prefix=no
  15000. need_version=no
  15001. case $host_cpu in
  15002. ia64*)
  15003. shrext_cmds='.so'
  15004. hardcode_into_libs=yes
  15005. dynamic_linker="$host_os dld.so"
  15006. shlibpath_var=LD_LIBRARY_PATH
  15007. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15009. soname_spec='${libname}${release}${shared_ext}$major'
  15010. if test "X$HPUX_IA64_MODE" = X32; then
  15011. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15012. else
  15013. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15014. fi
  15015. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15016. ;;
  15017. hppa*64*)
  15018. shrext_cmds='.sl'
  15019. hardcode_into_libs=yes
  15020. dynamic_linker="$host_os dld.sl"
  15021. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15022. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15024. soname_spec='${libname}${release}${shared_ext}$major'
  15025. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15026. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15027. ;;
  15028. *)
  15029. shrext_cmds='.sl'
  15030. dynamic_linker="$host_os dld.sl"
  15031. shlibpath_var=SHLIB_PATH
  15032. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15034. soname_spec='${libname}${release}${shared_ext}$major'
  15035. ;;
  15036. esac
  15037. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15038. postinstall_cmds='chmod 555 $lib'
  15039. ;;
  15040. interix3*)
  15041. version_type=linux
  15042. need_lib_prefix=no
  15043. need_version=no
  15044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15045. soname_spec='${libname}${release}${shared_ext}$major'
  15046. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15047. shlibpath_var=LD_LIBRARY_PATH
  15048. shlibpath_overrides_runpath=no
  15049. hardcode_into_libs=yes
  15050. ;;
  15051. irix5* | irix6* | nonstopux*)
  15052. case $host_os in
  15053. nonstopux*) version_type=nonstopux ;;
  15054. *)
  15055. if test "$lt_cv_prog_gnu_ld" = yes; then
  15056. version_type=linux
  15057. else
  15058. version_type=irix
  15059. fi ;;
  15060. esac
  15061. need_lib_prefix=no
  15062. need_version=no
  15063. soname_spec='${libname}${release}${shared_ext}$major'
  15064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15065. case $host_os in
  15066. irix5* | nonstopux*)
  15067. libsuff= shlibsuff=
  15068. ;;
  15069. *)
  15070. case $LD in # libtool.m4 will add one of these switches to LD
  15071. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15072. libsuff= shlibsuff= libmagic=32-bit;;
  15073. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15074. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15075. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15076. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15077. *) libsuff= shlibsuff= libmagic=never-match;;
  15078. esac
  15079. ;;
  15080. esac
  15081. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15082. shlibpath_overrides_runpath=no
  15083. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15084. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15085. hardcode_into_libs=yes
  15086. ;;
  15087. # No shared lib support for Linux oldld, aout, or coff.
  15088. linux*oldld* | linux*aout* | linux*coff*)
  15089. dynamic_linker=no
  15090. ;;
  15091. # This must be Linux ELF.
  15092. linux*)
  15093. version_type=linux
  15094. need_lib_prefix=no
  15095. need_version=no
  15096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15097. soname_spec='${libname}${release}${shared_ext}$major'
  15098. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15099. shlibpath_var=LD_LIBRARY_PATH
  15100. shlibpath_overrides_runpath=no
  15101. # This implies no fast_install, which is unacceptable.
  15102. # Some rework will be needed to allow for fast_install
  15103. # before this can be enabled.
  15104. hardcode_into_libs=yes
  15105. # Append ld.so.conf contents to the search path
  15106. if test -f /etc/ld.so.conf; then
  15107. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15108. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15109. fi
  15110. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15111. # powerpc, because MkLinux only supported shared libraries with the
  15112. # GNU dynamic linker. Since this was broken with cross compilers,
  15113. # most powerpc-linux boxes support dynamic linking these days and
  15114. # people can always --disable-shared, the test was removed, and we
  15115. # assume the GNU/Linux dynamic linker is in use.
  15116. dynamic_linker='GNU/Linux ld.so'
  15117. ;;
  15118. knetbsd*-gnu)
  15119. version_type=linux
  15120. need_lib_prefix=no
  15121. need_version=no
  15122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15123. soname_spec='${libname}${release}${shared_ext}$major'
  15124. shlibpath_var=LD_LIBRARY_PATH
  15125. shlibpath_overrides_runpath=no
  15126. hardcode_into_libs=yes
  15127. dynamic_linker='GNU ld.so'
  15128. ;;
  15129. netbsd*)
  15130. version_type=sunos
  15131. need_lib_prefix=no
  15132. need_version=no
  15133. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15135. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15136. dynamic_linker='NetBSD (a.out) ld.so'
  15137. else
  15138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15139. soname_spec='${libname}${release}${shared_ext}$major'
  15140. dynamic_linker='NetBSD ld.elf_so'
  15141. fi
  15142. shlibpath_var=LD_LIBRARY_PATH
  15143. shlibpath_overrides_runpath=yes
  15144. hardcode_into_libs=yes
  15145. ;;
  15146. newsos6)
  15147. version_type=linux
  15148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15149. shlibpath_var=LD_LIBRARY_PATH
  15150. shlibpath_overrides_runpath=yes
  15151. ;;
  15152. nto-qnx*)
  15153. version_type=linux
  15154. need_lib_prefix=no
  15155. need_version=no
  15156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15157. soname_spec='${libname}${release}${shared_ext}$major'
  15158. shlibpath_var=LD_LIBRARY_PATH
  15159. shlibpath_overrides_runpath=yes
  15160. ;;
  15161. openbsd*)
  15162. version_type=sunos
  15163. sys_lib_dlsearch_path_spec="/usr/lib"
  15164. need_lib_prefix=no
  15165. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15166. case $host_os in
  15167. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15168. *) need_version=no ;;
  15169. esac
  15170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15171. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15172. shlibpath_var=LD_LIBRARY_PATH
  15173. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15174. case $host_os in
  15175. openbsd2.[89] | openbsd2.[89].*)
  15176. shlibpath_overrides_runpath=no
  15177. ;;
  15178. *)
  15179. shlibpath_overrides_runpath=yes
  15180. ;;
  15181. esac
  15182. else
  15183. shlibpath_overrides_runpath=yes
  15184. fi
  15185. ;;
  15186. os2*)
  15187. libname_spec='$name'
  15188. shrext_cmds=".dll"
  15189. need_lib_prefix=no
  15190. library_names_spec='$libname${shared_ext} $libname.a'
  15191. dynamic_linker='OS/2 ld.exe'
  15192. shlibpath_var=LIBPATH
  15193. ;;
  15194. osf3* | osf4* | osf5*)
  15195. version_type=osf
  15196. need_lib_prefix=no
  15197. need_version=no
  15198. soname_spec='${libname}${release}${shared_ext}$major'
  15199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15200. shlibpath_var=LD_LIBRARY_PATH
  15201. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15202. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15203. ;;
  15204. solaris*)
  15205. version_type=linux
  15206. need_lib_prefix=no
  15207. need_version=no
  15208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15209. soname_spec='${libname}${release}${shared_ext}$major'
  15210. shlibpath_var=LD_LIBRARY_PATH
  15211. shlibpath_overrides_runpath=yes
  15212. hardcode_into_libs=yes
  15213. # ldd complains unless libraries are executable
  15214. postinstall_cmds='chmod +x $lib'
  15215. ;;
  15216. sunos4*)
  15217. version_type=sunos
  15218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15219. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15220. shlibpath_var=LD_LIBRARY_PATH
  15221. shlibpath_overrides_runpath=yes
  15222. if test "$with_gnu_ld" = yes; then
  15223. need_lib_prefix=no
  15224. fi
  15225. need_version=yes
  15226. ;;
  15227. sysv4 | sysv4.3*)
  15228. version_type=linux
  15229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15230. soname_spec='${libname}${release}${shared_ext}$major'
  15231. shlibpath_var=LD_LIBRARY_PATH
  15232. case $host_vendor in
  15233. sni)
  15234. shlibpath_overrides_runpath=no
  15235. need_lib_prefix=no
  15236. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15237. runpath_var=LD_RUN_PATH
  15238. ;;
  15239. siemens)
  15240. need_lib_prefix=no
  15241. ;;
  15242. motorola)
  15243. need_lib_prefix=no
  15244. need_version=no
  15245. shlibpath_overrides_runpath=no
  15246. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15247. ;;
  15248. esac
  15249. ;;
  15250. sysv4*MP*)
  15251. if test -d /usr/nec ;then
  15252. version_type=linux
  15253. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15254. soname_spec='$libname${shared_ext}.$major'
  15255. shlibpath_var=LD_LIBRARY_PATH
  15256. fi
  15257. ;;
  15258. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15259. version_type=freebsd-elf
  15260. need_lib_prefix=no
  15261. need_version=no
  15262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15263. soname_spec='${libname}${release}${shared_ext}$major'
  15264. shlibpath_var=LD_LIBRARY_PATH
  15265. hardcode_into_libs=yes
  15266. if test "$with_gnu_ld" = yes; then
  15267. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15268. shlibpath_overrides_runpath=no
  15269. else
  15270. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15271. shlibpath_overrides_runpath=yes
  15272. case $host_os in
  15273. sco3.2v5*)
  15274. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15275. ;;
  15276. esac
  15277. fi
  15278. sys_lib_dlsearch_path_spec='/usr/lib'
  15279. ;;
  15280. uts4*)
  15281. version_type=linux
  15282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15283. soname_spec='${libname}${release}${shared_ext}$major'
  15284. shlibpath_var=LD_LIBRARY_PATH
  15285. ;;
  15286. *)
  15287. dynamic_linker=no
  15288. ;;
  15289. esac
  15290. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15291. echo "${ECHO_T}$dynamic_linker" >&6; }
  15292. test "$dynamic_linker" = no && can_build_shared=no
  15293. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15294. if test "$GCC" = yes; then
  15295. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15296. fi
  15297. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15298. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  15299. hardcode_action=
  15300. if test -n "$hardcode_libdir_flag_spec" || \
  15301. test -n "$runpath_var" || \
  15302. test "X$hardcode_automatic" = "Xyes" ; then
  15303. # We can hardcode non-existant directories.
  15304. if test "$hardcode_direct" != no &&
  15305. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15306. # have to relink, otherwise we might link with an installed library
  15307. # when we should be linking with a yet-to-be-installed one
  15308. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  15309. test "$hardcode_minus_L" != no; then
  15310. # Linking always hardcodes the temporary library directory.
  15311. hardcode_action=relink
  15312. else
  15313. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15314. hardcode_action=immediate
  15315. fi
  15316. else
  15317. # We cannot hardcode anything, or else we can only hardcode existing
  15318. # directories.
  15319. hardcode_action=unsupported
  15320. fi
  15321. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  15322. echo "${ECHO_T}$hardcode_action" >&6; }
  15323. if test "$hardcode_action" = relink; then
  15324. # Fast installation is not supported
  15325. enable_fast_install=no
  15326. elif test "$shlibpath_overrides_runpath" = yes ||
  15327. test "$enable_shared" = no; then
  15328. # Fast installation is not necessary
  15329. enable_fast_install=needless
  15330. fi
  15331. striplib=
  15332. old_striplib=
  15333. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15334. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  15335. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15336. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15337. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15338. { echo "$as_me:$LINENO: result: yes" >&5
  15339. echo "${ECHO_T}yes" >&6; }
  15340. else
  15341. # FIXME - insert some real tests, host_os isn't really good enough
  15342. case $host_os in
  15343. darwin*)
  15344. if test -n "$STRIP" ; then
  15345. striplib="$STRIP -x"
  15346. { echo "$as_me:$LINENO: result: yes" >&5
  15347. echo "${ECHO_T}yes" >&6; }
  15348. else
  15349. { echo "$as_me:$LINENO: result: no" >&5
  15350. echo "${ECHO_T}no" >&6; }
  15351. fi
  15352. ;;
  15353. *)
  15354. { echo "$as_me:$LINENO: result: no" >&5
  15355. echo "${ECHO_T}no" >&6; }
  15356. ;;
  15357. esac
  15358. fi
  15359. if test "x$enable_dlopen" != xyes; then
  15360. enable_dlopen=unknown
  15361. enable_dlopen_self=unknown
  15362. enable_dlopen_self_static=unknown
  15363. else
  15364. lt_cv_dlopen=no
  15365. lt_cv_dlopen_libs=
  15366. case $host_os in
  15367. beos*)
  15368. lt_cv_dlopen="load_add_on"
  15369. lt_cv_dlopen_libs=
  15370. lt_cv_dlopen_self=yes
  15371. ;;
  15372. mingw* | pw32*)
  15373. lt_cv_dlopen="LoadLibrary"
  15374. lt_cv_dlopen_libs=
  15375. ;;
  15376. cygwin*)
  15377. lt_cv_dlopen="dlopen"
  15378. lt_cv_dlopen_libs=
  15379. ;;
  15380. darwin*)
  15381. # if libdl is installed we need to link against it
  15382. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15383. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  15384. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15385. echo $ECHO_N "(cached) $ECHO_C" >&6
  15386. else
  15387. ac_check_lib_save_LIBS=$LIBS
  15388. LIBS="-ldl $LIBS"
  15389. cat >conftest.$ac_ext <<_ACEOF
  15390. /* confdefs.h. */
  15391. _ACEOF
  15392. cat confdefs.h >>conftest.$ac_ext
  15393. cat >>conftest.$ac_ext <<_ACEOF
  15394. /* end confdefs.h. */
  15395. /* Override any GCC internal prototype to avoid an error.
  15396. Use char because int might match the return type of a GCC
  15397. builtin and then its argument prototype would still apply. */
  15398. #ifdef __cplusplus
  15399. extern "C"
  15400. #endif
  15401. char dlopen ();
  15402. int
  15403. main ()
  15404. {
  15405. return dlopen ();
  15406. ;
  15407. return 0;
  15408. }
  15409. _ACEOF
  15410. rm -f conftest.$ac_objext conftest$ac_exeext
  15411. if { (ac_try="$ac_link"
  15412. case "(($ac_try" in
  15413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15414. *) ac_try_echo=$ac_try;;
  15415. esac
  15416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15417. (eval "$ac_link") 2>conftest.er1
  15418. ac_status=$?
  15419. grep -v '^ *+' conftest.er1 >conftest.err
  15420. rm -f conftest.er1
  15421. cat conftest.err >&5
  15422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15423. (exit $ac_status); } &&
  15424. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15425. { (case "(($ac_try" in
  15426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15427. *) ac_try_echo=$ac_try;;
  15428. esac
  15429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15430. (eval "$ac_try") 2>&5
  15431. ac_status=$?
  15432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15433. (exit $ac_status); }; } &&
  15434. { ac_try='test -s conftest$ac_exeext'
  15435. { (case "(($ac_try" in
  15436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15437. *) ac_try_echo=$ac_try;;
  15438. esac
  15439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15440. (eval "$ac_try") 2>&5
  15441. ac_status=$?
  15442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15443. (exit $ac_status); }; }; then
  15444. ac_cv_lib_dl_dlopen=yes
  15445. else
  15446. echo "$as_me: failed program was:" >&5
  15447. sed 's/^/| /' conftest.$ac_ext >&5
  15448. ac_cv_lib_dl_dlopen=no
  15449. fi
  15450. rm -f core conftest.err conftest.$ac_objext \
  15451. conftest$ac_exeext conftest.$ac_ext
  15452. LIBS=$ac_check_lib_save_LIBS
  15453. fi
  15454. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15455. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  15456. if test $ac_cv_lib_dl_dlopen = yes; then
  15457. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15458. else
  15459. lt_cv_dlopen="dyld"
  15460. lt_cv_dlopen_libs=
  15461. lt_cv_dlopen_self=yes
  15462. fi
  15463. ;;
  15464. *)
  15465. { echo "$as_me:$LINENO: checking for shl_load" >&5
  15466. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  15467. if test "${ac_cv_func_shl_load+set}" = set; then
  15468. echo $ECHO_N "(cached) $ECHO_C" >&6
  15469. else
  15470. cat >conftest.$ac_ext <<_ACEOF
  15471. /* confdefs.h. */
  15472. _ACEOF
  15473. cat confdefs.h >>conftest.$ac_ext
  15474. cat >>conftest.$ac_ext <<_ACEOF
  15475. /* end confdefs.h. */
  15476. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  15477. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15478. #define shl_load innocuous_shl_load
  15479. /* System header to define __stub macros and hopefully few prototypes,
  15480. which can conflict with char shl_load (); below.
  15481. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15482. <limits.h> exists even on freestanding compilers. */
  15483. #ifdef __STDC__
  15484. # include <limits.h>
  15485. #else
  15486. # include <assert.h>
  15487. #endif
  15488. #undef shl_load
  15489. /* Override any GCC internal prototype to avoid an error.
  15490. Use char because int might match the return type of a GCC
  15491. builtin and then its argument prototype would still apply. */
  15492. #ifdef __cplusplus
  15493. extern "C"
  15494. #endif
  15495. char shl_load ();
  15496. /* The GNU C library defines this for functions which it implements
  15497. to always fail with ENOSYS. Some functions are actually named
  15498. something starting with __ and the normal name is an alias. */
  15499. #if defined __stub_shl_load || defined __stub___shl_load
  15500. choke me
  15501. #endif
  15502. int
  15503. main ()
  15504. {
  15505. return shl_load ();
  15506. ;
  15507. return 0;
  15508. }
  15509. _ACEOF
  15510. rm -f conftest.$ac_objext conftest$ac_exeext
  15511. if { (ac_try="$ac_link"
  15512. case "(($ac_try" in
  15513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15514. *) ac_try_echo=$ac_try;;
  15515. esac
  15516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15517. (eval "$ac_link") 2>conftest.er1
  15518. ac_status=$?
  15519. grep -v '^ *+' conftest.er1 >conftest.err
  15520. rm -f conftest.er1
  15521. cat conftest.err >&5
  15522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15523. (exit $ac_status); } &&
  15524. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15525. { (case "(($ac_try" in
  15526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15527. *) ac_try_echo=$ac_try;;
  15528. esac
  15529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15530. (eval "$ac_try") 2>&5
  15531. ac_status=$?
  15532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15533. (exit $ac_status); }; } &&
  15534. { ac_try='test -s conftest$ac_exeext'
  15535. { (case "(($ac_try" in
  15536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15537. *) ac_try_echo=$ac_try;;
  15538. esac
  15539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15540. (eval "$ac_try") 2>&5
  15541. ac_status=$?
  15542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15543. (exit $ac_status); }; }; then
  15544. ac_cv_func_shl_load=yes
  15545. else
  15546. echo "$as_me: failed program was:" >&5
  15547. sed 's/^/| /' conftest.$ac_ext >&5
  15548. ac_cv_func_shl_load=no
  15549. fi
  15550. rm -f core conftest.err conftest.$ac_objext \
  15551. conftest$ac_exeext conftest.$ac_ext
  15552. fi
  15553. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  15554. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  15555. if test $ac_cv_func_shl_load = yes; then
  15556. lt_cv_dlopen="shl_load"
  15557. else
  15558. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  15559. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  15560. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  15561. echo $ECHO_N "(cached) $ECHO_C" >&6
  15562. else
  15563. ac_check_lib_save_LIBS=$LIBS
  15564. LIBS="-ldld $LIBS"
  15565. cat >conftest.$ac_ext <<_ACEOF
  15566. /* confdefs.h. */
  15567. _ACEOF
  15568. cat confdefs.h >>conftest.$ac_ext
  15569. cat >>conftest.$ac_ext <<_ACEOF
  15570. /* end confdefs.h. */
  15571. /* Override any GCC internal prototype to avoid an error.
  15572. Use char because int might match the return type of a GCC
  15573. builtin and then its argument prototype would still apply. */
  15574. #ifdef __cplusplus
  15575. extern "C"
  15576. #endif
  15577. char shl_load ();
  15578. int
  15579. main ()
  15580. {
  15581. return shl_load ();
  15582. ;
  15583. return 0;
  15584. }
  15585. _ACEOF
  15586. rm -f conftest.$ac_objext conftest$ac_exeext
  15587. if { (ac_try="$ac_link"
  15588. case "(($ac_try" in
  15589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15590. *) ac_try_echo=$ac_try;;
  15591. esac
  15592. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15593. (eval "$ac_link") 2>conftest.er1
  15594. ac_status=$?
  15595. grep -v '^ *+' conftest.er1 >conftest.err
  15596. rm -f conftest.er1
  15597. cat conftest.err >&5
  15598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15599. (exit $ac_status); } &&
  15600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15601. { (case "(($ac_try" in
  15602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15603. *) ac_try_echo=$ac_try;;
  15604. esac
  15605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15606. (eval "$ac_try") 2>&5
  15607. ac_status=$?
  15608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15609. (exit $ac_status); }; } &&
  15610. { ac_try='test -s conftest$ac_exeext'
  15611. { (case "(($ac_try" in
  15612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15613. *) ac_try_echo=$ac_try;;
  15614. esac
  15615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15616. (eval "$ac_try") 2>&5
  15617. ac_status=$?
  15618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15619. (exit $ac_status); }; }; then
  15620. ac_cv_lib_dld_shl_load=yes
  15621. else
  15622. echo "$as_me: failed program was:" >&5
  15623. sed 's/^/| /' conftest.$ac_ext >&5
  15624. ac_cv_lib_dld_shl_load=no
  15625. fi
  15626. rm -f core conftest.err conftest.$ac_objext \
  15627. conftest$ac_exeext conftest.$ac_ext
  15628. LIBS=$ac_check_lib_save_LIBS
  15629. fi
  15630. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  15631. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  15632. if test $ac_cv_lib_dld_shl_load = yes; then
  15633. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  15634. else
  15635. { echo "$as_me:$LINENO: checking for dlopen" >&5
  15636. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  15637. if test "${ac_cv_func_dlopen+set}" = set; then
  15638. echo $ECHO_N "(cached) $ECHO_C" >&6
  15639. else
  15640. cat >conftest.$ac_ext <<_ACEOF
  15641. /* confdefs.h. */
  15642. _ACEOF
  15643. cat confdefs.h >>conftest.$ac_ext
  15644. cat >>conftest.$ac_ext <<_ACEOF
  15645. /* end confdefs.h. */
  15646. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  15647. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15648. #define dlopen innocuous_dlopen
  15649. /* System header to define __stub macros and hopefully few prototypes,
  15650. which can conflict with char dlopen (); below.
  15651. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15652. <limits.h> exists even on freestanding compilers. */
  15653. #ifdef __STDC__
  15654. # include <limits.h>
  15655. #else
  15656. # include <assert.h>
  15657. #endif
  15658. #undef dlopen
  15659. /* Override any GCC internal prototype to avoid an error.
  15660. Use char because int might match the return type of a GCC
  15661. builtin and then its argument prototype would still apply. */
  15662. #ifdef __cplusplus
  15663. extern "C"
  15664. #endif
  15665. char dlopen ();
  15666. /* The GNU C library defines this for functions which it implements
  15667. to always fail with ENOSYS. Some functions are actually named
  15668. something starting with __ and the normal name is an alias. */
  15669. #if defined __stub_dlopen || defined __stub___dlopen
  15670. choke me
  15671. #endif
  15672. int
  15673. main ()
  15674. {
  15675. return dlopen ();
  15676. ;
  15677. return 0;
  15678. }
  15679. _ACEOF
  15680. rm -f conftest.$ac_objext conftest$ac_exeext
  15681. if { (ac_try="$ac_link"
  15682. case "(($ac_try" in
  15683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15684. *) ac_try_echo=$ac_try;;
  15685. esac
  15686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15687. (eval "$ac_link") 2>conftest.er1
  15688. ac_status=$?
  15689. grep -v '^ *+' conftest.er1 >conftest.err
  15690. rm -f conftest.er1
  15691. cat conftest.err >&5
  15692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15693. (exit $ac_status); } &&
  15694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15695. { (case "(($ac_try" in
  15696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15697. *) ac_try_echo=$ac_try;;
  15698. esac
  15699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15700. (eval "$ac_try") 2>&5
  15701. ac_status=$?
  15702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15703. (exit $ac_status); }; } &&
  15704. { ac_try='test -s conftest$ac_exeext'
  15705. { (case "(($ac_try" in
  15706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15707. *) ac_try_echo=$ac_try;;
  15708. esac
  15709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15710. (eval "$ac_try") 2>&5
  15711. ac_status=$?
  15712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15713. (exit $ac_status); }; }; then
  15714. ac_cv_func_dlopen=yes
  15715. else
  15716. echo "$as_me: failed program was:" >&5
  15717. sed 's/^/| /' conftest.$ac_ext >&5
  15718. ac_cv_func_dlopen=no
  15719. fi
  15720. rm -f core conftest.err conftest.$ac_objext \
  15721. conftest$ac_exeext conftest.$ac_ext
  15722. fi
  15723. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  15724. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  15725. if test $ac_cv_func_dlopen = yes; then
  15726. lt_cv_dlopen="dlopen"
  15727. else
  15728. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  15729. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  15730. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  15731. echo $ECHO_N "(cached) $ECHO_C" >&6
  15732. else
  15733. ac_check_lib_save_LIBS=$LIBS
  15734. LIBS="-ldl $LIBS"
  15735. cat >conftest.$ac_ext <<_ACEOF
  15736. /* confdefs.h. */
  15737. _ACEOF
  15738. cat confdefs.h >>conftest.$ac_ext
  15739. cat >>conftest.$ac_ext <<_ACEOF
  15740. /* end confdefs.h. */
  15741. /* Override any GCC internal prototype to avoid an error.
  15742. Use char because int might match the return type of a GCC
  15743. builtin and then its argument prototype would still apply. */
  15744. #ifdef __cplusplus
  15745. extern "C"
  15746. #endif
  15747. char dlopen ();
  15748. int
  15749. main ()
  15750. {
  15751. return dlopen ();
  15752. ;
  15753. return 0;
  15754. }
  15755. _ACEOF
  15756. rm -f conftest.$ac_objext conftest$ac_exeext
  15757. if { (ac_try="$ac_link"
  15758. case "(($ac_try" in
  15759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15760. *) ac_try_echo=$ac_try;;
  15761. esac
  15762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15763. (eval "$ac_link") 2>conftest.er1
  15764. ac_status=$?
  15765. grep -v '^ *+' conftest.er1 >conftest.err
  15766. rm -f conftest.er1
  15767. cat conftest.err >&5
  15768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15769. (exit $ac_status); } &&
  15770. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15771. { (case "(($ac_try" in
  15772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15773. *) ac_try_echo=$ac_try;;
  15774. esac
  15775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15776. (eval "$ac_try") 2>&5
  15777. ac_status=$?
  15778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15779. (exit $ac_status); }; } &&
  15780. { ac_try='test -s conftest$ac_exeext'
  15781. { (case "(($ac_try" in
  15782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15783. *) ac_try_echo=$ac_try;;
  15784. esac
  15785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15786. (eval "$ac_try") 2>&5
  15787. ac_status=$?
  15788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15789. (exit $ac_status); }; }; then
  15790. ac_cv_lib_dl_dlopen=yes
  15791. else
  15792. echo "$as_me: failed program was:" >&5
  15793. sed 's/^/| /' conftest.$ac_ext >&5
  15794. ac_cv_lib_dl_dlopen=no
  15795. fi
  15796. rm -f core conftest.err conftest.$ac_objext \
  15797. conftest$ac_exeext conftest.$ac_ext
  15798. LIBS=$ac_check_lib_save_LIBS
  15799. fi
  15800. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  15801. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  15802. if test $ac_cv_lib_dl_dlopen = yes; then
  15803. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15804. else
  15805. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  15806. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  15807. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  15808. echo $ECHO_N "(cached) $ECHO_C" >&6
  15809. else
  15810. ac_check_lib_save_LIBS=$LIBS
  15811. LIBS="-lsvld $LIBS"
  15812. cat >conftest.$ac_ext <<_ACEOF
  15813. /* confdefs.h. */
  15814. _ACEOF
  15815. cat confdefs.h >>conftest.$ac_ext
  15816. cat >>conftest.$ac_ext <<_ACEOF
  15817. /* end confdefs.h. */
  15818. /* Override any GCC internal prototype to avoid an error.
  15819. Use char because int might match the return type of a GCC
  15820. builtin and then its argument prototype would still apply. */
  15821. #ifdef __cplusplus
  15822. extern "C"
  15823. #endif
  15824. char dlopen ();
  15825. int
  15826. main ()
  15827. {
  15828. return dlopen ();
  15829. ;
  15830. return 0;
  15831. }
  15832. _ACEOF
  15833. rm -f conftest.$ac_objext conftest$ac_exeext
  15834. if { (ac_try="$ac_link"
  15835. case "(($ac_try" in
  15836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15837. *) ac_try_echo=$ac_try;;
  15838. esac
  15839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15840. (eval "$ac_link") 2>conftest.er1
  15841. ac_status=$?
  15842. grep -v '^ *+' conftest.er1 >conftest.err
  15843. rm -f conftest.er1
  15844. cat conftest.err >&5
  15845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15846. (exit $ac_status); } &&
  15847. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15848. { (case "(($ac_try" in
  15849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15850. *) ac_try_echo=$ac_try;;
  15851. esac
  15852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15853. (eval "$ac_try") 2>&5
  15854. ac_status=$?
  15855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15856. (exit $ac_status); }; } &&
  15857. { ac_try='test -s conftest$ac_exeext'
  15858. { (case "(($ac_try" in
  15859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15860. *) ac_try_echo=$ac_try;;
  15861. esac
  15862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15863. (eval "$ac_try") 2>&5
  15864. ac_status=$?
  15865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15866. (exit $ac_status); }; }; then
  15867. ac_cv_lib_svld_dlopen=yes
  15868. else
  15869. echo "$as_me: failed program was:" >&5
  15870. sed 's/^/| /' conftest.$ac_ext >&5
  15871. ac_cv_lib_svld_dlopen=no
  15872. fi
  15873. rm -f core conftest.err conftest.$ac_objext \
  15874. conftest$ac_exeext conftest.$ac_ext
  15875. LIBS=$ac_check_lib_save_LIBS
  15876. fi
  15877. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  15878. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  15879. if test $ac_cv_lib_svld_dlopen = yes; then
  15880. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  15881. else
  15882. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  15883. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  15884. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  15885. echo $ECHO_N "(cached) $ECHO_C" >&6
  15886. else
  15887. ac_check_lib_save_LIBS=$LIBS
  15888. LIBS="-ldld $LIBS"
  15889. cat >conftest.$ac_ext <<_ACEOF
  15890. /* confdefs.h. */
  15891. _ACEOF
  15892. cat confdefs.h >>conftest.$ac_ext
  15893. cat >>conftest.$ac_ext <<_ACEOF
  15894. /* end confdefs.h. */
  15895. /* Override any GCC internal prototype to avoid an error.
  15896. Use char because int might match the return type of a GCC
  15897. builtin and then its argument prototype would still apply. */
  15898. #ifdef __cplusplus
  15899. extern "C"
  15900. #endif
  15901. char dld_link ();
  15902. int
  15903. main ()
  15904. {
  15905. return dld_link ();
  15906. ;
  15907. return 0;
  15908. }
  15909. _ACEOF
  15910. rm -f conftest.$ac_objext conftest$ac_exeext
  15911. if { (ac_try="$ac_link"
  15912. case "(($ac_try" in
  15913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15914. *) ac_try_echo=$ac_try;;
  15915. esac
  15916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15917. (eval "$ac_link") 2>conftest.er1
  15918. ac_status=$?
  15919. grep -v '^ *+' conftest.er1 >conftest.err
  15920. rm -f conftest.er1
  15921. cat conftest.err >&5
  15922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15923. (exit $ac_status); } &&
  15924. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15925. { (case "(($ac_try" in
  15926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15927. *) ac_try_echo=$ac_try;;
  15928. esac
  15929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15930. (eval "$ac_try") 2>&5
  15931. ac_status=$?
  15932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15933. (exit $ac_status); }; } &&
  15934. { ac_try='test -s conftest$ac_exeext'
  15935. { (case "(($ac_try" in
  15936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15937. *) ac_try_echo=$ac_try;;
  15938. esac
  15939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15940. (eval "$ac_try") 2>&5
  15941. ac_status=$?
  15942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15943. (exit $ac_status); }; }; then
  15944. ac_cv_lib_dld_dld_link=yes
  15945. else
  15946. echo "$as_me: failed program was:" >&5
  15947. sed 's/^/| /' conftest.$ac_ext >&5
  15948. ac_cv_lib_dld_dld_link=no
  15949. fi
  15950. rm -f core conftest.err conftest.$ac_objext \
  15951. conftest$ac_exeext conftest.$ac_ext
  15952. LIBS=$ac_check_lib_save_LIBS
  15953. fi
  15954. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  15955. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  15956. if test $ac_cv_lib_dld_dld_link = yes; then
  15957. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  15958. fi
  15959. fi
  15960. fi
  15961. fi
  15962. fi
  15963. fi
  15964. ;;
  15965. esac
  15966. if test "x$lt_cv_dlopen" != xno; then
  15967. enable_dlopen=yes
  15968. else
  15969. enable_dlopen=no
  15970. fi
  15971. case $lt_cv_dlopen in
  15972. dlopen)
  15973. save_CPPFLAGS="$CPPFLAGS"
  15974. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  15975. save_LDFLAGS="$LDFLAGS"
  15976. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15977. save_LIBS="$LIBS"
  15978. LIBS="$lt_cv_dlopen_libs $LIBS"
  15979. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  15980. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  15981. if test "${lt_cv_dlopen_self+set}" = set; then
  15982. echo $ECHO_N "(cached) $ECHO_C" >&6
  15983. else
  15984. if test "$cross_compiling" = yes; then :
  15985. lt_cv_dlopen_self=cross
  15986. else
  15987. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15988. lt_status=$lt_dlunknown
  15989. cat > conftest.$ac_ext <<EOF
  15990. #line 17677 "configure"
  15991. #include "confdefs.h"
  15992. #if HAVE_DLFCN_H
  15993. #include <dlfcn.h>
  15994. #endif
  15995. #include <stdio.h>
  15996. #ifdef RTLD_GLOBAL
  15997. # define LT_DLGLOBAL RTLD_GLOBAL
  15998. #else
  15999. # ifdef DL_GLOBAL
  16000. # define LT_DLGLOBAL DL_GLOBAL
  16001. # else
  16002. # define LT_DLGLOBAL 0
  16003. # endif
  16004. #endif
  16005. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16006. find out it does not work in some platform. */
  16007. #ifndef LT_DLLAZY_OR_NOW
  16008. # ifdef RTLD_LAZY
  16009. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16010. # else
  16011. # ifdef DL_LAZY
  16012. # define LT_DLLAZY_OR_NOW DL_LAZY
  16013. # else
  16014. # ifdef RTLD_NOW
  16015. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16016. # else
  16017. # ifdef DL_NOW
  16018. # define LT_DLLAZY_OR_NOW DL_NOW
  16019. # else
  16020. # define LT_DLLAZY_OR_NOW 0
  16021. # endif
  16022. # endif
  16023. # endif
  16024. # endif
  16025. #endif
  16026. #ifdef __cplusplus
  16027. extern "C" void exit (int);
  16028. #endif
  16029. void fnord() { int i=42;}
  16030. int main ()
  16031. {
  16032. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16033. int status = $lt_dlunknown;
  16034. if (self)
  16035. {
  16036. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16037. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16038. /* dlclose (self); */
  16039. }
  16040. else
  16041. puts (dlerror ());
  16042. exit (status);
  16043. }
  16044. EOF
  16045. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16046. (eval $ac_link) 2>&5
  16047. ac_status=$?
  16048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16049. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16050. (./conftest; exit; ) >&5 2>/dev/null
  16051. lt_status=$?
  16052. case x$lt_status in
  16053. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16054. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16055. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  16056. esac
  16057. else :
  16058. # compilation failed
  16059. lt_cv_dlopen_self=no
  16060. fi
  16061. fi
  16062. rm -fr conftest*
  16063. fi
  16064. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16065. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  16066. if test "x$lt_cv_dlopen_self" = xyes; then
  16067. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  16068. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16069. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  16070. if test "${lt_cv_dlopen_self_static+set}" = set; then
  16071. echo $ECHO_N "(cached) $ECHO_C" >&6
  16072. else
  16073. if test "$cross_compiling" = yes; then :
  16074. lt_cv_dlopen_self_static=cross
  16075. else
  16076. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16077. lt_status=$lt_dlunknown
  16078. cat > conftest.$ac_ext <<EOF
  16079. #line 17777 "configure"
  16080. #include "confdefs.h"
  16081. #if HAVE_DLFCN_H
  16082. #include <dlfcn.h>
  16083. #endif
  16084. #include <stdio.h>
  16085. #ifdef RTLD_GLOBAL
  16086. # define LT_DLGLOBAL RTLD_GLOBAL
  16087. #else
  16088. # ifdef DL_GLOBAL
  16089. # define LT_DLGLOBAL DL_GLOBAL
  16090. # else
  16091. # define LT_DLGLOBAL 0
  16092. # endif
  16093. #endif
  16094. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16095. find out it does not work in some platform. */
  16096. #ifndef LT_DLLAZY_OR_NOW
  16097. # ifdef RTLD_LAZY
  16098. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16099. # else
  16100. # ifdef DL_LAZY
  16101. # define LT_DLLAZY_OR_NOW DL_LAZY
  16102. # else
  16103. # ifdef RTLD_NOW
  16104. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16105. # else
  16106. # ifdef DL_NOW
  16107. # define LT_DLLAZY_OR_NOW DL_NOW
  16108. # else
  16109. # define LT_DLLAZY_OR_NOW 0
  16110. # endif
  16111. # endif
  16112. # endif
  16113. # endif
  16114. #endif
  16115. #ifdef __cplusplus
  16116. extern "C" void exit (int);
  16117. #endif
  16118. void fnord() { int i=42;}
  16119. int main ()
  16120. {
  16121. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16122. int status = $lt_dlunknown;
  16123. if (self)
  16124. {
  16125. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16126. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16127. /* dlclose (self); */
  16128. }
  16129. else
  16130. puts (dlerror ());
  16131. exit (status);
  16132. }
  16133. EOF
  16134. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16135. (eval $ac_link) 2>&5
  16136. ac_status=$?
  16137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16138. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16139. (./conftest; exit; ) >&5 2>/dev/null
  16140. lt_status=$?
  16141. case x$lt_status in
  16142. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16143. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16144. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  16145. esac
  16146. else :
  16147. # compilation failed
  16148. lt_cv_dlopen_self_static=no
  16149. fi
  16150. fi
  16151. rm -fr conftest*
  16152. fi
  16153. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16154. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  16155. fi
  16156. CPPFLAGS="$save_CPPFLAGS"
  16157. LDFLAGS="$save_LDFLAGS"
  16158. LIBS="$save_LIBS"
  16159. ;;
  16160. esac
  16161. case $lt_cv_dlopen_self in
  16162. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16163. *) enable_dlopen_self=unknown ;;
  16164. esac
  16165. case $lt_cv_dlopen_self_static in
  16166. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16167. *) enable_dlopen_self_static=unknown ;;
  16168. esac
  16169. fi
  16170. # Report which library types will actually be built
  16171. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  16172. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  16173. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  16174. echo "${ECHO_T}$can_build_shared" >&6; }
  16175. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  16176. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  16177. test "$can_build_shared" = "no" && enable_shared=no
  16178. # On AIX, shared libraries and static libraries use the same namespace, and
  16179. # are all built from PIC.
  16180. case $host_os in
  16181. aix3*)
  16182. test "$enable_shared" = yes && enable_static=no
  16183. if test -n "$RANLIB"; then
  16184. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  16185. postinstall_cmds='$RANLIB $lib'
  16186. fi
  16187. ;;
  16188. aix4* | aix5*)
  16189. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  16190. test "$enable_shared" = yes && enable_static=no
  16191. fi
  16192. ;;
  16193. esac
  16194. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  16195. echo "${ECHO_T}$enable_shared" >&6; }
  16196. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  16197. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  16198. # Make sure either enable_shared or enable_static is yes.
  16199. test "$enable_shared" = yes || enable_static=yes
  16200. { echo "$as_me:$LINENO: result: $enable_static" >&5
  16201. echo "${ECHO_T}$enable_static" >&6; }
  16202. # The else clause should only fire when bootstrapping the
  16203. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16204. # with your package, and you will get complaints that there are
  16205. # no rules to generate ltmain.sh.
  16206. if test -f "$ltmain"; then
  16207. # See if we are running on zsh, and set the options which allow our commands through
  16208. # without removal of \ escapes.
  16209. if test -n "${ZSH_VERSION+set}" ; then
  16210. setopt NO_GLOB_SUBST
  16211. fi
  16212. # Now quote all the things that may contain metacharacters while being
  16213. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16214. # variables and quote the copies for generation of the libtool script.
  16215. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16216. SED SHELL STRIP \
  16217. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16218. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16219. deplibs_check_method reload_flag reload_cmds need_locks \
  16220. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16221. lt_cv_sys_global_symbol_to_c_name_address \
  16222. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16223. old_postinstall_cmds old_postuninstall_cmds \
  16224. compiler \
  16225. CC \
  16226. LD \
  16227. lt_prog_compiler_wl \
  16228. lt_prog_compiler_pic \
  16229. lt_prog_compiler_static \
  16230. lt_prog_compiler_no_builtin_flag \
  16231. export_dynamic_flag_spec \
  16232. thread_safe_flag_spec \
  16233. whole_archive_flag_spec \
  16234. enable_shared_with_static_runtimes \
  16235. old_archive_cmds \
  16236. old_archive_from_new_cmds \
  16237. predep_objects \
  16238. postdep_objects \
  16239. predeps \
  16240. postdeps \
  16241. compiler_lib_search_path \
  16242. archive_cmds \
  16243. archive_expsym_cmds \
  16244. postinstall_cmds \
  16245. postuninstall_cmds \
  16246. old_archive_from_expsyms_cmds \
  16247. allow_undefined_flag \
  16248. no_undefined_flag \
  16249. export_symbols_cmds \
  16250. hardcode_libdir_flag_spec \
  16251. hardcode_libdir_flag_spec_ld \
  16252. hardcode_libdir_separator \
  16253. hardcode_automatic \
  16254. module_cmds \
  16255. module_expsym_cmds \
  16256. lt_cv_prog_compiler_c_o \
  16257. exclude_expsyms \
  16258. include_expsyms; do
  16259. case $var in
  16260. old_archive_cmds | \
  16261. old_archive_from_new_cmds | \
  16262. archive_cmds | \
  16263. archive_expsym_cmds | \
  16264. module_cmds | \
  16265. module_expsym_cmds | \
  16266. old_archive_from_expsyms_cmds | \
  16267. export_symbols_cmds | \
  16268. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16269. postinstall_cmds | postuninstall_cmds | \
  16270. old_postinstall_cmds | old_postuninstall_cmds | \
  16271. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16272. # Double-quote double-evaled strings.
  16273. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16274. ;;
  16275. *)
  16276. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16277. ;;
  16278. esac
  16279. done
  16280. case $lt_echo in
  16281. *'\$0 --fallback-echo"')
  16282. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16283. ;;
  16284. esac
  16285. cfgfile="${ofile}T"
  16286. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  16287. $rm -f "$cfgfile"
  16288. { echo "$as_me:$LINENO: creating $ofile" >&5
  16289. echo "$as_me: creating $ofile" >&6;}
  16290. cat <<__EOF__ >> "$cfgfile"
  16291. #! $SHELL
  16292. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16293. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  16294. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16295. #
  16296. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  16297. # Free Software Foundation, Inc.
  16298. #
  16299. # This file is part of GNU Libtool:
  16300. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  16301. #
  16302. # This program is free software; you can redistribute it and/or modify
  16303. # it under the terms of the GNU General Public License as published by
  16304. # the Free Software Foundation; either version 2 of the License, or
  16305. # (at your option) any later version.
  16306. #
  16307. # This program is distributed in the hope that it will be useful, but
  16308. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16309. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16310. # General Public License for more details.
  16311. #
  16312. # You should have received a copy of the GNU General Public License
  16313. # along with this program; if not, write to the Free Software
  16314. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16315. #
  16316. # As a special exception to the GNU General Public License, if you
  16317. # distribute this file as part of a program that contains a
  16318. # configuration script generated by Autoconf, you may include it under
  16319. # the same distribution terms that you use for the rest of that program.
  16320. # A sed program that does not truncate output.
  16321. SED=$lt_SED
  16322. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16323. Xsed="$SED -e 1s/^X//"
  16324. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16325. # if CDPATH is set.
  16326. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16327. # The names of the tagged configurations supported by this script.
  16328. available_tags=
  16329. # ### BEGIN LIBTOOL CONFIG
  16330. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16331. # Shell to use when invoking shell scripts.
  16332. SHELL=$lt_SHELL
  16333. # Whether or not to build shared libraries.
  16334. build_libtool_libs=$enable_shared
  16335. # Whether or not to build static libraries.
  16336. build_old_libs=$enable_static
  16337. # Whether or not to add -lc for building shared libraries.
  16338. build_libtool_need_lc=$archive_cmds_need_lc
  16339. # Whether or not to disallow shared libs when runtime libs are static
  16340. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16341. # Whether or not to optimize for fast installation.
  16342. fast_install=$enable_fast_install
  16343. # The host system.
  16344. host_alias=$host_alias
  16345. host=$host
  16346. host_os=$host_os
  16347. # The build system.
  16348. build_alias=$build_alias
  16349. build=$build
  16350. build_os=$build_os
  16351. # An echo program that does not interpret backslashes.
  16352. echo=$lt_echo
  16353. # The archiver.
  16354. AR=$lt_AR
  16355. AR_FLAGS=$lt_AR_FLAGS
  16356. # A C compiler.
  16357. LTCC=$lt_LTCC
  16358. # LTCC compiler flags.
  16359. LTCFLAGS=$lt_LTCFLAGS
  16360. # A language-specific compiler.
  16361. CC=$lt_compiler
  16362. # Is the compiler the GNU C compiler?
  16363. with_gcc=$GCC
  16364. # An ERE matcher.
  16365. EGREP=$lt_EGREP
  16366. # The linker used to build libraries.
  16367. LD=$lt_LD
  16368. # Whether we need hard or soft links.
  16369. LN_S=$lt_LN_S
  16370. # A BSD-compatible nm program.
  16371. NM=$lt_NM
  16372. # A symbol stripping program
  16373. STRIP=$lt_STRIP
  16374. # Used to examine libraries when file_magic_cmd begins "file"
  16375. MAGIC_CMD=$MAGIC_CMD
  16376. # Used on cygwin: DLL creation program.
  16377. DLLTOOL="$DLLTOOL"
  16378. # Used on cygwin: object dumper.
  16379. OBJDUMP="$OBJDUMP"
  16380. # Used on cygwin: assembler.
  16381. AS="$AS"
  16382. # The name of the directory that contains temporary libtool files.
  16383. objdir=$objdir
  16384. # How to create reloadable object files.
  16385. reload_flag=$lt_reload_flag
  16386. reload_cmds=$lt_reload_cmds
  16387. # How to pass a linker flag through the compiler.
  16388. wl=$lt_lt_prog_compiler_wl
  16389. # Object file suffix (normally "o").
  16390. objext="$ac_objext"
  16391. # Old archive suffix (normally "a").
  16392. libext="$libext"
  16393. # Shared library suffix (normally ".so").
  16394. shrext_cmds='$shrext_cmds'
  16395. # Executable file suffix (normally "").
  16396. exeext="$exeext"
  16397. # Additional compiler flags for building library objects.
  16398. pic_flag=$lt_lt_prog_compiler_pic
  16399. pic_mode=$pic_mode
  16400. # What is the maximum length of a command?
  16401. max_cmd_len=$lt_cv_sys_max_cmd_len
  16402. # Does compiler simultaneously support -c and -o options?
  16403. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16404. # Must we lock files when doing compilation?
  16405. need_locks=$lt_need_locks
  16406. # Do we need the lib prefix for modules?
  16407. need_lib_prefix=$need_lib_prefix
  16408. # Do we need a version for libraries?
  16409. need_version=$need_version
  16410. # Whether dlopen is supported.
  16411. dlopen_support=$enable_dlopen
  16412. # Whether dlopen of programs is supported.
  16413. dlopen_self=$enable_dlopen_self
  16414. # Whether dlopen of statically linked programs is supported.
  16415. dlopen_self_static=$enable_dlopen_self_static
  16416. # Compiler flag to prevent dynamic linking.
  16417. link_static_flag=$lt_lt_prog_compiler_static
  16418. # Compiler flag to turn off builtin functions.
  16419. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16420. # Compiler flag to allow reflexive dlopens.
  16421. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16422. # Compiler flag to generate shared objects directly from archives.
  16423. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16424. # Compiler flag to generate thread-safe objects.
  16425. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  16426. # Library versioning type.
  16427. version_type=$version_type
  16428. # Format of library name prefix.
  16429. libname_spec=$lt_libname_spec
  16430. # List of archive names. First name is the real one, the rest are links.
  16431. # The last name is the one that the linker finds with -lNAME.
  16432. library_names_spec=$lt_library_names_spec
  16433. # The coded name of the library, if different from the real name.
  16434. soname_spec=$lt_soname_spec
  16435. # Commands used to build and install an old-style archive.
  16436. RANLIB=$lt_RANLIB
  16437. old_archive_cmds=$lt_old_archive_cmds
  16438. old_postinstall_cmds=$lt_old_postinstall_cmds
  16439. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16440. # Create an old-style archive from a shared archive.
  16441. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16442. # Create a temporary old-style archive to link instead of a shared archive.
  16443. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16444. # Commands used to build and install a shared archive.
  16445. archive_cmds=$lt_archive_cmds
  16446. archive_expsym_cmds=$lt_archive_expsym_cmds
  16447. postinstall_cmds=$lt_postinstall_cmds
  16448. postuninstall_cmds=$lt_postuninstall_cmds
  16449. # Commands used to build a loadable module (assumed same as above if empty)
  16450. module_cmds=$lt_module_cmds
  16451. module_expsym_cmds=$lt_module_expsym_cmds
  16452. # Commands to strip libraries.
  16453. old_striplib=$lt_old_striplib
  16454. striplib=$lt_striplib
  16455. # Dependencies to place before the objects being linked to create a
  16456. # shared library.
  16457. predep_objects=$lt_predep_objects
  16458. # Dependencies to place after the objects being linked to create a
  16459. # shared library.
  16460. postdep_objects=$lt_postdep_objects
  16461. # Dependencies to place before the objects being linked to create a
  16462. # shared library.
  16463. predeps=$lt_predeps
  16464. # Dependencies to place after the objects being linked to create a
  16465. # shared library.
  16466. postdeps=$lt_postdeps
  16467. # The library search path used internally by the compiler when linking
  16468. # a shared library.
  16469. compiler_lib_search_path=$lt_compiler_lib_search_path
  16470. # Method to check whether dependent libraries are shared objects.
  16471. deplibs_check_method=$lt_deplibs_check_method
  16472. # Command to use when deplibs_check_method == file_magic.
  16473. file_magic_cmd=$lt_file_magic_cmd
  16474. # Flag that allows shared libraries with undefined symbols to be built.
  16475. allow_undefined_flag=$lt_allow_undefined_flag
  16476. # Flag that forces no undefined symbols.
  16477. no_undefined_flag=$lt_no_undefined_flag
  16478. # Commands used to finish a libtool library installation in a directory.
  16479. finish_cmds=$lt_finish_cmds
  16480. # Same as above, but a single script fragment to be evaled but not shown.
  16481. finish_eval=$lt_finish_eval
  16482. # Take the output of nm and produce a listing of raw symbols and C names.
  16483. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16484. # Transform the output of nm in a proper C declaration
  16485. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16486. # Transform the output of nm in a C name address pair
  16487. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16488. # This is the shared library runtime path variable.
  16489. runpath_var=$runpath_var
  16490. # This is the shared library path variable.
  16491. shlibpath_var=$shlibpath_var
  16492. # Is shlibpath searched before the hard-coded library search path?
  16493. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16494. # How to hardcode a shared library path into an executable.
  16495. hardcode_action=$hardcode_action
  16496. # Whether we should hardcode library paths into libraries.
  16497. hardcode_into_libs=$hardcode_into_libs
  16498. # Flag to hardcode \$libdir into a binary during linking.
  16499. # This must work even if \$libdir does not exist.
  16500. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16501. # If ld is used when linking, flag to hardcode \$libdir into
  16502. # a binary during linking. This must work even if \$libdir does
  16503. # not exist.
  16504. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16505. # Whether we need a single -rpath flag with a separated argument.
  16506. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16507. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16508. # resulting binary.
  16509. hardcode_direct=$hardcode_direct
  16510. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16511. # resulting binary.
  16512. hardcode_minus_L=$hardcode_minus_L
  16513. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16514. # the resulting binary.
  16515. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16516. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16517. # and all subsequent libraries and executables linked against it.
  16518. hardcode_automatic=$hardcode_automatic
  16519. # Variables whose values should be saved in libtool wrapper scripts and
  16520. # restored at relink time.
  16521. variables_saved_for_relink="$variables_saved_for_relink"
  16522. # Whether libtool must link a program against all its dependency libraries.
  16523. link_all_deplibs=$link_all_deplibs
  16524. # Compile-time system search path for libraries
  16525. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16526. # Run-time system search path for libraries
  16527. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16528. # Fix the shell variable \$srcfile for the compiler.
  16529. fix_srcfile_path="$fix_srcfile_path"
  16530. # Set to yes if exported symbols are required.
  16531. always_export_symbols=$always_export_symbols
  16532. # The commands to list exported symbols.
  16533. export_symbols_cmds=$lt_export_symbols_cmds
  16534. # The commands to extract the exported symbol list from a shared archive.
  16535. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16536. # Symbols that should not be listed in the preloaded symbols.
  16537. exclude_expsyms=$lt_exclude_expsyms
  16538. # Symbols that must always be exported.
  16539. include_expsyms=$lt_include_expsyms
  16540. # ### END LIBTOOL CONFIG
  16541. __EOF__
  16542. case $host_os in
  16543. aix3*)
  16544. cat <<\EOF >> "$cfgfile"
  16545. # AIX sometimes has problems with the GCC collect2 program. For some
  16546. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16547. # vanish in a puff of smoke.
  16548. if test "X${COLLECT_NAMES+set}" != Xset; then
  16549. COLLECT_NAMES=
  16550. export COLLECT_NAMES
  16551. fi
  16552. EOF
  16553. ;;
  16554. esac
  16555. # We use sed instead of cat because bash on DJGPP gets confused if
  16556. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16557. # text mode, it properly converts lines to CR/LF. This bash problem
  16558. # is reportedly fixed, but why not run on old versions too?
  16559. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  16560. mv -f "$cfgfile" "$ofile" || \
  16561. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16562. chmod +x "$ofile"
  16563. else
  16564. # If there is no Makefile yet, we rely on a make rule to execute
  16565. # `config.status --recheck' to rerun these tests and create the
  16566. # libtool script then.
  16567. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16568. if test -f "$ltmain_in"; then
  16569. test -f Makefile && make "$ltmain"
  16570. fi
  16571. fi
  16572. ac_ext=c
  16573. ac_cpp='$CPP $CPPFLAGS'
  16574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16577. CC="$lt_save_CC"
  16578. # Check whether --with-tags was given.
  16579. if test "${with_tags+set}" = set; then
  16580. withval=$with_tags; tagnames="$withval"
  16581. fi
  16582. if test -f "$ltmain" && test -n "$tagnames"; then
  16583. if test ! -f "${ofile}"; then
  16584. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  16585. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  16586. fi
  16587. if test -z "$LTCC"; then
  16588. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  16589. if test -z "$LTCC"; then
  16590. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  16591. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  16592. else
  16593. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  16594. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  16595. fi
  16596. fi
  16597. if test -z "$LTCFLAGS"; then
  16598. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  16599. fi
  16600. # Extract list of available tagged configurations in $ofile.
  16601. # Note that this assumes the entire list is on one line.
  16602. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  16603. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  16604. for tagname in $tagnames; do
  16605. IFS="$lt_save_ifs"
  16606. # Check whether tagname contains only valid characters
  16607. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  16608. "") ;;
  16609. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  16610. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  16611. { (exit 1); exit 1; }; }
  16612. ;;
  16613. esac
  16614. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  16615. then
  16616. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  16617. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  16618. { (exit 1); exit 1; }; }
  16619. fi
  16620. # Update the list of available tags.
  16621. if test -n "$tagname"; then
  16622. echo appending configuration tag \"$tagname\" to $ofile
  16623. case $tagname in
  16624. CXX)
  16625. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  16626. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  16627. (test "X$CXX" != "Xg++"))) ; then
  16628. ac_ext=cpp
  16629. ac_cpp='$CXXCPP $CPPFLAGS'
  16630. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16631. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16632. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16633. archive_cmds_need_lc_CXX=no
  16634. allow_undefined_flag_CXX=
  16635. always_export_symbols_CXX=no
  16636. archive_expsym_cmds_CXX=
  16637. export_dynamic_flag_spec_CXX=
  16638. hardcode_direct_CXX=no
  16639. hardcode_libdir_flag_spec_CXX=
  16640. hardcode_libdir_flag_spec_ld_CXX=
  16641. hardcode_libdir_separator_CXX=
  16642. hardcode_minus_L_CXX=no
  16643. hardcode_shlibpath_var_CXX=unsupported
  16644. hardcode_automatic_CXX=no
  16645. module_cmds_CXX=
  16646. module_expsym_cmds_CXX=
  16647. link_all_deplibs_CXX=unknown
  16648. old_archive_cmds_CXX=$old_archive_cmds
  16649. no_undefined_flag_CXX=
  16650. whole_archive_flag_spec_CXX=
  16651. enable_shared_with_static_runtimes_CXX=no
  16652. # Dependencies to place before and after the object being linked:
  16653. predep_objects_CXX=
  16654. postdep_objects_CXX=
  16655. predeps_CXX=
  16656. postdeps_CXX=
  16657. compiler_lib_search_path_CXX=
  16658. # Source file extension for C++ test sources.
  16659. ac_ext=cpp
  16660. # Object file extension for compiled C++ test sources.
  16661. objext=o
  16662. objext_CXX=$objext
  16663. # Code to be used in simple compile tests
  16664. lt_simple_compile_test_code="int some_variable = 0;\n"
  16665. # Code to be used in simple link tests
  16666. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  16667. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16668. # If no C compiler was specified, use CC.
  16669. LTCC=${LTCC-"$CC"}
  16670. # If no C compiler flags were specified, use CFLAGS.
  16671. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16672. # Allow CC to be a program name with arguments.
  16673. compiler=$CC
  16674. # save warnings/boilerplate of simple test code
  16675. ac_outfile=conftest.$ac_objext
  16676. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16677. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16678. _lt_compiler_boilerplate=`cat conftest.err`
  16679. $rm conftest*
  16680. ac_outfile=conftest.$ac_objext
  16681. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16682. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16683. _lt_linker_boilerplate=`cat conftest.err`
  16684. $rm conftest*
  16685. # Allow CC to be a program name with arguments.
  16686. lt_save_CC=$CC
  16687. lt_save_LD=$LD
  16688. lt_save_GCC=$GCC
  16689. GCC=$GXX
  16690. lt_save_with_gnu_ld=$with_gnu_ld
  16691. lt_save_path_LD=$lt_cv_path_LD
  16692. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  16693. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  16694. else
  16695. $as_unset lt_cv_prog_gnu_ld
  16696. fi
  16697. if test -n "${lt_cv_path_LDCXX+set}"; then
  16698. lt_cv_path_LD=$lt_cv_path_LDCXX
  16699. else
  16700. $as_unset lt_cv_path_LD
  16701. fi
  16702. test -z "${LDCXX+set}" || LD=$LDCXX
  16703. CC=${CXX-"c++"}
  16704. compiler=$CC
  16705. compiler_CXX=$CC
  16706. for cc_temp in $compiler""; do
  16707. case $cc_temp in
  16708. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16709. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16710. \-*) ;;
  16711. *) break;;
  16712. esac
  16713. done
  16714. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16715. # We don't want -fno-exception wen compiling C++ code, so set the
  16716. # no_builtin_flag separately
  16717. if test "$GXX" = yes; then
  16718. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  16719. else
  16720. lt_prog_compiler_no_builtin_flag_CXX=
  16721. fi
  16722. if test "$GXX" = yes; then
  16723. # Set up default GNU C++ configuration
  16724. # Check whether --with-gnu-ld was given.
  16725. if test "${with_gnu_ld+set}" = set; then
  16726. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16727. else
  16728. with_gnu_ld=no
  16729. fi
  16730. ac_prog=ld
  16731. if test "$GCC" = yes; then
  16732. # Check if gcc -print-prog-name=ld gives a path.
  16733. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  16734. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  16735. case $host in
  16736. *-*-mingw*)
  16737. # gcc leaves a trailing carriage return which upsets mingw
  16738. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  16739. *)
  16740. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  16741. esac
  16742. case $ac_prog in
  16743. # Accept absolute paths.
  16744. [\\/]* | ?:[\\/]*)
  16745. re_direlt='/[^/][^/]*/\.\./'
  16746. # Canonicalize the pathname of ld
  16747. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  16748. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  16749. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  16750. done
  16751. test -z "$LD" && LD="$ac_prog"
  16752. ;;
  16753. "")
  16754. # If it fails, then pretend we aren't using GCC.
  16755. ac_prog=ld
  16756. ;;
  16757. *)
  16758. # If it is relative, then search for the first ld in PATH.
  16759. with_gnu_ld=unknown
  16760. ;;
  16761. esac
  16762. elif test "$with_gnu_ld" = yes; then
  16763. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  16764. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  16765. else
  16766. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  16767. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  16768. fi
  16769. if test "${lt_cv_path_LD+set}" = set; then
  16770. echo $ECHO_N "(cached) $ECHO_C" >&6
  16771. else
  16772. if test -z "$LD"; then
  16773. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16774. for ac_dir in $PATH; do
  16775. IFS="$lt_save_ifs"
  16776. test -z "$ac_dir" && ac_dir=.
  16777. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  16778. lt_cv_path_LD="$ac_dir/$ac_prog"
  16779. # Check to see if the program is GNU ld. I'd rather use --version,
  16780. # but apparently some variants of GNU ld only accept -v.
  16781. # Break only if it was the GNU/non-GNU ld that we prefer.
  16782. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  16783. *GNU* | *'with BFD'*)
  16784. test "$with_gnu_ld" != no && break
  16785. ;;
  16786. *)
  16787. test "$with_gnu_ld" != yes && break
  16788. ;;
  16789. esac
  16790. fi
  16791. done
  16792. IFS="$lt_save_ifs"
  16793. else
  16794. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  16795. fi
  16796. fi
  16797. LD="$lt_cv_path_LD"
  16798. if test -n "$LD"; then
  16799. { echo "$as_me:$LINENO: result: $LD" >&5
  16800. echo "${ECHO_T}$LD" >&6; }
  16801. else
  16802. { echo "$as_me:$LINENO: result: no" >&5
  16803. echo "${ECHO_T}no" >&6; }
  16804. fi
  16805. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  16806. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  16807. { (exit 1); exit 1; }; }
  16808. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  16809. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  16810. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  16811. echo $ECHO_N "(cached) $ECHO_C" >&6
  16812. else
  16813. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  16814. case `$LD -v 2>&1 </dev/null` in
  16815. *GNU* | *'with BFD'*)
  16816. lt_cv_prog_gnu_ld=yes
  16817. ;;
  16818. *)
  16819. lt_cv_prog_gnu_ld=no
  16820. ;;
  16821. esac
  16822. fi
  16823. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  16824. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  16825. with_gnu_ld=$lt_cv_prog_gnu_ld
  16826. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  16827. # archiving commands below assume that GNU ld is being used.
  16828. if test "$with_gnu_ld" = yes; then
  16829. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16830. 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'
  16831. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  16832. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16833. # If archive_cmds runs LD, not CC, wlarc should be empty
  16834. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  16835. # investigate it a little bit more. (MM)
  16836. wlarc='${wl}'
  16837. # ancient GNU ld didn't support --whole-archive et. al.
  16838. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  16839. grep 'no-whole-archive' > /dev/null; then
  16840. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16841. else
  16842. whole_archive_flag_spec_CXX=
  16843. fi
  16844. else
  16845. with_gnu_ld=no
  16846. wlarc=
  16847. # A generic and very simple default shared library creation
  16848. # command for GNU C++ for the case where it uses the native
  16849. # linker, instead of GNU ld. If possible, this setting should
  16850. # overridden to take advantage of the native linker features on
  16851. # the platform it is being used on.
  16852. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  16853. fi
  16854. # Commands to make compiler produce verbose output that lists
  16855. # what "hidden" libraries, object files and flags are used when
  16856. # linking a shared library.
  16857. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  16858. else
  16859. GXX=no
  16860. with_gnu_ld=no
  16861. wlarc=
  16862. fi
  16863. # PORTME: fill in a description of your system's C++ link characteristics
  16864. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16865. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  16866. ld_shlibs_CXX=yes
  16867. case $host_os in
  16868. aix3*)
  16869. # FIXME: insert proper C++ library support
  16870. ld_shlibs_CXX=no
  16871. ;;
  16872. aix4* | aix5*)
  16873. if test "$host_cpu" = ia64; then
  16874. # On IA64, the linker does run time linking by default, so we don't
  16875. # have to do anything special.
  16876. aix_use_runtimelinking=no
  16877. exp_sym_flag='-Bexport'
  16878. no_entry_flag=""
  16879. else
  16880. aix_use_runtimelinking=no
  16881. # Test if we are trying to use run time linking or normal
  16882. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16883. # need to do runtime linking.
  16884. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  16885. for ld_flag in $LDFLAGS; do
  16886. case $ld_flag in
  16887. *-brtl*)
  16888. aix_use_runtimelinking=yes
  16889. break
  16890. ;;
  16891. esac
  16892. done
  16893. ;;
  16894. esac
  16895. exp_sym_flag='-bexport'
  16896. no_entry_flag='-bnoentry'
  16897. fi
  16898. # When large executables or shared objects are built, AIX ld can
  16899. # have problems creating the table of contents. If linking a library
  16900. # or program results in "error TOC overflow" add -mminimal-toc to
  16901. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  16902. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16903. archive_cmds_CXX=''
  16904. hardcode_direct_CXX=yes
  16905. hardcode_libdir_separator_CXX=':'
  16906. link_all_deplibs_CXX=yes
  16907. if test "$GXX" = yes; then
  16908. case $host_os in aix4.[012]|aix4.[012].*)
  16909. # We only want to do this on AIX 4.2 and lower, the check
  16910. # below for broken collect2 doesn't work under 4.3+
  16911. collect2name=`${CC} -print-prog-name=collect2`
  16912. if test -f "$collect2name" && \
  16913. strings "$collect2name" | grep resolve_lib_name >/dev/null
  16914. then
  16915. # We have reworked collect2
  16916. hardcode_direct_CXX=yes
  16917. else
  16918. # We have old collect2
  16919. hardcode_direct_CXX=unsupported
  16920. # It fails to find uninstalled libraries when the uninstalled
  16921. # path is not listed in the libpath. Setting hardcode_minus_L
  16922. # to unsupported forces relinking
  16923. hardcode_minus_L_CXX=yes
  16924. hardcode_libdir_flag_spec_CXX='-L$libdir'
  16925. hardcode_libdir_separator_CXX=
  16926. fi
  16927. ;;
  16928. esac
  16929. shared_flag='-shared'
  16930. if test "$aix_use_runtimelinking" = yes; then
  16931. shared_flag="$shared_flag "'${wl}-G'
  16932. fi
  16933. else
  16934. # not using gcc
  16935. if test "$host_cpu" = ia64; then
  16936. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  16937. # chokes on -Wl,-G. The following line is correct:
  16938. shared_flag='-G'
  16939. else
  16940. if test "$aix_use_runtimelinking" = yes; then
  16941. shared_flag='${wl}-G'
  16942. else
  16943. shared_flag='${wl}-bM:SRE'
  16944. fi
  16945. fi
  16946. fi
  16947. # It seems that -bexpall does not export symbols beginning with
  16948. # underscore (_), so it is better to generate a list of symbols to export.
  16949. always_export_symbols_CXX=yes
  16950. if test "$aix_use_runtimelinking" = yes; then
  16951. # Warning - without using the other runtime loading flags (-brtl),
  16952. # -berok will link without error, but may produce a broken library.
  16953. allow_undefined_flag_CXX='-berok'
  16954. # Determine the default libpath from the value encoded in an empty executable.
  16955. cat >conftest.$ac_ext <<_ACEOF
  16956. /* confdefs.h. */
  16957. _ACEOF
  16958. cat confdefs.h >>conftest.$ac_ext
  16959. cat >>conftest.$ac_ext <<_ACEOF
  16960. /* end confdefs.h. */
  16961. int
  16962. main ()
  16963. {
  16964. ;
  16965. return 0;
  16966. }
  16967. _ACEOF
  16968. rm -f conftest.$ac_objext conftest$ac_exeext
  16969. if { (ac_try="$ac_link"
  16970. case "(($ac_try" in
  16971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16972. *) ac_try_echo=$ac_try;;
  16973. esac
  16974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16975. (eval "$ac_link") 2>conftest.er1
  16976. ac_status=$?
  16977. grep -v '^ *+' conftest.er1 >conftest.err
  16978. rm -f conftest.er1
  16979. cat conftest.err >&5
  16980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16981. (exit $ac_status); } &&
  16982. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  16983. { (case "(($ac_try" in
  16984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16985. *) ac_try_echo=$ac_try;;
  16986. esac
  16987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16988. (eval "$ac_try") 2>&5
  16989. ac_status=$?
  16990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16991. (exit $ac_status); }; } &&
  16992. { ac_try='test -s conftest$ac_exeext'
  16993. { (case "(($ac_try" in
  16994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16995. *) ac_try_echo=$ac_try;;
  16996. esac
  16997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16998. (eval "$ac_try") 2>&5
  16999. ac_status=$?
  17000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17001. (exit $ac_status); }; }; then
  17002. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17003. }'`
  17004. # Check for a 64-bit object if we didn't find anything.
  17005. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17006. }'`; fi
  17007. else
  17008. echo "$as_me: failed program was:" >&5
  17009. sed 's/^/| /' conftest.$ac_ext >&5
  17010. fi
  17011. rm -f core conftest.err conftest.$ac_objext \
  17012. conftest$ac_exeext conftest.$ac_ext
  17013. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17014. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  17015. 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"
  17016. else
  17017. if test "$host_cpu" = ia64; then
  17018. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  17019. allow_undefined_flag_CXX="-z nodefs"
  17020. 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"
  17021. else
  17022. # Determine the default libpath from the value encoded in an empty executable.
  17023. cat >conftest.$ac_ext <<_ACEOF
  17024. /* confdefs.h. */
  17025. _ACEOF
  17026. cat confdefs.h >>conftest.$ac_ext
  17027. cat >>conftest.$ac_ext <<_ACEOF
  17028. /* end confdefs.h. */
  17029. int
  17030. main ()
  17031. {
  17032. ;
  17033. return 0;
  17034. }
  17035. _ACEOF
  17036. rm -f conftest.$ac_objext conftest$ac_exeext
  17037. if { (ac_try="$ac_link"
  17038. case "(($ac_try" in
  17039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17040. *) ac_try_echo=$ac_try;;
  17041. esac
  17042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17043. (eval "$ac_link") 2>conftest.er1
  17044. ac_status=$?
  17045. grep -v '^ *+' conftest.er1 >conftest.err
  17046. rm -f conftest.er1
  17047. cat conftest.err >&5
  17048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17049. (exit $ac_status); } &&
  17050. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  17051. { (case "(($ac_try" in
  17052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17053. *) ac_try_echo=$ac_try;;
  17054. esac
  17055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17056. (eval "$ac_try") 2>&5
  17057. ac_status=$?
  17058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17059. (exit $ac_status); }; } &&
  17060. { ac_try='test -s conftest$ac_exeext'
  17061. { (case "(($ac_try" in
  17062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17063. *) ac_try_echo=$ac_try;;
  17064. esac
  17065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17066. (eval "$ac_try") 2>&5
  17067. ac_status=$?
  17068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17069. (exit $ac_status); }; }; then
  17070. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17071. }'`
  17072. # Check for a 64-bit object if we didn't find anything.
  17073. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17074. }'`; fi
  17075. else
  17076. echo "$as_me: failed program was:" >&5
  17077. sed 's/^/| /' conftest.$ac_ext >&5
  17078. fi
  17079. rm -f core conftest.err conftest.$ac_objext \
  17080. conftest$ac_exeext conftest.$ac_ext
  17081. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17082. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  17083. # Warning - without using the other run time loading flags,
  17084. # -berok will link without error, but may produce a broken library.
  17085. no_undefined_flag_CXX=' ${wl}-bernotok'
  17086. allow_undefined_flag_CXX=' ${wl}-berok'
  17087. # Exported symbols can be pulled into shared objects from archives
  17088. whole_archive_flag_spec_CXX='$convenience'
  17089. archive_cmds_need_lc_CXX=yes
  17090. # This is similar to how AIX traditionally builds its shared libraries.
  17091. 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'
  17092. fi
  17093. fi
  17094. ;;
  17095. beos*)
  17096. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  17097. allow_undefined_flag_CXX=unsupported
  17098. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  17099. # support --undefined. This deserves some investigation. FIXME
  17100. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17101. else
  17102. ld_shlibs_CXX=no
  17103. fi
  17104. ;;
  17105. chorus*)
  17106. case $cc_basename in
  17107. *)
  17108. # FIXME: insert proper C++ library support
  17109. ld_shlibs_CXX=no
  17110. ;;
  17111. esac
  17112. ;;
  17113. cygwin* | mingw* | pw32*)
  17114. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  17115. # as there is no search path for DLLs.
  17116. hardcode_libdir_flag_spec_CXX='-L$libdir'
  17117. allow_undefined_flag_CXX=unsupported
  17118. always_export_symbols_CXX=no
  17119. enable_shared_with_static_runtimes_CXX=yes
  17120. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  17121. 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'
  17122. # If the export-symbols file already is a .def file (1st line
  17123. # is EXPORTS), use it as is; otherwise, prepend...
  17124. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  17125. cp $export_symbols $output_objdir/$soname.def;
  17126. else
  17127. echo EXPORTS > $output_objdir/$soname.def;
  17128. cat $export_symbols >> $output_objdir/$soname.def;
  17129. fi~
  17130. $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'
  17131. else
  17132. ld_shlibs_CXX=no
  17133. fi
  17134. ;;
  17135. darwin* | rhapsody*)
  17136. case $host_os in
  17137. rhapsody* | darwin1.[012])
  17138. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  17139. ;;
  17140. *) # Darwin 1.3 on
  17141. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  17142. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  17143. else
  17144. case ${MACOSX_DEPLOYMENT_TARGET} in
  17145. 10.[012])
  17146. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  17147. ;;
  17148. 10.*)
  17149. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  17150. ;;
  17151. esac
  17152. fi
  17153. ;;
  17154. esac
  17155. archive_cmds_need_lc_CXX=no
  17156. hardcode_direct_CXX=no
  17157. hardcode_automatic_CXX=yes
  17158. hardcode_shlibpath_var_CXX=unsupported
  17159. whole_archive_flag_spec_CXX=''
  17160. link_all_deplibs_CXX=yes
  17161. if test "$GXX" = yes ; then
  17162. lt_int_apple_cc_single_mod=no
  17163. output_verbose_link_cmd='echo'
  17164. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  17165. lt_int_apple_cc_single_mod=yes
  17166. fi
  17167. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  17168. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  17169. else
  17170. 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'
  17171. fi
  17172. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17173. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  17174. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  17175. 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}'
  17176. else
  17177. 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}'
  17178. fi
  17179. 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}'
  17180. else
  17181. case $cc_basename in
  17182. xlc*)
  17183. output_verbose_link_cmd='echo'
  17184. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  17185. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17186. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  17187. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17188. 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}'
  17189. ;;
  17190. *)
  17191. ld_shlibs_CXX=no
  17192. ;;
  17193. esac
  17194. fi
  17195. ;;
  17196. dgux*)
  17197. case $cc_basename in
  17198. ec++*)
  17199. # FIXME: insert proper C++ library support
  17200. ld_shlibs_CXX=no
  17201. ;;
  17202. ghcx*)
  17203. # Green Hills C++ Compiler
  17204. # FIXME: insert proper C++ library support
  17205. ld_shlibs_CXX=no
  17206. ;;
  17207. *)
  17208. # FIXME: insert proper C++ library support
  17209. ld_shlibs_CXX=no
  17210. ;;
  17211. esac
  17212. ;;
  17213. freebsd[12]*)
  17214. # C++ shared libraries reported to be fairly broken before switch to ELF
  17215. ld_shlibs_CXX=no
  17216. ;;
  17217. freebsd-elf*)
  17218. archive_cmds_need_lc_CXX=no
  17219. ;;
  17220. freebsd* | kfreebsd*-gnu | dragonfly*)
  17221. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  17222. # conventions
  17223. ld_shlibs_CXX=yes
  17224. ;;
  17225. gnu*)
  17226. ;;
  17227. hpux9*)
  17228. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  17229. hardcode_libdir_separator_CXX=:
  17230. export_dynamic_flag_spec_CXX='${wl}-E'
  17231. hardcode_direct_CXX=yes
  17232. hardcode_minus_L_CXX=yes # Not in the search PATH,
  17233. # but as the default
  17234. # location of the library.
  17235. case $cc_basename in
  17236. CC*)
  17237. # FIXME: insert proper C++ library support
  17238. ld_shlibs_CXX=no
  17239. ;;
  17240. aCC*)
  17241. 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'
  17242. # Commands to make compiler produce verbose output that lists
  17243. # what "hidden" libraries, object files and flags are used when
  17244. # linking a shared library.
  17245. #
  17246. # There doesn't appear to be a way to prevent this compiler from
  17247. # explicitly linking system object files so we need to strip them
  17248. # from the output so that they don't get included in the library
  17249. # dependencies.
  17250. 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'
  17251. ;;
  17252. *)
  17253. if test "$GXX" = yes; then
  17254. 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'
  17255. else
  17256. # FIXME: insert proper C++ library support
  17257. ld_shlibs_CXX=no
  17258. fi
  17259. ;;
  17260. esac
  17261. ;;
  17262. hpux10*|hpux11*)
  17263. if test $with_gnu_ld = no; then
  17264. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  17265. hardcode_libdir_separator_CXX=:
  17266. case $host_cpu in
  17267. hppa*64*|ia64*)
  17268. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  17269. ;;
  17270. *)
  17271. export_dynamic_flag_spec_CXX='${wl}-E'
  17272. ;;
  17273. esac
  17274. fi
  17275. case $host_cpu in
  17276. hppa*64*|ia64*)
  17277. hardcode_direct_CXX=no
  17278. hardcode_shlibpath_var_CXX=no
  17279. ;;
  17280. *)
  17281. hardcode_direct_CXX=yes
  17282. hardcode_minus_L_CXX=yes # Not in the search PATH,
  17283. # but as the default
  17284. # location of the library.
  17285. ;;
  17286. esac
  17287. case $cc_basename in
  17288. CC*)
  17289. # FIXME: insert proper C++ library support
  17290. ld_shlibs_CXX=no
  17291. ;;
  17292. aCC*)
  17293. case $host_cpu in
  17294. hppa*64*)
  17295. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17296. ;;
  17297. ia64*)
  17298. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17299. ;;
  17300. *)
  17301. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17302. ;;
  17303. esac
  17304. # Commands to make compiler produce verbose output that lists
  17305. # what "hidden" libraries, object files and flags are used when
  17306. # linking a shared library.
  17307. #
  17308. # There doesn't appear to be a way to prevent this compiler from
  17309. # explicitly linking system object files so we need to strip them
  17310. # from the output so that they don't get included in the library
  17311. # dependencies.
  17312. 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'
  17313. ;;
  17314. *)
  17315. if test "$GXX" = yes; then
  17316. if test $with_gnu_ld = no; then
  17317. case $host_cpu in
  17318. hppa*64*)
  17319. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17320. ;;
  17321. ia64*)
  17322. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17323. ;;
  17324. *)
  17325. 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'
  17326. ;;
  17327. esac
  17328. fi
  17329. else
  17330. # FIXME: insert proper C++ library support
  17331. ld_shlibs_CXX=no
  17332. fi
  17333. ;;
  17334. esac
  17335. ;;
  17336. interix3*)
  17337. hardcode_direct_CXX=no
  17338. hardcode_shlibpath_var_CXX=no
  17339. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17340. export_dynamic_flag_spec_CXX='${wl}-E'
  17341. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  17342. # Instead, shared libraries are loaded at an image base (0x10000000 by
  17343. # default) and relocated if they conflict, which is a slow very memory
  17344. # consuming and fragmenting process. To avoid this, we pick a random,
  17345. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  17346. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  17347. 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'
  17348. 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'
  17349. ;;
  17350. irix5* | irix6*)
  17351. case $cc_basename in
  17352. CC*)
  17353. # SGI C++
  17354. 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'
  17355. # Archives containing C++ object files must be created using
  17356. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  17357. # necessary to make sure instantiated templates are included
  17358. # in the archive.
  17359. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  17360. ;;
  17361. *)
  17362. if test "$GXX" = yes; then
  17363. if test "$with_gnu_ld" = no; then
  17364. 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'
  17365. else
  17366. 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'
  17367. fi
  17368. fi
  17369. link_all_deplibs_CXX=yes
  17370. ;;
  17371. esac
  17372. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  17373. hardcode_libdir_separator_CXX=:
  17374. ;;
  17375. linux*)
  17376. case $cc_basename in
  17377. KCC*)
  17378. # Kuck and Associates, Inc. (KAI) C++ Compiler
  17379. # KCC will only create a shared library if the output file
  17380. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  17381. # to its proper name (with version) after linking.
  17382. 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'
  17383. 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'
  17384. # Commands to make compiler produce verbose output that lists
  17385. # what "hidden" libraries, object files and flags are used when
  17386. # linking a shared library.
  17387. #
  17388. # There doesn't appear to be a way to prevent this compiler from
  17389. # explicitly linking system object files so we need to strip them
  17390. # from the output so that they don't get included in the library
  17391. # dependencies.
  17392. 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'
  17393. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  17394. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  17395. # Archives containing C++ object files must be created using
  17396. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  17397. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  17398. ;;
  17399. icpc*)
  17400. # Intel C++
  17401. with_gnu_ld=yes
  17402. # version 8.0 and above of icpc choke on multiply defined symbols
  17403. # if we add $predep_objects and $postdep_objects, however 7.1 and
  17404. # earlier do not add the objects themselves.
  17405. case `$CC -V 2>&1` in
  17406. *"Version 7."*)
  17407. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17408. 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'
  17409. ;;
  17410. *) # Version 8.0 or newer
  17411. tmp_idyn=
  17412. case $host_cpu in
  17413. ia64*) tmp_idyn=' -i_dynamic';;
  17414. esac
  17415. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17416. 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'
  17417. ;;
  17418. esac
  17419. archive_cmds_need_lc_CXX=no
  17420. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17421. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  17422. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  17423. ;;
  17424. pgCC*)
  17425. # Portland Group C++ compiler
  17426. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  17427. 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'
  17428. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  17429. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  17430. 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'
  17431. ;;
  17432. cxx*)
  17433. # Compaq C++
  17434. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17435. 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'
  17436. runpath_var=LD_RUN_PATH
  17437. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  17438. hardcode_libdir_separator_CXX=:
  17439. # Commands to make compiler produce verbose output that lists
  17440. # what "hidden" libraries, object files and flags are used when
  17441. # linking a shared library.
  17442. #
  17443. # There doesn't appear to be a way to prevent this compiler from
  17444. # explicitly linking system object files so we need to strip them
  17445. # from the output so that they don't get included in the library
  17446. # dependencies.
  17447. 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'
  17448. ;;
  17449. esac
  17450. ;;
  17451. lynxos*)
  17452. # FIXME: insert proper C++ library support
  17453. ld_shlibs_CXX=no
  17454. ;;
  17455. m88k*)
  17456. # FIXME: insert proper C++ library support
  17457. ld_shlibs_CXX=no
  17458. ;;
  17459. mvs*)
  17460. case $cc_basename in
  17461. cxx*)
  17462. # FIXME: insert proper C++ library support
  17463. ld_shlibs_CXX=no
  17464. ;;
  17465. *)
  17466. # FIXME: insert proper C++ library support
  17467. ld_shlibs_CXX=no
  17468. ;;
  17469. esac
  17470. ;;
  17471. netbsd*)
  17472. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17473. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  17474. wlarc=
  17475. hardcode_libdir_flag_spec_CXX='-R$libdir'
  17476. hardcode_direct_CXX=yes
  17477. hardcode_shlibpath_var_CXX=no
  17478. fi
  17479. # Workaround some broken pre-1.5 toolchains
  17480. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  17481. ;;
  17482. openbsd2*)
  17483. # C++ shared libraries are fairly broken
  17484. ld_shlibs_CXX=no
  17485. ;;
  17486. openbsd*)
  17487. hardcode_direct_CXX=yes
  17488. hardcode_shlibpath_var_CXX=no
  17489. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  17490. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17491. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17492. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  17493. export_dynamic_flag_spec_CXX='${wl}-E'
  17494. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  17495. fi
  17496. output_verbose_link_cmd='echo'
  17497. ;;
  17498. osf3*)
  17499. case $cc_basename in
  17500. KCC*)
  17501. # Kuck and Associates, Inc. (KAI) C++ Compiler
  17502. # KCC will only create a shared library if the output file
  17503. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  17504. # to its proper name (with version) after linking.
  17505. 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'
  17506. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17507. hardcode_libdir_separator_CXX=:
  17508. # Archives containing C++ object files must be created using
  17509. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  17510. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  17511. ;;
  17512. RCC*)
  17513. # Rational C++ 2.4.1
  17514. # FIXME: insert proper C++ library support
  17515. ld_shlibs_CXX=no
  17516. ;;
  17517. cxx*)
  17518. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  17519. 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'
  17520. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  17521. hardcode_libdir_separator_CXX=:
  17522. # Commands to make compiler produce verbose output that lists
  17523. # what "hidden" libraries, object files and flags are used when
  17524. # linking a shared library.
  17525. #
  17526. # There doesn't appear to be a way to prevent this compiler from
  17527. # explicitly linking system object files so we need to strip them
  17528. # from the output so that they don't get included in the library
  17529. # dependencies.
  17530. 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'
  17531. ;;
  17532. *)
  17533. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  17534. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  17535. 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'
  17536. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  17537. hardcode_libdir_separator_CXX=:
  17538. # Commands to make compiler produce verbose output that lists
  17539. # what "hidden" libraries, object files and flags are used when
  17540. # linking a shared library.
  17541. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  17542. else
  17543. # FIXME: insert proper C++ library support
  17544. ld_shlibs_CXX=no
  17545. fi
  17546. ;;
  17547. esac
  17548. ;;
  17549. osf4* | osf5*)
  17550. case $cc_basename in
  17551. KCC*)
  17552. # Kuck and Associates, Inc. (KAI) C++ Compiler
  17553. # KCC will only create a shared library if the output file
  17554. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  17555. # to its proper name (with version) after linking.
  17556. 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'
  17557. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17558. hardcode_libdir_separator_CXX=:
  17559. # Archives containing C++ object files must be created using
  17560. # the KAI C++ compiler.
  17561. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  17562. ;;
  17563. RCC*)
  17564. # Rational C++ 2.4.1
  17565. # FIXME: insert proper C++ library support
  17566. ld_shlibs_CXX=no
  17567. ;;
  17568. cxx*)
  17569. allow_undefined_flag_CXX=' -expect_unresolved \*'
  17570. 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'
  17571. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  17572. echo "-hidden">> $lib.exp~
  17573. $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~
  17574. $rm $lib.exp'
  17575. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  17576. hardcode_libdir_separator_CXX=:
  17577. # Commands to make compiler produce verbose output that lists
  17578. # what "hidden" libraries, object files and flags are used when
  17579. # linking a shared library.
  17580. #
  17581. # There doesn't appear to be a way to prevent this compiler from
  17582. # explicitly linking system object files so we need to strip them
  17583. # from the output so that they don't get included in the library
  17584. # dependencies.
  17585. 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'
  17586. ;;
  17587. *)
  17588. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  17589. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  17590. 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'
  17591. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  17592. hardcode_libdir_separator_CXX=:
  17593. # Commands to make compiler produce verbose output that lists
  17594. # what "hidden" libraries, object files and flags are used when
  17595. # linking a shared library.
  17596. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  17597. else
  17598. # FIXME: insert proper C++ library support
  17599. ld_shlibs_CXX=no
  17600. fi
  17601. ;;
  17602. esac
  17603. ;;
  17604. psos*)
  17605. # FIXME: insert proper C++ library support
  17606. ld_shlibs_CXX=no
  17607. ;;
  17608. sunos4*)
  17609. case $cc_basename in
  17610. CC*)
  17611. # Sun C++ 4.x
  17612. # FIXME: insert proper C++ library support
  17613. ld_shlibs_CXX=no
  17614. ;;
  17615. lcc*)
  17616. # Lucid
  17617. # FIXME: insert proper C++ library support
  17618. ld_shlibs_CXX=no
  17619. ;;
  17620. *)
  17621. # FIXME: insert proper C++ library support
  17622. ld_shlibs_CXX=no
  17623. ;;
  17624. esac
  17625. ;;
  17626. solaris*)
  17627. case $cc_basename in
  17628. CC*)
  17629. # Sun C++ 4.2, 5.x and Centerline C++
  17630. archive_cmds_need_lc_CXX=yes
  17631. no_undefined_flag_CXX=' -zdefs'
  17632. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17633. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17634. $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'
  17635. hardcode_libdir_flag_spec_CXX='-R$libdir'
  17636. hardcode_shlibpath_var_CXX=no
  17637. case $host_os in
  17638. solaris2.[0-5] | solaris2.[0-5].*) ;;
  17639. *)
  17640. # The C++ compiler is used as linker so we must use $wl
  17641. # flag to pass the commands to the underlying system
  17642. # linker. We must also pass each convience library through
  17643. # to the system linker between allextract/defaultextract.
  17644. # The C++ compiler will combine linker options so we
  17645. # cannot just pass the convience library names through
  17646. # without $wl.
  17647. # Supported since Solaris 2.6 (maybe 2.5.1?)
  17648. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  17649. ;;
  17650. esac
  17651. link_all_deplibs_CXX=yes
  17652. output_verbose_link_cmd='echo'
  17653. # Archives containing C++ object files must be created using
  17654. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  17655. # necessary to make sure instantiated templates are included
  17656. # in the archive.
  17657. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  17658. ;;
  17659. gcx*)
  17660. # Green Hills C++ Compiler
  17661. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  17662. # The C++ compiler must be used to create the archive.
  17663. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  17664. ;;
  17665. *)
  17666. # GNU C++ compiler with Solaris linker
  17667. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  17668. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  17669. if $CC --version | grep -v '^2\.7' > /dev/null; then
  17670. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  17671. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17672. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  17673. # Commands to make compiler produce verbose output that lists
  17674. # what "hidden" libraries, object files and flags are used when
  17675. # linking a shared library.
  17676. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  17677. else
  17678. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  17679. # platform.
  17680. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  17681. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17682. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  17683. # Commands to make compiler produce verbose output that lists
  17684. # what "hidden" libraries, object files and flags are used when
  17685. # linking a shared library.
  17686. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  17687. fi
  17688. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  17689. fi
  17690. ;;
  17691. esac
  17692. ;;
  17693. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  17694. no_undefined_flag_CXX='${wl}-z,text'
  17695. archive_cmds_need_lc_CXX=no
  17696. hardcode_shlibpath_var_CXX=no
  17697. runpath_var='LD_RUN_PATH'
  17698. case $cc_basename in
  17699. CC*)
  17700. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17701. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17702. ;;
  17703. *)
  17704. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17705. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  17706. ;;
  17707. esac
  17708. ;;
  17709. sysv5* | sco3.2v5* | sco5v6*)
  17710. # Note: We can NOT use -z defs as we might desire, because we do not
  17711. # link with -lc, and that would cause any symbols used from libc to
  17712. # always be unresolved, which means just about no library would
  17713. # ever link correctly. If we're not using GNU ld we use -z text
  17714. # though, which does catch some bad symbols but isn't as heavy-handed
  17715. # as -z defs.
  17716. # For security reasons, it is highly recommended that you always
  17717. # use absolute paths for naming shared libraries, and exclude the
  17718. # DT_RUNPATH tag from executables and libraries. But doing so
  17719. # requires that you compile everything twice, which is a pain.
  17720. # So that behaviour is only enabled if SCOABSPATH is set to a
  17721. # non-empty value in the environment. Most likely only useful for
  17722. # creating official distributions of packages.
  17723. # This is a hack until libtool officially supports absolute path
  17724. # names for shared libraries.
  17725. no_undefined_flag_CXX='${wl}-z,text'
  17726. allow_undefined_flag_CXX='${wl}-z,nodefs'
  17727. archive_cmds_need_lc_CXX=no
  17728. hardcode_shlibpath_var_CXX=no
  17729. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  17730. hardcode_libdir_separator_CXX=':'
  17731. link_all_deplibs_CXX=yes
  17732. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  17733. runpath_var='LD_RUN_PATH'
  17734. case $cc_basename in
  17735. CC*)
  17736. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17737. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17738. ;;
  17739. *)
  17740. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17741. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17742. ;;
  17743. esac
  17744. ;;
  17745. tandem*)
  17746. case $cc_basename in
  17747. NCC*)
  17748. # NonStop-UX NCC 3.20
  17749. # FIXME: insert proper C++ library support
  17750. ld_shlibs_CXX=no
  17751. ;;
  17752. *)
  17753. # FIXME: insert proper C++ library support
  17754. ld_shlibs_CXX=no
  17755. ;;
  17756. esac
  17757. ;;
  17758. vxworks*)
  17759. # FIXME: insert proper C++ library support
  17760. ld_shlibs_CXX=no
  17761. ;;
  17762. *)
  17763. # FIXME: insert proper C++ library support
  17764. ld_shlibs_CXX=no
  17765. ;;
  17766. esac
  17767. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  17768. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  17769. test "$ld_shlibs_CXX" = no && can_build_shared=no
  17770. GCC_CXX="$GXX"
  17771. LD_CXX="$LD"
  17772. cat > conftest.$ac_ext <<EOF
  17773. class Foo
  17774. {
  17775. public:
  17776. Foo (void) { a = 0; }
  17777. private:
  17778. int a;
  17779. };
  17780. EOF
  17781. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17782. (eval $ac_compile) 2>&5
  17783. ac_status=$?
  17784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17785. (exit $ac_status); }; then
  17786. # Parse the compiler output and extract the necessary
  17787. # objects, libraries and library flags.
  17788. # Sentinel used to keep track of whether or not we are before
  17789. # the conftest object file.
  17790. pre_test_object_deps_done=no
  17791. # The `*' in the case matches for architectures that use `case' in
  17792. # $output_verbose_cmd can trigger glob expansion during the loop
  17793. # eval without this substitution.
  17794. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  17795. for p in `eval $output_verbose_link_cmd`; do
  17796. case $p in
  17797. -L* | -R* | -l*)
  17798. # Some compilers place space between "-{L,R}" and the path.
  17799. # Remove the space.
  17800. if test $p = "-L" \
  17801. || test $p = "-R"; then
  17802. prev=$p
  17803. continue
  17804. else
  17805. prev=
  17806. fi
  17807. if test "$pre_test_object_deps_done" = no; then
  17808. case $p in
  17809. -L* | -R*)
  17810. # Internal compiler library paths should come after those
  17811. # provided the user. The postdeps already come after the
  17812. # user supplied libs so there is no need to process them.
  17813. if test -z "$compiler_lib_search_path_CXX"; then
  17814. compiler_lib_search_path_CXX="${prev}${p}"
  17815. else
  17816. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  17817. fi
  17818. ;;
  17819. # The "-l" case would never come before the object being
  17820. # linked, so don't bother handling this case.
  17821. esac
  17822. else
  17823. if test -z "$postdeps_CXX"; then
  17824. postdeps_CXX="${prev}${p}"
  17825. else
  17826. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  17827. fi
  17828. fi
  17829. ;;
  17830. *.$objext)
  17831. # This assumes that the test object file only shows up
  17832. # once in the compiler output.
  17833. if test "$p" = "conftest.$objext"; then
  17834. pre_test_object_deps_done=yes
  17835. continue
  17836. fi
  17837. if test "$pre_test_object_deps_done" = no; then
  17838. if test -z "$predep_objects_CXX"; then
  17839. predep_objects_CXX="$p"
  17840. else
  17841. predep_objects_CXX="$predep_objects_CXX $p"
  17842. fi
  17843. else
  17844. if test -z "$postdep_objects_CXX"; then
  17845. postdep_objects_CXX="$p"
  17846. else
  17847. postdep_objects_CXX="$postdep_objects_CXX $p"
  17848. fi
  17849. fi
  17850. ;;
  17851. *) ;; # Ignore the rest.
  17852. esac
  17853. done
  17854. # Clean up.
  17855. rm -f a.out a.exe
  17856. else
  17857. echo "libtool.m4: error: problem compiling CXX test program"
  17858. fi
  17859. $rm -f confest.$objext
  17860. # PORTME: override above test on systems where it is broken
  17861. case $host_os in
  17862. interix3*)
  17863. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  17864. # hack all around it, let's just trust "g++" to DTRT.
  17865. predep_objects_CXX=
  17866. postdep_objects_CXX=
  17867. postdeps_CXX=
  17868. ;;
  17869. solaris*)
  17870. case $cc_basename in
  17871. CC*)
  17872. # Adding this requires a known-good setup of shared libraries for
  17873. # Sun compiler versions before 5.6, else PIC objects from an old
  17874. # archive will be linked into the output, leading to subtle bugs.
  17875. postdeps_CXX='-lCstd -lCrun'
  17876. ;;
  17877. esac
  17878. ;;
  17879. esac
  17880. case " $postdeps_CXX " in
  17881. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  17882. esac
  17883. lt_prog_compiler_wl_CXX=
  17884. lt_prog_compiler_pic_CXX=
  17885. lt_prog_compiler_static_CXX=
  17886. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  17887. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  17888. # C++ specific cases for pic, static, wl, etc.
  17889. if test "$GXX" = yes; then
  17890. lt_prog_compiler_wl_CXX='-Wl,'
  17891. lt_prog_compiler_static_CXX='-static'
  17892. case $host_os in
  17893. aix*)
  17894. # All AIX code is PIC.
  17895. if test "$host_cpu" = ia64; then
  17896. # AIX 5 now supports IA64 processor
  17897. lt_prog_compiler_static_CXX='-Bstatic'
  17898. fi
  17899. ;;
  17900. amigaos*)
  17901. # FIXME: we need at least 68020 code to build shared libraries, but
  17902. # adding the `-m68020' flag to GCC prevents building anything better,
  17903. # like `-m68040'.
  17904. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  17905. ;;
  17906. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  17907. # PIC is the default for these OSes.
  17908. ;;
  17909. mingw* | os2* | pw32*)
  17910. # This hack is so that the source file can tell whether it is being
  17911. # built for inclusion in a dll (and should export symbols for example).
  17912. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  17913. ;;
  17914. darwin* | rhapsody*)
  17915. # PIC is the default on this platform
  17916. # Common symbols not allowed in MH_DYLIB files
  17917. lt_prog_compiler_pic_CXX='-fno-common'
  17918. ;;
  17919. *djgpp*)
  17920. # DJGPP does not support shared libraries at all
  17921. lt_prog_compiler_pic_CXX=
  17922. ;;
  17923. interix3*)
  17924. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  17925. # Instead, we relocate shared libraries at runtime.
  17926. ;;
  17927. sysv4*MP*)
  17928. if test -d /usr/nec; then
  17929. lt_prog_compiler_pic_CXX=-Kconform_pic
  17930. fi
  17931. ;;
  17932. hpux*)
  17933. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  17934. # not for PA HP-UX.
  17935. case $host_cpu in
  17936. hppa*64*|ia64*)
  17937. ;;
  17938. *)
  17939. lt_prog_compiler_pic_CXX='-fPIC'
  17940. ;;
  17941. esac
  17942. ;;
  17943. *)
  17944. lt_prog_compiler_pic_CXX='-fPIC'
  17945. ;;
  17946. esac
  17947. else
  17948. case $host_os in
  17949. aix4* | aix5*)
  17950. # All AIX code is PIC.
  17951. if test "$host_cpu" = ia64; then
  17952. # AIX 5 now supports IA64 processor
  17953. lt_prog_compiler_static_CXX='-Bstatic'
  17954. else
  17955. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  17956. fi
  17957. ;;
  17958. chorus*)
  17959. case $cc_basename in
  17960. cxch68*)
  17961. # Green Hills C++ Compiler
  17962. # _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"
  17963. ;;
  17964. esac
  17965. ;;
  17966. darwin*)
  17967. # PIC is the default on this platform
  17968. # Common symbols not allowed in MH_DYLIB files
  17969. case $cc_basename in
  17970. xlc*)
  17971. lt_prog_compiler_pic_CXX='-qnocommon'
  17972. lt_prog_compiler_wl_CXX='-Wl,'
  17973. ;;
  17974. esac
  17975. ;;
  17976. dgux*)
  17977. case $cc_basename in
  17978. ec++*)
  17979. lt_prog_compiler_pic_CXX='-KPIC'
  17980. ;;
  17981. ghcx*)
  17982. # Green Hills C++ Compiler
  17983. lt_prog_compiler_pic_CXX='-pic'
  17984. ;;
  17985. *)
  17986. ;;
  17987. esac
  17988. ;;
  17989. freebsd* | kfreebsd*-gnu | dragonfly*)
  17990. # FreeBSD uses GNU C++
  17991. ;;
  17992. hpux9* | hpux10* | hpux11*)
  17993. case $cc_basename in
  17994. CC*)
  17995. lt_prog_compiler_wl_CXX='-Wl,'
  17996. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  17997. if test "$host_cpu" != ia64; then
  17998. lt_prog_compiler_pic_CXX='+Z'
  17999. fi
  18000. ;;
  18001. aCC*)
  18002. lt_prog_compiler_wl_CXX='-Wl,'
  18003. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  18004. case $host_cpu in
  18005. hppa*64*|ia64*)
  18006. # +Z the default
  18007. ;;
  18008. *)
  18009. lt_prog_compiler_pic_CXX='+Z'
  18010. ;;
  18011. esac
  18012. ;;
  18013. *)
  18014. ;;
  18015. esac
  18016. ;;
  18017. interix*)
  18018. # This is c89, which is MS Visual C++ (no shared libs)
  18019. # Anyone wants to do a port?
  18020. ;;
  18021. irix5* | irix6* | nonstopux*)
  18022. case $cc_basename in
  18023. CC*)
  18024. lt_prog_compiler_wl_CXX='-Wl,'
  18025. lt_prog_compiler_static_CXX='-non_shared'
  18026. # CC pic flag -KPIC is the default.
  18027. ;;
  18028. *)
  18029. ;;
  18030. esac
  18031. ;;
  18032. linux*)
  18033. case $cc_basename in
  18034. KCC*)
  18035. # KAI C++ Compiler
  18036. lt_prog_compiler_wl_CXX='--backend -Wl,'
  18037. lt_prog_compiler_pic_CXX='-fPIC'
  18038. ;;
  18039. icpc* | ecpc*)
  18040. # Intel C++
  18041. lt_prog_compiler_wl_CXX='-Wl,'
  18042. lt_prog_compiler_pic_CXX='-KPIC'
  18043. lt_prog_compiler_static_CXX='-static'
  18044. ;;
  18045. pgCC*)
  18046. # Portland Group C++ compiler.
  18047. lt_prog_compiler_wl_CXX='-Wl,'
  18048. lt_prog_compiler_pic_CXX='-fpic'
  18049. lt_prog_compiler_static_CXX='-Bstatic'
  18050. ;;
  18051. cxx*)
  18052. # Compaq C++
  18053. # Make sure the PIC flag is empty. It appears that all Alpha
  18054. # Linux and Compaq Tru64 Unix objects are PIC.
  18055. lt_prog_compiler_pic_CXX=
  18056. lt_prog_compiler_static_CXX='-non_shared'
  18057. ;;
  18058. *)
  18059. ;;
  18060. esac
  18061. ;;
  18062. lynxos*)
  18063. ;;
  18064. m88k*)
  18065. ;;
  18066. mvs*)
  18067. case $cc_basename in
  18068. cxx*)
  18069. lt_prog_compiler_pic_CXX='-W c,exportall'
  18070. ;;
  18071. *)
  18072. ;;
  18073. esac
  18074. ;;
  18075. netbsd*)
  18076. ;;
  18077. osf3* | osf4* | osf5*)
  18078. case $cc_basename in
  18079. KCC*)
  18080. lt_prog_compiler_wl_CXX='--backend -Wl,'
  18081. ;;
  18082. RCC*)
  18083. # Rational C++ 2.4.1
  18084. lt_prog_compiler_pic_CXX='-pic'
  18085. ;;
  18086. cxx*)
  18087. # Digital/Compaq C++
  18088. lt_prog_compiler_wl_CXX='-Wl,'
  18089. # Make sure the PIC flag is empty. It appears that all Alpha
  18090. # Linux and Compaq Tru64 Unix objects are PIC.
  18091. lt_prog_compiler_pic_CXX=
  18092. lt_prog_compiler_static_CXX='-non_shared'
  18093. ;;
  18094. *)
  18095. ;;
  18096. esac
  18097. ;;
  18098. psos*)
  18099. ;;
  18100. solaris*)
  18101. case $cc_basename in
  18102. CC*)
  18103. # Sun C++ 4.2, 5.x and Centerline C++
  18104. lt_prog_compiler_pic_CXX='-KPIC'
  18105. lt_prog_compiler_static_CXX='-Bstatic'
  18106. lt_prog_compiler_wl_CXX='-Qoption ld '
  18107. ;;
  18108. gcx*)
  18109. # Green Hills C++ Compiler
  18110. lt_prog_compiler_pic_CXX='-PIC'
  18111. ;;
  18112. *)
  18113. ;;
  18114. esac
  18115. ;;
  18116. sunos4*)
  18117. case $cc_basename in
  18118. CC*)
  18119. # Sun C++ 4.x
  18120. lt_prog_compiler_pic_CXX='-pic'
  18121. lt_prog_compiler_static_CXX='-Bstatic'
  18122. ;;
  18123. lcc*)
  18124. # Lucid
  18125. lt_prog_compiler_pic_CXX='-pic'
  18126. ;;
  18127. *)
  18128. ;;
  18129. esac
  18130. ;;
  18131. tandem*)
  18132. case $cc_basename in
  18133. NCC*)
  18134. # NonStop-UX NCC 3.20
  18135. lt_prog_compiler_pic_CXX='-KPIC'
  18136. ;;
  18137. *)
  18138. ;;
  18139. esac
  18140. ;;
  18141. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  18142. case $cc_basename in
  18143. CC*)
  18144. lt_prog_compiler_wl_CXX='-Wl,'
  18145. lt_prog_compiler_pic_CXX='-KPIC'
  18146. lt_prog_compiler_static_CXX='-Bstatic'
  18147. ;;
  18148. esac
  18149. ;;
  18150. vxworks*)
  18151. ;;
  18152. *)
  18153. lt_prog_compiler_can_build_shared_CXX=no
  18154. ;;
  18155. esac
  18156. fi
  18157. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  18158. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  18159. #
  18160. # Check to make sure the PIC flag actually works.
  18161. #
  18162. if test -n "$lt_prog_compiler_pic_CXX"; then
  18163. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  18164. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  18165. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  18166. echo $ECHO_N "(cached) $ECHO_C" >&6
  18167. else
  18168. lt_prog_compiler_pic_works_CXX=no
  18169. ac_outfile=conftest.$ac_objext
  18170. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  18171. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  18172. # Insert the option either (1) after the last *FLAGS variable, or
  18173. # (2) before a word containing "conftest.", or (3) at the end.
  18174. # Note that $ac_compile itself does not contain backslashes and begins
  18175. # with a dollar sign (not a hyphen), so the echo should work correctly.
  18176. # The option is referenced via a variable to avoid confusing sed.
  18177. lt_compile=`echo "$ac_compile" | $SED \
  18178. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18179. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18180. -e 's:$: $lt_compiler_flag:'`
  18181. (eval echo "\"\$as_me:20145: $lt_compile\"" >&5)
  18182. (eval "$lt_compile" 2>conftest.err)
  18183. ac_status=$?
  18184. cat conftest.err >&5
  18185. echo "$as_me:20149: \$? = $ac_status" >&5
  18186. if (exit $ac_status) && test -s "$ac_outfile"; then
  18187. # The compiler can only warn and ignore the option if not recognized
  18188. # So say no if there are warnings other than the usual output.
  18189. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  18190. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  18191. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  18192. lt_prog_compiler_pic_works_CXX=yes
  18193. fi
  18194. fi
  18195. $rm conftest*
  18196. fi
  18197. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  18198. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  18199. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  18200. case $lt_prog_compiler_pic_CXX in
  18201. "" | " "*) ;;
  18202. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  18203. esac
  18204. else
  18205. lt_prog_compiler_pic_CXX=
  18206. lt_prog_compiler_can_build_shared_CXX=no
  18207. fi
  18208. fi
  18209. case $host_os in
  18210. # For platforms which do not support PIC, -DPIC is meaningless:
  18211. *djgpp*)
  18212. lt_prog_compiler_pic_CXX=
  18213. ;;
  18214. *)
  18215. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  18216. ;;
  18217. esac
  18218. #
  18219. # Check to make sure the static flag actually works.
  18220. #
  18221. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  18222. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  18223. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  18224. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  18225. echo $ECHO_N "(cached) $ECHO_C" >&6
  18226. else
  18227. lt_prog_compiler_static_works_CXX=no
  18228. save_LDFLAGS="$LDFLAGS"
  18229. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  18230. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  18231. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  18232. # The linker can only warn and ignore the option if not recognized
  18233. # So say no if there are warnings
  18234. if test -s conftest.err; then
  18235. # Append any errors to the config.log.
  18236. cat conftest.err 1>&5
  18237. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  18238. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  18239. if diff conftest.exp conftest.er2 >/dev/null; then
  18240. lt_prog_compiler_static_works_CXX=yes
  18241. fi
  18242. else
  18243. lt_prog_compiler_static_works_CXX=yes
  18244. fi
  18245. fi
  18246. $rm conftest*
  18247. LDFLAGS="$save_LDFLAGS"
  18248. fi
  18249. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  18250. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  18251. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  18252. :
  18253. else
  18254. lt_prog_compiler_static_CXX=
  18255. fi
  18256. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  18257. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  18258. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  18259. echo $ECHO_N "(cached) $ECHO_C" >&6
  18260. else
  18261. lt_cv_prog_compiler_c_o_CXX=no
  18262. $rm -r conftest 2>/dev/null
  18263. mkdir conftest
  18264. cd conftest
  18265. mkdir out
  18266. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  18267. lt_compiler_flag="-o out/conftest2.$ac_objext"
  18268. # Insert the option either (1) after the last *FLAGS variable, or
  18269. # (2) before a word containing "conftest.", or (3) at the end.
  18270. # Note that $ac_compile itself does not contain backslashes and begins
  18271. # with a dollar sign (not a hyphen), so the echo should work correctly.
  18272. lt_compile=`echo "$ac_compile" | $SED \
  18273. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18274. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18275. -e 's:$: $lt_compiler_flag:'`
  18276. (eval echo "\"\$as_me:20249: $lt_compile\"" >&5)
  18277. (eval "$lt_compile" 2>out/conftest.err)
  18278. ac_status=$?
  18279. cat out/conftest.err >&5
  18280. echo "$as_me:20253: \$? = $ac_status" >&5
  18281. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  18282. then
  18283. # The compiler can only warn and ignore the option if not recognized
  18284. # So say no if there are warnings
  18285. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  18286. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  18287. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  18288. lt_cv_prog_compiler_c_o_CXX=yes
  18289. fi
  18290. fi
  18291. chmod u+w . 2>&5
  18292. $rm conftest*
  18293. # SGI C++ compiler will create directory out/ii_files/ for
  18294. # template instantiation
  18295. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  18296. $rm out/* && rmdir out
  18297. cd ..
  18298. rmdir conftest
  18299. $rm conftest*
  18300. fi
  18301. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  18302. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  18303. hard_links="nottested"
  18304. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  18305. # do not overwrite the value of need_locks provided by the user
  18306. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  18307. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  18308. hard_links=yes
  18309. $rm conftest*
  18310. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  18311. touch conftest.a
  18312. ln conftest.a conftest.b 2>&5 || hard_links=no
  18313. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  18314. { echo "$as_me:$LINENO: result: $hard_links" >&5
  18315. echo "${ECHO_T}$hard_links" >&6; }
  18316. if test "$hard_links" = no; then
  18317. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  18318. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  18319. need_locks=warn
  18320. fi
  18321. else
  18322. need_locks=no
  18323. fi
  18324. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  18325. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  18326. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  18327. case $host_os in
  18328. aix4* | aix5*)
  18329. # If we're using GNU nm, then we don't want the "-C" option.
  18330. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  18331. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  18332. 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'
  18333. else
  18334. 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'
  18335. fi
  18336. ;;
  18337. pw32*)
  18338. export_symbols_cmds_CXX="$ltdll_cmds"
  18339. ;;
  18340. cygwin* | mingw*)
  18341. 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'
  18342. ;;
  18343. *)
  18344. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  18345. ;;
  18346. esac
  18347. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  18348. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  18349. test "$ld_shlibs_CXX" = no && can_build_shared=no
  18350. #
  18351. # Do we need to explicitly link libc?
  18352. #
  18353. case "x$archive_cmds_need_lc_CXX" in
  18354. x|xyes)
  18355. # Assume -lc should be added
  18356. archive_cmds_need_lc_CXX=yes
  18357. if test "$enable_shared" = yes && test "$GCC" = yes; then
  18358. case $archive_cmds_CXX in
  18359. *'~'*)
  18360. # FIXME: we may have to deal with multi-command sequences.
  18361. ;;
  18362. '$CC '*)
  18363. # Test whether the compiler implicitly links with -lc since on some
  18364. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  18365. # to ld, don't add -lc before -lgcc.
  18366. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  18367. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  18368. $rm conftest*
  18369. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  18370. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18371. (eval $ac_compile) 2>&5
  18372. ac_status=$?
  18373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18374. (exit $ac_status); } 2>conftest.err; then
  18375. soname=conftest
  18376. lib=conftest
  18377. libobjs=conftest.$ac_objext
  18378. deplibs=
  18379. wl=$lt_prog_compiler_wl_CXX
  18380. pic_flag=$lt_prog_compiler_pic_CXX
  18381. compiler_flags=-v
  18382. linker_flags=-v
  18383. verstring=
  18384. output_objdir=.
  18385. libname=conftest
  18386. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  18387. allow_undefined_flag_CXX=
  18388. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  18389. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  18390. ac_status=$?
  18391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18392. (exit $ac_status); }
  18393. then
  18394. archive_cmds_need_lc_CXX=no
  18395. else
  18396. archive_cmds_need_lc_CXX=yes
  18397. fi
  18398. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  18399. else
  18400. cat conftest.err 1>&5
  18401. fi
  18402. $rm conftest*
  18403. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  18404. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  18405. ;;
  18406. esac
  18407. fi
  18408. ;;
  18409. esac
  18410. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  18411. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  18412. library_names_spec=
  18413. libname_spec='lib$name'
  18414. soname_spec=
  18415. shrext_cmds=".so"
  18416. postinstall_cmds=
  18417. postuninstall_cmds=
  18418. finish_cmds=
  18419. finish_eval=
  18420. shlibpath_var=
  18421. shlibpath_overrides_runpath=unknown
  18422. version_type=none
  18423. dynamic_linker="$host_os ld.so"
  18424. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  18425. if test "$GCC" = yes; then
  18426. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  18427. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  18428. # if the path contains ";" then we assume it to be the separator
  18429. # otherwise default to the standard path separator (i.e. ":") - it is
  18430. # assumed that no part of a normal pathname contains ";" but that should
  18431. # okay in the real world where ";" in dirpaths is itself problematic.
  18432. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  18433. else
  18434. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  18435. fi
  18436. else
  18437. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  18438. fi
  18439. need_lib_prefix=unknown
  18440. hardcode_into_libs=no
  18441. # when you set need_version to no, make sure it does not cause -set_version
  18442. # flags to be left without arguments
  18443. need_version=unknown
  18444. case $host_os in
  18445. aix3*)
  18446. version_type=linux
  18447. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  18448. shlibpath_var=LIBPATH
  18449. # AIX 3 has no versioning support, so we append a major version to the name.
  18450. soname_spec='${libname}${release}${shared_ext}$major'
  18451. ;;
  18452. aix4* | aix5*)
  18453. version_type=linux
  18454. need_lib_prefix=no
  18455. need_version=no
  18456. hardcode_into_libs=yes
  18457. if test "$host_cpu" = ia64; then
  18458. # AIX 5 supports IA64
  18459. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  18460. shlibpath_var=LD_LIBRARY_PATH
  18461. else
  18462. # With GCC up to 2.95.x, collect2 would create an import file
  18463. # for dependence libraries. The import file would start with
  18464. # the line `#! .'. This would cause the generated library to
  18465. # depend on `.', always an invalid library. This was fixed in
  18466. # development snapshots of GCC prior to 3.0.
  18467. case $host_os in
  18468. aix4 | aix4.[01] | aix4.[01].*)
  18469. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  18470. echo ' yes '
  18471. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  18472. :
  18473. else
  18474. can_build_shared=no
  18475. fi
  18476. ;;
  18477. esac
  18478. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  18479. # soname into executable. Probably we can add versioning support to
  18480. # collect2, so additional links can be useful in future.
  18481. if test "$aix_use_runtimelinking" = yes; then
  18482. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  18483. # instead of lib<name>.a to let people know that these are not
  18484. # typical AIX shared libraries.
  18485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18486. else
  18487. # We preserve .a as extension for shared libraries through AIX4.2
  18488. # and later when we are not doing run time linking.
  18489. library_names_spec='${libname}${release}.a $libname.a'
  18490. soname_spec='${libname}${release}${shared_ext}$major'
  18491. fi
  18492. shlibpath_var=LIBPATH
  18493. fi
  18494. ;;
  18495. amigaos*)
  18496. library_names_spec='$libname.ixlibrary $libname.a'
  18497. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  18498. 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'
  18499. ;;
  18500. beos*)
  18501. library_names_spec='${libname}${shared_ext}'
  18502. dynamic_linker="$host_os ld.so"
  18503. shlibpath_var=LIBRARY_PATH
  18504. ;;
  18505. bsdi[45]*)
  18506. version_type=linux
  18507. need_version=no
  18508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18509. soname_spec='${libname}${release}${shared_ext}$major'
  18510. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  18511. shlibpath_var=LD_LIBRARY_PATH
  18512. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  18513. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  18514. # the default ld.so.conf also contains /usr/contrib/lib and
  18515. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  18516. # libtool to hard-code these into programs
  18517. ;;
  18518. cygwin* | mingw* | pw32*)
  18519. version_type=windows
  18520. shrext_cmds=".dll"
  18521. need_version=no
  18522. need_lib_prefix=no
  18523. case $GCC,$host_os in
  18524. yes,cygwin* | yes,mingw* | yes,pw32*)
  18525. library_names_spec='$libname.dll.a'
  18526. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  18527. postinstall_cmds='base_file=`basename \${file}`~
  18528. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  18529. dldir=$destdir/`dirname \$dlpath`~
  18530. test -d \$dldir || mkdir -p \$dldir~
  18531. $install_prog $dir/$dlname \$dldir/$dlname~
  18532. chmod a+x \$dldir/$dlname'
  18533. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  18534. dlpath=$dir/\$dldll~
  18535. $rm \$dlpath'
  18536. shlibpath_overrides_runpath=yes
  18537. case $host_os in
  18538. cygwin*)
  18539. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  18540. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18541. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  18542. ;;
  18543. mingw*)
  18544. # MinGW DLLs use traditional 'lib' prefix
  18545. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18546. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  18547. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  18548. # It is most probably a Windows format PATH printed by
  18549. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  18550. # path with ; separators, and with drive letters. We can handle the
  18551. # drive letters (cygwin fileutils understands them), so leave them,
  18552. # especially as we might pass files found there to a mingw objdump,
  18553. # which wouldn't understand a cygwinified path. Ahh.
  18554. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  18555. else
  18556. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  18557. fi
  18558. ;;
  18559. pw32*)
  18560. # pw32 DLLs use 'pw' prefix rather than 'lib'
  18561. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18562. ;;
  18563. esac
  18564. ;;
  18565. *)
  18566. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  18567. ;;
  18568. esac
  18569. dynamic_linker='Win32 ld.exe'
  18570. # FIXME: first we should search . and the directory the executable is in
  18571. shlibpath_var=PATH
  18572. ;;
  18573. darwin* | rhapsody*)
  18574. dynamic_linker="$host_os dyld"
  18575. version_type=darwin
  18576. need_lib_prefix=no
  18577. need_version=no
  18578. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  18579. soname_spec='${libname}${release}${major}$shared_ext'
  18580. shlibpath_overrides_runpath=yes
  18581. shlibpath_var=DYLD_LIBRARY_PATH
  18582. shrext_cmds='.dylib'
  18583. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  18584. if test "$GCC" = yes; then
  18585. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  18586. else
  18587. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  18588. fi
  18589. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  18590. ;;
  18591. dgux*)
  18592. version_type=linux
  18593. need_lib_prefix=no
  18594. need_version=no
  18595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  18596. soname_spec='${libname}${release}${shared_ext}$major'
  18597. shlibpath_var=LD_LIBRARY_PATH
  18598. ;;
  18599. freebsd1*)
  18600. dynamic_linker=no
  18601. ;;
  18602. kfreebsd*-gnu)
  18603. version_type=linux
  18604. need_lib_prefix=no
  18605. need_version=no
  18606. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18607. soname_spec='${libname}${release}${shared_ext}$major'
  18608. shlibpath_var=LD_LIBRARY_PATH
  18609. shlibpath_overrides_runpath=no
  18610. hardcode_into_libs=yes
  18611. dynamic_linker='GNU ld.so'
  18612. ;;
  18613. freebsd* | dragonfly*)
  18614. # DragonFly does not have aout. When/if they implement a new
  18615. # versioning mechanism, adjust this.
  18616. if test -x /usr/bin/objformat; then
  18617. objformat=`/usr/bin/objformat`
  18618. else
  18619. case $host_os in
  18620. freebsd[123]*) objformat=aout ;;
  18621. *) objformat=elf ;;
  18622. esac
  18623. fi
  18624. version_type=freebsd-$objformat
  18625. case $version_type in
  18626. freebsd-elf*)
  18627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18628. need_version=no
  18629. need_lib_prefix=no
  18630. ;;
  18631. freebsd-*)
  18632. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  18633. need_version=yes
  18634. ;;
  18635. esac
  18636. shlibpath_var=LD_LIBRARY_PATH
  18637. case $host_os in
  18638. freebsd2*)
  18639. shlibpath_overrides_runpath=yes
  18640. ;;
  18641. freebsd3.[01]* | freebsdelf3.[01]*)
  18642. shlibpath_overrides_runpath=yes
  18643. hardcode_into_libs=yes
  18644. ;;
  18645. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  18646. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  18647. shlibpath_overrides_runpath=no
  18648. hardcode_into_libs=yes
  18649. ;;
  18650. freebsd*) # from 4.6 on
  18651. shlibpath_overrides_runpath=yes
  18652. hardcode_into_libs=yes
  18653. ;;
  18654. esac
  18655. ;;
  18656. gnu*)
  18657. version_type=linux
  18658. need_lib_prefix=no
  18659. need_version=no
  18660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  18661. soname_spec='${libname}${release}${shared_ext}$major'
  18662. shlibpath_var=LD_LIBRARY_PATH
  18663. hardcode_into_libs=yes
  18664. ;;
  18665. hpux9* | hpux10* | hpux11*)
  18666. # Give a soname corresponding to the major version so that dld.sl refuses to
  18667. # link against other versions.
  18668. version_type=sunos
  18669. need_lib_prefix=no
  18670. need_version=no
  18671. case $host_cpu in
  18672. ia64*)
  18673. shrext_cmds='.so'
  18674. hardcode_into_libs=yes
  18675. dynamic_linker="$host_os dld.so"
  18676. shlibpath_var=LD_LIBRARY_PATH
  18677. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18679. soname_spec='${libname}${release}${shared_ext}$major'
  18680. if test "X$HPUX_IA64_MODE" = X32; then
  18681. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  18682. else
  18683. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  18684. fi
  18685. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18686. ;;
  18687. hppa*64*)
  18688. shrext_cmds='.sl'
  18689. hardcode_into_libs=yes
  18690. dynamic_linker="$host_os dld.sl"
  18691. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  18692. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18694. soname_spec='${libname}${release}${shared_ext}$major'
  18695. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  18696. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18697. ;;
  18698. *)
  18699. shrext_cmds='.sl'
  18700. dynamic_linker="$host_os dld.sl"
  18701. shlibpath_var=SHLIB_PATH
  18702. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  18703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18704. soname_spec='${libname}${release}${shared_ext}$major'
  18705. ;;
  18706. esac
  18707. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  18708. postinstall_cmds='chmod 555 $lib'
  18709. ;;
  18710. interix3*)
  18711. version_type=linux
  18712. need_lib_prefix=no
  18713. need_version=no
  18714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18715. soname_spec='${libname}${release}${shared_ext}$major'
  18716. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  18717. shlibpath_var=LD_LIBRARY_PATH
  18718. shlibpath_overrides_runpath=no
  18719. hardcode_into_libs=yes
  18720. ;;
  18721. irix5* | irix6* | nonstopux*)
  18722. case $host_os in
  18723. nonstopux*) version_type=nonstopux ;;
  18724. *)
  18725. if test "$lt_cv_prog_gnu_ld" = yes; then
  18726. version_type=linux
  18727. else
  18728. version_type=irix
  18729. fi ;;
  18730. esac
  18731. need_lib_prefix=no
  18732. need_version=no
  18733. soname_spec='${libname}${release}${shared_ext}$major'
  18734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  18735. case $host_os in
  18736. irix5* | nonstopux*)
  18737. libsuff= shlibsuff=
  18738. ;;
  18739. *)
  18740. case $LD in # libtool.m4 will add one of these switches to LD
  18741. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  18742. libsuff= shlibsuff= libmagic=32-bit;;
  18743. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  18744. libsuff=32 shlibsuff=N32 libmagic=N32;;
  18745. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  18746. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  18747. *) libsuff= shlibsuff= libmagic=never-match;;
  18748. esac
  18749. ;;
  18750. esac
  18751. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  18752. shlibpath_overrides_runpath=no
  18753. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  18754. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  18755. hardcode_into_libs=yes
  18756. ;;
  18757. # No shared lib support for Linux oldld, aout, or coff.
  18758. linux*oldld* | linux*aout* | linux*coff*)
  18759. dynamic_linker=no
  18760. ;;
  18761. # This must be Linux ELF.
  18762. linux*)
  18763. version_type=linux
  18764. need_lib_prefix=no
  18765. need_version=no
  18766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18767. soname_spec='${libname}${release}${shared_ext}$major'
  18768. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  18769. shlibpath_var=LD_LIBRARY_PATH
  18770. shlibpath_overrides_runpath=no
  18771. # This implies no fast_install, which is unacceptable.
  18772. # Some rework will be needed to allow for fast_install
  18773. # before this can be enabled.
  18774. hardcode_into_libs=yes
  18775. # Append ld.so.conf contents to the search path
  18776. if test -f /etc/ld.so.conf; then
  18777. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  18778. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  18779. fi
  18780. # We used to test for /lib/ld.so.1 and disable shared libraries on
  18781. # powerpc, because MkLinux only supported shared libraries with the
  18782. # GNU dynamic linker. Since this was broken with cross compilers,
  18783. # most powerpc-linux boxes support dynamic linking these days and
  18784. # people can always --disable-shared, the test was removed, and we
  18785. # assume the GNU/Linux dynamic linker is in use.
  18786. dynamic_linker='GNU/Linux ld.so'
  18787. ;;
  18788. knetbsd*-gnu)
  18789. version_type=linux
  18790. need_lib_prefix=no
  18791. need_version=no
  18792. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18793. soname_spec='${libname}${release}${shared_ext}$major'
  18794. shlibpath_var=LD_LIBRARY_PATH
  18795. shlibpath_overrides_runpath=no
  18796. hardcode_into_libs=yes
  18797. dynamic_linker='GNU ld.so'
  18798. ;;
  18799. netbsd*)
  18800. version_type=sunos
  18801. need_lib_prefix=no
  18802. need_version=no
  18803. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18805. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18806. dynamic_linker='NetBSD (a.out) ld.so'
  18807. else
  18808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18809. soname_spec='${libname}${release}${shared_ext}$major'
  18810. dynamic_linker='NetBSD ld.elf_so'
  18811. fi
  18812. shlibpath_var=LD_LIBRARY_PATH
  18813. shlibpath_overrides_runpath=yes
  18814. hardcode_into_libs=yes
  18815. ;;
  18816. newsos6)
  18817. version_type=linux
  18818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18819. shlibpath_var=LD_LIBRARY_PATH
  18820. shlibpath_overrides_runpath=yes
  18821. ;;
  18822. nto-qnx*)
  18823. version_type=linux
  18824. need_lib_prefix=no
  18825. need_version=no
  18826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18827. soname_spec='${libname}${release}${shared_ext}$major'
  18828. shlibpath_var=LD_LIBRARY_PATH
  18829. shlibpath_overrides_runpath=yes
  18830. ;;
  18831. openbsd*)
  18832. version_type=sunos
  18833. sys_lib_dlsearch_path_spec="/usr/lib"
  18834. need_lib_prefix=no
  18835. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  18836. case $host_os in
  18837. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  18838. *) need_version=no ;;
  18839. esac
  18840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18841. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18842. shlibpath_var=LD_LIBRARY_PATH
  18843. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18844. case $host_os in
  18845. openbsd2.[89] | openbsd2.[89].*)
  18846. shlibpath_overrides_runpath=no
  18847. ;;
  18848. *)
  18849. shlibpath_overrides_runpath=yes
  18850. ;;
  18851. esac
  18852. else
  18853. shlibpath_overrides_runpath=yes
  18854. fi
  18855. ;;
  18856. os2*)
  18857. libname_spec='$name'
  18858. shrext_cmds=".dll"
  18859. need_lib_prefix=no
  18860. library_names_spec='$libname${shared_ext} $libname.a'
  18861. dynamic_linker='OS/2 ld.exe'
  18862. shlibpath_var=LIBPATH
  18863. ;;
  18864. osf3* | osf4* | osf5*)
  18865. version_type=osf
  18866. need_lib_prefix=no
  18867. need_version=no
  18868. soname_spec='${libname}${release}${shared_ext}$major'
  18869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18870. shlibpath_var=LD_LIBRARY_PATH
  18871. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  18872. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  18873. ;;
  18874. solaris*)
  18875. version_type=linux
  18876. need_lib_prefix=no
  18877. need_version=no
  18878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18879. soname_spec='${libname}${release}${shared_ext}$major'
  18880. shlibpath_var=LD_LIBRARY_PATH
  18881. shlibpath_overrides_runpath=yes
  18882. hardcode_into_libs=yes
  18883. # ldd complains unless libraries are executable
  18884. postinstall_cmds='chmod +x $lib'
  18885. ;;
  18886. sunos4*)
  18887. version_type=sunos
  18888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18889. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  18890. shlibpath_var=LD_LIBRARY_PATH
  18891. shlibpath_overrides_runpath=yes
  18892. if test "$with_gnu_ld" = yes; then
  18893. need_lib_prefix=no
  18894. fi
  18895. need_version=yes
  18896. ;;
  18897. sysv4 | sysv4.3*)
  18898. version_type=linux
  18899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18900. soname_spec='${libname}${release}${shared_ext}$major'
  18901. shlibpath_var=LD_LIBRARY_PATH
  18902. case $host_vendor in
  18903. sni)
  18904. shlibpath_overrides_runpath=no
  18905. need_lib_prefix=no
  18906. export_dynamic_flag_spec='${wl}-Blargedynsym'
  18907. runpath_var=LD_RUN_PATH
  18908. ;;
  18909. siemens)
  18910. need_lib_prefix=no
  18911. ;;
  18912. motorola)
  18913. need_lib_prefix=no
  18914. need_version=no
  18915. shlibpath_overrides_runpath=no
  18916. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  18917. ;;
  18918. esac
  18919. ;;
  18920. sysv4*MP*)
  18921. if test -d /usr/nec ;then
  18922. version_type=linux
  18923. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  18924. soname_spec='$libname${shared_ext}.$major'
  18925. shlibpath_var=LD_LIBRARY_PATH
  18926. fi
  18927. ;;
  18928. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18929. version_type=freebsd-elf
  18930. need_lib_prefix=no
  18931. need_version=no
  18932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18933. soname_spec='${libname}${release}${shared_ext}$major'
  18934. shlibpath_var=LD_LIBRARY_PATH
  18935. hardcode_into_libs=yes
  18936. if test "$with_gnu_ld" = yes; then
  18937. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  18938. shlibpath_overrides_runpath=no
  18939. else
  18940. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  18941. shlibpath_overrides_runpath=yes
  18942. case $host_os in
  18943. sco3.2v5*)
  18944. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  18945. ;;
  18946. esac
  18947. fi
  18948. sys_lib_dlsearch_path_spec='/usr/lib'
  18949. ;;
  18950. uts4*)
  18951. version_type=linux
  18952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18953. soname_spec='${libname}${release}${shared_ext}$major'
  18954. shlibpath_var=LD_LIBRARY_PATH
  18955. ;;
  18956. *)
  18957. dynamic_linker=no
  18958. ;;
  18959. esac
  18960. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  18961. echo "${ECHO_T}$dynamic_linker" >&6; }
  18962. test "$dynamic_linker" = no && can_build_shared=no
  18963. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  18964. if test "$GCC" = yes; then
  18965. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  18966. fi
  18967. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  18968. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  18969. hardcode_action_CXX=
  18970. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  18971. test -n "$runpath_var_CXX" || \
  18972. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  18973. # We can hardcode non-existant directories.
  18974. if test "$hardcode_direct_CXX" != no &&
  18975. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  18976. # have to relink, otherwise we might link with an installed library
  18977. # when we should be linking with a yet-to-be-installed one
  18978. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  18979. test "$hardcode_minus_L_CXX" != no; then
  18980. # Linking always hardcodes the temporary library directory.
  18981. hardcode_action_CXX=relink
  18982. else
  18983. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  18984. hardcode_action_CXX=immediate
  18985. fi
  18986. else
  18987. # We cannot hardcode anything, or else we can only hardcode existing
  18988. # directories.
  18989. hardcode_action_CXX=unsupported
  18990. fi
  18991. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  18992. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  18993. if test "$hardcode_action_CXX" = relink; then
  18994. # Fast installation is not supported
  18995. enable_fast_install=no
  18996. elif test "$shlibpath_overrides_runpath" = yes ||
  18997. test "$enable_shared" = no; then
  18998. # Fast installation is not necessary
  18999. enable_fast_install=needless
  19000. fi
  19001. # The else clause should only fire when bootstrapping the
  19002. # libtool distribution, otherwise you forgot to ship ltmain.sh
  19003. # with your package, and you will get complaints that there are
  19004. # no rules to generate ltmain.sh.
  19005. if test -f "$ltmain"; then
  19006. # See if we are running on zsh, and set the options which allow our commands through
  19007. # without removal of \ escapes.
  19008. if test -n "${ZSH_VERSION+set}" ; then
  19009. setopt NO_GLOB_SUBST
  19010. fi
  19011. # Now quote all the things that may contain metacharacters while being
  19012. # careful not to overquote the AC_SUBSTed values. We take copies of the
  19013. # variables and quote the copies for generation of the libtool script.
  19014. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  19015. SED SHELL STRIP \
  19016. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  19017. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  19018. deplibs_check_method reload_flag reload_cmds need_locks \
  19019. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  19020. lt_cv_sys_global_symbol_to_c_name_address \
  19021. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  19022. old_postinstall_cmds old_postuninstall_cmds \
  19023. compiler_CXX \
  19024. CC_CXX \
  19025. LD_CXX \
  19026. lt_prog_compiler_wl_CXX \
  19027. lt_prog_compiler_pic_CXX \
  19028. lt_prog_compiler_static_CXX \
  19029. lt_prog_compiler_no_builtin_flag_CXX \
  19030. export_dynamic_flag_spec_CXX \
  19031. thread_safe_flag_spec_CXX \
  19032. whole_archive_flag_spec_CXX \
  19033. enable_shared_with_static_runtimes_CXX \
  19034. old_archive_cmds_CXX \
  19035. old_archive_from_new_cmds_CXX \
  19036. predep_objects_CXX \
  19037. postdep_objects_CXX \
  19038. predeps_CXX \
  19039. postdeps_CXX \
  19040. compiler_lib_search_path_CXX \
  19041. archive_cmds_CXX \
  19042. archive_expsym_cmds_CXX \
  19043. postinstall_cmds_CXX \
  19044. postuninstall_cmds_CXX \
  19045. old_archive_from_expsyms_cmds_CXX \
  19046. allow_undefined_flag_CXX \
  19047. no_undefined_flag_CXX \
  19048. export_symbols_cmds_CXX \
  19049. hardcode_libdir_flag_spec_CXX \
  19050. hardcode_libdir_flag_spec_ld_CXX \
  19051. hardcode_libdir_separator_CXX \
  19052. hardcode_automatic_CXX \
  19053. module_cmds_CXX \
  19054. module_expsym_cmds_CXX \
  19055. lt_cv_prog_compiler_c_o_CXX \
  19056. exclude_expsyms_CXX \
  19057. include_expsyms_CXX; do
  19058. case $var in
  19059. old_archive_cmds_CXX | \
  19060. old_archive_from_new_cmds_CXX | \
  19061. archive_cmds_CXX | \
  19062. archive_expsym_cmds_CXX | \
  19063. module_cmds_CXX | \
  19064. module_expsym_cmds_CXX | \
  19065. old_archive_from_expsyms_cmds_CXX | \
  19066. export_symbols_cmds_CXX | \
  19067. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  19068. postinstall_cmds | postuninstall_cmds | \
  19069. old_postinstall_cmds | old_postuninstall_cmds | \
  19070. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  19071. # Double-quote double-evaled strings.
  19072. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  19073. ;;
  19074. *)
  19075. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  19076. ;;
  19077. esac
  19078. done
  19079. case $lt_echo in
  19080. *'\$0 --fallback-echo"')
  19081. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  19082. ;;
  19083. esac
  19084. cfgfile="$ofile"
  19085. cat <<__EOF__ >> "$cfgfile"
  19086. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  19087. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19088. # Shell to use when invoking shell scripts.
  19089. SHELL=$lt_SHELL
  19090. # Whether or not to build shared libraries.
  19091. build_libtool_libs=$enable_shared
  19092. # Whether or not to build static libraries.
  19093. build_old_libs=$enable_static
  19094. # Whether or not to add -lc for building shared libraries.
  19095. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19096. # Whether or not to disallow shared libs when runtime libs are static
  19097. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19098. # Whether or not to optimize for fast installation.
  19099. fast_install=$enable_fast_install
  19100. # The host system.
  19101. host_alias=$host_alias
  19102. host=$host
  19103. host_os=$host_os
  19104. # The build system.
  19105. build_alias=$build_alias
  19106. build=$build
  19107. build_os=$build_os
  19108. # An echo program that does not interpret backslashes.
  19109. echo=$lt_echo
  19110. # The archiver.
  19111. AR=$lt_AR
  19112. AR_FLAGS=$lt_AR_FLAGS
  19113. # A C compiler.
  19114. LTCC=$lt_LTCC
  19115. # LTCC compiler flags.
  19116. LTCFLAGS=$lt_LTCFLAGS
  19117. # A language-specific compiler.
  19118. CC=$lt_compiler_CXX
  19119. # Is the compiler the GNU C compiler?
  19120. with_gcc=$GCC_CXX
  19121. # An ERE matcher.
  19122. EGREP=$lt_EGREP
  19123. # The linker used to build libraries.
  19124. LD=$lt_LD_CXX
  19125. # Whether we need hard or soft links.
  19126. LN_S=$lt_LN_S
  19127. # A BSD-compatible nm program.
  19128. NM=$lt_NM
  19129. # A symbol stripping program
  19130. STRIP=$lt_STRIP
  19131. # Used to examine libraries when file_magic_cmd begins "file"
  19132. MAGIC_CMD=$MAGIC_CMD
  19133. # Used on cygwin: DLL creation program.
  19134. DLLTOOL="$DLLTOOL"
  19135. # Used on cygwin: object dumper.
  19136. OBJDUMP="$OBJDUMP"
  19137. # Used on cygwin: assembler.
  19138. AS="$AS"
  19139. # The name of the directory that contains temporary libtool files.
  19140. objdir=$objdir
  19141. # How to create reloadable object files.
  19142. reload_flag=$lt_reload_flag
  19143. reload_cmds=$lt_reload_cmds
  19144. # How to pass a linker flag through the compiler.
  19145. wl=$lt_lt_prog_compiler_wl_CXX
  19146. # Object file suffix (normally "o").
  19147. objext="$ac_objext"
  19148. # Old archive suffix (normally "a").
  19149. libext="$libext"
  19150. # Shared library suffix (normally ".so").
  19151. shrext_cmds='$shrext_cmds'
  19152. # Executable file suffix (normally "").
  19153. exeext="$exeext"
  19154. # Additional compiler flags for building library objects.
  19155. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19156. pic_mode=$pic_mode
  19157. # What is the maximum length of a command?
  19158. max_cmd_len=$lt_cv_sys_max_cmd_len
  19159. # Does compiler simultaneously support -c and -o options?
  19160. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19161. # Must we lock files when doing compilation?
  19162. need_locks=$lt_need_locks
  19163. # Do we need the lib prefix for modules?
  19164. need_lib_prefix=$need_lib_prefix
  19165. # Do we need a version for libraries?
  19166. need_version=$need_version
  19167. # Whether dlopen is supported.
  19168. dlopen_support=$enable_dlopen
  19169. # Whether dlopen of programs is supported.
  19170. dlopen_self=$enable_dlopen_self
  19171. # Whether dlopen of statically linked programs is supported.
  19172. dlopen_self_static=$enable_dlopen_self_static
  19173. # Compiler flag to prevent dynamic linking.
  19174. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19175. # Compiler flag to turn off builtin functions.
  19176. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19177. # Compiler flag to allow reflexive dlopens.
  19178. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19179. # Compiler flag to generate shared objects directly from archives.
  19180. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19181. # Compiler flag to generate thread-safe objects.
  19182. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  19183. # Library versioning type.
  19184. version_type=$version_type
  19185. # Format of library name prefix.
  19186. libname_spec=$lt_libname_spec
  19187. # List of archive names. First name is the real one, the rest are links.
  19188. # The last name is the one that the linker finds with -lNAME.
  19189. library_names_spec=$lt_library_names_spec
  19190. # The coded name of the library, if different from the real name.
  19191. soname_spec=$lt_soname_spec
  19192. # Commands used to build and install an old-style archive.
  19193. RANLIB=$lt_RANLIB
  19194. old_archive_cmds=$lt_old_archive_cmds_CXX
  19195. old_postinstall_cmds=$lt_old_postinstall_cmds
  19196. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19197. # Create an old-style archive from a shared archive.
  19198. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19199. # Create a temporary old-style archive to link instead of a shared archive.
  19200. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19201. # Commands used to build and install a shared archive.
  19202. archive_cmds=$lt_archive_cmds_CXX
  19203. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19204. postinstall_cmds=$lt_postinstall_cmds
  19205. postuninstall_cmds=$lt_postuninstall_cmds
  19206. # Commands used to build a loadable module (assumed same as above if empty)
  19207. module_cmds=$lt_module_cmds_CXX
  19208. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19209. # Commands to strip libraries.
  19210. old_striplib=$lt_old_striplib
  19211. striplib=$lt_striplib
  19212. # Dependencies to place before the objects being linked to create a
  19213. # shared library.
  19214. predep_objects=$lt_predep_objects_CXX
  19215. # Dependencies to place after the objects being linked to create a
  19216. # shared library.
  19217. postdep_objects=$lt_postdep_objects_CXX
  19218. # Dependencies to place before the objects being linked to create a
  19219. # shared library.
  19220. predeps=$lt_predeps_CXX
  19221. # Dependencies to place after the objects being linked to create a
  19222. # shared library.
  19223. postdeps=$lt_postdeps_CXX
  19224. # The library search path used internally by the compiler when linking
  19225. # a shared library.
  19226. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19227. # Method to check whether dependent libraries are shared objects.
  19228. deplibs_check_method=$lt_deplibs_check_method
  19229. # Command to use when deplibs_check_method == file_magic.
  19230. file_magic_cmd=$lt_file_magic_cmd
  19231. # Flag that allows shared libraries with undefined symbols to be built.
  19232. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19233. # Flag that forces no undefined symbols.
  19234. no_undefined_flag=$lt_no_undefined_flag_CXX
  19235. # Commands used to finish a libtool library installation in a directory.
  19236. finish_cmds=$lt_finish_cmds
  19237. # Same as above, but a single script fragment to be evaled but not shown.
  19238. finish_eval=$lt_finish_eval
  19239. # Take the output of nm and produce a listing of raw symbols and C names.
  19240. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19241. # Transform the output of nm in a proper C declaration
  19242. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19243. # Transform the output of nm in a C name address pair
  19244. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19245. # This is the shared library runtime path variable.
  19246. runpath_var=$runpath_var
  19247. # This is the shared library path variable.
  19248. shlibpath_var=$shlibpath_var
  19249. # Is shlibpath searched before the hard-coded library search path?
  19250. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19251. # How to hardcode a shared library path into an executable.
  19252. hardcode_action=$hardcode_action_CXX
  19253. # Whether we should hardcode library paths into libraries.
  19254. hardcode_into_libs=$hardcode_into_libs
  19255. # Flag to hardcode \$libdir into a binary during linking.
  19256. # This must work even if \$libdir does not exist.
  19257. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19258. # If ld is used when linking, flag to hardcode \$libdir into
  19259. # a binary during linking. This must work even if \$libdir does
  19260. # not exist.
  19261. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  19262. # Whether we need a single -rpath flag with a separated argument.
  19263. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19264. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  19265. # resulting binary.
  19266. hardcode_direct=$hardcode_direct_CXX
  19267. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  19268. # resulting binary.
  19269. hardcode_minus_L=$hardcode_minus_L_CXX
  19270. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  19271. # the resulting binary.
  19272. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19273. # Set to yes if building a shared library automatically hardcodes DIR into the library
  19274. # and all subsequent libraries and executables linked against it.
  19275. hardcode_automatic=$hardcode_automatic_CXX
  19276. # Variables whose values should be saved in libtool wrapper scripts and
  19277. # restored at relink time.
  19278. variables_saved_for_relink="$variables_saved_for_relink"
  19279. # Whether libtool must link a program against all its dependency libraries.
  19280. link_all_deplibs=$link_all_deplibs_CXX
  19281. # Compile-time system search path for libraries
  19282. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19283. # Run-time system search path for libraries
  19284. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19285. # Fix the shell variable \$srcfile for the compiler.
  19286. fix_srcfile_path="$fix_srcfile_path_CXX"
  19287. # Set to yes if exported symbols are required.
  19288. always_export_symbols=$always_export_symbols_CXX
  19289. # The commands to list exported symbols.
  19290. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19291. # The commands to extract the exported symbol list from a shared archive.
  19292. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19293. # Symbols that should not be listed in the preloaded symbols.
  19294. exclude_expsyms=$lt_exclude_expsyms_CXX
  19295. # Symbols that must always be exported.
  19296. include_expsyms=$lt_include_expsyms_CXX
  19297. # ### END LIBTOOL TAG CONFIG: $tagname
  19298. __EOF__
  19299. else
  19300. # If there is no Makefile yet, we rely on a make rule to execute
  19301. # `config.status --recheck' to rerun these tests and create the
  19302. # libtool script then.
  19303. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  19304. if test -f "$ltmain_in"; then
  19305. test -f Makefile && make "$ltmain"
  19306. fi
  19307. fi
  19308. ac_ext=c
  19309. ac_cpp='$CPP $CPPFLAGS'
  19310. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19311. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19312. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19313. CC=$lt_save_CC
  19314. LDCXX=$LD
  19315. LD=$lt_save_LD
  19316. GCC=$lt_save_GCC
  19317. with_gnu_ldcxx=$with_gnu_ld
  19318. with_gnu_ld=$lt_save_with_gnu_ld
  19319. lt_cv_path_LDCXX=$lt_cv_path_LD
  19320. lt_cv_path_LD=$lt_save_path_LD
  19321. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  19322. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  19323. else
  19324. tagname=""
  19325. fi
  19326. ;;
  19327. F77)
  19328. if test -n "$F77" && test "X$F77" != "Xno"; then
  19329. ac_ext=f
  19330. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  19331. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19332. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  19333. archive_cmds_need_lc_F77=no
  19334. allow_undefined_flag_F77=
  19335. always_export_symbols_F77=no
  19336. archive_expsym_cmds_F77=
  19337. export_dynamic_flag_spec_F77=
  19338. hardcode_direct_F77=no
  19339. hardcode_libdir_flag_spec_F77=
  19340. hardcode_libdir_flag_spec_ld_F77=
  19341. hardcode_libdir_separator_F77=
  19342. hardcode_minus_L_F77=no
  19343. hardcode_automatic_F77=no
  19344. module_cmds_F77=
  19345. module_expsym_cmds_F77=
  19346. link_all_deplibs_F77=unknown
  19347. old_archive_cmds_F77=$old_archive_cmds
  19348. no_undefined_flag_F77=
  19349. whole_archive_flag_spec_F77=
  19350. enable_shared_with_static_runtimes_F77=no
  19351. # Source file extension for f77 test sources.
  19352. ac_ext=f
  19353. # Object file extension for compiled f77 test sources.
  19354. objext=o
  19355. objext_F77=$objext
  19356. # Code to be used in simple compile tests
  19357. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  19358. # Code to be used in simple link tests
  19359. lt_simple_link_test_code=" program t\n end\n"
  19360. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  19361. # If no C compiler was specified, use CC.
  19362. LTCC=${LTCC-"$CC"}
  19363. # If no C compiler flags were specified, use CFLAGS.
  19364. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  19365. # Allow CC to be a program name with arguments.
  19366. compiler=$CC
  19367. # save warnings/boilerplate of simple test code
  19368. ac_outfile=conftest.$ac_objext
  19369. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  19370. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  19371. _lt_compiler_boilerplate=`cat conftest.err`
  19372. $rm conftest*
  19373. ac_outfile=conftest.$ac_objext
  19374. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  19375. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  19376. _lt_linker_boilerplate=`cat conftest.err`
  19377. $rm conftest*
  19378. # Allow CC to be a program name with arguments.
  19379. lt_save_CC="$CC"
  19380. CC=${F77-"f77"}
  19381. compiler=$CC
  19382. compiler_F77=$CC
  19383. for cc_temp in $compiler""; do
  19384. case $cc_temp in
  19385. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19386. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19387. \-*) ;;
  19388. *) break;;
  19389. esac
  19390. done
  19391. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  19392. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  19393. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  19394. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  19395. echo "${ECHO_T}$can_build_shared" >&6; }
  19396. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  19397. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  19398. test "$can_build_shared" = "no" && enable_shared=no
  19399. # On AIX, shared libraries and static libraries use the same namespace, and
  19400. # are all built from PIC.
  19401. case $host_os in
  19402. aix3*)
  19403. test "$enable_shared" = yes && enable_static=no
  19404. if test -n "$RANLIB"; then
  19405. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  19406. postinstall_cmds='$RANLIB $lib'
  19407. fi
  19408. ;;
  19409. aix4* | aix5*)
  19410. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  19411. test "$enable_shared" = yes && enable_static=no
  19412. fi
  19413. ;;
  19414. esac
  19415. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  19416. echo "${ECHO_T}$enable_shared" >&6; }
  19417. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  19418. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  19419. # Make sure either enable_shared or enable_static is yes.
  19420. test "$enable_shared" = yes || enable_static=yes
  19421. { echo "$as_me:$LINENO: result: $enable_static" >&5
  19422. echo "${ECHO_T}$enable_static" >&6; }
  19423. GCC_F77="$G77"
  19424. LD_F77="$LD"
  19425. lt_prog_compiler_wl_F77=
  19426. lt_prog_compiler_pic_F77=
  19427. lt_prog_compiler_static_F77=
  19428. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  19429. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  19430. if test "$GCC" = yes; then
  19431. lt_prog_compiler_wl_F77='-Wl,'
  19432. lt_prog_compiler_static_F77='-static'
  19433. case $host_os in
  19434. aix*)
  19435. # All AIX code is PIC.
  19436. if test "$host_cpu" = ia64; then
  19437. # AIX 5 now supports IA64 processor
  19438. lt_prog_compiler_static_F77='-Bstatic'
  19439. fi
  19440. ;;
  19441. amigaos*)
  19442. # FIXME: we need at least 68020 code to build shared libraries, but
  19443. # adding the `-m68020' flag to GCC prevents building anything better,
  19444. # like `-m68040'.
  19445. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  19446. ;;
  19447. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  19448. # PIC is the default for these OSes.
  19449. ;;
  19450. mingw* | pw32* | os2*)
  19451. # This hack is so that the source file can tell whether it is being
  19452. # built for inclusion in a dll (and should export symbols for example).
  19453. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  19454. ;;
  19455. darwin* | rhapsody*)
  19456. # PIC is the default on this platform
  19457. # Common symbols not allowed in MH_DYLIB files
  19458. lt_prog_compiler_pic_F77='-fno-common'
  19459. ;;
  19460. interix3*)
  19461. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  19462. # Instead, we relocate shared libraries at runtime.
  19463. ;;
  19464. msdosdjgpp*)
  19465. # Just because we use GCC doesn't mean we suddenly get shared libraries
  19466. # on systems that don't support them.
  19467. lt_prog_compiler_can_build_shared_F77=no
  19468. enable_shared=no
  19469. ;;
  19470. sysv4*MP*)
  19471. if test -d /usr/nec; then
  19472. lt_prog_compiler_pic_F77=-Kconform_pic
  19473. fi
  19474. ;;
  19475. hpux*)
  19476. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19477. # not for PA HP-UX.
  19478. case $host_cpu in
  19479. hppa*64*|ia64*)
  19480. # +Z the default
  19481. ;;
  19482. *)
  19483. lt_prog_compiler_pic_F77='-fPIC'
  19484. ;;
  19485. esac
  19486. ;;
  19487. *)
  19488. lt_prog_compiler_pic_F77='-fPIC'
  19489. ;;
  19490. esac
  19491. else
  19492. # PORTME Check for flag to pass linker flags through the system compiler.
  19493. case $host_os in
  19494. aix*)
  19495. lt_prog_compiler_wl_F77='-Wl,'
  19496. if test "$host_cpu" = ia64; then
  19497. # AIX 5 now supports IA64 processor
  19498. lt_prog_compiler_static_F77='-Bstatic'
  19499. else
  19500. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  19501. fi
  19502. ;;
  19503. darwin*)
  19504. # PIC is the default on this platform
  19505. # Common symbols not allowed in MH_DYLIB files
  19506. case $cc_basename in
  19507. xlc*)
  19508. lt_prog_compiler_pic_F77='-qnocommon'
  19509. lt_prog_compiler_wl_F77='-Wl,'
  19510. ;;
  19511. esac
  19512. ;;
  19513. mingw* | pw32* | os2*)
  19514. # This hack is so that the source file can tell whether it is being
  19515. # built for inclusion in a dll (and should export symbols for example).
  19516. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  19517. ;;
  19518. hpux9* | hpux10* | hpux11*)
  19519. lt_prog_compiler_wl_F77='-Wl,'
  19520. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19521. # not for PA HP-UX.
  19522. case $host_cpu in
  19523. hppa*64*|ia64*)
  19524. # +Z the default
  19525. ;;
  19526. *)
  19527. lt_prog_compiler_pic_F77='+Z'
  19528. ;;
  19529. esac
  19530. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  19531. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  19532. ;;
  19533. irix5* | irix6* | nonstopux*)
  19534. lt_prog_compiler_wl_F77='-Wl,'
  19535. # PIC (with -KPIC) is the default.
  19536. lt_prog_compiler_static_F77='-non_shared'
  19537. ;;
  19538. newsos6)
  19539. lt_prog_compiler_pic_F77='-KPIC'
  19540. lt_prog_compiler_static_F77='-Bstatic'
  19541. ;;
  19542. linux*)
  19543. case $cc_basename in
  19544. icc* | ecc*)
  19545. lt_prog_compiler_wl_F77='-Wl,'
  19546. lt_prog_compiler_pic_F77='-KPIC'
  19547. lt_prog_compiler_static_F77='-static'
  19548. ;;
  19549. pgcc* | pgf77* | pgf90* | pgf95*)
  19550. # Portland Group compilers (*not* the Pentium gcc compiler,
  19551. # which looks to be a dead project)
  19552. lt_prog_compiler_wl_F77='-Wl,'
  19553. lt_prog_compiler_pic_F77='-fpic'
  19554. lt_prog_compiler_static_F77='-Bstatic'
  19555. ;;
  19556. ccc*)
  19557. lt_prog_compiler_wl_F77='-Wl,'
  19558. # All Alpha code is PIC.
  19559. lt_prog_compiler_static_F77='-non_shared'
  19560. ;;
  19561. esac
  19562. ;;
  19563. osf3* | osf4* | osf5*)
  19564. lt_prog_compiler_wl_F77='-Wl,'
  19565. # All OSF/1 code is PIC.
  19566. lt_prog_compiler_static_F77='-non_shared'
  19567. ;;
  19568. solaris*)
  19569. lt_prog_compiler_pic_F77='-KPIC'
  19570. lt_prog_compiler_static_F77='-Bstatic'
  19571. case $cc_basename in
  19572. f77* | f90* | f95*)
  19573. lt_prog_compiler_wl_F77='-Qoption ld ';;
  19574. *)
  19575. lt_prog_compiler_wl_F77='-Wl,';;
  19576. esac
  19577. ;;
  19578. sunos4*)
  19579. lt_prog_compiler_wl_F77='-Qoption ld '
  19580. lt_prog_compiler_pic_F77='-PIC'
  19581. lt_prog_compiler_static_F77='-Bstatic'
  19582. ;;
  19583. sysv4 | sysv4.2uw2* | sysv4.3*)
  19584. lt_prog_compiler_wl_F77='-Wl,'
  19585. lt_prog_compiler_pic_F77='-KPIC'
  19586. lt_prog_compiler_static_F77='-Bstatic'
  19587. ;;
  19588. sysv4*MP*)
  19589. if test -d /usr/nec ;then
  19590. lt_prog_compiler_pic_F77='-Kconform_pic'
  19591. lt_prog_compiler_static_F77='-Bstatic'
  19592. fi
  19593. ;;
  19594. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  19595. lt_prog_compiler_wl_F77='-Wl,'
  19596. lt_prog_compiler_pic_F77='-KPIC'
  19597. lt_prog_compiler_static_F77='-Bstatic'
  19598. ;;
  19599. unicos*)
  19600. lt_prog_compiler_wl_F77='-Wl,'
  19601. lt_prog_compiler_can_build_shared_F77=no
  19602. ;;
  19603. uts4*)
  19604. lt_prog_compiler_pic_F77='-pic'
  19605. lt_prog_compiler_static_F77='-Bstatic'
  19606. ;;
  19607. *)
  19608. lt_prog_compiler_can_build_shared_F77=no
  19609. ;;
  19610. esac
  19611. fi
  19612. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  19613. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  19614. #
  19615. # Check to make sure the PIC flag actually works.
  19616. #
  19617. if test -n "$lt_prog_compiler_pic_F77"; then
  19618. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  19619. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  19620. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  19621. echo $ECHO_N "(cached) $ECHO_C" >&6
  19622. else
  19623. lt_prog_compiler_pic_works_F77=no
  19624. ac_outfile=conftest.$ac_objext
  19625. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  19626. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  19627. # Insert the option either (1) after the last *FLAGS variable, or
  19628. # (2) before a word containing "conftest.", or (3) at the end.
  19629. # Note that $ac_compile itself does not contain backslashes and begins
  19630. # with a dollar sign (not a hyphen), so the echo should work correctly.
  19631. # The option is referenced via a variable to avoid confusing sed.
  19632. lt_compile=`echo "$ac_compile" | $SED \
  19633. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19634. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19635. -e 's:$: $lt_compiler_flag:'`
  19636. (eval echo "\"\$as_me:21819: $lt_compile\"" >&5)
  19637. (eval "$lt_compile" 2>conftest.err)
  19638. ac_status=$?
  19639. cat conftest.err >&5
  19640. echo "$as_me:21823: \$? = $ac_status" >&5
  19641. if (exit $ac_status) && test -s "$ac_outfile"; then
  19642. # The compiler can only warn and ignore the option if not recognized
  19643. # So say no if there are warnings other than the usual output.
  19644. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  19645. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19646. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  19647. lt_prog_compiler_pic_works_F77=yes
  19648. fi
  19649. fi
  19650. $rm conftest*
  19651. fi
  19652. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  19653. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  19654. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  19655. case $lt_prog_compiler_pic_F77 in
  19656. "" | " "*) ;;
  19657. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  19658. esac
  19659. else
  19660. lt_prog_compiler_pic_F77=
  19661. lt_prog_compiler_can_build_shared_F77=no
  19662. fi
  19663. fi
  19664. case $host_os in
  19665. # For platforms which do not support PIC, -DPIC is meaningless:
  19666. *djgpp*)
  19667. lt_prog_compiler_pic_F77=
  19668. ;;
  19669. *)
  19670. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  19671. ;;
  19672. esac
  19673. #
  19674. # Check to make sure the static flag actually works.
  19675. #
  19676. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  19677. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  19678. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  19679. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  19680. echo $ECHO_N "(cached) $ECHO_C" >&6
  19681. else
  19682. lt_prog_compiler_static_works_F77=no
  19683. save_LDFLAGS="$LDFLAGS"
  19684. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  19685. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  19686. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  19687. # The linker can only warn and ignore the option if not recognized
  19688. # So say no if there are warnings
  19689. if test -s conftest.err; then
  19690. # Append any errors to the config.log.
  19691. cat conftest.err 1>&5
  19692. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  19693. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19694. if diff conftest.exp conftest.er2 >/dev/null; then
  19695. lt_prog_compiler_static_works_F77=yes
  19696. fi
  19697. else
  19698. lt_prog_compiler_static_works_F77=yes
  19699. fi
  19700. fi
  19701. $rm conftest*
  19702. LDFLAGS="$save_LDFLAGS"
  19703. fi
  19704. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  19705. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  19706. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  19707. :
  19708. else
  19709. lt_prog_compiler_static_F77=
  19710. fi
  19711. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  19712. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  19713. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  19714. echo $ECHO_N "(cached) $ECHO_C" >&6
  19715. else
  19716. lt_cv_prog_compiler_c_o_F77=no
  19717. $rm -r conftest 2>/dev/null
  19718. mkdir conftest
  19719. cd conftest
  19720. mkdir out
  19721. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  19722. lt_compiler_flag="-o out/conftest2.$ac_objext"
  19723. # Insert the option either (1) after the last *FLAGS variable, or
  19724. # (2) before a word containing "conftest.", or (3) at the end.
  19725. # Note that $ac_compile itself does not contain backslashes and begins
  19726. # with a dollar sign (not a hyphen), so the echo should work correctly.
  19727. lt_compile=`echo "$ac_compile" | $SED \
  19728. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19729. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19730. -e 's:$: $lt_compiler_flag:'`
  19731. (eval echo "\"\$as_me:21923: $lt_compile\"" >&5)
  19732. (eval "$lt_compile" 2>out/conftest.err)
  19733. ac_status=$?
  19734. cat out/conftest.err >&5
  19735. echo "$as_me:21927: \$? = $ac_status" >&5
  19736. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  19737. then
  19738. # The compiler can only warn and ignore the option if not recognized
  19739. # So say no if there are warnings
  19740. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  19741. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  19742. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  19743. lt_cv_prog_compiler_c_o_F77=yes
  19744. fi
  19745. fi
  19746. chmod u+w . 2>&5
  19747. $rm conftest*
  19748. # SGI C++ compiler will create directory out/ii_files/ for
  19749. # template instantiation
  19750. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  19751. $rm out/* && rmdir out
  19752. cd ..
  19753. rmdir conftest
  19754. $rm conftest*
  19755. fi
  19756. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  19757. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  19758. hard_links="nottested"
  19759. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  19760. # do not overwrite the value of need_locks provided by the user
  19761. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  19762. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  19763. hard_links=yes
  19764. $rm conftest*
  19765. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19766. touch conftest.a
  19767. ln conftest.a conftest.b 2>&5 || hard_links=no
  19768. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19769. { echo "$as_me:$LINENO: result: $hard_links" >&5
  19770. echo "${ECHO_T}$hard_links" >&6; }
  19771. if test "$hard_links" = no; then
  19772. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  19773. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  19774. need_locks=warn
  19775. fi
  19776. else
  19777. need_locks=no
  19778. fi
  19779. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  19780. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  19781. runpath_var=
  19782. allow_undefined_flag_F77=
  19783. enable_shared_with_static_runtimes_F77=no
  19784. archive_cmds_F77=
  19785. archive_expsym_cmds_F77=
  19786. old_archive_From_new_cmds_F77=
  19787. old_archive_from_expsyms_cmds_F77=
  19788. export_dynamic_flag_spec_F77=
  19789. whole_archive_flag_spec_F77=
  19790. thread_safe_flag_spec_F77=
  19791. hardcode_libdir_flag_spec_F77=
  19792. hardcode_libdir_flag_spec_ld_F77=
  19793. hardcode_libdir_separator_F77=
  19794. hardcode_direct_F77=no
  19795. hardcode_minus_L_F77=no
  19796. hardcode_shlibpath_var_F77=unsupported
  19797. link_all_deplibs_F77=unknown
  19798. hardcode_automatic_F77=no
  19799. module_cmds_F77=
  19800. module_expsym_cmds_F77=
  19801. always_export_symbols_F77=no
  19802. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  19803. # include_expsyms should be a list of space-separated symbols to be *always*
  19804. # included in the symbol list
  19805. include_expsyms_F77=
  19806. # exclude_expsyms can be an extended regexp of symbols to exclude
  19807. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  19808. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  19809. # as well as any symbol that contains `d'.
  19810. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  19811. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  19812. # platforms (ab)use it in PIC code, but their linkers get confused if
  19813. # the symbol is explicitly referenced. Since portable code cannot
  19814. # rely on this symbol name, it's probably fine to never include it in
  19815. # preloaded symbol tables.
  19816. extract_expsyms_cmds=
  19817. # Just being paranoid about ensuring that cc_basename is set.
  19818. for cc_temp in $compiler""; do
  19819. case $cc_temp in
  19820. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19821. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19822. \-*) ;;
  19823. *) break;;
  19824. esac
  19825. done
  19826. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  19827. case $host_os in
  19828. cygwin* | mingw* | pw32*)
  19829. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  19830. # When not using gcc, we currently assume that we are using
  19831. # Microsoft Visual C++.
  19832. if test "$GCC" != yes; then
  19833. with_gnu_ld=no
  19834. fi
  19835. ;;
  19836. interix*)
  19837. # we just hope/assume this is gcc and not c89 (= MSVC++)
  19838. with_gnu_ld=yes
  19839. ;;
  19840. openbsd*)
  19841. with_gnu_ld=no
  19842. ;;
  19843. esac
  19844. ld_shlibs_F77=yes
  19845. if test "$with_gnu_ld" = yes; then
  19846. # If archive_cmds runs LD, not CC, wlarc should be empty
  19847. wlarc='${wl}'
  19848. # Set some defaults for GNU ld with shared library support. These
  19849. # are reset later if shared libraries are not supported. Putting them
  19850. # here allows them to be overridden if necessary.
  19851. runpath_var=LD_RUN_PATH
  19852. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  19853. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  19854. # ancient GNU ld didn't support --whole-archive et. al.
  19855. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  19856. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  19857. else
  19858. whole_archive_flag_spec_F77=
  19859. fi
  19860. supports_anon_versioning=no
  19861. case `$LD -v 2>/dev/null` in
  19862. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  19863. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  19864. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  19865. *\ 2.11.*) ;; # other 2.11 versions
  19866. *) supports_anon_versioning=yes ;;
  19867. esac
  19868. # See if GNU ld supports shared libraries.
  19869. case $host_os in
  19870. aix3* | aix4* | aix5*)
  19871. # On AIX/PPC, the GNU linker is very broken
  19872. if test "$host_cpu" != ia64; then
  19873. ld_shlibs_F77=no
  19874. cat <<EOF 1>&2
  19875. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  19876. *** to be unable to reliably create shared libraries on AIX.
  19877. *** Therefore, libtool is disabling shared libraries support. If you
  19878. *** really care for shared libraries, you may want to modify your PATH
  19879. *** so that a non-GNU linker is found, and then restart.
  19880. EOF
  19881. fi
  19882. ;;
  19883. amigaos*)
  19884. 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)'
  19885. hardcode_libdir_flag_spec_F77='-L$libdir'
  19886. hardcode_minus_L_F77=yes
  19887. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  19888. # that the semantics of dynamic libraries on AmigaOS, at least up
  19889. # to version 4, is to share data among multiple programs linked
  19890. # with the same dynamic library. Since this doesn't match the
  19891. # behavior of shared libraries on other platforms, we can't use
  19892. # them.
  19893. ld_shlibs_F77=no
  19894. ;;
  19895. beos*)
  19896. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19897. allow_undefined_flag_F77=unsupported
  19898. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  19899. # support --undefined. This deserves some investigation. FIXME
  19900. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19901. else
  19902. ld_shlibs_F77=no
  19903. fi
  19904. ;;
  19905. cygwin* | mingw* | pw32*)
  19906. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  19907. # as there is no search path for DLLs.
  19908. hardcode_libdir_flag_spec_F77='-L$libdir'
  19909. allow_undefined_flag_F77=unsupported
  19910. always_export_symbols_F77=no
  19911. enable_shared_with_static_runtimes_F77=yes
  19912. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  19913. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  19914. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  19915. # If the export-symbols file already is a .def file (1st line
  19916. # is EXPORTS), use it as is; otherwise, prepend...
  19917. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  19918. cp $export_symbols $output_objdir/$soname.def;
  19919. else
  19920. echo EXPORTS > $output_objdir/$soname.def;
  19921. cat $export_symbols >> $output_objdir/$soname.def;
  19922. fi~
  19923. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  19924. else
  19925. ld_shlibs_F77=no
  19926. fi
  19927. ;;
  19928. interix3*)
  19929. hardcode_direct_F77=no
  19930. hardcode_shlibpath_var_F77=no
  19931. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  19932. export_dynamic_flag_spec_F77='${wl}-E'
  19933. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  19934. # Instead, shared libraries are loaded at an image base (0x10000000 by
  19935. # default) and relocated if they conflict, which is a slow very memory
  19936. # consuming and fragmenting process. To avoid this, we pick a random,
  19937. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  19938. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  19939. 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'
  19940. 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'
  19941. ;;
  19942. linux*)
  19943. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19944. tmp_addflag=
  19945. case $cc_basename,$host_cpu in
  19946. pgcc*) # Portland Group C compiler
  19947. 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'
  19948. tmp_addflag=' $pic_flag'
  19949. ;;
  19950. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  19951. 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'
  19952. tmp_addflag=' $pic_flag -Mnomain' ;;
  19953. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  19954. tmp_addflag=' -i_dynamic' ;;
  19955. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  19956. tmp_addflag=' -i_dynamic -nofor_main' ;;
  19957. ifc* | ifort*) # Intel Fortran compiler
  19958. tmp_addflag=' -nofor_main' ;;
  19959. esac
  19960. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19961. if test $supports_anon_versioning = yes; then
  19962. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  19963. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  19964. $echo "local: *; };" >> $output_objdir/$libname.ver~
  19965. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  19966. fi
  19967. else
  19968. ld_shlibs_F77=no
  19969. fi
  19970. ;;
  19971. netbsd*)
  19972. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19973. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  19974. wlarc=
  19975. else
  19976. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19977. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19978. fi
  19979. ;;
  19980. solaris*)
  19981. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  19982. ld_shlibs_F77=no
  19983. cat <<EOF 1>&2
  19984. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  19985. *** create shared libraries on Solaris systems. Therefore, libtool
  19986. *** is disabling shared libraries support. We urge you to upgrade GNU
  19987. *** binutils to release 2.9.1 or newer. Another option is to modify
  19988. *** your PATH or compiler configuration so that the native linker is
  19989. *** used, and then restart.
  19990. EOF
  19991. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19992. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19993. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19994. else
  19995. ld_shlibs_F77=no
  19996. fi
  19997. ;;
  19998. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  19999. case `$LD -v 2>&1` in
  20000. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  20001. ld_shlibs_F77=no
  20002. cat <<_LT_EOF 1>&2
  20003. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  20004. *** reliably create shared libraries on SCO systems. Therefore, libtool
  20005. *** is disabling shared libraries support. We urge you to upgrade GNU
  20006. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  20007. *** your PATH or compiler configuration so that the native linker is
  20008. *** used, and then restart.
  20009. _LT_EOF
  20010. ;;
  20011. *)
  20012. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  20013. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  20014. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  20015. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  20016. else
  20017. ld_shlibs_F77=no
  20018. fi
  20019. ;;
  20020. esac
  20021. ;;
  20022. sunos4*)
  20023. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20024. wlarc=
  20025. hardcode_direct_F77=yes
  20026. hardcode_shlibpath_var_F77=no
  20027. ;;
  20028. *)
  20029. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  20030. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20031. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  20032. else
  20033. ld_shlibs_F77=no
  20034. fi
  20035. ;;
  20036. esac
  20037. if test "$ld_shlibs_F77" = no; then
  20038. runpath_var=
  20039. hardcode_libdir_flag_spec_F77=
  20040. export_dynamic_flag_spec_F77=
  20041. whole_archive_flag_spec_F77=
  20042. fi
  20043. else
  20044. # PORTME fill in a description of your system's linker (not GNU ld)
  20045. case $host_os in
  20046. aix3*)
  20047. allow_undefined_flag_F77=unsupported
  20048. always_export_symbols_F77=yes
  20049. 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'
  20050. # Note: this linker hardcodes the directories in LIBPATH if there
  20051. # are no directories specified by -L.
  20052. hardcode_minus_L_F77=yes
  20053. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  20054. # Neither direct hardcoding nor static linking is supported with a
  20055. # broken collect2.
  20056. hardcode_direct_F77=unsupported
  20057. fi
  20058. ;;
  20059. aix4* | aix5*)
  20060. if test "$host_cpu" = ia64; then
  20061. # On IA64, the linker does run time linking by default, so we don't
  20062. # have to do anything special.
  20063. aix_use_runtimelinking=no
  20064. exp_sym_flag='-Bexport'
  20065. no_entry_flag=""
  20066. else
  20067. # If we're using GNU nm, then we don't want the "-C" option.
  20068. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  20069. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  20070. 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'
  20071. else
  20072. 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'
  20073. fi
  20074. aix_use_runtimelinking=no
  20075. # Test if we are trying to use run time linking or normal
  20076. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  20077. # need to do runtime linking.
  20078. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  20079. for ld_flag in $LDFLAGS; do
  20080. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  20081. aix_use_runtimelinking=yes
  20082. break
  20083. fi
  20084. done
  20085. ;;
  20086. esac
  20087. exp_sym_flag='-bexport'
  20088. no_entry_flag='-bnoentry'
  20089. fi
  20090. # When large executables or shared objects are built, AIX ld can
  20091. # have problems creating the table of contents. If linking a library
  20092. # or program results in "error TOC overflow" add -mminimal-toc to
  20093. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  20094. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  20095. archive_cmds_F77=''
  20096. hardcode_direct_F77=yes
  20097. hardcode_libdir_separator_F77=':'
  20098. link_all_deplibs_F77=yes
  20099. if test "$GCC" = yes; then
  20100. case $host_os in aix4.[012]|aix4.[012].*)
  20101. # We only want to do this on AIX 4.2 and lower, the check
  20102. # below for broken collect2 doesn't work under 4.3+
  20103. collect2name=`${CC} -print-prog-name=collect2`
  20104. if test -f "$collect2name" && \
  20105. strings "$collect2name" | grep resolve_lib_name >/dev/null
  20106. then
  20107. # We have reworked collect2
  20108. hardcode_direct_F77=yes
  20109. else
  20110. # We have old collect2
  20111. hardcode_direct_F77=unsupported
  20112. # It fails to find uninstalled libraries when the uninstalled
  20113. # path is not listed in the libpath. Setting hardcode_minus_L
  20114. # to unsupported forces relinking
  20115. hardcode_minus_L_F77=yes
  20116. hardcode_libdir_flag_spec_F77='-L$libdir'
  20117. hardcode_libdir_separator_F77=
  20118. fi
  20119. ;;
  20120. esac
  20121. shared_flag='-shared'
  20122. if test "$aix_use_runtimelinking" = yes; then
  20123. shared_flag="$shared_flag "'${wl}-G'
  20124. fi
  20125. else
  20126. # not using gcc
  20127. if test "$host_cpu" = ia64; then
  20128. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  20129. # chokes on -Wl,-G. The following line is correct:
  20130. shared_flag='-G'
  20131. else
  20132. if test "$aix_use_runtimelinking" = yes; then
  20133. shared_flag='${wl}-G'
  20134. else
  20135. shared_flag='${wl}-bM:SRE'
  20136. fi
  20137. fi
  20138. fi
  20139. # It seems that -bexpall does not export symbols beginning with
  20140. # underscore (_), so it is better to generate a list of symbols to export.
  20141. always_export_symbols_F77=yes
  20142. if test "$aix_use_runtimelinking" = yes; then
  20143. # Warning - without using the other runtime loading flags (-brtl),
  20144. # -berok will link without error, but may produce a broken library.
  20145. allow_undefined_flag_F77='-berok'
  20146. # Determine the default libpath from the value encoded in an empty executable.
  20147. cat >conftest.$ac_ext <<_ACEOF
  20148. program main
  20149. end
  20150. _ACEOF
  20151. rm -f conftest.$ac_objext conftest$ac_exeext
  20152. if { (ac_try="$ac_link"
  20153. case "(($ac_try" in
  20154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20155. *) ac_try_echo=$ac_try;;
  20156. esac
  20157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20158. (eval "$ac_link") 2>conftest.er1
  20159. ac_status=$?
  20160. grep -v '^ *+' conftest.er1 >conftest.err
  20161. rm -f conftest.er1
  20162. cat conftest.err >&5
  20163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20164. (exit $ac_status); } &&
  20165. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  20166. { (case "(($ac_try" in
  20167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20168. *) ac_try_echo=$ac_try;;
  20169. esac
  20170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20171. (eval "$ac_try") 2>&5
  20172. ac_status=$?
  20173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20174. (exit $ac_status); }; } &&
  20175. { ac_try='test -s conftest$ac_exeext'
  20176. { (case "(($ac_try" in
  20177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20178. *) ac_try_echo=$ac_try;;
  20179. esac
  20180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20181. (eval "$ac_try") 2>&5
  20182. ac_status=$?
  20183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20184. (exit $ac_status); }; }; then
  20185. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  20186. }'`
  20187. # Check for a 64-bit object if we didn't find anything.
  20188. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  20189. }'`; fi
  20190. else
  20191. echo "$as_me: failed program was:" >&5
  20192. sed 's/^/| /' conftest.$ac_ext >&5
  20193. fi
  20194. rm -f core conftest.err conftest.$ac_objext \
  20195. conftest$ac_exeext conftest.$ac_ext
  20196. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  20197. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  20198. 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"
  20199. else
  20200. if test "$host_cpu" = ia64; then
  20201. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  20202. allow_undefined_flag_F77="-z nodefs"
  20203. 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"
  20204. else
  20205. # Determine the default libpath from the value encoded in an empty executable.
  20206. cat >conftest.$ac_ext <<_ACEOF
  20207. program main
  20208. end
  20209. _ACEOF
  20210. rm -f conftest.$ac_objext conftest$ac_exeext
  20211. if { (ac_try="$ac_link"
  20212. case "(($ac_try" in
  20213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20214. *) ac_try_echo=$ac_try;;
  20215. esac
  20216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20217. (eval "$ac_link") 2>conftest.er1
  20218. ac_status=$?
  20219. grep -v '^ *+' conftest.er1 >conftest.err
  20220. rm -f conftest.er1
  20221. cat conftest.err >&5
  20222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20223. (exit $ac_status); } &&
  20224. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  20225. { (case "(($ac_try" in
  20226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20227. *) ac_try_echo=$ac_try;;
  20228. esac
  20229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20230. (eval "$ac_try") 2>&5
  20231. ac_status=$?
  20232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20233. (exit $ac_status); }; } &&
  20234. { ac_try='test -s conftest$ac_exeext'
  20235. { (case "(($ac_try" in
  20236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20237. *) ac_try_echo=$ac_try;;
  20238. esac
  20239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20240. (eval "$ac_try") 2>&5
  20241. ac_status=$?
  20242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20243. (exit $ac_status); }; }; then
  20244. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  20245. }'`
  20246. # Check for a 64-bit object if we didn't find anything.
  20247. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  20248. }'`; fi
  20249. else
  20250. echo "$as_me: failed program was:" >&5
  20251. sed 's/^/| /' conftest.$ac_ext >&5
  20252. fi
  20253. rm -f core conftest.err conftest.$ac_objext \
  20254. conftest$ac_exeext conftest.$ac_ext
  20255. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  20256. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  20257. # Warning - without using the other run time loading flags,
  20258. # -berok will link without error, but may produce a broken library.
  20259. no_undefined_flag_F77=' ${wl}-bernotok'
  20260. allow_undefined_flag_F77=' ${wl}-berok'
  20261. # Exported symbols can be pulled into shared objects from archives
  20262. whole_archive_flag_spec_F77='$convenience'
  20263. archive_cmds_need_lc_F77=yes
  20264. # This is similar to how AIX traditionally builds its shared libraries.
  20265. 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'
  20266. fi
  20267. fi
  20268. ;;
  20269. amigaos*)
  20270. 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)'
  20271. hardcode_libdir_flag_spec_F77='-L$libdir'
  20272. hardcode_minus_L_F77=yes
  20273. # see comment about different semantics on the GNU ld section
  20274. ld_shlibs_F77=no
  20275. ;;
  20276. bsdi[45]*)
  20277. export_dynamic_flag_spec_F77=-rdynamic
  20278. ;;
  20279. cygwin* | mingw* | pw32*)
  20280. # When not using gcc, we currently assume that we are using
  20281. # Microsoft Visual C++.
  20282. # hardcode_libdir_flag_spec is actually meaningless, as there is
  20283. # no search path for DLLs.
  20284. hardcode_libdir_flag_spec_F77=' '
  20285. allow_undefined_flag_F77=unsupported
  20286. # Tell ltmain to make .lib files, not .a files.
  20287. libext=lib
  20288. # Tell ltmain to make .dll files, not .so files.
  20289. shrext_cmds=".dll"
  20290. # FIXME: Setting linknames here is a bad hack.
  20291. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  20292. # The linker will automatically build a .lib file if we build a DLL.
  20293. old_archive_From_new_cmds_F77='true'
  20294. # FIXME: Should let the user specify the lib program.
  20295. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  20296. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  20297. enable_shared_with_static_runtimes_F77=yes
  20298. ;;
  20299. darwin* | rhapsody*)
  20300. case $host_os in
  20301. rhapsody* | darwin1.[012])
  20302. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  20303. ;;
  20304. *) # Darwin 1.3 on
  20305. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  20306. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  20307. else
  20308. case ${MACOSX_DEPLOYMENT_TARGET} in
  20309. 10.[012])
  20310. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  20311. ;;
  20312. 10.*)
  20313. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  20314. ;;
  20315. esac
  20316. fi
  20317. ;;
  20318. esac
  20319. archive_cmds_need_lc_F77=no
  20320. hardcode_direct_F77=no
  20321. hardcode_automatic_F77=yes
  20322. hardcode_shlibpath_var_F77=unsupported
  20323. whole_archive_flag_spec_F77=''
  20324. link_all_deplibs_F77=yes
  20325. if test "$GCC" = yes ; then
  20326. output_verbose_link_cmd='echo'
  20327. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  20328. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  20329. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  20330. 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}'
  20331. 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}'
  20332. else
  20333. case $cc_basename in
  20334. xlc*)
  20335. output_verbose_link_cmd='echo'
  20336. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  20337. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  20338. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  20339. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  20340. 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}'
  20341. ;;
  20342. *)
  20343. ld_shlibs_F77=no
  20344. ;;
  20345. esac
  20346. fi
  20347. ;;
  20348. dgux*)
  20349. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20350. hardcode_libdir_flag_spec_F77='-L$libdir'
  20351. hardcode_shlibpath_var_F77=no
  20352. ;;
  20353. freebsd1*)
  20354. ld_shlibs_F77=no
  20355. ;;
  20356. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  20357. # support. Future versions do this automatically, but an explicit c++rt0.o
  20358. # does not break anything, and helps significantly (at the cost of a little
  20359. # extra space).
  20360. freebsd2.2*)
  20361. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  20362. hardcode_libdir_flag_spec_F77='-R$libdir'
  20363. hardcode_direct_F77=yes
  20364. hardcode_shlibpath_var_F77=no
  20365. ;;
  20366. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  20367. freebsd2*)
  20368. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20369. hardcode_direct_F77=yes
  20370. hardcode_minus_L_F77=yes
  20371. hardcode_shlibpath_var_F77=no
  20372. ;;
  20373. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  20374. freebsd* | kfreebsd*-gnu | dragonfly*)
  20375. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  20376. hardcode_libdir_flag_spec_F77='-R$libdir'
  20377. hardcode_direct_F77=yes
  20378. hardcode_shlibpath_var_F77=no
  20379. ;;
  20380. hpux9*)
  20381. if test "$GCC" = yes; then
  20382. 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'
  20383. else
  20384. 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'
  20385. fi
  20386. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  20387. hardcode_libdir_separator_F77=:
  20388. hardcode_direct_F77=yes
  20389. # hardcode_minus_L: Not really in the search PATH,
  20390. # but as the default location of the library.
  20391. hardcode_minus_L_F77=yes
  20392. export_dynamic_flag_spec_F77='${wl}-E'
  20393. ;;
  20394. hpux10*)
  20395. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20396. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20397. else
  20398. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  20399. fi
  20400. if test "$with_gnu_ld" = no; then
  20401. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  20402. hardcode_libdir_separator_F77=:
  20403. hardcode_direct_F77=yes
  20404. export_dynamic_flag_spec_F77='${wl}-E'
  20405. # hardcode_minus_L: Not really in the search PATH,
  20406. # but as the default location of the library.
  20407. hardcode_minus_L_F77=yes
  20408. fi
  20409. ;;
  20410. hpux11*)
  20411. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20412. case $host_cpu in
  20413. hppa*64*)
  20414. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20415. ;;
  20416. ia64*)
  20417. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  20418. ;;
  20419. *)
  20420. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20421. ;;
  20422. esac
  20423. else
  20424. case $host_cpu in
  20425. hppa*64*)
  20426. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20427. ;;
  20428. ia64*)
  20429. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  20430. ;;
  20431. *)
  20432. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20433. ;;
  20434. esac
  20435. fi
  20436. if test "$with_gnu_ld" = no; then
  20437. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  20438. hardcode_libdir_separator_F77=:
  20439. case $host_cpu in
  20440. hppa*64*|ia64*)
  20441. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  20442. hardcode_direct_F77=no
  20443. hardcode_shlibpath_var_F77=no
  20444. ;;
  20445. *)
  20446. hardcode_direct_F77=yes
  20447. export_dynamic_flag_spec_F77='${wl}-E'
  20448. # hardcode_minus_L: Not really in the search PATH,
  20449. # but as the default location of the library.
  20450. hardcode_minus_L_F77=yes
  20451. ;;
  20452. esac
  20453. fi
  20454. ;;
  20455. irix5* | irix6* | nonstopux*)
  20456. if test "$GCC" = yes; then
  20457. 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'
  20458. else
  20459. 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'
  20460. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  20461. fi
  20462. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  20463. hardcode_libdir_separator_F77=:
  20464. link_all_deplibs_F77=yes
  20465. ;;
  20466. netbsd*)
  20467. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  20468. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  20469. else
  20470. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  20471. fi
  20472. hardcode_libdir_flag_spec_F77='-R$libdir'
  20473. hardcode_direct_F77=yes
  20474. hardcode_shlibpath_var_F77=no
  20475. ;;
  20476. newsos6)
  20477. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20478. hardcode_direct_F77=yes
  20479. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  20480. hardcode_libdir_separator_F77=:
  20481. hardcode_shlibpath_var_F77=no
  20482. ;;
  20483. openbsd*)
  20484. hardcode_direct_F77=yes
  20485. hardcode_shlibpath_var_F77=no
  20486. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20487. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  20488. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  20489. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  20490. export_dynamic_flag_spec_F77='${wl}-E'
  20491. else
  20492. case $host_os in
  20493. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  20494. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20495. hardcode_libdir_flag_spec_F77='-R$libdir'
  20496. ;;
  20497. *)
  20498. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  20499. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  20500. ;;
  20501. esac
  20502. fi
  20503. ;;
  20504. os2*)
  20505. hardcode_libdir_flag_spec_F77='-L$libdir'
  20506. hardcode_minus_L_F77=yes
  20507. allow_undefined_flag_F77=unsupported
  20508. 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'
  20509. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  20510. ;;
  20511. osf3*)
  20512. if test "$GCC" = yes; then
  20513. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  20514. 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'
  20515. else
  20516. allow_undefined_flag_F77=' -expect_unresolved \*'
  20517. 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'
  20518. fi
  20519. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  20520. hardcode_libdir_separator_F77=:
  20521. ;;
  20522. osf4* | osf5*) # as osf3* with the addition of -msym flag
  20523. if test "$GCC" = yes; then
  20524. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  20525. 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'
  20526. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  20527. else
  20528. allow_undefined_flag_F77=' -expect_unresolved \*'
  20529. 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'
  20530. 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~
  20531. $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'
  20532. # Both c and cxx compiler support -rpath directly
  20533. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  20534. fi
  20535. hardcode_libdir_separator_F77=:
  20536. ;;
  20537. solaris*)
  20538. no_undefined_flag_F77=' -z text'
  20539. if test "$GCC" = yes; then
  20540. wlarc='${wl}'
  20541. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20542. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  20543. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  20544. else
  20545. wlarc=''
  20546. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20547. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  20548. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  20549. fi
  20550. hardcode_libdir_flag_spec_F77='-R$libdir'
  20551. hardcode_shlibpath_var_F77=no
  20552. case $host_os in
  20553. solaris2.[0-5] | solaris2.[0-5].*) ;;
  20554. *)
  20555. # The compiler driver will combine linker options so we
  20556. # cannot just pass the convience library names through
  20557. # without $wl, iff we do not link with $LD.
  20558. # Luckily, gcc supports the same syntax we need for Sun Studio.
  20559. # Supported since Solaris 2.6 (maybe 2.5.1?)
  20560. case $wlarc in
  20561. '')
  20562. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  20563. *)
  20564. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  20565. esac ;;
  20566. esac
  20567. link_all_deplibs_F77=yes
  20568. ;;
  20569. sunos4*)
  20570. if test "x$host_vendor" = xsequent; then
  20571. # Use $CC to link under sequent, because it throws in some extra .o
  20572. # files that make .init and .fini sections work.
  20573. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  20574. else
  20575. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  20576. fi
  20577. hardcode_libdir_flag_spec_F77='-L$libdir'
  20578. hardcode_direct_F77=yes
  20579. hardcode_minus_L_F77=yes
  20580. hardcode_shlibpath_var_F77=no
  20581. ;;
  20582. sysv4)
  20583. case $host_vendor in
  20584. sni)
  20585. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20586. hardcode_direct_F77=yes # is this really true???
  20587. ;;
  20588. siemens)
  20589. ## LD is ld it makes a PLAMLIB
  20590. ## CC just makes a GrossModule.
  20591. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  20592. reload_cmds_F77='$CC -r -o $output$reload_objs'
  20593. hardcode_direct_F77=no
  20594. ;;
  20595. motorola)
  20596. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20597. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  20598. ;;
  20599. esac
  20600. runpath_var='LD_RUN_PATH'
  20601. hardcode_shlibpath_var_F77=no
  20602. ;;
  20603. sysv4.3*)
  20604. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20605. hardcode_shlibpath_var_F77=no
  20606. export_dynamic_flag_spec_F77='-Bexport'
  20607. ;;
  20608. sysv4*MP*)
  20609. if test -d /usr/nec; then
  20610. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20611. hardcode_shlibpath_var_F77=no
  20612. runpath_var=LD_RUN_PATH
  20613. hardcode_runpath_var=yes
  20614. ld_shlibs_F77=yes
  20615. fi
  20616. ;;
  20617. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  20618. no_undefined_flag_F77='${wl}-z,text'
  20619. archive_cmds_need_lc_F77=no
  20620. hardcode_shlibpath_var_F77=no
  20621. runpath_var='LD_RUN_PATH'
  20622. if test "$GCC" = yes; then
  20623. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  20624. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  20625. else
  20626. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  20627. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  20628. fi
  20629. ;;
  20630. sysv5* | sco3.2v5* | sco5v6*)
  20631. # Note: We can NOT use -z defs as we might desire, because we do not
  20632. # link with -lc, and that would cause any symbols used from libc to
  20633. # always be unresolved, which means just about no library would
  20634. # ever link correctly. If we're not using GNU ld we use -z text
  20635. # though, which does catch some bad symbols but isn't as heavy-handed
  20636. # as -z defs.
  20637. no_undefined_flag_F77='${wl}-z,text'
  20638. allow_undefined_flag_F77='${wl}-z,nodefs'
  20639. archive_cmds_need_lc_F77=no
  20640. hardcode_shlibpath_var_F77=no
  20641. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  20642. hardcode_libdir_separator_F77=':'
  20643. link_all_deplibs_F77=yes
  20644. export_dynamic_flag_spec_F77='${wl}-Bexport'
  20645. runpath_var='LD_RUN_PATH'
  20646. if test "$GCC" = yes; then
  20647. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20648. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20649. else
  20650. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20651. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20652. fi
  20653. ;;
  20654. uts4*)
  20655. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20656. hardcode_libdir_flag_spec_F77='-L$libdir'
  20657. hardcode_shlibpath_var_F77=no
  20658. ;;
  20659. *)
  20660. ld_shlibs_F77=no
  20661. ;;
  20662. esac
  20663. fi
  20664. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  20665. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  20666. test "$ld_shlibs_F77" = no && can_build_shared=no
  20667. #
  20668. # Do we need to explicitly link libc?
  20669. #
  20670. case "x$archive_cmds_need_lc_F77" in
  20671. x|xyes)
  20672. # Assume -lc should be added
  20673. archive_cmds_need_lc_F77=yes
  20674. if test "$enable_shared" = yes && test "$GCC" = yes; then
  20675. case $archive_cmds_F77 in
  20676. *'~'*)
  20677. # FIXME: we may have to deal with multi-command sequences.
  20678. ;;
  20679. '$CC '*)
  20680. # Test whether the compiler implicitly links with -lc since on some
  20681. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  20682. # to ld, don't add -lc before -lgcc.
  20683. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  20684. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  20685. $rm conftest*
  20686. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  20687. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20688. (eval $ac_compile) 2>&5
  20689. ac_status=$?
  20690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20691. (exit $ac_status); } 2>conftest.err; then
  20692. soname=conftest
  20693. lib=conftest
  20694. libobjs=conftest.$ac_objext
  20695. deplibs=
  20696. wl=$lt_prog_compiler_wl_F77
  20697. pic_flag=$lt_prog_compiler_pic_F77
  20698. compiler_flags=-v
  20699. linker_flags=-v
  20700. verstring=
  20701. output_objdir=.
  20702. libname=conftest
  20703. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  20704. allow_undefined_flag_F77=
  20705. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  20706. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  20707. ac_status=$?
  20708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20709. (exit $ac_status); }
  20710. then
  20711. archive_cmds_need_lc_F77=no
  20712. else
  20713. archive_cmds_need_lc_F77=yes
  20714. fi
  20715. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  20716. else
  20717. cat conftest.err 1>&5
  20718. fi
  20719. $rm conftest*
  20720. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  20721. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  20722. ;;
  20723. esac
  20724. fi
  20725. ;;
  20726. esac
  20727. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  20728. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  20729. library_names_spec=
  20730. libname_spec='lib$name'
  20731. soname_spec=
  20732. shrext_cmds=".so"
  20733. postinstall_cmds=
  20734. postuninstall_cmds=
  20735. finish_cmds=
  20736. finish_eval=
  20737. shlibpath_var=
  20738. shlibpath_overrides_runpath=unknown
  20739. version_type=none
  20740. dynamic_linker="$host_os ld.so"
  20741. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  20742. if test "$GCC" = yes; then
  20743. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20744. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  20745. # if the path contains ";" then we assume it to be the separator
  20746. # otherwise default to the standard path separator (i.e. ":") - it is
  20747. # assumed that no part of a normal pathname contains ";" but that should
  20748. # okay in the real world where ";" in dirpaths is itself problematic.
  20749. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  20750. else
  20751. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20752. fi
  20753. else
  20754. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  20755. fi
  20756. need_lib_prefix=unknown
  20757. hardcode_into_libs=no
  20758. # when you set need_version to no, make sure it does not cause -set_version
  20759. # flags to be left without arguments
  20760. need_version=unknown
  20761. case $host_os in
  20762. aix3*)
  20763. version_type=linux
  20764. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  20765. shlibpath_var=LIBPATH
  20766. # AIX 3 has no versioning support, so we append a major version to the name.
  20767. soname_spec='${libname}${release}${shared_ext}$major'
  20768. ;;
  20769. aix4* | aix5*)
  20770. version_type=linux
  20771. need_lib_prefix=no
  20772. need_version=no
  20773. hardcode_into_libs=yes
  20774. if test "$host_cpu" = ia64; then
  20775. # AIX 5 supports IA64
  20776. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  20777. shlibpath_var=LD_LIBRARY_PATH
  20778. else
  20779. # With GCC up to 2.95.x, collect2 would create an import file
  20780. # for dependence libraries. The import file would start with
  20781. # the line `#! .'. This would cause the generated library to
  20782. # depend on `.', always an invalid library. This was fixed in
  20783. # development snapshots of GCC prior to 3.0.
  20784. case $host_os in
  20785. aix4 | aix4.[01] | aix4.[01].*)
  20786. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  20787. echo ' yes '
  20788. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  20789. :
  20790. else
  20791. can_build_shared=no
  20792. fi
  20793. ;;
  20794. esac
  20795. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  20796. # soname into executable. Probably we can add versioning support to
  20797. # collect2, so additional links can be useful in future.
  20798. if test "$aix_use_runtimelinking" = yes; then
  20799. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  20800. # instead of lib<name>.a to let people know that these are not
  20801. # typical AIX shared libraries.
  20802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20803. else
  20804. # We preserve .a as extension for shared libraries through AIX4.2
  20805. # and later when we are not doing run time linking.
  20806. library_names_spec='${libname}${release}.a $libname.a'
  20807. soname_spec='${libname}${release}${shared_ext}$major'
  20808. fi
  20809. shlibpath_var=LIBPATH
  20810. fi
  20811. ;;
  20812. amigaos*)
  20813. library_names_spec='$libname.ixlibrary $libname.a'
  20814. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  20815. 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'
  20816. ;;
  20817. beos*)
  20818. library_names_spec='${libname}${shared_ext}'
  20819. dynamic_linker="$host_os ld.so"
  20820. shlibpath_var=LIBRARY_PATH
  20821. ;;
  20822. bsdi[45]*)
  20823. version_type=linux
  20824. need_version=no
  20825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20826. soname_spec='${libname}${release}${shared_ext}$major'
  20827. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  20828. shlibpath_var=LD_LIBRARY_PATH
  20829. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  20830. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  20831. # the default ld.so.conf also contains /usr/contrib/lib and
  20832. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  20833. # libtool to hard-code these into programs
  20834. ;;
  20835. cygwin* | mingw* | pw32*)
  20836. version_type=windows
  20837. shrext_cmds=".dll"
  20838. need_version=no
  20839. need_lib_prefix=no
  20840. case $GCC,$host_os in
  20841. yes,cygwin* | yes,mingw* | yes,pw32*)
  20842. library_names_spec='$libname.dll.a'
  20843. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  20844. postinstall_cmds='base_file=`basename \${file}`~
  20845. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  20846. dldir=$destdir/`dirname \$dlpath`~
  20847. test -d \$dldir || mkdir -p \$dldir~
  20848. $install_prog $dir/$dlname \$dldir/$dlname~
  20849. chmod a+x \$dldir/$dlname'
  20850. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  20851. dlpath=$dir/\$dldll~
  20852. $rm \$dlpath'
  20853. shlibpath_overrides_runpath=yes
  20854. case $host_os in
  20855. cygwin*)
  20856. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  20857. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20858. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  20859. ;;
  20860. mingw*)
  20861. # MinGW DLLs use traditional 'lib' prefix
  20862. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20863. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20864. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  20865. # It is most probably a Windows format PATH printed by
  20866. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  20867. # path with ; separators, and with drive letters. We can handle the
  20868. # drive letters (cygwin fileutils understands them), so leave them,
  20869. # especially as we might pass files found there to a mingw objdump,
  20870. # which wouldn't understand a cygwinified path. Ahh.
  20871. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  20872. else
  20873. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20874. fi
  20875. ;;
  20876. pw32*)
  20877. # pw32 DLLs use 'pw' prefix rather than 'lib'
  20878. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20879. ;;
  20880. esac
  20881. ;;
  20882. *)
  20883. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  20884. ;;
  20885. esac
  20886. dynamic_linker='Win32 ld.exe'
  20887. # FIXME: first we should search . and the directory the executable is in
  20888. shlibpath_var=PATH
  20889. ;;
  20890. darwin* | rhapsody*)
  20891. dynamic_linker="$host_os dyld"
  20892. version_type=darwin
  20893. need_lib_prefix=no
  20894. need_version=no
  20895. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  20896. soname_spec='${libname}${release}${major}$shared_ext'
  20897. shlibpath_overrides_runpath=yes
  20898. shlibpath_var=DYLD_LIBRARY_PATH
  20899. shrext_cmds='.dylib'
  20900. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  20901. if test "$GCC" = yes; then
  20902. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  20903. else
  20904. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  20905. fi
  20906. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  20907. ;;
  20908. dgux*)
  20909. version_type=linux
  20910. need_lib_prefix=no
  20911. need_version=no
  20912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  20913. soname_spec='${libname}${release}${shared_ext}$major'
  20914. shlibpath_var=LD_LIBRARY_PATH
  20915. ;;
  20916. freebsd1*)
  20917. dynamic_linker=no
  20918. ;;
  20919. kfreebsd*-gnu)
  20920. version_type=linux
  20921. need_lib_prefix=no
  20922. need_version=no
  20923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20924. soname_spec='${libname}${release}${shared_ext}$major'
  20925. shlibpath_var=LD_LIBRARY_PATH
  20926. shlibpath_overrides_runpath=no
  20927. hardcode_into_libs=yes
  20928. dynamic_linker='GNU ld.so'
  20929. ;;
  20930. freebsd* | dragonfly*)
  20931. # DragonFly does not have aout. When/if they implement a new
  20932. # versioning mechanism, adjust this.
  20933. if test -x /usr/bin/objformat; then
  20934. objformat=`/usr/bin/objformat`
  20935. else
  20936. case $host_os in
  20937. freebsd[123]*) objformat=aout ;;
  20938. *) objformat=elf ;;
  20939. esac
  20940. fi
  20941. version_type=freebsd-$objformat
  20942. case $version_type in
  20943. freebsd-elf*)
  20944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  20945. need_version=no
  20946. need_lib_prefix=no
  20947. ;;
  20948. freebsd-*)
  20949. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  20950. need_version=yes
  20951. ;;
  20952. esac
  20953. shlibpath_var=LD_LIBRARY_PATH
  20954. case $host_os in
  20955. freebsd2*)
  20956. shlibpath_overrides_runpath=yes
  20957. ;;
  20958. freebsd3.[01]* | freebsdelf3.[01]*)
  20959. shlibpath_overrides_runpath=yes
  20960. hardcode_into_libs=yes
  20961. ;;
  20962. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  20963. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  20964. shlibpath_overrides_runpath=no
  20965. hardcode_into_libs=yes
  20966. ;;
  20967. freebsd*) # from 4.6 on
  20968. shlibpath_overrides_runpath=yes
  20969. hardcode_into_libs=yes
  20970. ;;
  20971. esac
  20972. ;;
  20973. gnu*)
  20974. version_type=linux
  20975. need_lib_prefix=no
  20976. need_version=no
  20977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  20978. soname_spec='${libname}${release}${shared_ext}$major'
  20979. shlibpath_var=LD_LIBRARY_PATH
  20980. hardcode_into_libs=yes
  20981. ;;
  20982. hpux9* | hpux10* | hpux11*)
  20983. # Give a soname corresponding to the major version so that dld.sl refuses to
  20984. # link against other versions.
  20985. version_type=sunos
  20986. need_lib_prefix=no
  20987. need_version=no
  20988. case $host_cpu in
  20989. ia64*)
  20990. shrext_cmds='.so'
  20991. hardcode_into_libs=yes
  20992. dynamic_linker="$host_os dld.so"
  20993. shlibpath_var=LD_LIBRARY_PATH
  20994. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20996. soname_spec='${libname}${release}${shared_ext}$major'
  20997. if test "X$HPUX_IA64_MODE" = X32; then
  20998. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  20999. else
  21000. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  21001. fi
  21002. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  21003. ;;
  21004. hppa*64*)
  21005. shrext_cmds='.sl'
  21006. hardcode_into_libs=yes
  21007. dynamic_linker="$host_os dld.sl"
  21008. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  21009. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  21010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21011. soname_spec='${libname}${release}${shared_ext}$major'
  21012. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  21013. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  21014. ;;
  21015. *)
  21016. shrext_cmds='.sl'
  21017. dynamic_linker="$host_os dld.sl"
  21018. shlibpath_var=SHLIB_PATH
  21019. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  21020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21021. soname_spec='${libname}${release}${shared_ext}$major'
  21022. ;;
  21023. esac
  21024. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  21025. postinstall_cmds='chmod 555 $lib'
  21026. ;;
  21027. interix3*)
  21028. version_type=linux
  21029. need_lib_prefix=no
  21030. need_version=no
  21031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21032. soname_spec='${libname}${release}${shared_ext}$major'
  21033. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  21034. shlibpath_var=LD_LIBRARY_PATH
  21035. shlibpath_overrides_runpath=no
  21036. hardcode_into_libs=yes
  21037. ;;
  21038. irix5* | irix6* | nonstopux*)
  21039. case $host_os in
  21040. nonstopux*) version_type=nonstopux ;;
  21041. *)
  21042. if test "$lt_cv_prog_gnu_ld" = yes; then
  21043. version_type=linux
  21044. else
  21045. version_type=irix
  21046. fi ;;
  21047. esac
  21048. need_lib_prefix=no
  21049. need_version=no
  21050. soname_spec='${libname}${release}${shared_ext}$major'
  21051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  21052. case $host_os in
  21053. irix5* | nonstopux*)
  21054. libsuff= shlibsuff=
  21055. ;;
  21056. *)
  21057. case $LD in # libtool.m4 will add one of these switches to LD
  21058. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  21059. libsuff= shlibsuff= libmagic=32-bit;;
  21060. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  21061. libsuff=32 shlibsuff=N32 libmagic=N32;;
  21062. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  21063. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  21064. *) libsuff= shlibsuff= libmagic=never-match;;
  21065. esac
  21066. ;;
  21067. esac
  21068. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  21069. shlibpath_overrides_runpath=no
  21070. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  21071. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  21072. hardcode_into_libs=yes
  21073. ;;
  21074. # No shared lib support for Linux oldld, aout, or coff.
  21075. linux*oldld* | linux*aout* | linux*coff*)
  21076. dynamic_linker=no
  21077. ;;
  21078. # This must be Linux ELF.
  21079. linux*)
  21080. version_type=linux
  21081. need_lib_prefix=no
  21082. need_version=no
  21083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21084. soname_spec='${libname}${release}${shared_ext}$major'
  21085. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  21086. shlibpath_var=LD_LIBRARY_PATH
  21087. shlibpath_overrides_runpath=no
  21088. # This implies no fast_install, which is unacceptable.
  21089. # Some rework will be needed to allow for fast_install
  21090. # before this can be enabled.
  21091. hardcode_into_libs=yes
  21092. # Append ld.so.conf contents to the search path
  21093. if test -f /etc/ld.so.conf; then
  21094. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  21095. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  21096. fi
  21097. # We used to test for /lib/ld.so.1 and disable shared libraries on
  21098. # powerpc, because MkLinux only supported shared libraries with the
  21099. # GNU dynamic linker. Since this was broken with cross compilers,
  21100. # most powerpc-linux boxes support dynamic linking these days and
  21101. # people can always --disable-shared, the test was removed, and we
  21102. # assume the GNU/Linux dynamic linker is in use.
  21103. dynamic_linker='GNU/Linux ld.so'
  21104. ;;
  21105. knetbsd*-gnu)
  21106. version_type=linux
  21107. need_lib_prefix=no
  21108. need_version=no
  21109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21110. soname_spec='${libname}${release}${shared_ext}$major'
  21111. shlibpath_var=LD_LIBRARY_PATH
  21112. shlibpath_overrides_runpath=no
  21113. hardcode_into_libs=yes
  21114. dynamic_linker='GNU ld.so'
  21115. ;;
  21116. netbsd*)
  21117. version_type=sunos
  21118. need_lib_prefix=no
  21119. need_version=no
  21120. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  21121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21122. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21123. dynamic_linker='NetBSD (a.out) ld.so'
  21124. else
  21125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21126. soname_spec='${libname}${release}${shared_ext}$major'
  21127. dynamic_linker='NetBSD ld.elf_so'
  21128. fi
  21129. shlibpath_var=LD_LIBRARY_PATH
  21130. shlibpath_overrides_runpath=yes
  21131. hardcode_into_libs=yes
  21132. ;;
  21133. newsos6)
  21134. version_type=linux
  21135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21136. shlibpath_var=LD_LIBRARY_PATH
  21137. shlibpath_overrides_runpath=yes
  21138. ;;
  21139. nto-qnx*)
  21140. version_type=linux
  21141. need_lib_prefix=no
  21142. need_version=no
  21143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21144. soname_spec='${libname}${release}${shared_ext}$major'
  21145. shlibpath_var=LD_LIBRARY_PATH
  21146. shlibpath_overrides_runpath=yes
  21147. ;;
  21148. openbsd*)
  21149. version_type=sunos
  21150. sys_lib_dlsearch_path_spec="/usr/lib"
  21151. need_lib_prefix=no
  21152. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  21153. case $host_os in
  21154. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  21155. *) need_version=no ;;
  21156. esac
  21157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21158. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21159. shlibpath_var=LD_LIBRARY_PATH
  21160. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21161. case $host_os in
  21162. openbsd2.[89] | openbsd2.[89].*)
  21163. shlibpath_overrides_runpath=no
  21164. ;;
  21165. *)
  21166. shlibpath_overrides_runpath=yes
  21167. ;;
  21168. esac
  21169. else
  21170. shlibpath_overrides_runpath=yes
  21171. fi
  21172. ;;
  21173. os2*)
  21174. libname_spec='$name'
  21175. shrext_cmds=".dll"
  21176. need_lib_prefix=no
  21177. library_names_spec='$libname${shared_ext} $libname.a'
  21178. dynamic_linker='OS/2 ld.exe'
  21179. shlibpath_var=LIBPATH
  21180. ;;
  21181. osf3* | osf4* | osf5*)
  21182. version_type=osf
  21183. need_lib_prefix=no
  21184. need_version=no
  21185. soname_spec='${libname}${release}${shared_ext}$major'
  21186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21187. shlibpath_var=LD_LIBRARY_PATH
  21188. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  21189. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  21190. ;;
  21191. solaris*)
  21192. version_type=linux
  21193. need_lib_prefix=no
  21194. need_version=no
  21195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21196. soname_spec='${libname}${release}${shared_ext}$major'
  21197. shlibpath_var=LD_LIBRARY_PATH
  21198. shlibpath_overrides_runpath=yes
  21199. hardcode_into_libs=yes
  21200. # ldd complains unless libraries are executable
  21201. postinstall_cmds='chmod +x $lib'
  21202. ;;
  21203. sunos4*)
  21204. version_type=sunos
  21205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21206. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  21207. shlibpath_var=LD_LIBRARY_PATH
  21208. shlibpath_overrides_runpath=yes
  21209. if test "$with_gnu_ld" = yes; then
  21210. need_lib_prefix=no
  21211. fi
  21212. need_version=yes
  21213. ;;
  21214. sysv4 | sysv4.3*)
  21215. version_type=linux
  21216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21217. soname_spec='${libname}${release}${shared_ext}$major'
  21218. shlibpath_var=LD_LIBRARY_PATH
  21219. case $host_vendor in
  21220. sni)
  21221. shlibpath_overrides_runpath=no
  21222. need_lib_prefix=no
  21223. export_dynamic_flag_spec='${wl}-Blargedynsym'
  21224. runpath_var=LD_RUN_PATH
  21225. ;;
  21226. siemens)
  21227. need_lib_prefix=no
  21228. ;;
  21229. motorola)
  21230. need_lib_prefix=no
  21231. need_version=no
  21232. shlibpath_overrides_runpath=no
  21233. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  21234. ;;
  21235. esac
  21236. ;;
  21237. sysv4*MP*)
  21238. if test -d /usr/nec ;then
  21239. version_type=linux
  21240. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  21241. soname_spec='$libname${shared_ext}.$major'
  21242. shlibpath_var=LD_LIBRARY_PATH
  21243. fi
  21244. ;;
  21245. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21246. version_type=freebsd-elf
  21247. need_lib_prefix=no
  21248. need_version=no
  21249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  21250. soname_spec='${libname}${release}${shared_ext}$major'
  21251. shlibpath_var=LD_LIBRARY_PATH
  21252. hardcode_into_libs=yes
  21253. if test "$with_gnu_ld" = yes; then
  21254. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  21255. shlibpath_overrides_runpath=no
  21256. else
  21257. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  21258. shlibpath_overrides_runpath=yes
  21259. case $host_os in
  21260. sco3.2v5*)
  21261. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  21262. ;;
  21263. esac
  21264. fi
  21265. sys_lib_dlsearch_path_spec='/usr/lib'
  21266. ;;
  21267. uts4*)
  21268. version_type=linux
  21269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21270. soname_spec='${libname}${release}${shared_ext}$major'
  21271. shlibpath_var=LD_LIBRARY_PATH
  21272. ;;
  21273. *)
  21274. dynamic_linker=no
  21275. ;;
  21276. esac
  21277. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  21278. echo "${ECHO_T}$dynamic_linker" >&6; }
  21279. test "$dynamic_linker" = no && can_build_shared=no
  21280. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  21281. if test "$GCC" = yes; then
  21282. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  21283. fi
  21284. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  21285. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  21286. hardcode_action_F77=
  21287. if test -n "$hardcode_libdir_flag_spec_F77" || \
  21288. test -n "$runpath_var_F77" || \
  21289. test "X$hardcode_automatic_F77" = "Xyes" ; then
  21290. # We can hardcode non-existant directories.
  21291. if test "$hardcode_direct_F77" != no &&
  21292. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  21293. # have to relink, otherwise we might link with an installed library
  21294. # when we should be linking with a yet-to-be-installed one
  21295. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  21296. test "$hardcode_minus_L_F77" != no; then
  21297. # Linking always hardcodes the temporary library directory.
  21298. hardcode_action_F77=relink
  21299. else
  21300. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  21301. hardcode_action_F77=immediate
  21302. fi
  21303. else
  21304. # We cannot hardcode anything, or else we can only hardcode existing
  21305. # directories.
  21306. hardcode_action_F77=unsupported
  21307. fi
  21308. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  21309. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  21310. if test "$hardcode_action_F77" = relink; then
  21311. # Fast installation is not supported
  21312. enable_fast_install=no
  21313. elif test "$shlibpath_overrides_runpath" = yes ||
  21314. test "$enable_shared" = no; then
  21315. # Fast installation is not necessary
  21316. enable_fast_install=needless
  21317. fi
  21318. # The else clause should only fire when bootstrapping the
  21319. # libtool distribution, otherwise you forgot to ship ltmain.sh
  21320. # with your package, and you will get complaints that there are
  21321. # no rules to generate ltmain.sh.
  21322. if test -f "$ltmain"; then
  21323. # See if we are running on zsh, and set the options which allow our commands through
  21324. # without removal of \ escapes.
  21325. if test -n "${ZSH_VERSION+set}" ; then
  21326. setopt NO_GLOB_SUBST
  21327. fi
  21328. # Now quote all the things that may contain metacharacters while being
  21329. # careful not to overquote the AC_SUBSTed values. We take copies of the
  21330. # variables and quote the copies for generation of the libtool script.
  21331. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  21332. SED SHELL STRIP \
  21333. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  21334. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  21335. deplibs_check_method reload_flag reload_cmds need_locks \
  21336. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  21337. lt_cv_sys_global_symbol_to_c_name_address \
  21338. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  21339. old_postinstall_cmds old_postuninstall_cmds \
  21340. compiler_F77 \
  21341. CC_F77 \
  21342. LD_F77 \
  21343. lt_prog_compiler_wl_F77 \
  21344. lt_prog_compiler_pic_F77 \
  21345. lt_prog_compiler_static_F77 \
  21346. lt_prog_compiler_no_builtin_flag_F77 \
  21347. export_dynamic_flag_spec_F77 \
  21348. thread_safe_flag_spec_F77 \
  21349. whole_archive_flag_spec_F77 \
  21350. enable_shared_with_static_runtimes_F77 \
  21351. old_archive_cmds_F77 \
  21352. old_archive_from_new_cmds_F77 \
  21353. predep_objects_F77 \
  21354. postdep_objects_F77 \
  21355. predeps_F77 \
  21356. postdeps_F77 \
  21357. compiler_lib_search_path_F77 \
  21358. archive_cmds_F77 \
  21359. archive_expsym_cmds_F77 \
  21360. postinstall_cmds_F77 \
  21361. postuninstall_cmds_F77 \
  21362. old_archive_from_expsyms_cmds_F77 \
  21363. allow_undefined_flag_F77 \
  21364. no_undefined_flag_F77 \
  21365. export_symbols_cmds_F77 \
  21366. hardcode_libdir_flag_spec_F77 \
  21367. hardcode_libdir_flag_spec_ld_F77 \
  21368. hardcode_libdir_separator_F77 \
  21369. hardcode_automatic_F77 \
  21370. module_cmds_F77 \
  21371. module_expsym_cmds_F77 \
  21372. lt_cv_prog_compiler_c_o_F77 \
  21373. exclude_expsyms_F77 \
  21374. include_expsyms_F77; do
  21375. case $var in
  21376. old_archive_cmds_F77 | \
  21377. old_archive_from_new_cmds_F77 | \
  21378. archive_cmds_F77 | \
  21379. archive_expsym_cmds_F77 | \
  21380. module_cmds_F77 | \
  21381. module_expsym_cmds_F77 | \
  21382. old_archive_from_expsyms_cmds_F77 | \
  21383. export_symbols_cmds_F77 | \
  21384. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  21385. postinstall_cmds | postuninstall_cmds | \
  21386. old_postinstall_cmds | old_postuninstall_cmds | \
  21387. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  21388. # Double-quote double-evaled strings.
  21389. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  21390. ;;
  21391. *)
  21392. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  21393. ;;
  21394. esac
  21395. done
  21396. case $lt_echo in
  21397. *'\$0 --fallback-echo"')
  21398. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  21399. ;;
  21400. esac
  21401. cfgfile="$ofile"
  21402. cat <<__EOF__ >> "$cfgfile"
  21403. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  21404. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21405. # Shell to use when invoking shell scripts.
  21406. SHELL=$lt_SHELL
  21407. # Whether or not to build shared libraries.
  21408. build_libtool_libs=$enable_shared
  21409. # Whether or not to build static libraries.
  21410. build_old_libs=$enable_static
  21411. # Whether or not to add -lc for building shared libraries.
  21412. build_libtool_need_lc=$archive_cmds_need_lc_F77
  21413. # Whether or not to disallow shared libs when runtime libs are static
  21414. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  21415. # Whether or not to optimize for fast installation.
  21416. fast_install=$enable_fast_install
  21417. # The host system.
  21418. host_alias=$host_alias
  21419. host=$host
  21420. host_os=$host_os
  21421. # The build system.
  21422. build_alias=$build_alias
  21423. build=$build
  21424. build_os=$build_os
  21425. # An echo program that does not interpret backslashes.
  21426. echo=$lt_echo
  21427. # The archiver.
  21428. AR=$lt_AR
  21429. AR_FLAGS=$lt_AR_FLAGS
  21430. # A C compiler.
  21431. LTCC=$lt_LTCC
  21432. # LTCC compiler flags.
  21433. LTCFLAGS=$lt_LTCFLAGS
  21434. # A language-specific compiler.
  21435. CC=$lt_compiler_F77
  21436. # Is the compiler the GNU C compiler?
  21437. with_gcc=$GCC_F77
  21438. # An ERE matcher.
  21439. EGREP=$lt_EGREP
  21440. # The linker used to build libraries.
  21441. LD=$lt_LD_F77
  21442. # Whether we need hard or soft links.
  21443. LN_S=$lt_LN_S
  21444. # A BSD-compatible nm program.
  21445. NM=$lt_NM
  21446. # A symbol stripping program
  21447. STRIP=$lt_STRIP
  21448. # Used to examine libraries when file_magic_cmd begins "file"
  21449. MAGIC_CMD=$MAGIC_CMD
  21450. # Used on cygwin: DLL creation program.
  21451. DLLTOOL="$DLLTOOL"
  21452. # Used on cygwin: object dumper.
  21453. OBJDUMP="$OBJDUMP"
  21454. # Used on cygwin: assembler.
  21455. AS="$AS"
  21456. # The name of the directory that contains temporary libtool files.
  21457. objdir=$objdir
  21458. # How to create reloadable object files.
  21459. reload_flag=$lt_reload_flag
  21460. reload_cmds=$lt_reload_cmds
  21461. # How to pass a linker flag through the compiler.
  21462. wl=$lt_lt_prog_compiler_wl_F77
  21463. # Object file suffix (normally "o").
  21464. objext="$ac_objext"
  21465. # Old archive suffix (normally "a").
  21466. libext="$libext"
  21467. # Shared library suffix (normally ".so").
  21468. shrext_cmds='$shrext_cmds'
  21469. # Executable file suffix (normally "").
  21470. exeext="$exeext"
  21471. # Additional compiler flags for building library objects.
  21472. pic_flag=$lt_lt_prog_compiler_pic_F77
  21473. pic_mode=$pic_mode
  21474. # What is the maximum length of a command?
  21475. max_cmd_len=$lt_cv_sys_max_cmd_len
  21476. # Does compiler simultaneously support -c and -o options?
  21477. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  21478. # Must we lock files when doing compilation?
  21479. need_locks=$lt_need_locks
  21480. # Do we need the lib prefix for modules?
  21481. need_lib_prefix=$need_lib_prefix
  21482. # Do we need a version for libraries?
  21483. need_version=$need_version
  21484. # Whether dlopen is supported.
  21485. dlopen_support=$enable_dlopen
  21486. # Whether dlopen of programs is supported.
  21487. dlopen_self=$enable_dlopen_self
  21488. # Whether dlopen of statically linked programs is supported.
  21489. dlopen_self_static=$enable_dlopen_self_static
  21490. # Compiler flag to prevent dynamic linking.
  21491. link_static_flag=$lt_lt_prog_compiler_static_F77
  21492. # Compiler flag to turn off builtin functions.
  21493. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  21494. # Compiler flag to allow reflexive dlopens.
  21495. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  21496. # Compiler flag to generate shared objects directly from archives.
  21497. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  21498. # Compiler flag to generate thread-safe objects.
  21499. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  21500. # Library versioning type.
  21501. version_type=$version_type
  21502. # Format of library name prefix.
  21503. libname_spec=$lt_libname_spec
  21504. # List of archive names. First name is the real one, the rest are links.
  21505. # The last name is the one that the linker finds with -lNAME.
  21506. library_names_spec=$lt_library_names_spec
  21507. # The coded name of the library, if different from the real name.
  21508. soname_spec=$lt_soname_spec
  21509. # Commands used to build and install an old-style archive.
  21510. RANLIB=$lt_RANLIB
  21511. old_archive_cmds=$lt_old_archive_cmds_F77
  21512. old_postinstall_cmds=$lt_old_postinstall_cmds
  21513. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21514. # Create an old-style archive from a shared archive.
  21515. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  21516. # Create a temporary old-style archive to link instead of a shared archive.
  21517. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  21518. # Commands used to build and install a shared archive.
  21519. archive_cmds=$lt_archive_cmds_F77
  21520. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  21521. postinstall_cmds=$lt_postinstall_cmds
  21522. postuninstall_cmds=$lt_postuninstall_cmds
  21523. # Commands used to build a loadable module (assumed same as above if empty)
  21524. module_cmds=$lt_module_cmds_F77
  21525. module_expsym_cmds=$lt_module_expsym_cmds_F77
  21526. # Commands to strip libraries.
  21527. old_striplib=$lt_old_striplib
  21528. striplib=$lt_striplib
  21529. # Dependencies to place before the objects being linked to create a
  21530. # shared library.
  21531. predep_objects=$lt_predep_objects_F77
  21532. # Dependencies to place after the objects being linked to create a
  21533. # shared library.
  21534. postdep_objects=$lt_postdep_objects_F77
  21535. # Dependencies to place before the objects being linked to create a
  21536. # shared library.
  21537. predeps=$lt_predeps_F77
  21538. # Dependencies to place after the objects being linked to create a
  21539. # shared library.
  21540. postdeps=$lt_postdeps_F77
  21541. # The library search path used internally by the compiler when linking
  21542. # a shared library.
  21543. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  21544. # Method to check whether dependent libraries are shared objects.
  21545. deplibs_check_method=$lt_deplibs_check_method
  21546. # Command to use when deplibs_check_method == file_magic.
  21547. file_magic_cmd=$lt_file_magic_cmd
  21548. # Flag that allows shared libraries with undefined symbols to be built.
  21549. allow_undefined_flag=$lt_allow_undefined_flag_F77
  21550. # Flag that forces no undefined symbols.
  21551. no_undefined_flag=$lt_no_undefined_flag_F77
  21552. # Commands used to finish a libtool library installation in a directory.
  21553. finish_cmds=$lt_finish_cmds
  21554. # Same as above, but a single script fragment to be evaled but not shown.
  21555. finish_eval=$lt_finish_eval
  21556. # Take the output of nm and produce a listing of raw symbols and C names.
  21557. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21558. # Transform the output of nm in a proper C declaration
  21559. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21560. # Transform the output of nm in a C name address pair
  21561. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21562. # This is the shared library runtime path variable.
  21563. runpath_var=$runpath_var
  21564. # This is the shared library path variable.
  21565. shlibpath_var=$shlibpath_var
  21566. # Is shlibpath searched before the hard-coded library search path?
  21567. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21568. # How to hardcode a shared library path into an executable.
  21569. hardcode_action=$hardcode_action_F77
  21570. # Whether we should hardcode library paths into libraries.
  21571. hardcode_into_libs=$hardcode_into_libs
  21572. # Flag to hardcode \$libdir into a binary during linking.
  21573. # This must work even if \$libdir does not exist.
  21574. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  21575. # If ld is used when linking, flag to hardcode \$libdir into
  21576. # a binary during linking. This must work even if \$libdir does
  21577. # not exist.
  21578. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  21579. # Whether we need a single -rpath flag with a separated argument.
  21580. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  21581. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  21582. # resulting binary.
  21583. hardcode_direct=$hardcode_direct_F77
  21584. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  21585. # resulting binary.
  21586. hardcode_minus_L=$hardcode_minus_L_F77
  21587. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  21588. # the resulting binary.
  21589. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  21590. # Set to yes if building a shared library automatically hardcodes DIR into the library
  21591. # and all subsequent libraries and executables linked against it.
  21592. hardcode_automatic=$hardcode_automatic_F77
  21593. # Variables whose values should be saved in libtool wrapper scripts and
  21594. # restored at relink time.
  21595. variables_saved_for_relink="$variables_saved_for_relink"
  21596. # Whether libtool must link a program against all its dependency libraries.
  21597. link_all_deplibs=$link_all_deplibs_F77
  21598. # Compile-time system search path for libraries
  21599. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21600. # Run-time system search path for libraries
  21601. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21602. # Fix the shell variable \$srcfile for the compiler.
  21603. fix_srcfile_path="$fix_srcfile_path_F77"
  21604. # Set to yes if exported symbols are required.
  21605. always_export_symbols=$always_export_symbols_F77
  21606. # The commands to list exported symbols.
  21607. export_symbols_cmds=$lt_export_symbols_cmds_F77
  21608. # The commands to extract the exported symbol list from a shared archive.
  21609. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21610. # Symbols that should not be listed in the preloaded symbols.
  21611. exclude_expsyms=$lt_exclude_expsyms_F77
  21612. # Symbols that must always be exported.
  21613. include_expsyms=$lt_include_expsyms_F77
  21614. # ### END LIBTOOL TAG CONFIG: $tagname
  21615. __EOF__
  21616. else
  21617. # If there is no Makefile yet, we rely on a make rule to execute
  21618. # `config.status --recheck' to rerun these tests and create the
  21619. # libtool script then.
  21620. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  21621. if test -f "$ltmain_in"; then
  21622. test -f Makefile && make "$ltmain"
  21623. fi
  21624. fi
  21625. ac_ext=c
  21626. ac_cpp='$CPP $CPPFLAGS'
  21627. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21628. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21629. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21630. CC="$lt_save_CC"
  21631. else
  21632. tagname=""
  21633. fi
  21634. ;;
  21635. GCJ)
  21636. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  21637. ac_ext=c
  21638. ac_cpp='$CPP $CPPFLAGS'
  21639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21642. # Source file extension for Java test sources.
  21643. ac_ext=java
  21644. # Object file extension for compiled Java test sources.
  21645. objext=o
  21646. objext_GCJ=$objext
  21647. # Code to be used in simple compile tests
  21648. lt_simple_compile_test_code="class foo {}\n"
  21649. # Code to be used in simple link tests
  21650. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  21651. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  21652. # If no C compiler was specified, use CC.
  21653. LTCC=${LTCC-"$CC"}
  21654. # If no C compiler flags were specified, use CFLAGS.
  21655. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21656. # Allow CC to be a program name with arguments.
  21657. compiler=$CC
  21658. # save warnings/boilerplate of simple test code
  21659. ac_outfile=conftest.$ac_objext
  21660. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  21661. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21662. _lt_compiler_boilerplate=`cat conftest.err`
  21663. $rm conftest*
  21664. ac_outfile=conftest.$ac_objext
  21665. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  21666. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21667. _lt_linker_boilerplate=`cat conftest.err`
  21668. $rm conftest*
  21669. # Allow CC to be a program name with arguments.
  21670. lt_save_CC="$CC"
  21671. CC=${GCJ-"gcj"}
  21672. compiler=$CC
  21673. compiler_GCJ=$CC
  21674. for cc_temp in $compiler""; do
  21675. case $cc_temp in
  21676. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  21677. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  21678. \-*) ;;
  21679. *) break;;
  21680. esac
  21681. done
  21682. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  21683. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  21684. archive_cmds_need_lc_GCJ=no
  21685. old_archive_cmds_GCJ=$old_archive_cmds
  21686. lt_prog_compiler_no_builtin_flag_GCJ=
  21687. if test "$GCC" = yes; then
  21688. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  21689. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  21690. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  21691. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  21692. echo $ECHO_N "(cached) $ECHO_C" >&6
  21693. else
  21694. lt_cv_prog_compiler_rtti_exceptions=no
  21695. ac_outfile=conftest.$ac_objext
  21696. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  21697. lt_compiler_flag="-fno-rtti -fno-exceptions"
  21698. # Insert the option either (1) after the last *FLAGS variable, or
  21699. # (2) before a word containing "conftest.", or (3) at the end.
  21700. # Note that $ac_compile itself does not contain backslashes and begins
  21701. # with a dollar sign (not a hyphen), so the echo should work correctly.
  21702. # The option is referenced via a variable to avoid confusing sed.
  21703. lt_compile=`echo "$ac_compile" | $SED \
  21704. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21705. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21706. -e 's:$: $lt_compiler_flag:'`
  21707. (eval echo "\"\$as_me:24158: $lt_compile\"" >&5)
  21708. (eval "$lt_compile" 2>conftest.err)
  21709. ac_status=$?
  21710. cat conftest.err >&5
  21711. echo "$as_me:24162: \$? = $ac_status" >&5
  21712. if (exit $ac_status) && test -s "$ac_outfile"; then
  21713. # The compiler can only warn and ignore the option if not recognized
  21714. # So say no if there are warnings other than the usual output.
  21715. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21716. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21717. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21718. lt_cv_prog_compiler_rtti_exceptions=yes
  21719. fi
  21720. fi
  21721. $rm conftest*
  21722. fi
  21723. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  21724. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  21725. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  21726. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  21727. else
  21728. :
  21729. fi
  21730. fi
  21731. lt_prog_compiler_wl_GCJ=
  21732. lt_prog_compiler_pic_GCJ=
  21733. lt_prog_compiler_static_GCJ=
  21734. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  21735. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  21736. if test "$GCC" = yes; then
  21737. lt_prog_compiler_wl_GCJ='-Wl,'
  21738. lt_prog_compiler_static_GCJ='-static'
  21739. case $host_os in
  21740. aix*)
  21741. # All AIX code is PIC.
  21742. if test "$host_cpu" = ia64; then
  21743. # AIX 5 now supports IA64 processor
  21744. lt_prog_compiler_static_GCJ='-Bstatic'
  21745. fi
  21746. ;;
  21747. amigaos*)
  21748. # FIXME: we need at least 68020 code to build shared libraries, but
  21749. # adding the `-m68020' flag to GCC prevents building anything better,
  21750. # like `-m68040'.
  21751. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  21752. ;;
  21753. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  21754. # PIC is the default for these OSes.
  21755. ;;
  21756. mingw* | pw32* | os2*)
  21757. # This hack is so that the source file can tell whether it is being
  21758. # built for inclusion in a dll (and should export symbols for example).
  21759. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  21760. ;;
  21761. darwin* | rhapsody*)
  21762. # PIC is the default on this platform
  21763. # Common symbols not allowed in MH_DYLIB files
  21764. lt_prog_compiler_pic_GCJ='-fno-common'
  21765. ;;
  21766. interix3*)
  21767. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  21768. # Instead, we relocate shared libraries at runtime.
  21769. ;;
  21770. msdosdjgpp*)
  21771. # Just because we use GCC doesn't mean we suddenly get shared libraries
  21772. # on systems that don't support them.
  21773. lt_prog_compiler_can_build_shared_GCJ=no
  21774. enable_shared=no
  21775. ;;
  21776. sysv4*MP*)
  21777. if test -d /usr/nec; then
  21778. lt_prog_compiler_pic_GCJ=-Kconform_pic
  21779. fi
  21780. ;;
  21781. hpux*)
  21782. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21783. # not for PA HP-UX.
  21784. case $host_cpu in
  21785. hppa*64*|ia64*)
  21786. # +Z the default
  21787. ;;
  21788. *)
  21789. lt_prog_compiler_pic_GCJ='-fPIC'
  21790. ;;
  21791. esac
  21792. ;;
  21793. *)
  21794. lt_prog_compiler_pic_GCJ='-fPIC'
  21795. ;;
  21796. esac
  21797. else
  21798. # PORTME Check for flag to pass linker flags through the system compiler.
  21799. case $host_os in
  21800. aix*)
  21801. lt_prog_compiler_wl_GCJ='-Wl,'
  21802. if test "$host_cpu" = ia64; then
  21803. # AIX 5 now supports IA64 processor
  21804. lt_prog_compiler_static_GCJ='-Bstatic'
  21805. else
  21806. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  21807. fi
  21808. ;;
  21809. darwin*)
  21810. # PIC is the default on this platform
  21811. # Common symbols not allowed in MH_DYLIB files
  21812. case $cc_basename in
  21813. xlc*)
  21814. lt_prog_compiler_pic_GCJ='-qnocommon'
  21815. lt_prog_compiler_wl_GCJ='-Wl,'
  21816. ;;
  21817. esac
  21818. ;;
  21819. mingw* | pw32* | os2*)
  21820. # This hack is so that the source file can tell whether it is being
  21821. # built for inclusion in a dll (and should export symbols for example).
  21822. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  21823. ;;
  21824. hpux9* | hpux10* | hpux11*)
  21825. lt_prog_compiler_wl_GCJ='-Wl,'
  21826. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21827. # not for PA HP-UX.
  21828. case $host_cpu in
  21829. hppa*64*|ia64*)
  21830. # +Z the default
  21831. ;;
  21832. *)
  21833. lt_prog_compiler_pic_GCJ='+Z'
  21834. ;;
  21835. esac
  21836. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  21837. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  21838. ;;
  21839. irix5* | irix6* | nonstopux*)
  21840. lt_prog_compiler_wl_GCJ='-Wl,'
  21841. # PIC (with -KPIC) is the default.
  21842. lt_prog_compiler_static_GCJ='-non_shared'
  21843. ;;
  21844. newsos6)
  21845. lt_prog_compiler_pic_GCJ='-KPIC'
  21846. lt_prog_compiler_static_GCJ='-Bstatic'
  21847. ;;
  21848. linux*)
  21849. case $cc_basename in
  21850. icc* | ecc*)
  21851. lt_prog_compiler_wl_GCJ='-Wl,'
  21852. lt_prog_compiler_pic_GCJ='-KPIC'
  21853. lt_prog_compiler_static_GCJ='-static'
  21854. ;;
  21855. pgcc* | pgf77* | pgf90* | pgf95*)
  21856. # Portland Group compilers (*not* the Pentium gcc compiler,
  21857. # which looks to be a dead project)
  21858. lt_prog_compiler_wl_GCJ='-Wl,'
  21859. lt_prog_compiler_pic_GCJ='-fpic'
  21860. lt_prog_compiler_static_GCJ='-Bstatic'
  21861. ;;
  21862. ccc*)
  21863. lt_prog_compiler_wl_GCJ='-Wl,'
  21864. # All Alpha code is PIC.
  21865. lt_prog_compiler_static_GCJ='-non_shared'
  21866. ;;
  21867. esac
  21868. ;;
  21869. osf3* | osf4* | osf5*)
  21870. lt_prog_compiler_wl_GCJ='-Wl,'
  21871. # All OSF/1 code is PIC.
  21872. lt_prog_compiler_static_GCJ='-non_shared'
  21873. ;;
  21874. solaris*)
  21875. lt_prog_compiler_pic_GCJ='-KPIC'
  21876. lt_prog_compiler_static_GCJ='-Bstatic'
  21877. case $cc_basename in
  21878. f77* | f90* | f95*)
  21879. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  21880. *)
  21881. lt_prog_compiler_wl_GCJ='-Wl,';;
  21882. esac
  21883. ;;
  21884. sunos4*)
  21885. lt_prog_compiler_wl_GCJ='-Qoption ld '
  21886. lt_prog_compiler_pic_GCJ='-PIC'
  21887. lt_prog_compiler_static_GCJ='-Bstatic'
  21888. ;;
  21889. sysv4 | sysv4.2uw2* | sysv4.3*)
  21890. lt_prog_compiler_wl_GCJ='-Wl,'
  21891. lt_prog_compiler_pic_GCJ='-KPIC'
  21892. lt_prog_compiler_static_GCJ='-Bstatic'
  21893. ;;
  21894. sysv4*MP*)
  21895. if test -d /usr/nec ;then
  21896. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  21897. lt_prog_compiler_static_GCJ='-Bstatic'
  21898. fi
  21899. ;;
  21900. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  21901. lt_prog_compiler_wl_GCJ='-Wl,'
  21902. lt_prog_compiler_pic_GCJ='-KPIC'
  21903. lt_prog_compiler_static_GCJ='-Bstatic'
  21904. ;;
  21905. unicos*)
  21906. lt_prog_compiler_wl_GCJ='-Wl,'
  21907. lt_prog_compiler_can_build_shared_GCJ=no
  21908. ;;
  21909. uts4*)
  21910. lt_prog_compiler_pic_GCJ='-pic'
  21911. lt_prog_compiler_static_GCJ='-Bstatic'
  21912. ;;
  21913. *)
  21914. lt_prog_compiler_can_build_shared_GCJ=no
  21915. ;;
  21916. esac
  21917. fi
  21918. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  21919. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  21920. #
  21921. # Check to make sure the PIC flag actually works.
  21922. #
  21923. if test -n "$lt_prog_compiler_pic_GCJ"; then
  21924. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  21925. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  21926. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  21927. echo $ECHO_N "(cached) $ECHO_C" >&6
  21928. else
  21929. lt_prog_compiler_pic_works_GCJ=no
  21930. ac_outfile=conftest.$ac_objext
  21931. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  21932. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  21933. # Insert the option either (1) after the last *FLAGS variable, or
  21934. # (2) before a word containing "conftest.", or (3) at the end.
  21935. # Note that $ac_compile itself does not contain backslashes and begins
  21936. # with a dollar sign (not a hyphen), so the echo should work correctly.
  21937. # The option is referenced via a variable to avoid confusing sed.
  21938. lt_compile=`echo "$ac_compile" | $SED \
  21939. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21940. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21941. -e 's:$: $lt_compiler_flag:'`
  21942. (eval echo "\"\$as_me:24426: $lt_compile\"" >&5)
  21943. (eval "$lt_compile" 2>conftest.err)
  21944. ac_status=$?
  21945. cat conftest.err >&5
  21946. echo "$as_me:24430: \$? = $ac_status" >&5
  21947. if (exit $ac_status) && test -s "$ac_outfile"; then
  21948. # The compiler can only warn and ignore the option if not recognized
  21949. # So say no if there are warnings other than the usual output.
  21950. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21951. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21952. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21953. lt_prog_compiler_pic_works_GCJ=yes
  21954. fi
  21955. fi
  21956. $rm conftest*
  21957. fi
  21958. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  21959. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  21960. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  21961. case $lt_prog_compiler_pic_GCJ in
  21962. "" | " "*) ;;
  21963. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  21964. esac
  21965. else
  21966. lt_prog_compiler_pic_GCJ=
  21967. lt_prog_compiler_can_build_shared_GCJ=no
  21968. fi
  21969. fi
  21970. case $host_os in
  21971. # For platforms which do not support PIC, -DPIC is meaningless:
  21972. *djgpp*)
  21973. lt_prog_compiler_pic_GCJ=
  21974. ;;
  21975. *)
  21976. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  21977. ;;
  21978. esac
  21979. #
  21980. # Check to make sure the static flag actually works.
  21981. #
  21982. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  21983. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  21984. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  21985. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  21986. echo $ECHO_N "(cached) $ECHO_C" >&6
  21987. else
  21988. lt_prog_compiler_static_works_GCJ=no
  21989. save_LDFLAGS="$LDFLAGS"
  21990. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  21991. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  21992. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  21993. # The linker can only warn and ignore the option if not recognized
  21994. # So say no if there are warnings
  21995. if test -s conftest.err; then
  21996. # Append any errors to the config.log.
  21997. cat conftest.err 1>&5
  21998. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  21999. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22000. if diff conftest.exp conftest.er2 >/dev/null; then
  22001. lt_prog_compiler_static_works_GCJ=yes
  22002. fi
  22003. else
  22004. lt_prog_compiler_static_works_GCJ=yes
  22005. fi
  22006. fi
  22007. $rm conftest*
  22008. LDFLAGS="$save_LDFLAGS"
  22009. fi
  22010. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  22011. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  22012. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  22013. :
  22014. else
  22015. lt_prog_compiler_static_GCJ=
  22016. fi
  22017. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  22018. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  22019. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  22020. echo $ECHO_N "(cached) $ECHO_C" >&6
  22021. else
  22022. lt_cv_prog_compiler_c_o_GCJ=no
  22023. $rm -r conftest 2>/dev/null
  22024. mkdir conftest
  22025. cd conftest
  22026. mkdir out
  22027. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  22028. lt_compiler_flag="-o out/conftest2.$ac_objext"
  22029. # Insert the option either (1) after the last *FLAGS variable, or
  22030. # (2) before a word containing "conftest.", or (3) at the end.
  22031. # Note that $ac_compile itself does not contain backslashes and begins
  22032. # with a dollar sign (not a hyphen), so the echo should work correctly.
  22033. lt_compile=`echo "$ac_compile" | $SED \
  22034. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22035. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22036. -e 's:$: $lt_compiler_flag:'`
  22037. (eval echo "\"\$as_me:24530: $lt_compile\"" >&5)
  22038. (eval "$lt_compile" 2>out/conftest.err)
  22039. ac_status=$?
  22040. cat out/conftest.err >&5
  22041. echo "$as_me:24534: \$? = $ac_status" >&5
  22042. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  22043. then
  22044. # The compiler can only warn and ignore the option if not recognized
  22045. # So say no if there are warnings
  22046. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  22047. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  22048. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  22049. lt_cv_prog_compiler_c_o_GCJ=yes
  22050. fi
  22051. fi
  22052. chmod u+w . 2>&5
  22053. $rm conftest*
  22054. # SGI C++ compiler will create directory out/ii_files/ for
  22055. # template instantiation
  22056. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  22057. $rm out/* && rmdir out
  22058. cd ..
  22059. rmdir conftest
  22060. $rm conftest*
  22061. fi
  22062. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  22063. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  22064. hard_links="nottested"
  22065. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  22066. # do not overwrite the value of need_locks provided by the user
  22067. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  22068. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  22069. hard_links=yes
  22070. $rm conftest*
  22071. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22072. touch conftest.a
  22073. ln conftest.a conftest.b 2>&5 || hard_links=no
  22074. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22075. { echo "$as_me:$LINENO: result: $hard_links" >&5
  22076. echo "${ECHO_T}$hard_links" >&6; }
  22077. if test "$hard_links" = no; then
  22078. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  22079. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  22080. need_locks=warn
  22081. fi
  22082. else
  22083. need_locks=no
  22084. fi
  22085. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22086. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  22087. runpath_var=
  22088. allow_undefined_flag_GCJ=
  22089. enable_shared_with_static_runtimes_GCJ=no
  22090. archive_cmds_GCJ=
  22091. archive_expsym_cmds_GCJ=
  22092. old_archive_From_new_cmds_GCJ=
  22093. old_archive_from_expsyms_cmds_GCJ=
  22094. export_dynamic_flag_spec_GCJ=
  22095. whole_archive_flag_spec_GCJ=
  22096. thread_safe_flag_spec_GCJ=
  22097. hardcode_libdir_flag_spec_GCJ=
  22098. hardcode_libdir_flag_spec_ld_GCJ=
  22099. hardcode_libdir_separator_GCJ=
  22100. hardcode_direct_GCJ=no
  22101. hardcode_minus_L_GCJ=no
  22102. hardcode_shlibpath_var_GCJ=unsupported
  22103. link_all_deplibs_GCJ=unknown
  22104. hardcode_automatic_GCJ=no
  22105. module_cmds_GCJ=
  22106. module_expsym_cmds_GCJ=
  22107. always_export_symbols_GCJ=no
  22108. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  22109. # include_expsyms should be a list of space-separated symbols to be *always*
  22110. # included in the symbol list
  22111. include_expsyms_GCJ=
  22112. # exclude_expsyms can be an extended regexp of symbols to exclude
  22113. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  22114. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  22115. # as well as any symbol that contains `d'.
  22116. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  22117. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  22118. # platforms (ab)use it in PIC code, but their linkers get confused if
  22119. # the symbol is explicitly referenced. Since portable code cannot
  22120. # rely on this symbol name, it's probably fine to never include it in
  22121. # preloaded symbol tables.
  22122. extract_expsyms_cmds=
  22123. # Just being paranoid about ensuring that cc_basename is set.
  22124. for cc_temp in $compiler""; do
  22125. case $cc_temp in
  22126. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22127. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22128. \-*) ;;
  22129. *) break;;
  22130. esac
  22131. done
  22132. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22133. case $host_os in
  22134. cygwin* | mingw* | pw32*)
  22135. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  22136. # When not using gcc, we currently assume that we are using
  22137. # Microsoft Visual C++.
  22138. if test "$GCC" != yes; then
  22139. with_gnu_ld=no
  22140. fi
  22141. ;;
  22142. interix*)
  22143. # we just hope/assume this is gcc and not c89 (= MSVC++)
  22144. with_gnu_ld=yes
  22145. ;;
  22146. openbsd*)
  22147. with_gnu_ld=no
  22148. ;;
  22149. esac
  22150. ld_shlibs_GCJ=yes
  22151. if test "$with_gnu_ld" = yes; then
  22152. # If archive_cmds runs LD, not CC, wlarc should be empty
  22153. wlarc='${wl}'
  22154. # Set some defaults for GNU ld with shared library support. These
  22155. # are reset later if shared libraries are not supported. Putting them
  22156. # here allows them to be overridden if necessary.
  22157. runpath_var=LD_RUN_PATH
  22158. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  22159. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  22160. # ancient GNU ld didn't support --whole-archive et. al.
  22161. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  22162. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22163. else
  22164. whole_archive_flag_spec_GCJ=
  22165. fi
  22166. supports_anon_versioning=no
  22167. case `$LD -v 2>/dev/null` in
  22168. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  22169. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  22170. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  22171. *\ 2.11.*) ;; # other 2.11 versions
  22172. *) supports_anon_versioning=yes ;;
  22173. esac
  22174. # See if GNU ld supports shared libraries.
  22175. case $host_os in
  22176. aix3* | aix4* | aix5*)
  22177. # On AIX/PPC, the GNU linker is very broken
  22178. if test "$host_cpu" != ia64; then
  22179. ld_shlibs_GCJ=no
  22180. cat <<EOF 1>&2
  22181. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  22182. *** to be unable to reliably create shared libraries on AIX.
  22183. *** Therefore, libtool is disabling shared libraries support. If you
  22184. *** really care for shared libraries, you may want to modify your PATH
  22185. *** so that a non-GNU linker is found, and then restart.
  22186. EOF
  22187. fi
  22188. ;;
  22189. amigaos*)
  22190. 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)'
  22191. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  22192. hardcode_minus_L_GCJ=yes
  22193. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  22194. # that the semantics of dynamic libraries on AmigaOS, at least up
  22195. # to version 4, is to share data among multiple programs linked
  22196. # with the same dynamic library. Since this doesn't match the
  22197. # behavior of shared libraries on other platforms, we can't use
  22198. # them.
  22199. ld_shlibs_GCJ=no
  22200. ;;
  22201. beos*)
  22202. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22203. allow_undefined_flag_GCJ=unsupported
  22204. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22205. # support --undefined. This deserves some investigation. FIXME
  22206. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22207. else
  22208. ld_shlibs_GCJ=no
  22209. fi
  22210. ;;
  22211. cygwin* | mingw* | pw32*)
  22212. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  22213. # as there is no search path for DLLs.
  22214. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  22215. allow_undefined_flag_GCJ=unsupported
  22216. always_export_symbols_GCJ=no
  22217. enable_shared_with_static_runtimes_GCJ=yes
  22218. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  22219. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  22220. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22221. # If the export-symbols file already is a .def file (1st line
  22222. # is EXPORTS), use it as is; otherwise, prepend...
  22223. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22224. cp $export_symbols $output_objdir/$soname.def;
  22225. else
  22226. echo EXPORTS > $output_objdir/$soname.def;
  22227. cat $export_symbols >> $output_objdir/$soname.def;
  22228. fi~
  22229. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22230. else
  22231. ld_shlibs_GCJ=no
  22232. fi
  22233. ;;
  22234. interix3*)
  22235. hardcode_direct_GCJ=no
  22236. hardcode_shlibpath_var_GCJ=no
  22237. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  22238. export_dynamic_flag_spec_GCJ='${wl}-E'
  22239. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  22240. # Instead, shared libraries are loaded at an image base (0x10000000 by
  22241. # default) and relocated if they conflict, which is a slow very memory
  22242. # consuming and fragmenting process. To avoid this, we pick a random,
  22243. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  22244. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  22245. 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'
  22246. 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'
  22247. ;;
  22248. linux*)
  22249. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22250. tmp_addflag=
  22251. case $cc_basename,$host_cpu in
  22252. pgcc*) # Portland Group C compiler
  22253. 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'
  22254. tmp_addflag=' $pic_flag'
  22255. ;;
  22256. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  22257. 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'
  22258. tmp_addflag=' $pic_flag -Mnomain' ;;
  22259. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  22260. tmp_addflag=' -i_dynamic' ;;
  22261. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  22262. tmp_addflag=' -i_dynamic -nofor_main' ;;
  22263. ifc* | ifort*) # Intel Fortran compiler
  22264. tmp_addflag=' -nofor_main' ;;
  22265. esac
  22266. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22267. if test $supports_anon_versioning = yes; then
  22268. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  22269. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  22270. $echo "local: *; };" >> $output_objdir/$libname.ver~
  22271. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  22272. fi
  22273. else
  22274. ld_shlibs_GCJ=no
  22275. fi
  22276. ;;
  22277. netbsd*)
  22278. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22279. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  22280. wlarc=
  22281. else
  22282. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22283. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22284. fi
  22285. ;;
  22286. solaris*)
  22287. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  22288. ld_shlibs_GCJ=no
  22289. cat <<EOF 1>&2
  22290. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  22291. *** create shared libraries on Solaris systems. Therefore, libtool
  22292. *** is disabling shared libraries support. We urge you to upgrade GNU
  22293. *** binutils to release 2.9.1 or newer. Another option is to modify
  22294. *** your PATH or compiler configuration so that the native linker is
  22295. *** used, and then restart.
  22296. EOF
  22297. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22298. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22299. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22300. else
  22301. ld_shlibs_GCJ=no
  22302. fi
  22303. ;;
  22304. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  22305. case `$LD -v 2>&1` in
  22306. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  22307. ld_shlibs_GCJ=no
  22308. cat <<_LT_EOF 1>&2
  22309. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  22310. *** reliably create shared libraries on SCO systems. Therefore, libtool
  22311. *** is disabling shared libraries support. We urge you to upgrade GNU
  22312. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  22313. *** your PATH or compiler configuration so that the native linker is
  22314. *** used, and then restart.
  22315. _LT_EOF
  22316. ;;
  22317. *)
  22318. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22319. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  22320. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  22321. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  22322. else
  22323. ld_shlibs_GCJ=no
  22324. fi
  22325. ;;
  22326. esac
  22327. ;;
  22328. sunos4*)
  22329. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22330. wlarc=
  22331. hardcode_direct_GCJ=yes
  22332. hardcode_shlibpath_var_GCJ=no
  22333. ;;
  22334. *)
  22335. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22336. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22337. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22338. else
  22339. ld_shlibs_GCJ=no
  22340. fi
  22341. ;;
  22342. esac
  22343. if test "$ld_shlibs_GCJ" = no; then
  22344. runpath_var=
  22345. hardcode_libdir_flag_spec_GCJ=
  22346. export_dynamic_flag_spec_GCJ=
  22347. whole_archive_flag_spec_GCJ=
  22348. fi
  22349. else
  22350. # PORTME fill in a description of your system's linker (not GNU ld)
  22351. case $host_os in
  22352. aix3*)
  22353. allow_undefined_flag_GCJ=unsupported
  22354. always_export_symbols_GCJ=yes
  22355. 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'
  22356. # Note: this linker hardcodes the directories in LIBPATH if there
  22357. # are no directories specified by -L.
  22358. hardcode_minus_L_GCJ=yes
  22359. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  22360. # Neither direct hardcoding nor static linking is supported with a
  22361. # broken collect2.
  22362. hardcode_direct_GCJ=unsupported
  22363. fi
  22364. ;;
  22365. aix4* | aix5*)
  22366. if test "$host_cpu" = ia64; then
  22367. # On IA64, the linker does run time linking by default, so we don't
  22368. # have to do anything special.
  22369. aix_use_runtimelinking=no
  22370. exp_sym_flag='-Bexport'
  22371. no_entry_flag=""
  22372. else
  22373. # If we're using GNU nm, then we don't want the "-C" option.
  22374. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  22375. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  22376. 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'
  22377. else
  22378. 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'
  22379. fi
  22380. aix_use_runtimelinking=no
  22381. # Test if we are trying to use run time linking or normal
  22382. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22383. # need to do runtime linking.
  22384. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  22385. for ld_flag in $LDFLAGS; do
  22386. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  22387. aix_use_runtimelinking=yes
  22388. break
  22389. fi
  22390. done
  22391. ;;
  22392. esac
  22393. exp_sym_flag='-bexport'
  22394. no_entry_flag='-bnoentry'
  22395. fi
  22396. # When large executables or shared objects are built, AIX ld can
  22397. # have problems creating the table of contents. If linking a library
  22398. # or program results in "error TOC overflow" add -mminimal-toc to
  22399. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22400. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22401. archive_cmds_GCJ=''
  22402. hardcode_direct_GCJ=yes
  22403. hardcode_libdir_separator_GCJ=':'
  22404. link_all_deplibs_GCJ=yes
  22405. if test "$GCC" = yes; then
  22406. case $host_os in aix4.[012]|aix4.[012].*)
  22407. # We only want to do this on AIX 4.2 and lower, the check
  22408. # below for broken collect2 doesn't work under 4.3+
  22409. collect2name=`${CC} -print-prog-name=collect2`
  22410. if test -f "$collect2name" && \
  22411. strings "$collect2name" | grep resolve_lib_name >/dev/null
  22412. then
  22413. # We have reworked collect2
  22414. hardcode_direct_GCJ=yes
  22415. else
  22416. # We have old collect2
  22417. hardcode_direct_GCJ=unsupported
  22418. # It fails to find uninstalled libraries when the uninstalled
  22419. # path is not listed in the libpath. Setting hardcode_minus_L
  22420. # to unsupported forces relinking
  22421. hardcode_minus_L_GCJ=yes
  22422. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  22423. hardcode_libdir_separator_GCJ=
  22424. fi
  22425. ;;
  22426. esac
  22427. shared_flag='-shared'
  22428. if test "$aix_use_runtimelinking" = yes; then
  22429. shared_flag="$shared_flag "'${wl}-G'
  22430. fi
  22431. else
  22432. # not using gcc
  22433. if test "$host_cpu" = ia64; then
  22434. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  22435. # chokes on -Wl,-G. The following line is correct:
  22436. shared_flag='-G'
  22437. else
  22438. if test "$aix_use_runtimelinking" = yes; then
  22439. shared_flag='${wl}-G'
  22440. else
  22441. shared_flag='${wl}-bM:SRE'
  22442. fi
  22443. fi
  22444. fi
  22445. # It seems that -bexpall does not export symbols beginning with
  22446. # underscore (_), so it is better to generate a list of symbols to export.
  22447. always_export_symbols_GCJ=yes
  22448. if test "$aix_use_runtimelinking" = yes; then
  22449. # Warning - without using the other runtime loading flags (-brtl),
  22450. # -berok will link without error, but may produce a broken library.
  22451. allow_undefined_flag_GCJ='-berok'
  22452. # Determine the default libpath from the value encoded in an empty executable.
  22453. cat >conftest.$ac_ext <<_ACEOF
  22454. /* confdefs.h. */
  22455. _ACEOF
  22456. cat confdefs.h >>conftest.$ac_ext
  22457. cat >>conftest.$ac_ext <<_ACEOF
  22458. /* end confdefs.h. */
  22459. int
  22460. main ()
  22461. {
  22462. ;
  22463. return 0;
  22464. }
  22465. _ACEOF
  22466. rm -f conftest.$ac_objext conftest$ac_exeext
  22467. if { (ac_try="$ac_link"
  22468. case "(($ac_try" in
  22469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22470. *) ac_try_echo=$ac_try;;
  22471. esac
  22472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22473. (eval "$ac_link") 2>conftest.er1
  22474. ac_status=$?
  22475. grep -v '^ *+' conftest.er1 >conftest.err
  22476. rm -f conftest.er1
  22477. cat conftest.err >&5
  22478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22479. (exit $ac_status); } &&
  22480. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  22481. { (case "(($ac_try" in
  22482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22483. *) ac_try_echo=$ac_try;;
  22484. esac
  22485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22486. (eval "$ac_try") 2>&5
  22487. ac_status=$?
  22488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22489. (exit $ac_status); }; } &&
  22490. { ac_try='test -s conftest$ac_exeext'
  22491. { (case "(($ac_try" in
  22492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22493. *) ac_try_echo=$ac_try;;
  22494. esac
  22495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22496. (eval "$ac_try") 2>&5
  22497. ac_status=$?
  22498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22499. (exit $ac_status); }; }; then
  22500. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22501. }'`
  22502. # Check for a 64-bit object if we didn't find anything.
  22503. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22504. }'`; fi
  22505. else
  22506. echo "$as_me: failed program was:" >&5
  22507. sed 's/^/| /' conftest.$ac_ext >&5
  22508. fi
  22509. rm -f core conftest.err conftest.$ac_objext \
  22510. conftest$ac_exeext conftest.$ac_ext
  22511. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22512. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  22513. 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"
  22514. else
  22515. if test "$host_cpu" = ia64; then
  22516. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  22517. allow_undefined_flag_GCJ="-z nodefs"
  22518. 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"
  22519. else
  22520. # Determine the default libpath from the value encoded in an empty executable.
  22521. cat >conftest.$ac_ext <<_ACEOF
  22522. /* confdefs.h. */
  22523. _ACEOF
  22524. cat confdefs.h >>conftest.$ac_ext
  22525. cat >>conftest.$ac_ext <<_ACEOF
  22526. /* end confdefs.h. */
  22527. int
  22528. main ()
  22529. {
  22530. ;
  22531. return 0;
  22532. }
  22533. _ACEOF
  22534. rm -f conftest.$ac_objext conftest$ac_exeext
  22535. if { (ac_try="$ac_link"
  22536. case "(($ac_try" in
  22537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22538. *) ac_try_echo=$ac_try;;
  22539. esac
  22540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22541. (eval "$ac_link") 2>conftest.er1
  22542. ac_status=$?
  22543. grep -v '^ *+' conftest.er1 >conftest.err
  22544. rm -f conftest.er1
  22545. cat conftest.err >&5
  22546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22547. (exit $ac_status); } &&
  22548. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  22549. { (case "(($ac_try" in
  22550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22551. *) ac_try_echo=$ac_try;;
  22552. esac
  22553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22554. (eval "$ac_try") 2>&5
  22555. ac_status=$?
  22556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22557. (exit $ac_status); }; } &&
  22558. { ac_try='test -s conftest$ac_exeext'
  22559. { (case "(($ac_try" in
  22560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22561. *) ac_try_echo=$ac_try;;
  22562. esac
  22563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22564. (eval "$ac_try") 2>&5
  22565. ac_status=$?
  22566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22567. (exit $ac_status); }; }; then
  22568. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22569. }'`
  22570. # Check for a 64-bit object if we didn't find anything.
  22571. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22572. }'`; fi
  22573. else
  22574. echo "$as_me: failed program was:" >&5
  22575. sed 's/^/| /' conftest.$ac_ext >&5
  22576. fi
  22577. rm -f core conftest.err conftest.$ac_objext \
  22578. conftest$ac_exeext conftest.$ac_ext
  22579. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22580. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  22581. # Warning - without using the other run time loading flags,
  22582. # -berok will link without error, but may produce a broken library.
  22583. no_undefined_flag_GCJ=' ${wl}-bernotok'
  22584. allow_undefined_flag_GCJ=' ${wl}-berok'
  22585. # Exported symbols can be pulled into shared objects from archives
  22586. whole_archive_flag_spec_GCJ='$convenience'
  22587. archive_cmds_need_lc_GCJ=yes
  22588. # This is similar to how AIX traditionally builds its shared libraries.
  22589. 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'
  22590. fi
  22591. fi
  22592. ;;
  22593. amigaos*)
  22594. 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)'
  22595. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  22596. hardcode_minus_L_GCJ=yes
  22597. # see comment about different semantics on the GNU ld section
  22598. ld_shlibs_GCJ=no
  22599. ;;
  22600. bsdi[45]*)
  22601. export_dynamic_flag_spec_GCJ=-rdynamic
  22602. ;;
  22603. cygwin* | mingw* | pw32*)
  22604. # When not using gcc, we currently assume that we are using
  22605. # Microsoft Visual C++.
  22606. # hardcode_libdir_flag_spec is actually meaningless, as there is
  22607. # no search path for DLLs.
  22608. hardcode_libdir_flag_spec_GCJ=' '
  22609. allow_undefined_flag_GCJ=unsupported
  22610. # Tell ltmain to make .lib files, not .a files.
  22611. libext=lib
  22612. # Tell ltmain to make .dll files, not .so files.
  22613. shrext_cmds=".dll"
  22614. # FIXME: Setting linknames here is a bad hack.
  22615. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  22616. # The linker will automatically build a .lib file if we build a DLL.
  22617. old_archive_From_new_cmds_GCJ='true'
  22618. # FIXME: Should let the user specify the lib program.
  22619. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  22620. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  22621. enable_shared_with_static_runtimes_GCJ=yes
  22622. ;;
  22623. darwin* | rhapsody*)
  22624. case $host_os in
  22625. rhapsody* | darwin1.[012])
  22626. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  22627. ;;
  22628. *) # Darwin 1.3 on
  22629. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  22630. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22631. else
  22632. case ${MACOSX_DEPLOYMENT_TARGET} in
  22633. 10.[012])
  22634. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22635. ;;
  22636. 10.*)
  22637. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  22638. ;;
  22639. esac
  22640. fi
  22641. ;;
  22642. esac
  22643. archive_cmds_need_lc_GCJ=no
  22644. hardcode_direct_GCJ=no
  22645. hardcode_automatic_GCJ=yes
  22646. hardcode_shlibpath_var_GCJ=unsupported
  22647. whole_archive_flag_spec_GCJ=''
  22648. link_all_deplibs_GCJ=yes
  22649. if test "$GCC" = yes ; then
  22650. output_verbose_link_cmd='echo'
  22651. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  22652. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22653. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22654. 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}'
  22655. 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}'
  22656. else
  22657. case $cc_basename in
  22658. xlc*)
  22659. output_verbose_link_cmd='echo'
  22660. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  22661. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22662. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22663. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22664. 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}'
  22665. ;;
  22666. *)
  22667. ld_shlibs_GCJ=no
  22668. ;;
  22669. esac
  22670. fi
  22671. ;;
  22672. dgux*)
  22673. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22674. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  22675. hardcode_shlibpath_var_GCJ=no
  22676. ;;
  22677. freebsd1*)
  22678. ld_shlibs_GCJ=no
  22679. ;;
  22680. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  22681. # support. Future versions do this automatically, but an explicit c++rt0.o
  22682. # does not break anything, and helps significantly (at the cost of a little
  22683. # extra space).
  22684. freebsd2.2*)
  22685. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  22686. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  22687. hardcode_direct_GCJ=yes
  22688. hardcode_shlibpath_var_GCJ=no
  22689. ;;
  22690. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  22691. freebsd2*)
  22692. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22693. hardcode_direct_GCJ=yes
  22694. hardcode_minus_L_GCJ=yes
  22695. hardcode_shlibpath_var_GCJ=no
  22696. ;;
  22697. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  22698. freebsd* | kfreebsd*-gnu | dragonfly*)
  22699. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  22700. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  22701. hardcode_direct_GCJ=yes
  22702. hardcode_shlibpath_var_GCJ=no
  22703. ;;
  22704. hpux9*)
  22705. if test "$GCC" = yes; then
  22706. 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'
  22707. else
  22708. 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'
  22709. fi
  22710. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  22711. hardcode_libdir_separator_GCJ=:
  22712. hardcode_direct_GCJ=yes
  22713. # hardcode_minus_L: Not really in the search PATH,
  22714. # but as the default location of the library.
  22715. hardcode_minus_L_GCJ=yes
  22716. export_dynamic_flag_spec_GCJ='${wl}-E'
  22717. ;;
  22718. hpux10*)
  22719. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22720. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22721. else
  22722. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  22723. fi
  22724. if test "$with_gnu_ld" = no; then
  22725. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  22726. hardcode_libdir_separator_GCJ=:
  22727. hardcode_direct_GCJ=yes
  22728. export_dynamic_flag_spec_GCJ='${wl}-E'
  22729. # hardcode_minus_L: Not really in the search PATH,
  22730. # but as the default location of the library.
  22731. hardcode_minus_L_GCJ=yes
  22732. fi
  22733. ;;
  22734. hpux11*)
  22735. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22736. case $host_cpu in
  22737. hppa*64*)
  22738. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22739. ;;
  22740. ia64*)
  22741. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22742. ;;
  22743. *)
  22744. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22745. ;;
  22746. esac
  22747. else
  22748. case $host_cpu in
  22749. hppa*64*)
  22750. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22751. ;;
  22752. ia64*)
  22753. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22754. ;;
  22755. *)
  22756. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22757. ;;
  22758. esac
  22759. fi
  22760. if test "$with_gnu_ld" = no; then
  22761. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  22762. hardcode_libdir_separator_GCJ=:
  22763. case $host_cpu in
  22764. hppa*64*|ia64*)
  22765. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  22766. hardcode_direct_GCJ=no
  22767. hardcode_shlibpath_var_GCJ=no
  22768. ;;
  22769. *)
  22770. hardcode_direct_GCJ=yes
  22771. export_dynamic_flag_spec_GCJ='${wl}-E'
  22772. # hardcode_minus_L: Not really in the search PATH,
  22773. # but as the default location of the library.
  22774. hardcode_minus_L_GCJ=yes
  22775. ;;
  22776. esac
  22777. fi
  22778. ;;
  22779. irix5* | irix6* | nonstopux*)
  22780. if test "$GCC" = yes; then
  22781. 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'
  22782. else
  22783. 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'
  22784. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  22785. fi
  22786. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  22787. hardcode_libdir_separator_GCJ=:
  22788. link_all_deplibs_GCJ=yes
  22789. ;;
  22790. netbsd*)
  22791. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22792. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  22793. else
  22794. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  22795. fi
  22796. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  22797. hardcode_direct_GCJ=yes
  22798. hardcode_shlibpath_var_GCJ=no
  22799. ;;
  22800. newsos6)
  22801. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22802. hardcode_direct_GCJ=yes
  22803. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  22804. hardcode_libdir_separator_GCJ=:
  22805. hardcode_shlibpath_var_GCJ=no
  22806. ;;
  22807. openbsd*)
  22808. hardcode_direct_GCJ=yes
  22809. hardcode_shlibpath_var_GCJ=no
  22810. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22811. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22812. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  22813. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  22814. export_dynamic_flag_spec_GCJ='${wl}-E'
  22815. else
  22816. case $host_os in
  22817. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  22818. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22819. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  22820. ;;
  22821. *)
  22822. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22823. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  22824. ;;
  22825. esac
  22826. fi
  22827. ;;
  22828. os2*)
  22829. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  22830. hardcode_minus_L_GCJ=yes
  22831. allow_undefined_flag_GCJ=unsupported
  22832. 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'
  22833. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  22834. ;;
  22835. osf3*)
  22836. if test "$GCC" = yes; then
  22837. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  22838. 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'
  22839. else
  22840. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  22841. 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'
  22842. fi
  22843. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  22844. hardcode_libdir_separator_GCJ=:
  22845. ;;
  22846. osf4* | osf5*) # as osf3* with the addition of -msym flag
  22847. if test "$GCC" = yes; then
  22848. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  22849. 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'
  22850. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  22851. else
  22852. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  22853. 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'
  22854. 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~
  22855. $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'
  22856. # Both c and cxx compiler support -rpath directly
  22857. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  22858. fi
  22859. hardcode_libdir_separator_GCJ=:
  22860. ;;
  22861. solaris*)
  22862. no_undefined_flag_GCJ=' -z text'
  22863. if test "$GCC" = yes; then
  22864. wlarc='${wl}'
  22865. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22866. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  22867. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  22868. else
  22869. wlarc=''
  22870. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22871. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  22872. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  22873. fi
  22874. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  22875. hardcode_shlibpath_var_GCJ=no
  22876. case $host_os in
  22877. solaris2.[0-5] | solaris2.[0-5].*) ;;
  22878. *)
  22879. # The compiler driver will combine linker options so we
  22880. # cannot just pass the convience library names through
  22881. # without $wl, iff we do not link with $LD.
  22882. # Luckily, gcc supports the same syntax we need for Sun Studio.
  22883. # Supported since Solaris 2.6 (maybe 2.5.1?)
  22884. case $wlarc in
  22885. '')
  22886. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  22887. *)
  22888. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  22889. esac ;;
  22890. esac
  22891. link_all_deplibs_GCJ=yes
  22892. ;;
  22893. sunos4*)
  22894. if test "x$host_vendor" = xsequent; then
  22895. # Use $CC to link under sequent, because it throws in some extra .o
  22896. # files that make .init and .fini sections work.
  22897. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  22898. else
  22899. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  22900. fi
  22901. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  22902. hardcode_direct_GCJ=yes
  22903. hardcode_minus_L_GCJ=yes
  22904. hardcode_shlibpath_var_GCJ=no
  22905. ;;
  22906. sysv4)
  22907. case $host_vendor in
  22908. sni)
  22909. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22910. hardcode_direct_GCJ=yes # is this really true???
  22911. ;;
  22912. siemens)
  22913. ## LD is ld it makes a PLAMLIB
  22914. ## CC just makes a GrossModule.
  22915. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  22916. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  22917. hardcode_direct_GCJ=no
  22918. ;;
  22919. motorola)
  22920. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22921. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  22922. ;;
  22923. esac
  22924. runpath_var='LD_RUN_PATH'
  22925. hardcode_shlibpath_var_GCJ=no
  22926. ;;
  22927. sysv4.3*)
  22928. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22929. hardcode_shlibpath_var_GCJ=no
  22930. export_dynamic_flag_spec_GCJ='-Bexport'
  22931. ;;
  22932. sysv4*MP*)
  22933. if test -d /usr/nec; then
  22934. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22935. hardcode_shlibpath_var_GCJ=no
  22936. runpath_var=LD_RUN_PATH
  22937. hardcode_runpath_var=yes
  22938. ld_shlibs_GCJ=yes
  22939. fi
  22940. ;;
  22941. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  22942. no_undefined_flag_GCJ='${wl}-z,text'
  22943. archive_cmds_need_lc_GCJ=no
  22944. hardcode_shlibpath_var_GCJ=no
  22945. runpath_var='LD_RUN_PATH'
  22946. if test "$GCC" = yes; then
  22947. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22948. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22949. else
  22950. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22951. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22952. fi
  22953. ;;
  22954. sysv5* | sco3.2v5* | sco5v6*)
  22955. # Note: We can NOT use -z defs as we might desire, because we do not
  22956. # link with -lc, and that would cause any symbols used from libc to
  22957. # always be unresolved, which means just about no library would
  22958. # ever link correctly. If we're not using GNU ld we use -z text
  22959. # though, which does catch some bad symbols but isn't as heavy-handed
  22960. # as -z defs.
  22961. no_undefined_flag_GCJ='${wl}-z,text'
  22962. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  22963. archive_cmds_need_lc_GCJ=no
  22964. hardcode_shlibpath_var_GCJ=no
  22965. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  22966. hardcode_libdir_separator_GCJ=':'
  22967. link_all_deplibs_GCJ=yes
  22968. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  22969. runpath_var='LD_RUN_PATH'
  22970. if test "$GCC" = yes; then
  22971. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22972. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22973. else
  22974. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22975. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22976. fi
  22977. ;;
  22978. uts4*)
  22979. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22980. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  22981. hardcode_shlibpath_var_GCJ=no
  22982. ;;
  22983. *)
  22984. ld_shlibs_GCJ=no
  22985. ;;
  22986. esac
  22987. fi
  22988. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  22989. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  22990. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  22991. #
  22992. # Do we need to explicitly link libc?
  22993. #
  22994. case "x$archive_cmds_need_lc_GCJ" in
  22995. x|xyes)
  22996. # Assume -lc should be added
  22997. archive_cmds_need_lc_GCJ=yes
  22998. if test "$enable_shared" = yes && test "$GCC" = yes; then
  22999. case $archive_cmds_GCJ in
  23000. *'~'*)
  23001. # FIXME: we may have to deal with multi-command sequences.
  23002. ;;
  23003. '$CC '*)
  23004. # Test whether the compiler implicitly links with -lc since on some
  23005. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  23006. # to ld, don't add -lc before -lgcc.
  23007. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  23008. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  23009. $rm conftest*
  23010. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23012. (eval $ac_compile) 2>&5
  23013. ac_status=$?
  23014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23015. (exit $ac_status); } 2>conftest.err; then
  23016. soname=conftest
  23017. lib=conftest
  23018. libobjs=conftest.$ac_objext
  23019. deplibs=
  23020. wl=$lt_prog_compiler_wl_GCJ
  23021. pic_flag=$lt_prog_compiler_pic_GCJ
  23022. compiler_flags=-v
  23023. linker_flags=-v
  23024. verstring=
  23025. output_objdir=.
  23026. libname=conftest
  23027. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  23028. allow_undefined_flag_GCJ=
  23029. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  23030. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  23031. ac_status=$?
  23032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23033. (exit $ac_status); }
  23034. then
  23035. archive_cmds_need_lc_GCJ=no
  23036. else
  23037. archive_cmds_need_lc_GCJ=yes
  23038. fi
  23039. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  23040. else
  23041. cat conftest.err 1>&5
  23042. fi
  23043. $rm conftest*
  23044. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  23045. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  23046. ;;
  23047. esac
  23048. fi
  23049. ;;
  23050. esac
  23051. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  23052. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  23053. library_names_spec=
  23054. libname_spec='lib$name'
  23055. soname_spec=
  23056. shrext_cmds=".so"
  23057. postinstall_cmds=
  23058. postuninstall_cmds=
  23059. finish_cmds=
  23060. finish_eval=
  23061. shlibpath_var=
  23062. shlibpath_overrides_runpath=unknown
  23063. version_type=none
  23064. dynamic_linker="$host_os ld.so"
  23065. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  23066. if test "$GCC" = yes; then
  23067. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23068. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  23069. # if the path contains ";" then we assume it to be the separator
  23070. # otherwise default to the standard path separator (i.e. ":") - it is
  23071. # assumed that no part of a normal pathname contains ";" but that should
  23072. # okay in the real world where ";" in dirpaths is itself problematic.
  23073. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  23074. else
  23075. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23076. fi
  23077. else
  23078. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  23079. fi
  23080. need_lib_prefix=unknown
  23081. hardcode_into_libs=no
  23082. # when you set need_version to no, make sure it does not cause -set_version
  23083. # flags to be left without arguments
  23084. need_version=unknown
  23085. case $host_os in
  23086. aix3*)
  23087. version_type=linux
  23088. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  23089. shlibpath_var=LIBPATH
  23090. # AIX 3 has no versioning support, so we append a major version to the name.
  23091. soname_spec='${libname}${release}${shared_ext}$major'
  23092. ;;
  23093. aix4* | aix5*)
  23094. version_type=linux
  23095. need_lib_prefix=no
  23096. need_version=no
  23097. hardcode_into_libs=yes
  23098. if test "$host_cpu" = ia64; then
  23099. # AIX 5 supports IA64
  23100. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  23101. shlibpath_var=LD_LIBRARY_PATH
  23102. else
  23103. # With GCC up to 2.95.x, collect2 would create an import file
  23104. # for dependence libraries. The import file would start with
  23105. # the line `#! .'. This would cause the generated library to
  23106. # depend on `.', always an invalid library. This was fixed in
  23107. # development snapshots of GCC prior to 3.0.
  23108. case $host_os in
  23109. aix4 | aix4.[01] | aix4.[01].*)
  23110. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  23111. echo ' yes '
  23112. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  23113. :
  23114. else
  23115. can_build_shared=no
  23116. fi
  23117. ;;
  23118. esac
  23119. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  23120. # soname into executable. Probably we can add versioning support to
  23121. # collect2, so additional links can be useful in future.
  23122. if test "$aix_use_runtimelinking" = yes; then
  23123. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  23124. # instead of lib<name>.a to let people know that these are not
  23125. # typical AIX shared libraries.
  23126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23127. else
  23128. # We preserve .a as extension for shared libraries through AIX4.2
  23129. # and later when we are not doing run time linking.
  23130. library_names_spec='${libname}${release}.a $libname.a'
  23131. soname_spec='${libname}${release}${shared_ext}$major'
  23132. fi
  23133. shlibpath_var=LIBPATH
  23134. fi
  23135. ;;
  23136. amigaos*)
  23137. library_names_spec='$libname.ixlibrary $libname.a'
  23138. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  23139. 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'
  23140. ;;
  23141. beos*)
  23142. library_names_spec='${libname}${shared_ext}'
  23143. dynamic_linker="$host_os ld.so"
  23144. shlibpath_var=LIBRARY_PATH
  23145. ;;
  23146. bsdi[45]*)
  23147. version_type=linux
  23148. need_version=no
  23149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23150. soname_spec='${libname}${release}${shared_ext}$major'
  23151. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  23152. shlibpath_var=LD_LIBRARY_PATH
  23153. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  23154. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  23155. # the default ld.so.conf also contains /usr/contrib/lib and
  23156. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  23157. # libtool to hard-code these into programs
  23158. ;;
  23159. cygwin* | mingw* | pw32*)
  23160. version_type=windows
  23161. shrext_cmds=".dll"
  23162. need_version=no
  23163. need_lib_prefix=no
  23164. case $GCC,$host_os in
  23165. yes,cygwin* | yes,mingw* | yes,pw32*)
  23166. library_names_spec='$libname.dll.a'
  23167. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  23168. postinstall_cmds='base_file=`basename \${file}`~
  23169. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  23170. dldir=$destdir/`dirname \$dlpath`~
  23171. test -d \$dldir || mkdir -p \$dldir~
  23172. $install_prog $dir/$dlname \$dldir/$dlname~
  23173. chmod a+x \$dldir/$dlname'
  23174. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  23175. dlpath=$dir/\$dldll~
  23176. $rm \$dlpath'
  23177. shlibpath_overrides_runpath=yes
  23178. case $host_os in
  23179. cygwin*)
  23180. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  23181. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23182. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  23183. ;;
  23184. mingw*)
  23185. # MinGW DLLs use traditional 'lib' prefix
  23186. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23187. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  23188. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  23189. # It is most probably a Windows format PATH printed by
  23190. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  23191. # path with ; separators, and with drive letters. We can handle the
  23192. # drive letters (cygwin fileutils understands them), so leave them,
  23193. # especially as we might pass files found there to a mingw objdump,
  23194. # which wouldn't understand a cygwinified path. Ahh.
  23195. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  23196. else
  23197. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  23198. fi
  23199. ;;
  23200. pw32*)
  23201. # pw32 DLLs use 'pw' prefix rather than 'lib'
  23202. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  23203. ;;
  23204. esac
  23205. ;;
  23206. *)
  23207. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  23208. ;;
  23209. esac
  23210. dynamic_linker='Win32 ld.exe'
  23211. # FIXME: first we should search . and the directory the executable is in
  23212. shlibpath_var=PATH
  23213. ;;
  23214. darwin* | rhapsody*)
  23215. dynamic_linker="$host_os dyld"
  23216. version_type=darwin
  23217. need_lib_prefix=no
  23218. need_version=no
  23219. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  23220. soname_spec='${libname}${release}${major}$shared_ext'
  23221. shlibpath_overrides_runpath=yes
  23222. shlibpath_var=DYLD_LIBRARY_PATH
  23223. shrext_cmds='.dylib'
  23224. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  23225. if test "$GCC" = yes; then
  23226. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  23227. else
  23228. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  23229. fi
  23230. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  23231. ;;
  23232. dgux*)
  23233. version_type=linux
  23234. need_lib_prefix=no
  23235. need_version=no
  23236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  23237. soname_spec='${libname}${release}${shared_ext}$major'
  23238. shlibpath_var=LD_LIBRARY_PATH
  23239. ;;
  23240. freebsd1*)
  23241. dynamic_linker=no
  23242. ;;
  23243. kfreebsd*-gnu)
  23244. version_type=linux
  23245. need_lib_prefix=no
  23246. need_version=no
  23247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23248. soname_spec='${libname}${release}${shared_ext}$major'
  23249. shlibpath_var=LD_LIBRARY_PATH
  23250. shlibpath_overrides_runpath=no
  23251. hardcode_into_libs=yes
  23252. dynamic_linker='GNU ld.so'
  23253. ;;
  23254. freebsd* | dragonfly*)
  23255. # DragonFly does not have aout. When/if they implement a new
  23256. # versioning mechanism, adjust this.
  23257. if test -x /usr/bin/objformat; then
  23258. objformat=`/usr/bin/objformat`
  23259. else
  23260. case $host_os in
  23261. freebsd[123]*) objformat=aout ;;
  23262. *) objformat=elf ;;
  23263. esac
  23264. fi
  23265. version_type=freebsd-$objformat
  23266. case $version_type in
  23267. freebsd-elf*)
  23268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23269. need_version=no
  23270. need_lib_prefix=no
  23271. ;;
  23272. freebsd-*)
  23273. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  23274. need_version=yes
  23275. ;;
  23276. esac
  23277. shlibpath_var=LD_LIBRARY_PATH
  23278. case $host_os in
  23279. freebsd2*)
  23280. shlibpath_overrides_runpath=yes
  23281. ;;
  23282. freebsd3.[01]* | freebsdelf3.[01]*)
  23283. shlibpath_overrides_runpath=yes
  23284. hardcode_into_libs=yes
  23285. ;;
  23286. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  23287. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  23288. shlibpath_overrides_runpath=no
  23289. hardcode_into_libs=yes
  23290. ;;
  23291. freebsd*) # from 4.6 on
  23292. shlibpath_overrides_runpath=yes
  23293. hardcode_into_libs=yes
  23294. ;;
  23295. esac
  23296. ;;
  23297. gnu*)
  23298. version_type=linux
  23299. need_lib_prefix=no
  23300. need_version=no
  23301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  23302. soname_spec='${libname}${release}${shared_ext}$major'
  23303. shlibpath_var=LD_LIBRARY_PATH
  23304. hardcode_into_libs=yes
  23305. ;;
  23306. hpux9* | hpux10* | hpux11*)
  23307. # Give a soname corresponding to the major version so that dld.sl refuses to
  23308. # link against other versions.
  23309. version_type=sunos
  23310. need_lib_prefix=no
  23311. need_version=no
  23312. case $host_cpu in
  23313. ia64*)
  23314. shrext_cmds='.so'
  23315. hardcode_into_libs=yes
  23316. dynamic_linker="$host_os dld.so"
  23317. shlibpath_var=LD_LIBRARY_PATH
  23318. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23320. soname_spec='${libname}${release}${shared_ext}$major'
  23321. if test "X$HPUX_IA64_MODE" = X32; then
  23322. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  23323. else
  23324. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  23325. fi
  23326. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23327. ;;
  23328. hppa*64*)
  23329. shrext_cmds='.sl'
  23330. hardcode_into_libs=yes
  23331. dynamic_linker="$host_os dld.sl"
  23332. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  23333. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23335. soname_spec='${libname}${release}${shared_ext}$major'
  23336. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  23337. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23338. ;;
  23339. *)
  23340. shrext_cmds='.sl'
  23341. dynamic_linker="$host_os dld.sl"
  23342. shlibpath_var=SHLIB_PATH
  23343. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  23344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23345. soname_spec='${libname}${release}${shared_ext}$major'
  23346. ;;
  23347. esac
  23348. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  23349. postinstall_cmds='chmod 555 $lib'
  23350. ;;
  23351. interix3*)
  23352. version_type=linux
  23353. need_lib_prefix=no
  23354. need_version=no
  23355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23356. soname_spec='${libname}${release}${shared_ext}$major'
  23357. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  23358. shlibpath_var=LD_LIBRARY_PATH
  23359. shlibpath_overrides_runpath=no
  23360. hardcode_into_libs=yes
  23361. ;;
  23362. irix5* | irix6* | nonstopux*)
  23363. case $host_os in
  23364. nonstopux*) version_type=nonstopux ;;
  23365. *)
  23366. if test "$lt_cv_prog_gnu_ld" = yes; then
  23367. version_type=linux
  23368. else
  23369. version_type=irix
  23370. fi ;;
  23371. esac
  23372. need_lib_prefix=no
  23373. need_version=no
  23374. soname_spec='${libname}${release}${shared_ext}$major'
  23375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  23376. case $host_os in
  23377. irix5* | nonstopux*)
  23378. libsuff= shlibsuff=
  23379. ;;
  23380. *)
  23381. case $LD in # libtool.m4 will add one of these switches to LD
  23382. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  23383. libsuff= shlibsuff= libmagic=32-bit;;
  23384. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  23385. libsuff=32 shlibsuff=N32 libmagic=N32;;
  23386. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  23387. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  23388. *) libsuff= shlibsuff= libmagic=never-match;;
  23389. esac
  23390. ;;
  23391. esac
  23392. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  23393. shlibpath_overrides_runpath=no
  23394. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  23395. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  23396. hardcode_into_libs=yes
  23397. ;;
  23398. # No shared lib support for Linux oldld, aout, or coff.
  23399. linux*oldld* | linux*aout* | linux*coff*)
  23400. dynamic_linker=no
  23401. ;;
  23402. # This must be Linux ELF.
  23403. linux*)
  23404. version_type=linux
  23405. need_lib_prefix=no
  23406. need_version=no
  23407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23408. soname_spec='${libname}${release}${shared_ext}$major'
  23409. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  23410. shlibpath_var=LD_LIBRARY_PATH
  23411. shlibpath_overrides_runpath=no
  23412. # This implies no fast_install, which is unacceptable.
  23413. # Some rework will be needed to allow for fast_install
  23414. # before this can be enabled.
  23415. hardcode_into_libs=yes
  23416. # Append ld.so.conf contents to the search path
  23417. if test -f /etc/ld.so.conf; then
  23418. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  23419. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  23420. fi
  23421. # We used to test for /lib/ld.so.1 and disable shared libraries on
  23422. # powerpc, because MkLinux only supported shared libraries with the
  23423. # GNU dynamic linker. Since this was broken with cross compilers,
  23424. # most powerpc-linux boxes support dynamic linking these days and
  23425. # people can always --disable-shared, the test was removed, and we
  23426. # assume the GNU/Linux dynamic linker is in use.
  23427. dynamic_linker='GNU/Linux ld.so'
  23428. ;;
  23429. knetbsd*-gnu)
  23430. version_type=linux
  23431. need_lib_prefix=no
  23432. need_version=no
  23433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23434. soname_spec='${libname}${release}${shared_ext}$major'
  23435. shlibpath_var=LD_LIBRARY_PATH
  23436. shlibpath_overrides_runpath=no
  23437. hardcode_into_libs=yes
  23438. dynamic_linker='GNU ld.so'
  23439. ;;
  23440. netbsd*)
  23441. version_type=sunos
  23442. need_lib_prefix=no
  23443. need_version=no
  23444. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23446. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23447. dynamic_linker='NetBSD (a.out) ld.so'
  23448. else
  23449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23450. soname_spec='${libname}${release}${shared_ext}$major'
  23451. dynamic_linker='NetBSD ld.elf_so'
  23452. fi
  23453. shlibpath_var=LD_LIBRARY_PATH
  23454. shlibpath_overrides_runpath=yes
  23455. hardcode_into_libs=yes
  23456. ;;
  23457. newsos6)
  23458. version_type=linux
  23459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23460. shlibpath_var=LD_LIBRARY_PATH
  23461. shlibpath_overrides_runpath=yes
  23462. ;;
  23463. nto-qnx*)
  23464. version_type=linux
  23465. need_lib_prefix=no
  23466. need_version=no
  23467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23468. soname_spec='${libname}${release}${shared_ext}$major'
  23469. shlibpath_var=LD_LIBRARY_PATH
  23470. shlibpath_overrides_runpath=yes
  23471. ;;
  23472. openbsd*)
  23473. version_type=sunos
  23474. sys_lib_dlsearch_path_spec="/usr/lib"
  23475. need_lib_prefix=no
  23476. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  23477. case $host_os in
  23478. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  23479. *) need_version=no ;;
  23480. esac
  23481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23483. shlibpath_var=LD_LIBRARY_PATH
  23484. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23485. case $host_os in
  23486. openbsd2.[89] | openbsd2.[89].*)
  23487. shlibpath_overrides_runpath=no
  23488. ;;
  23489. *)
  23490. shlibpath_overrides_runpath=yes
  23491. ;;
  23492. esac
  23493. else
  23494. shlibpath_overrides_runpath=yes
  23495. fi
  23496. ;;
  23497. os2*)
  23498. libname_spec='$name'
  23499. shrext_cmds=".dll"
  23500. need_lib_prefix=no
  23501. library_names_spec='$libname${shared_ext} $libname.a'
  23502. dynamic_linker='OS/2 ld.exe'
  23503. shlibpath_var=LIBPATH
  23504. ;;
  23505. osf3* | osf4* | osf5*)
  23506. version_type=osf
  23507. need_lib_prefix=no
  23508. need_version=no
  23509. soname_spec='${libname}${release}${shared_ext}$major'
  23510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23511. shlibpath_var=LD_LIBRARY_PATH
  23512. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  23513. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  23514. ;;
  23515. solaris*)
  23516. version_type=linux
  23517. need_lib_prefix=no
  23518. need_version=no
  23519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23520. soname_spec='${libname}${release}${shared_ext}$major'
  23521. shlibpath_var=LD_LIBRARY_PATH
  23522. shlibpath_overrides_runpath=yes
  23523. hardcode_into_libs=yes
  23524. # ldd complains unless libraries are executable
  23525. postinstall_cmds='chmod +x $lib'
  23526. ;;
  23527. sunos4*)
  23528. version_type=sunos
  23529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23530. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  23531. shlibpath_var=LD_LIBRARY_PATH
  23532. shlibpath_overrides_runpath=yes
  23533. if test "$with_gnu_ld" = yes; then
  23534. need_lib_prefix=no
  23535. fi
  23536. need_version=yes
  23537. ;;
  23538. sysv4 | sysv4.3*)
  23539. version_type=linux
  23540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23541. soname_spec='${libname}${release}${shared_ext}$major'
  23542. shlibpath_var=LD_LIBRARY_PATH
  23543. case $host_vendor in
  23544. sni)
  23545. shlibpath_overrides_runpath=no
  23546. need_lib_prefix=no
  23547. export_dynamic_flag_spec='${wl}-Blargedynsym'
  23548. runpath_var=LD_RUN_PATH
  23549. ;;
  23550. siemens)
  23551. need_lib_prefix=no
  23552. ;;
  23553. motorola)
  23554. need_lib_prefix=no
  23555. need_version=no
  23556. shlibpath_overrides_runpath=no
  23557. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  23558. ;;
  23559. esac
  23560. ;;
  23561. sysv4*MP*)
  23562. if test -d /usr/nec ;then
  23563. version_type=linux
  23564. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  23565. soname_spec='$libname${shared_ext}.$major'
  23566. shlibpath_var=LD_LIBRARY_PATH
  23567. fi
  23568. ;;
  23569. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  23570. version_type=freebsd-elf
  23571. need_lib_prefix=no
  23572. need_version=no
  23573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23574. soname_spec='${libname}${release}${shared_ext}$major'
  23575. shlibpath_var=LD_LIBRARY_PATH
  23576. hardcode_into_libs=yes
  23577. if test "$with_gnu_ld" = yes; then
  23578. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  23579. shlibpath_overrides_runpath=no
  23580. else
  23581. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  23582. shlibpath_overrides_runpath=yes
  23583. case $host_os in
  23584. sco3.2v5*)
  23585. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  23586. ;;
  23587. esac
  23588. fi
  23589. sys_lib_dlsearch_path_spec='/usr/lib'
  23590. ;;
  23591. uts4*)
  23592. version_type=linux
  23593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23594. soname_spec='${libname}${release}${shared_ext}$major'
  23595. shlibpath_var=LD_LIBRARY_PATH
  23596. ;;
  23597. *)
  23598. dynamic_linker=no
  23599. ;;
  23600. esac
  23601. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  23602. echo "${ECHO_T}$dynamic_linker" >&6; }
  23603. test "$dynamic_linker" = no && can_build_shared=no
  23604. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  23605. if test "$GCC" = yes; then
  23606. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  23607. fi
  23608. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  23609. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  23610. hardcode_action_GCJ=
  23611. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  23612. test -n "$runpath_var_GCJ" || \
  23613. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  23614. # We can hardcode non-existant directories.
  23615. if test "$hardcode_direct_GCJ" != no &&
  23616. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  23617. # have to relink, otherwise we might link with an installed library
  23618. # when we should be linking with a yet-to-be-installed one
  23619. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  23620. test "$hardcode_minus_L_GCJ" != no; then
  23621. # Linking always hardcodes the temporary library directory.
  23622. hardcode_action_GCJ=relink
  23623. else
  23624. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  23625. hardcode_action_GCJ=immediate
  23626. fi
  23627. else
  23628. # We cannot hardcode anything, or else we can only hardcode existing
  23629. # directories.
  23630. hardcode_action_GCJ=unsupported
  23631. fi
  23632. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  23633. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  23634. if test "$hardcode_action_GCJ" = relink; then
  23635. # Fast installation is not supported
  23636. enable_fast_install=no
  23637. elif test "$shlibpath_overrides_runpath" = yes ||
  23638. test "$enable_shared" = no; then
  23639. # Fast installation is not necessary
  23640. enable_fast_install=needless
  23641. fi
  23642. # The else clause should only fire when bootstrapping the
  23643. # libtool distribution, otherwise you forgot to ship ltmain.sh
  23644. # with your package, and you will get complaints that there are
  23645. # no rules to generate ltmain.sh.
  23646. if test -f "$ltmain"; then
  23647. # See if we are running on zsh, and set the options which allow our commands through
  23648. # without removal of \ escapes.
  23649. if test -n "${ZSH_VERSION+set}" ; then
  23650. setopt NO_GLOB_SUBST
  23651. fi
  23652. # Now quote all the things that may contain metacharacters while being
  23653. # careful not to overquote the AC_SUBSTed values. We take copies of the
  23654. # variables and quote the copies for generation of the libtool script.
  23655. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  23656. SED SHELL STRIP \
  23657. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  23658. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  23659. deplibs_check_method reload_flag reload_cmds need_locks \
  23660. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  23661. lt_cv_sys_global_symbol_to_c_name_address \
  23662. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  23663. old_postinstall_cmds old_postuninstall_cmds \
  23664. compiler_GCJ \
  23665. CC_GCJ \
  23666. LD_GCJ \
  23667. lt_prog_compiler_wl_GCJ \
  23668. lt_prog_compiler_pic_GCJ \
  23669. lt_prog_compiler_static_GCJ \
  23670. lt_prog_compiler_no_builtin_flag_GCJ \
  23671. export_dynamic_flag_spec_GCJ \
  23672. thread_safe_flag_spec_GCJ \
  23673. whole_archive_flag_spec_GCJ \
  23674. enable_shared_with_static_runtimes_GCJ \
  23675. old_archive_cmds_GCJ \
  23676. old_archive_from_new_cmds_GCJ \
  23677. predep_objects_GCJ \
  23678. postdep_objects_GCJ \
  23679. predeps_GCJ \
  23680. postdeps_GCJ \
  23681. compiler_lib_search_path_GCJ \
  23682. archive_cmds_GCJ \
  23683. archive_expsym_cmds_GCJ \
  23684. postinstall_cmds_GCJ \
  23685. postuninstall_cmds_GCJ \
  23686. old_archive_from_expsyms_cmds_GCJ \
  23687. allow_undefined_flag_GCJ \
  23688. no_undefined_flag_GCJ \
  23689. export_symbols_cmds_GCJ \
  23690. hardcode_libdir_flag_spec_GCJ \
  23691. hardcode_libdir_flag_spec_ld_GCJ \
  23692. hardcode_libdir_separator_GCJ \
  23693. hardcode_automatic_GCJ \
  23694. module_cmds_GCJ \
  23695. module_expsym_cmds_GCJ \
  23696. lt_cv_prog_compiler_c_o_GCJ \
  23697. exclude_expsyms_GCJ \
  23698. include_expsyms_GCJ; do
  23699. case $var in
  23700. old_archive_cmds_GCJ | \
  23701. old_archive_from_new_cmds_GCJ | \
  23702. archive_cmds_GCJ | \
  23703. archive_expsym_cmds_GCJ | \
  23704. module_cmds_GCJ | \
  23705. module_expsym_cmds_GCJ | \
  23706. old_archive_from_expsyms_cmds_GCJ | \
  23707. export_symbols_cmds_GCJ | \
  23708. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  23709. postinstall_cmds | postuninstall_cmds | \
  23710. old_postinstall_cmds | old_postuninstall_cmds | \
  23711. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  23712. # Double-quote double-evaled strings.
  23713. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  23714. ;;
  23715. *)
  23716. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  23717. ;;
  23718. esac
  23719. done
  23720. case $lt_echo in
  23721. *'\$0 --fallback-echo"')
  23722. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  23723. ;;
  23724. esac
  23725. cfgfile="$ofile"
  23726. cat <<__EOF__ >> "$cfgfile"
  23727. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  23728. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23729. # Shell to use when invoking shell scripts.
  23730. SHELL=$lt_SHELL
  23731. # Whether or not to build shared libraries.
  23732. build_libtool_libs=$enable_shared
  23733. # Whether or not to build static libraries.
  23734. build_old_libs=$enable_static
  23735. # Whether or not to add -lc for building shared libraries.
  23736. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  23737. # Whether or not to disallow shared libs when runtime libs are static
  23738. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  23739. # Whether or not to optimize for fast installation.
  23740. fast_install=$enable_fast_install
  23741. # The host system.
  23742. host_alias=$host_alias
  23743. host=$host
  23744. host_os=$host_os
  23745. # The build system.
  23746. build_alias=$build_alias
  23747. build=$build
  23748. build_os=$build_os
  23749. # An echo program that does not interpret backslashes.
  23750. echo=$lt_echo
  23751. # The archiver.
  23752. AR=$lt_AR
  23753. AR_FLAGS=$lt_AR_FLAGS
  23754. # A C compiler.
  23755. LTCC=$lt_LTCC
  23756. # LTCC compiler flags.
  23757. LTCFLAGS=$lt_LTCFLAGS
  23758. # A language-specific compiler.
  23759. CC=$lt_compiler_GCJ
  23760. # Is the compiler the GNU C compiler?
  23761. with_gcc=$GCC_GCJ
  23762. # An ERE matcher.
  23763. EGREP=$lt_EGREP
  23764. # The linker used to build libraries.
  23765. LD=$lt_LD_GCJ
  23766. # Whether we need hard or soft links.
  23767. LN_S=$lt_LN_S
  23768. # A BSD-compatible nm program.
  23769. NM=$lt_NM
  23770. # A symbol stripping program
  23771. STRIP=$lt_STRIP
  23772. # Used to examine libraries when file_magic_cmd begins "file"
  23773. MAGIC_CMD=$MAGIC_CMD
  23774. # Used on cygwin: DLL creation program.
  23775. DLLTOOL="$DLLTOOL"
  23776. # Used on cygwin: object dumper.
  23777. OBJDUMP="$OBJDUMP"
  23778. # Used on cygwin: assembler.
  23779. AS="$AS"
  23780. # The name of the directory that contains temporary libtool files.
  23781. objdir=$objdir
  23782. # How to create reloadable object files.
  23783. reload_flag=$lt_reload_flag
  23784. reload_cmds=$lt_reload_cmds
  23785. # How to pass a linker flag through the compiler.
  23786. wl=$lt_lt_prog_compiler_wl_GCJ
  23787. # Object file suffix (normally "o").
  23788. objext="$ac_objext"
  23789. # Old archive suffix (normally "a").
  23790. libext="$libext"
  23791. # Shared library suffix (normally ".so").
  23792. shrext_cmds='$shrext_cmds'
  23793. # Executable file suffix (normally "").
  23794. exeext="$exeext"
  23795. # Additional compiler flags for building library objects.
  23796. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  23797. pic_mode=$pic_mode
  23798. # What is the maximum length of a command?
  23799. max_cmd_len=$lt_cv_sys_max_cmd_len
  23800. # Does compiler simultaneously support -c and -o options?
  23801. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  23802. # Must we lock files when doing compilation?
  23803. need_locks=$lt_need_locks
  23804. # Do we need the lib prefix for modules?
  23805. need_lib_prefix=$need_lib_prefix
  23806. # Do we need a version for libraries?
  23807. need_version=$need_version
  23808. # Whether dlopen is supported.
  23809. dlopen_support=$enable_dlopen
  23810. # Whether dlopen of programs is supported.
  23811. dlopen_self=$enable_dlopen_self
  23812. # Whether dlopen of statically linked programs is supported.
  23813. dlopen_self_static=$enable_dlopen_self_static
  23814. # Compiler flag to prevent dynamic linking.
  23815. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  23816. # Compiler flag to turn off builtin functions.
  23817. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  23818. # Compiler flag to allow reflexive dlopens.
  23819. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  23820. # Compiler flag to generate shared objects directly from archives.
  23821. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  23822. # Compiler flag to generate thread-safe objects.
  23823. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  23824. # Library versioning type.
  23825. version_type=$version_type
  23826. # Format of library name prefix.
  23827. libname_spec=$lt_libname_spec
  23828. # List of archive names. First name is the real one, the rest are links.
  23829. # The last name is the one that the linker finds with -lNAME.
  23830. library_names_spec=$lt_library_names_spec
  23831. # The coded name of the library, if different from the real name.
  23832. soname_spec=$lt_soname_spec
  23833. # Commands used to build and install an old-style archive.
  23834. RANLIB=$lt_RANLIB
  23835. old_archive_cmds=$lt_old_archive_cmds_GCJ
  23836. old_postinstall_cmds=$lt_old_postinstall_cmds
  23837. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23838. # Create an old-style archive from a shared archive.
  23839. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  23840. # Create a temporary old-style archive to link instead of a shared archive.
  23841. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  23842. # Commands used to build and install a shared archive.
  23843. archive_cmds=$lt_archive_cmds_GCJ
  23844. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  23845. postinstall_cmds=$lt_postinstall_cmds
  23846. postuninstall_cmds=$lt_postuninstall_cmds
  23847. # Commands used to build a loadable module (assumed same as above if empty)
  23848. module_cmds=$lt_module_cmds_GCJ
  23849. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  23850. # Commands to strip libraries.
  23851. old_striplib=$lt_old_striplib
  23852. striplib=$lt_striplib
  23853. # Dependencies to place before the objects being linked to create a
  23854. # shared library.
  23855. predep_objects=$lt_predep_objects_GCJ
  23856. # Dependencies to place after the objects being linked to create a
  23857. # shared library.
  23858. postdep_objects=$lt_postdep_objects_GCJ
  23859. # Dependencies to place before the objects being linked to create a
  23860. # shared library.
  23861. predeps=$lt_predeps_GCJ
  23862. # Dependencies to place after the objects being linked to create a
  23863. # shared library.
  23864. postdeps=$lt_postdeps_GCJ
  23865. # The library search path used internally by the compiler when linking
  23866. # a shared library.
  23867. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  23868. # Method to check whether dependent libraries are shared objects.
  23869. deplibs_check_method=$lt_deplibs_check_method
  23870. # Command to use when deplibs_check_method == file_magic.
  23871. file_magic_cmd=$lt_file_magic_cmd
  23872. # Flag that allows shared libraries with undefined symbols to be built.
  23873. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  23874. # Flag that forces no undefined symbols.
  23875. no_undefined_flag=$lt_no_undefined_flag_GCJ
  23876. # Commands used to finish a libtool library installation in a directory.
  23877. finish_cmds=$lt_finish_cmds
  23878. # Same as above, but a single script fragment to be evaled but not shown.
  23879. finish_eval=$lt_finish_eval
  23880. # Take the output of nm and produce a listing of raw symbols and C names.
  23881. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23882. # Transform the output of nm in a proper C declaration
  23883. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23884. # Transform the output of nm in a C name address pair
  23885. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23886. # This is the shared library runtime path variable.
  23887. runpath_var=$runpath_var
  23888. # This is the shared library path variable.
  23889. shlibpath_var=$shlibpath_var
  23890. # Is shlibpath searched before the hard-coded library search path?
  23891. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23892. # How to hardcode a shared library path into an executable.
  23893. hardcode_action=$hardcode_action_GCJ
  23894. # Whether we should hardcode library paths into libraries.
  23895. hardcode_into_libs=$hardcode_into_libs
  23896. # Flag to hardcode \$libdir into a binary during linking.
  23897. # This must work even if \$libdir does not exist.
  23898. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  23899. # If ld is used when linking, flag to hardcode \$libdir into
  23900. # a binary during linking. This must work even if \$libdir does
  23901. # not exist.
  23902. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  23903. # Whether we need a single -rpath flag with a separated argument.
  23904. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  23905. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  23906. # resulting binary.
  23907. hardcode_direct=$hardcode_direct_GCJ
  23908. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  23909. # resulting binary.
  23910. hardcode_minus_L=$hardcode_minus_L_GCJ
  23911. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  23912. # the resulting binary.
  23913. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  23914. # Set to yes if building a shared library automatically hardcodes DIR into the library
  23915. # and all subsequent libraries and executables linked against it.
  23916. hardcode_automatic=$hardcode_automatic_GCJ
  23917. # Variables whose values should be saved in libtool wrapper scripts and
  23918. # restored at relink time.
  23919. variables_saved_for_relink="$variables_saved_for_relink"
  23920. # Whether libtool must link a program against all its dependency libraries.
  23921. link_all_deplibs=$link_all_deplibs_GCJ
  23922. # Compile-time system search path for libraries
  23923. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23924. # Run-time system search path for libraries
  23925. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23926. # Fix the shell variable \$srcfile for the compiler.
  23927. fix_srcfile_path="$fix_srcfile_path_GCJ"
  23928. # Set to yes if exported symbols are required.
  23929. always_export_symbols=$always_export_symbols_GCJ
  23930. # The commands to list exported symbols.
  23931. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  23932. # The commands to extract the exported symbol list from a shared archive.
  23933. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23934. # Symbols that should not be listed in the preloaded symbols.
  23935. exclude_expsyms=$lt_exclude_expsyms_GCJ
  23936. # Symbols that must always be exported.
  23937. include_expsyms=$lt_include_expsyms_GCJ
  23938. # ### END LIBTOOL TAG CONFIG: $tagname
  23939. __EOF__
  23940. else
  23941. # If there is no Makefile yet, we rely on a make rule to execute
  23942. # `config.status --recheck' to rerun these tests and create the
  23943. # libtool script then.
  23944. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  23945. if test -f "$ltmain_in"; then
  23946. test -f Makefile && make "$ltmain"
  23947. fi
  23948. fi
  23949. ac_ext=c
  23950. ac_cpp='$CPP $CPPFLAGS'
  23951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23954. CC="$lt_save_CC"
  23955. else
  23956. tagname=""
  23957. fi
  23958. ;;
  23959. RC)
  23960. ac_ext=c
  23961. ac_cpp='$CPP $CPPFLAGS'
  23962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23965. # Source file extension for RC test sources.
  23966. ac_ext=rc
  23967. # Object file extension for compiled RC test sources.
  23968. objext=o
  23969. objext_RC=$objext
  23970. # Code to be used in simple compile tests
  23971. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  23972. # Code to be used in simple link tests
  23973. lt_simple_link_test_code="$lt_simple_compile_test_code"
  23974. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  23975. # If no C compiler was specified, use CC.
  23976. LTCC=${LTCC-"$CC"}
  23977. # If no C compiler flags were specified, use CFLAGS.
  23978. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23979. # Allow CC to be a program name with arguments.
  23980. compiler=$CC
  23981. # save warnings/boilerplate of simple test code
  23982. ac_outfile=conftest.$ac_objext
  23983. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  23984. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23985. _lt_compiler_boilerplate=`cat conftest.err`
  23986. $rm conftest*
  23987. ac_outfile=conftest.$ac_objext
  23988. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  23989. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23990. _lt_linker_boilerplate=`cat conftest.err`
  23991. $rm conftest*
  23992. # Allow CC to be a program name with arguments.
  23993. lt_save_CC="$CC"
  23994. CC=${RC-"windres"}
  23995. compiler=$CC
  23996. compiler_RC=$CC
  23997. for cc_temp in $compiler""; do
  23998. case $cc_temp in
  23999. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24000. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24001. \-*) ;;
  24002. *) break;;
  24003. esac
  24004. done
  24005. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24006. lt_cv_prog_compiler_c_o_RC=yes
  24007. # The else clause should only fire when bootstrapping the
  24008. # libtool distribution, otherwise you forgot to ship ltmain.sh
  24009. # with your package, and you will get complaints that there are
  24010. # no rules to generate ltmain.sh.
  24011. if test -f "$ltmain"; then
  24012. # See if we are running on zsh, and set the options which allow our commands through
  24013. # without removal of \ escapes.
  24014. if test -n "${ZSH_VERSION+set}" ; then
  24015. setopt NO_GLOB_SUBST
  24016. fi
  24017. # Now quote all the things that may contain metacharacters while being
  24018. # careful not to overquote the AC_SUBSTed values. We take copies of the
  24019. # variables and quote the copies for generation of the libtool script.
  24020. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  24021. SED SHELL STRIP \
  24022. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  24023. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  24024. deplibs_check_method reload_flag reload_cmds need_locks \
  24025. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  24026. lt_cv_sys_global_symbol_to_c_name_address \
  24027. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  24028. old_postinstall_cmds old_postuninstall_cmds \
  24029. compiler_RC \
  24030. CC_RC \
  24031. LD_RC \
  24032. lt_prog_compiler_wl_RC \
  24033. lt_prog_compiler_pic_RC \
  24034. lt_prog_compiler_static_RC \
  24035. lt_prog_compiler_no_builtin_flag_RC \
  24036. export_dynamic_flag_spec_RC \
  24037. thread_safe_flag_spec_RC \
  24038. whole_archive_flag_spec_RC \
  24039. enable_shared_with_static_runtimes_RC \
  24040. old_archive_cmds_RC \
  24041. old_archive_from_new_cmds_RC \
  24042. predep_objects_RC \
  24043. postdep_objects_RC \
  24044. predeps_RC \
  24045. postdeps_RC \
  24046. compiler_lib_search_path_RC \
  24047. archive_cmds_RC \
  24048. archive_expsym_cmds_RC \
  24049. postinstall_cmds_RC \
  24050. postuninstall_cmds_RC \
  24051. old_archive_from_expsyms_cmds_RC \
  24052. allow_undefined_flag_RC \
  24053. no_undefined_flag_RC \
  24054. export_symbols_cmds_RC \
  24055. hardcode_libdir_flag_spec_RC \
  24056. hardcode_libdir_flag_spec_ld_RC \
  24057. hardcode_libdir_separator_RC \
  24058. hardcode_automatic_RC \
  24059. module_cmds_RC \
  24060. module_expsym_cmds_RC \
  24061. lt_cv_prog_compiler_c_o_RC \
  24062. exclude_expsyms_RC \
  24063. include_expsyms_RC; do
  24064. case $var in
  24065. old_archive_cmds_RC | \
  24066. old_archive_from_new_cmds_RC | \
  24067. archive_cmds_RC | \
  24068. archive_expsym_cmds_RC | \
  24069. module_cmds_RC | \
  24070. module_expsym_cmds_RC | \
  24071. old_archive_from_expsyms_cmds_RC | \
  24072. export_symbols_cmds_RC | \
  24073. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  24074. postinstall_cmds | postuninstall_cmds | \
  24075. old_postinstall_cmds | old_postuninstall_cmds | \
  24076. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  24077. # Double-quote double-evaled strings.
  24078. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  24079. ;;
  24080. *)
  24081. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  24082. ;;
  24083. esac
  24084. done
  24085. case $lt_echo in
  24086. *'\$0 --fallback-echo"')
  24087. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  24088. ;;
  24089. esac
  24090. cfgfile="$ofile"
  24091. cat <<__EOF__ >> "$cfgfile"
  24092. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  24093. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24094. # Shell to use when invoking shell scripts.
  24095. SHELL=$lt_SHELL
  24096. # Whether or not to build shared libraries.
  24097. build_libtool_libs=$enable_shared
  24098. # Whether or not to build static libraries.
  24099. build_old_libs=$enable_static
  24100. # Whether or not to add -lc for building shared libraries.
  24101. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24102. # Whether or not to disallow shared libs when runtime libs are static
  24103. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24104. # Whether or not to optimize for fast installation.
  24105. fast_install=$enable_fast_install
  24106. # The host system.
  24107. host_alias=$host_alias
  24108. host=$host
  24109. host_os=$host_os
  24110. # The build system.
  24111. build_alias=$build_alias
  24112. build=$build
  24113. build_os=$build_os
  24114. # An echo program that does not interpret backslashes.
  24115. echo=$lt_echo
  24116. # The archiver.
  24117. AR=$lt_AR
  24118. AR_FLAGS=$lt_AR_FLAGS
  24119. # A C compiler.
  24120. LTCC=$lt_LTCC
  24121. # LTCC compiler flags.
  24122. LTCFLAGS=$lt_LTCFLAGS
  24123. # A language-specific compiler.
  24124. CC=$lt_compiler_RC
  24125. # Is the compiler the GNU C compiler?
  24126. with_gcc=$GCC_RC
  24127. # An ERE matcher.
  24128. EGREP=$lt_EGREP
  24129. # The linker used to build libraries.
  24130. LD=$lt_LD_RC
  24131. # Whether we need hard or soft links.
  24132. LN_S=$lt_LN_S
  24133. # A BSD-compatible nm program.
  24134. NM=$lt_NM
  24135. # A symbol stripping program
  24136. STRIP=$lt_STRIP
  24137. # Used to examine libraries when file_magic_cmd begins "file"
  24138. MAGIC_CMD=$MAGIC_CMD
  24139. # Used on cygwin: DLL creation program.
  24140. DLLTOOL="$DLLTOOL"
  24141. # Used on cygwin: object dumper.
  24142. OBJDUMP="$OBJDUMP"
  24143. # Used on cygwin: assembler.
  24144. AS="$AS"
  24145. # The name of the directory that contains temporary libtool files.
  24146. objdir=$objdir
  24147. # How to create reloadable object files.
  24148. reload_flag=$lt_reload_flag
  24149. reload_cmds=$lt_reload_cmds
  24150. # How to pass a linker flag through the compiler.
  24151. wl=$lt_lt_prog_compiler_wl_RC
  24152. # Object file suffix (normally "o").
  24153. objext="$ac_objext"
  24154. # Old archive suffix (normally "a").
  24155. libext="$libext"
  24156. # Shared library suffix (normally ".so").
  24157. shrext_cmds='$shrext_cmds'
  24158. # Executable file suffix (normally "").
  24159. exeext="$exeext"
  24160. # Additional compiler flags for building library objects.
  24161. pic_flag=$lt_lt_prog_compiler_pic_RC
  24162. pic_mode=$pic_mode
  24163. # What is the maximum length of a command?
  24164. max_cmd_len=$lt_cv_sys_max_cmd_len
  24165. # Does compiler simultaneously support -c and -o options?
  24166. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24167. # Must we lock files when doing compilation?
  24168. need_locks=$lt_need_locks
  24169. # Do we need the lib prefix for modules?
  24170. need_lib_prefix=$need_lib_prefix
  24171. # Do we need a version for libraries?
  24172. need_version=$need_version
  24173. # Whether dlopen is supported.
  24174. dlopen_support=$enable_dlopen
  24175. # Whether dlopen of programs is supported.
  24176. dlopen_self=$enable_dlopen_self
  24177. # Whether dlopen of statically linked programs is supported.
  24178. dlopen_self_static=$enable_dlopen_self_static
  24179. # Compiler flag to prevent dynamic linking.
  24180. link_static_flag=$lt_lt_prog_compiler_static_RC
  24181. # Compiler flag to turn off builtin functions.
  24182. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24183. # Compiler flag to allow reflexive dlopens.
  24184. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24185. # Compiler flag to generate shared objects directly from archives.
  24186. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24187. # Compiler flag to generate thread-safe objects.
  24188. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  24189. # Library versioning type.
  24190. version_type=$version_type
  24191. # Format of library name prefix.
  24192. libname_spec=$lt_libname_spec
  24193. # List of archive names. First name is the real one, the rest are links.
  24194. # The last name is the one that the linker finds with -lNAME.
  24195. library_names_spec=$lt_library_names_spec
  24196. # The coded name of the library, if different from the real name.
  24197. soname_spec=$lt_soname_spec
  24198. # Commands used to build and install an old-style archive.
  24199. RANLIB=$lt_RANLIB
  24200. old_archive_cmds=$lt_old_archive_cmds_RC
  24201. old_postinstall_cmds=$lt_old_postinstall_cmds
  24202. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24203. # Create an old-style archive from a shared archive.
  24204. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24205. # Create a temporary old-style archive to link instead of a shared archive.
  24206. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24207. # Commands used to build and install a shared archive.
  24208. archive_cmds=$lt_archive_cmds_RC
  24209. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24210. postinstall_cmds=$lt_postinstall_cmds
  24211. postuninstall_cmds=$lt_postuninstall_cmds
  24212. # Commands used to build a loadable module (assumed same as above if empty)
  24213. module_cmds=$lt_module_cmds_RC
  24214. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24215. # Commands to strip libraries.
  24216. old_striplib=$lt_old_striplib
  24217. striplib=$lt_striplib
  24218. # Dependencies to place before the objects being linked to create a
  24219. # shared library.
  24220. predep_objects=$lt_predep_objects_RC
  24221. # Dependencies to place after the objects being linked to create a
  24222. # shared library.
  24223. postdep_objects=$lt_postdep_objects_RC
  24224. # Dependencies to place before the objects being linked to create a
  24225. # shared library.
  24226. predeps=$lt_predeps_RC
  24227. # Dependencies to place after the objects being linked to create a
  24228. # shared library.
  24229. postdeps=$lt_postdeps_RC
  24230. # The library search path used internally by the compiler when linking
  24231. # a shared library.
  24232. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24233. # Method to check whether dependent libraries are shared objects.
  24234. deplibs_check_method=$lt_deplibs_check_method
  24235. # Command to use when deplibs_check_method == file_magic.
  24236. file_magic_cmd=$lt_file_magic_cmd
  24237. # Flag that allows shared libraries with undefined symbols to be built.
  24238. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24239. # Flag that forces no undefined symbols.
  24240. no_undefined_flag=$lt_no_undefined_flag_RC
  24241. # Commands used to finish a libtool library installation in a directory.
  24242. finish_cmds=$lt_finish_cmds
  24243. # Same as above, but a single script fragment to be evaled but not shown.
  24244. finish_eval=$lt_finish_eval
  24245. # Take the output of nm and produce a listing of raw symbols and C names.
  24246. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24247. # Transform the output of nm in a proper C declaration
  24248. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24249. # Transform the output of nm in a C name address pair
  24250. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24251. # This is the shared library runtime path variable.
  24252. runpath_var=$runpath_var
  24253. # This is the shared library path variable.
  24254. shlibpath_var=$shlibpath_var
  24255. # Is shlibpath searched before the hard-coded library search path?
  24256. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24257. # How to hardcode a shared library path into an executable.
  24258. hardcode_action=$hardcode_action_RC
  24259. # Whether we should hardcode library paths into libraries.
  24260. hardcode_into_libs=$hardcode_into_libs
  24261. # Flag to hardcode \$libdir into a binary during linking.
  24262. # This must work even if \$libdir does not exist.
  24263. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24264. # If ld is used when linking, flag to hardcode \$libdir into
  24265. # a binary during linking. This must work even if \$libdir does
  24266. # not exist.
  24267. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  24268. # Whether we need a single -rpath flag with a separated argument.
  24269. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24270. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  24271. # resulting binary.
  24272. hardcode_direct=$hardcode_direct_RC
  24273. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  24274. # resulting binary.
  24275. hardcode_minus_L=$hardcode_minus_L_RC
  24276. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  24277. # the resulting binary.
  24278. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24279. # Set to yes if building a shared library automatically hardcodes DIR into the library
  24280. # and all subsequent libraries and executables linked against it.
  24281. hardcode_automatic=$hardcode_automatic_RC
  24282. # Variables whose values should be saved in libtool wrapper scripts and
  24283. # restored at relink time.
  24284. variables_saved_for_relink="$variables_saved_for_relink"
  24285. # Whether libtool must link a program against all its dependency libraries.
  24286. link_all_deplibs=$link_all_deplibs_RC
  24287. # Compile-time system search path for libraries
  24288. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24289. # Run-time system search path for libraries
  24290. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24291. # Fix the shell variable \$srcfile for the compiler.
  24292. fix_srcfile_path="$fix_srcfile_path_RC"
  24293. # Set to yes if exported symbols are required.
  24294. always_export_symbols=$always_export_symbols_RC
  24295. # The commands to list exported symbols.
  24296. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24297. # The commands to extract the exported symbol list from a shared archive.
  24298. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24299. # Symbols that should not be listed in the preloaded symbols.
  24300. exclude_expsyms=$lt_exclude_expsyms_RC
  24301. # Symbols that must always be exported.
  24302. include_expsyms=$lt_include_expsyms_RC
  24303. # ### END LIBTOOL TAG CONFIG: $tagname
  24304. __EOF__
  24305. else
  24306. # If there is no Makefile yet, we rely on a make rule to execute
  24307. # `config.status --recheck' to rerun these tests and create the
  24308. # libtool script then.
  24309. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  24310. if test -f "$ltmain_in"; then
  24311. test -f Makefile && make "$ltmain"
  24312. fi
  24313. fi
  24314. ac_ext=c
  24315. ac_cpp='$CPP $CPPFLAGS'
  24316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24319. CC="$lt_save_CC"
  24320. ;;
  24321. *)
  24322. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  24323. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  24324. { (exit 1); exit 1; }; }
  24325. ;;
  24326. esac
  24327. # Append the new tag name to the list of available tags.
  24328. if test -n "$tagname" ; then
  24329. available_tags="$available_tags $tagname"
  24330. fi
  24331. fi
  24332. done
  24333. IFS="$lt_save_ifs"
  24334. # Now substitute the updated list of available tags.
  24335. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  24336. mv "${ofile}T" "$ofile"
  24337. chmod +x "$ofile"
  24338. else
  24339. rm -f "${ofile}T"
  24340. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  24341. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  24342. { (exit 1); exit 1; }; }
  24343. fi
  24344. fi
  24345. # This can be used to rebuild libtool when needed
  24346. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  24347. # Always use our own libtool.
  24348. LIBTOOL='$(SHELL) $(top_builddir)/mklib'
  24349. # Prevent multiple expansion
  24350. if test "$lt_cv_dlopen_self" = "yes" ; then
  24351. cat >>confdefs.h <<\_ACEOF
  24352. #define CAN_DLOPEN_SELF 1
  24353. _ACEOF
  24354. fi
  24355. if test "$WITH_LLVMGCCDIR" = "default" ; then
  24356. LLVMGCC="llvm-gcc${EXEEXT}"
  24357. LLVMGXX="llvm-g++${EXEEXT}"
  24358. LLVMGCCCOMMAND="$LLVMGCC"
  24359. LLVMGXXCOMMAND="$LLVMGXX"
  24360. LLVMGCCCOMMAND=$LLVMGCCCOMMAND
  24361. LLVMGXXCOMMAND=$LLVMGXXCOMMAND
  24362. # Extract the first word of "$LLVMGCC", so it can be a program name with args.
  24363. set dummy $LLVMGCC; ac_word=$2
  24364. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  24365. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24366. if test "${ac_cv_path_LLVMGCC+set}" = set; then
  24367. echo $ECHO_N "(cached) $ECHO_C" >&6
  24368. else
  24369. case $LLVMGCC in
  24370. [\\/]* | ?:[\\/]*)
  24371. ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
  24372. ;;
  24373. *)
  24374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24375. for as_dir in $PATH
  24376. do
  24377. IFS=$as_save_IFS
  24378. test -z "$as_dir" && as_dir=.
  24379. for ac_exec_ext in '' $ac_executable_extensions; do
  24380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24381. ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
  24382. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24383. break 2
  24384. fi
  24385. done
  24386. done
  24387. IFS=$as_save_IFS
  24388. ;;
  24389. esac
  24390. fi
  24391. LLVMGCC=$ac_cv_path_LLVMGCC
  24392. if test -n "$LLVMGCC"; then
  24393. { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
  24394. echo "${ECHO_T}$LLVMGCC" >&6; }
  24395. else
  24396. { echo "$as_me:$LINENO: result: no" >&5
  24397. echo "${ECHO_T}no" >&6; }
  24398. fi
  24399. # Extract the first word of "$LLVMGXX", so it can be a program name with args.
  24400. set dummy $LLVMGXX; ac_word=$2
  24401. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  24402. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24403. if test "${ac_cv_path_LLVMGXX+set}" = set; then
  24404. echo $ECHO_N "(cached) $ECHO_C" >&6
  24405. else
  24406. case $LLVMGXX in
  24407. [\\/]* | ?:[\\/]*)
  24408. ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
  24409. ;;
  24410. *)
  24411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24412. for as_dir in $PATH
  24413. do
  24414. IFS=$as_save_IFS
  24415. test -z "$as_dir" && as_dir=.
  24416. for ac_exec_ext in '' $ac_executable_extensions; do
  24417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  24418. ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
  24419. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24420. break 2
  24421. fi
  24422. done
  24423. done
  24424. IFS=$as_save_IFS
  24425. ;;
  24426. esac
  24427. fi
  24428. LLVMGXX=$ac_cv_path_LLVMGXX
  24429. if test -n "$LLVMGXX"; then
  24430. { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
  24431. echo "${ECHO_T}$LLVMGXX" >&6; }
  24432. else
  24433. { echo "$as_me:$LINENO: result: no" >&5
  24434. echo "${ECHO_T}no" >&6; }
  24435. fi
  24436. else
  24437. if test -z "$LLVMGCC"; then
  24438. LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
  24439. LLVMGCCCOMMAND="$LLVMGCC"
  24440. fi
  24441. if test -z "$LLVMGXX"; then
  24442. LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
  24443. LLVMGXXCOMMAND="$LLVMGXX"
  24444. fi
  24445. LLVMGCC=$LLVMGCC
  24446. LLVMGXX=$LLVMGXX
  24447. LLVMGCCCOMMAND=$LLVMGCCCOMMAND
  24448. LLVMGXXCOMMAND=$LLVMGXXCOMMAND
  24449. fi
  24450. { echo "$as_me:$LINENO: checking tool compatibility" >&5
  24451. echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
  24452. ICC=no
  24453. IXX=no
  24454. case $CC in
  24455. icc*|icpc*)
  24456. ICC=yes
  24457. IXX=yes
  24458. ;;
  24459. *)
  24460. ;;
  24461. esac
  24462. if test "$GCC" != "yes" && test "$ICC" != "yes"
  24463. then
  24464. { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
  24465. echo "$as_me: error: gcc|icc required but not found" >&2;}
  24466. { (exit 1); exit 1; }; }
  24467. fi
  24468. if test "$GXX" != "yes" && test "$IXX" != "yes"
  24469. then
  24470. { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
  24471. echo "$as_me: error: g++|icc required but not found" >&2;}
  24472. { (exit 1); exit 1; }; }
  24473. fi
  24474. if test "$GCC" = "yes"
  24475. then
  24476. cat >conftest.$ac_ext <<_ACEOF
  24477. #if !defined(__GNUC__) || __GNUC__ < 3
  24478. #error Unsupported GCC version
  24479. #endif
  24480. _ACEOF
  24481. rm -f conftest.$ac_objext
  24482. if { (ac_try="$ac_compile"
  24483. case "(($ac_try" in
  24484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24485. *) ac_try_echo=$ac_try;;
  24486. esac
  24487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24488. (eval "$ac_compile") 2>conftest.er1
  24489. ac_status=$?
  24490. grep -v '^ *+' conftest.er1 >conftest.err
  24491. rm -f conftest.er1
  24492. cat conftest.err >&5
  24493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24494. (exit $ac_status); } &&
  24495. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  24496. { (case "(($ac_try" in
  24497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24498. *) ac_try_echo=$ac_try;;
  24499. esac
  24500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24501. (eval "$ac_try") 2>&5
  24502. ac_status=$?
  24503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24504. (exit $ac_status); }; } &&
  24505. { ac_try='test -s conftest.$ac_objext'
  24506. { (case "(($ac_try" in
  24507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24508. *) ac_try_echo=$ac_try;;
  24509. esac
  24510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24511. (eval "$ac_try") 2>&5
  24512. ac_status=$?
  24513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24514. (exit $ac_status); }; }; then
  24515. :
  24516. else
  24517. echo "$as_me: failed program was:" >&5
  24518. sed 's/^/| /' conftest.$ac_ext >&5
  24519. { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
  24520. echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
  24521. { (exit 1); exit 1; }; }
  24522. fi
  24523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24524. fi
  24525. if test -z "$llvm_cv_gnu_make_command"
  24526. then
  24527. { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
  24528. echo "$as_me: error: GNU Make required but not found" >&2;}
  24529. { (exit 1); exit 1; }; }
  24530. fi
  24531. { echo "$as_me:$LINENO: result: ok" >&5
  24532. echo "${ECHO_T}ok" >&6; }
  24533. { echo "$as_me:$LINENO: checking for sin in -lm" >&5
  24534. echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
  24535. if test "${ac_cv_lib_m_sin+set}" = set; then
  24536. echo $ECHO_N "(cached) $ECHO_C" >&6
  24537. else
  24538. ac_check_lib_save_LIBS=$LIBS
  24539. LIBS="-lm $LIBS"
  24540. cat >conftest.$ac_ext <<_ACEOF
  24541. /* confdefs.h. */
  24542. _ACEOF
  24543. cat confdefs.h >>conftest.$ac_ext
  24544. cat >>conftest.$ac_ext <<_ACEOF
  24545. /* end confdefs.h. */
  24546. /* Override any GCC internal prototype to avoid an error.
  24547. Use char because int might match the return type of a GCC
  24548. builtin and then its argument prototype would still apply. */
  24549. #ifdef __cplusplus
  24550. extern "C"
  24551. #endif
  24552. char sin ();
  24553. int
  24554. main ()
  24555. {
  24556. return sin ();
  24557. ;
  24558. return 0;
  24559. }
  24560. _ACEOF
  24561. rm -f conftest.$ac_objext conftest$ac_exeext
  24562. if { (ac_try="$ac_link"
  24563. case "(($ac_try" in
  24564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24565. *) ac_try_echo=$ac_try;;
  24566. esac
  24567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24568. (eval "$ac_link") 2>conftest.er1
  24569. ac_status=$?
  24570. grep -v '^ *+' conftest.er1 >conftest.err
  24571. rm -f conftest.er1
  24572. cat conftest.err >&5
  24573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24574. (exit $ac_status); } &&
  24575. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  24576. { (case "(($ac_try" in
  24577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24578. *) ac_try_echo=$ac_try;;
  24579. esac
  24580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24581. (eval "$ac_try") 2>&5
  24582. ac_status=$?
  24583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24584. (exit $ac_status); }; } &&
  24585. { ac_try='test -s conftest$ac_exeext'
  24586. { (case "(($ac_try" in
  24587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24588. *) ac_try_echo=$ac_try;;
  24589. esac
  24590. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24591. (eval "$ac_try") 2>&5
  24592. ac_status=$?
  24593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24594. (exit $ac_status); }; }; then
  24595. ac_cv_lib_m_sin=yes
  24596. else
  24597. echo "$as_me: failed program was:" >&5
  24598. sed 's/^/| /' conftest.$ac_ext >&5
  24599. ac_cv_lib_m_sin=no
  24600. fi
  24601. rm -f core conftest.err conftest.$ac_objext \
  24602. conftest$ac_exeext conftest.$ac_ext
  24603. LIBS=$ac_check_lib_save_LIBS
  24604. fi
  24605. { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
  24606. echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
  24607. if test $ac_cv_lib_m_sin = yes; then
  24608. cat >>confdefs.h <<_ACEOF
  24609. #define HAVE_LIBM 1
  24610. _ACEOF
  24611. LIBS="-lm $LIBS"
  24612. fi
  24613. if test "$llvm_cv_os_type" = "MingW" ; then
  24614. { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
  24615. echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
  24616. if test "${ac_cv_lib_imagehlp_main+set}" = set; then
  24617. echo $ECHO_N "(cached) $ECHO_C" >&6
  24618. else
  24619. ac_check_lib_save_LIBS=$LIBS
  24620. LIBS="-limagehlp $LIBS"
  24621. cat >conftest.$ac_ext <<_ACEOF
  24622. /* confdefs.h. */
  24623. _ACEOF
  24624. cat confdefs.h >>conftest.$ac_ext
  24625. cat >>conftest.$ac_ext <<_ACEOF
  24626. /* end confdefs.h. */
  24627. int
  24628. main ()
  24629. {
  24630. return main ();
  24631. ;
  24632. return 0;
  24633. }
  24634. _ACEOF
  24635. rm -f conftest.$ac_objext conftest$ac_exeext
  24636. if { (ac_try="$ac_link"
  24637. case "(($ac_try" in
  24638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24639. *) ac_try_echo=$ac_try;;
  24640. esac
  24641. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24642. (eval "$ac_link") 2>conftest.er1
  24643. ac_status=$?
  24644. grep -v '^ *+' conftest.er1 >conftest.err
  24645. rm -f conftest.er1
  24646. cat conftest.err >&5
  24647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24648. (exit $ac_status); } &&
  24649. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  24650. { (case "(($ac_try" in
  24651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24652. *) ac_try_echo=$ac_try;;
  24653. esac
  24654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24655. (eval "$ac_try") 2>&5
  24656. ac_status=$?
  24657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24658. (exit $ac_status); }; } &&
  24659. { ac_try='test -s conftest$ac_exeext'
  24660. { (case "(($ac_try" in
  24661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24662. *) ac_try_echo=$ac_try;;
  24663. esac
  24664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24665. (eval "$ac_try") 2>&5
  24666. ac_status=$?
  24667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24668. (exit $ac_status); }; }; then
  24669. ac_cv_lib_imagehlp_main=yes
  24670. else
  24671. echo "$as_me: failed program was:" >&5
  24672. sed 's/^/| /' conftest.$ac_ext >&5
  24673. ac_cv_lib_imagehlp_main=no
  24674. fi
  24675. rm -f core conftest.err conftest.$ac_objext \
  24676. conftest$ac_exeext conftest.$ac_ext
  24677. LIBS=$ac_check_lib_save_LIBS
  24678. fi
  24679. { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
  24680. echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
  24681. if test $ac_cv_lib_imagehlp_main = yes; then
  24682. cat >>confdefs.h <<_ACEOF
  24683. #define HAVE_LIBIMAGEHLP 1
  24684. _ACEOF
  24685. LIBS="-limagehlp $LIBS"
  24686. fi
  24687. { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
  24688. echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
  24689. if test "${ac_cv_lib_psapi_main+set}" = set; then
  24690. echo $ECHO_N "(cached) $ECHO_C" >&6
  24691. else
  24692. ac_check_lib_save_LIBS=$LIBS
  24693. LIBS="-lpsapi $LIBS"
  24694. cat >conftest.$ac_ext <<_ACEOF
  24695. /* confdefs.h. */
  24696. _ACEOF
  24697. cat confdefs.h >>conftest.$ac_ext
  24698. cat >>conftest.$ac_ext <<_ACEOF
  24699. /* end confdefs.h. */
  24700. int
  24701. main ()
  24702. {
  24703. return main ();
  24704. ;
  24705. return 0;
  24706. }
  24707. _ACEOF
  24708. rm -f conftest.$ac_objext conftest$ac_exeext
  24709. if { (ac_try="$ac_link"
  24710. case "(($ac_try" in
  24711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24712. *) ac_try_echo=$ac_try;;
  24713. esac
  24714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24715. (eval "$ac_link") 2>conftest.er1
  24716. ac_status=$?
  24717. grep -v '^ *+' conftest.er1 >conftest.err
  24718. rm -f conftest.er1
  24719. cat conftest.err >&5
  24720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24721. (exit $ac_status); } &&
  24722. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  24723. { (case "(($ac_try" in
  24724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24725. *) ac_try_echo=$ac_try;;
  24726. esac
  24727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24728. (eval "$ac_try") 2>&5
  24729. ac_status=$?
  24730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24731. (exit $ac_status); }; } &&
  24732. { ac_try='test -s conftest$ac_exeext'
  24733. { (case "(($ac_try" in
  24734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24735. *) ac_try_echo=$ac_try;;
  24736. esac
  24737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24738. (eval "$ac_try") 2>&5
  24739. ac_status=$?
  24740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24741. (exit $ac_status); }; }; then
  24742. ac_cv_lib_psapi_main=yes
  24743. else
  24744. echo "$as_me: failed program was:" >&5
  24745. sed 's/^/| /' conftest.$ac_ext >&5
  24746. ac_cv_lib_psapi_main=no
  24747. fi
  24748. rm -f core conftest.err conftest.$ac_objext \
  24749. conftest$ac_exeext conftest.$ac_ext
  24750. LIBS=$ac_check_lib_save_LIBS
  24751. fi
  24752. { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
  24753. echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
  24754. if test $ac_cv_lib_psapi_main = yes; then
  24755. cat >>confdefs.h <<_ACEOF
  24756. #define HAVE_LIBPSAPI 1
  24757. _ACEOF
  24758. LIBS="-lpsapi $LIBS"
  24759. fi
  24760. fi
  24761. { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  24762. echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  24763. if test "${ac_cv_search_dlopen+set}" = set; then
  24764. echo $ECHO_N "(cached) $ECHO_C" >&6
  24765. else
  24766. ac_func_search_save_LIBS=$LIBS
  24767. cat >conftest.$ac_ext <<_ACEOF
  24768. /* confdefs.h. */
  24769. _ACEOF
  24770. cat confdefs.h >>conftest.$ac_ext
  24771. cat >>conftest.$ac_ext <<_ACEOF
  24772. /* end confdefs.h. */
  24773. /* Override any GCC internal prototype to avoid an error.
  24774. Use char because int might match the return type of a GCC
  24775. builtin and then its argument prototype would still apply. */
  24776. #ifdef __cplusplus
  24777. extern "C"
  24778. #endif
  24779. char dlopen ();
  24780. int
  24781. main ()
  24782. {
  24783. return dlopen ();
  24784. ;
  24785. return 0;
  24786. }
  24787. _ACEOF
  24788. for ac_lib in '' dl; do
  24789. if test -z "$ac_lib"; then
  24790. ac_res="none required"
  24791. else
  24792. ac_res=-l$ac_lib
  24793. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24794. fi
  24795. rm -f conftest.$ac_objext conftest$ac_exeext
  24796. if { (ac_try="$ac_link"
  24797. case "(($ac_try" in
  24798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24799. *) ac_try_echo=$ac_try;;
  24800. esac
  24801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24802. (eval "$ac_link") 2>conftest.er1
  24803. ac_status=$?
  24804. grep -v '^ *+' conftest.er1 >conftest.err
  24805. rm -f conftest.er1
  24806. cat conftest.err >&5
  24807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24808. (exit $ac_status); } &&
  24809. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  24810. { (case "(($ac_try" in
  24811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24812. *) ac_try_echo=$ac_try;;
  24813. esac
  24814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24815. (eval "$ac_try") 2>&5
  24816. ac_status=$?
  24817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24818. (exit $ac_status); }; } &&
  24819. { ac_try='test -s conftest$ac_exeext'
  24820. { (case "(($ac_try" in
  24821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24822. *) ac_try_echo=$ac_try;;
  24823. esac
  24824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24825. (eval "$ac_try") 2>&5
  24826. ac_status=$?
  24827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24828. (exit $ac_status); }; }; then
  24829. ac_cv_search_dlopen=$ac_res
  24830. else
  24831. echo "$as_me: failed program was:" >&5
  24832. sed 's/^/| /' conftest.$ac_ext >&5
  24833. fi
  24834. rm -f core conftest.err conftest.$ac_objext \
  24835. conftest$ac_exeext
  24836. if test "${ac_cv_search_dlopen+set}" = set; then
  24837. break
  24838. fi
  24839. done
  24840. if test "${ac_cv_search_dlopen+set}" = set; then
  24841. :
  24842. else
  24843. ac_cv_search_dlopen=no
  24844. fi
  24845. rm conftest.$ac_ext
  24846. LIBS=$ac_func_search_save_LIBS
  24847. fi
  24848. { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  24849. echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
  24850. ac_res=$ac_cv_search_dlopen
  24851. if test "$ac_res" != no; then
  24852. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24853. cat >>confdefs.h <<\_ACEOF
  24854. #define HAVE_DLOPEN 1
  24855. _ACEOF
  24856. else
  24857. { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
  24858. echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
  24859. fi
  24860. if test "$llvm_cv_enable_libffi" = "yes" ; then
  24861. { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
  24862. echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
  24863. if test "${ac_cv_search_ffi_call+set}" = set; then
  24864. echo $ECHO_N "(cached) $ECHO_C" >&6
  24865. else
  24866. ac_func_search_save_LIBS=$LIBS
  24867. cat >conftest.$ac_ext <<_ACEOF
  24868. /* confdefs.h. */
  24869. _ACEOF
  24870. cat confdefs.h >>conftest.$ac_ext
  24871. cat >>conftest.$ac_ext <<_ACEOF
  24872. /* end confdefs.h. */
  24873. /* Override any GCC internal prototype to avoid an error.
  24874. Use char because int might match the return type of a GCC
  24875. builtin and then its argument prototype would still apply. */
  24876. #ifdef __cplusplus
  24877. extern "C"
  24878. #endif
  24879. char ffi_call ();
  24880. int
  24881. main ()
  24882. {
  24883. return ffi_call ();
  24884. ;
  24885. return 0;
  24886. }
  24887. _ACEOF
  24888. for ac_lib in '' ffi; do
  24889. if test -z "$ac_lib"; then
  24890. ac_res="none required"
  24891. else
  24892. ac_res=-l$ac_lib
  24893. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24894. fi
  24895. rm -f conftest.$ac_objext conftest$ac_exeext
  24896. if { (ac_try="$ac_link"
  24897. case "(($ac_try" in
  24898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24899. *) ac_try_echo=$ac_try;;
  24900. esac
  24901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24902. (eval "$ac_link") 2>conftest.er1
  24903. ac_status=$?
  24904. grep -v '^ *+' conftest.er1 >conftest.err
  24905. rm -f conftest.er1
  24906. cat conftest.err >&5
  24907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24908. (exit $ac_status); } &&
  24909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  24910. { (case "(($ac_try" in
  24911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24912. *) ac_try_echo=$ac_try;;
  24913. esac
  24914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24915. (eval "$ac_try") 2>&5
  24916. ac_status=$?
  24917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24918. (exit $ac_status); }; } &&
  24919. { ac_try='test -s conftest$ac_exeext'
  24920. { (case "(($ac_try" in
  24921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24922. *) ac_try_echo=$ac_try;;
  24923. esac
  24924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24925. (eval "$ac_try") 2>&5
  24926. ac_status=$?
  24927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24928. (exit $ac_status); }; }; then
  24929. ac_cv_search_ffi_call=$ac_res
  24930. else
  24931. echo "$as_me: failed program was:" >&5
  24932. sed 's/^/| /' conftest.$ac_ext >&5
  24933. fi
  24934. rm -f core conftest.err conftest.$ac_objext \
  24935. conftest$ac_exeext
  24936. if test "${ac_cv_search_ffi_call+set}" = set; then
  24937. break
  24938. fi
  24939. done
  24940. if test "${ac_cv_search_ffi_call+set}" = set; then
  24941. :
  24942. else
  24943. ac_cv_search_ffi_call=no
  24944. fi
  24945. rm conftest.$ac_ext
  24946. LIBS=$ac_func_search_save_LIBS
  24947. fi
  24948. { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
  24949. echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
  24950. ac_res=$ac_cv_search_ffi_call
  24951. if test "$ac_res" != no; then
  24952. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24953. cat >>confdefs.h <<\_ACEOF
  24954. #define HAVE_FFI_CALL 1
  24955. _ACEOF
  24956. else
  24957. { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
  24958. echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
  24959. fi
  24960. fi
  24961. { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
  24962. echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
  24963. if test "${ac_cv_search_mallinfo+set}" = set; then
  24964. echo $ECHO_N "(cached) $ECHO_C" >&6
  24965. else
  24966. ac_func_search_save_LIBS=$LIBS
  24967. cat >conftest.$ac_ext <<_ACEOF
  24968. /* confdefs.h. */
  24969. _ACEOF
  24970. cat confdefs.h >>conftest.$ac_ext
  24971. cat >>conftest.$ac_ext <<_ACEOF
  24972. /* end confdefs.h. */
  24973. /* Override any GCC internal prototype to avoid an error.
  24974. Use char because int might match the return type of a GCC
  24975. builtin and then its argument prototype would still apply. */
  24976. #ifdef __cplusplus
  24977. extern "C"
  24978. #endif
  24979. char mallinfo ();
  24980. int
  24981. main ()
  24982. {
  24983. return mallinfo ();
  24984. ;
  24985. return 0;
  24986. }
  24987. _ACEOF
  24988. for ac_lib in '' malloc; do
  24989. if test -z "$ac_lib"; then
  24990. ac_res="none required"
  24991. else
  24992. ac_res=-l$ac_lib
  24993. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24994. fi
  24995. rm -f conftest.$ac_objext conftest$ac_exeext
  24996. if { (ac_try="$ac_link"
  24997. case "(($ac_try" in
  24998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24999. *) ac_try_echo=$ac_try;;
  25000. esac
  25001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25002. (eval "$ac_link") 2>conftest.er1
  25003. ac_status=$?
  25004. grep -v '^ *+' conftest.er1 >conftest.err
  25005. rm -f conftest.er1
  25006. cat conftest.err >&5
  25007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25008. (exit $ac_status); } &&
  25009. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25010. { (case "(($ac_try" in
  25011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25012. *) ac_try_echo=$ac_try;;
  25013. esac
  25014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25015. (eval "$ac_try") 2>&5
  25016. ac_status=$?
  25017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25018. (exit $ac_status); }; } &&
  25019. { ac_try='test -s conftest$ac_exeext'
  25020. { (case "(($ac_try" in
  25021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25022. *) ac_try_echo=$ac_try;;
  25023. esac
  25024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25025. (eval "$ac_try") 2>&5
  25026. ac_status=$?
  25027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25028. (exit $ac_status); }; }; then
  25029. ac_cv_search_mallinfo=$ac_res
  25030. else
  25031. echo "$as_me: failed program was:" >&5
  25032. sed 's/^/| /' conftest.$ac_ext >&5
  25033. fi
  25034. rm -f core conftest.err conftest.$ac_objext \
  25035. conftest$ac_exeext
  25036. if test "${ac_cv_search_mallinfo+set}" = set; then
  25037. break
  25038. fi
  25039. done
  25040. if test "${ac_cv_search_mallinfo+set}" = set; then
  25041. :
  25042. else
  25043. ac_cv_search_mallinfo=no
  25044. fi
  25045. rm conftest.$ac_ext
  25046. LIBS=$ac_func_search_save_LIBS
  25047. fi
  25048. { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
  25049. echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
  25050. ac_res=$ac_cv_search_mallinfo
  25051. if test "$ac_res" != no; then
  25052. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25053. cat >>confdefs.h <<\_ACEOF
  25054. #define HAVE_MALLINFO 1
  25055. _ACEOF
  25056. fi
  25057. if test "$ENABLE_THREADS" -eq 1 ; then
  25058. { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  25059. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
  25060. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  25061. echo $ECHO_N "(cached) $ECHO_C" >&6
  25062. else
  25063. ac_check_lib_save_LIBS=$LIBS
  25064. LIBS="-lpthread $LIBS"
  25065. cat >conftest.$ac_ext <<_ACEOF
  25066. /* confdefs.h. */
  25067. _ACEOF
  25068. cat confdefs.h >>conftest.$ac_ext
  25069. cat >>conftest.$ac_ext <<_ACEOF
  25070. /* end confdefs.h. */
  25071. /* Override any GCC internal prototype to avoid an error.
  25072. Use char because int might match the return type of a GCC
  25073. builtin and then its argument prototype would still apply. */
  25074. #ifdef __cplusplus
  25075. extern "C"
  25076. #endif
  25077. char pthread_mutex_init ();
  25078. int
  25079. main ()
  25080. {
  25081. return pthread_mutex_init ();
  25082. ;
  25083. return 0;
  25084. }
  25085. _ACEOF
  25086. rm -f conftest.$ac_objext conftest$ac_exeext
  25087. if { (ac_try="$ac_link"
  25088. case "(($ac_try" in
  25089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25090. *) ac_try_echo=$ac_try;;
  25091. esac
  25092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25093. (eval "$ac_link") 2>conftest.er1
  25094. ac_status=$?
  25095. grep -v '^ *+' conftest.er1 >conftest.err
  25096. rm -f conftest.er1
  25097. cat conftest.err >&5
  25098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25099. (exit $ac_status); } &&
  25100. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25101. { (case "(($ac_try" in
  25102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25103. *) ac_try_echo=$ac_try;;
  25104. esac
  25105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25106. (eval "$ac_try") 2>&5
  25107. ac_status=$?
  25108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25109. (exit $ac_status); }; } &&
  25110. { ac_try='test -s conftest$ac_exeext'
  25111. { (case "(($ac_try" in
  25112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25113. *) ac_try_echo=$ac_try;;
  25114. esac
  25115. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25116. (eval "$ac_try") 2>&5
  25117. ac_status=$?
  25118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25119. (exit $ac_status); }; }; then
  25120. ac_cv_lib_pthread_pthread_mutex_init=yes
  25121. else
  25122. echo "$as_me: failed program was:" >&5
  25123. sed 's/^/| /' conftest.$ac_ext >&5
  25124. ac_cv_lib_pthread_pthread_mutex_init=no
  25125. fi
  25126. rm -f core conftest.err conftest.$ac_objext \
  25127. conftest$ac_exeext conftest.$ac_ext
  25128. LIBS=$ac_check_lib_save_LIBS
  25129. fi
  25130. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  25131. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
  25132. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  25133. cat >>confdefs.h <<_ACEOF
  25134. #define HAVE_LIBPTHREAD 1
  25135. _ACEOF
  25136. LIBS="-lpthread $LIBS"
  25137. fi
  25138. { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
  25139. echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
  25140. if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
  25141. echo $ECHO_N "(cached) $ECHO_C" >&6
  25142. else
  25143. ac_func_search_save_LIBS=$LIBS
  25144. cat >conftest.$ac_ext <<_ACEOF
  25145. /* confdefs.h. */
  25146. _ACEOF
  25147. cat confdefs.h >>conftest.$ac_ext
  25148. cat >>conftest.$ac_ext <<_ACEOF
  25149. /* end confdefs.h. */
  25150. /* Override any GCC internal prototype to avoid an error.
  25151. Use char because int might match the return type of a GCC
  25152. builtin and then its argument prototype would still apply. */
  25153. #ifdef __cplusplus
  25154. extern "C"
  25155. #endif
  25156. char pthread_mutex_lock ();
  25157. int
  25158. main ()
  25159. {
  25160. return pthread_mutex_lock ();
  25161. ;
  25162. return 0;
  25163. }
  25164. _ACEOF
  25165. for ac_lib in '' pthread; do
  25166. if test -z "$ac_lib"; then
  25167. ac_res="none required"
  25168. else
  25169. ac_res=-l$ac_lib
  25170. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25171. fi
  25172. rm -f conftest.$ac_objext conftest$ac_exeext
  25173. if { (ac_try="$ac_link"
  25174. case "(($ac_try" in
  25175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25176. *) ac_try_echo=$ac_try;;
  25177. esac
  25178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25179. (eval "$ac_link") 2>conftest.er1
  25180. ac_status=$?
  25181. grep -v '^ *+' conftest.er1 >conftest.err
  25182. rm -f conftest.er1
  25183. cat conftest.err >&5
  25184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25185. (exit $ac_status); } &&
  25186. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25187. { (case "(($ac_try" in
  25188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25189. *) ac_try_echo=$ac_try;;
  25190. esac
  25191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25192. (eval "$ac_try") 2>&5
  25193. ac_status=$?
  25194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25195. (exit $ac_status); }; } &&
  25196. { ac_try='test -s conftest$ac_exeext'
  25197. { (case "(($ac_try" in
  25198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25199. *) ac_try_echo=$ac_try;;
  25200. esac
  25201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25202. (eval "$ac_try") 2>&5
  25203. ac_status=$?
  25204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25205. (exit $ac_status); }; }; then
  25206. ac_cv_search_pthread_mutex_lock=$ac_res
  25207. else
  25208. echo "$as_me: failed program was:" >&5
  25209. sed 's/^/| /' conftest.$ac_ext >&5
  25210. fi
  25211. rm -f core conftest.err conftest.$ac_objext \
  25212. conftest$ac_exeext
  25213. if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
  25214. break
  25215. fi
  25216. done
  25217. if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
  25218. :
  25219. else
  25220. ac_cv_search_pthread_mutex_lock=no
  25221. fi
  25222. rm conftest.$ac_ext
  25223. LIBS=$ac_func_search_save_LIBS
  25224. fi
  25225. { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
  25226. echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
  25227. ac_res=$ac_cv_search_pthread_mutex_lock
  25228. if test "$ac_res" != no; then
  25229. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25230. cat >>confdefs.h <<\_ACEOF
  25231. #define HAVE_PTHREAD_MUTEX_LOCK 1
  25232. _ACEOF
  25233. fi
  25234. { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
  25235. echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
  25236. if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
  25237. echo $ECHO_N "(cached) $ECHO_C" >&6
  25238. else
  25239. ac_func_search_save_LIBS=$LIBS
  25240. cat >conftest.$ac_ext <<_ACEOF
  25241. /* confdefs.h. */
  25242. _ACEOF
  25243. cat confdefs.h >>conftest.$ac_ext
  25244. cat >>conftest.$ac_ext <<_ACEOF
  25245. /* end confdefs.h. */
  25246. /* Override any GCC internal prototype to avoid an error.
  25247. Use char because int might match the return type of a GCC
  25248. builtin and then its argument prototype would still apply. */
  25249. #ifdef __cplusplus
  25250. extern "C"
  25251. #endif
  25252. char pthread_rwlock_init ();
  25253. int
  25254. main ()
  25255. {
  25256. return pthread_rwlock_init ();
  25257. ;
  25258. return 0;
  25259. }
  25260. _ACEOF
  25261. for ac_lib in '' pthread; do
  25262. if test -z "$ac_lib"; then
  25263. ac_res="none required"
  25264. else
  25265. ac_res=-l$ac_lib
  25266. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25267. fi
  25268. rm -f conftest.$ac_objext conftest$ac_exeext
  25269. if { (ac_try="$ac_link"
  25270. case "(($ac_try" in
  25271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25272. *) ac_try_echo=$ac_try;;
  25273. esac
  25274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25275. (eval "$ac_link") 2>conftest.er1
  25276. ac_status=$?
  25277. grep -v '^ *+' conftest.er1 >conftest.err
  25278. rm -f conftest.er1
  25279. cat conftest.err >&5
  25280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25281. (exit $ac_status); } &&
  25282. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25283. { (case "(($ac_try" in
  25284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25285. *) ac_try_echo=$ac_try;;
  25286. esac
  25287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25288. (eval "$ac_try") 2>&5
  25289. ac_status=$?
  25290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25291. (exit $ac_status); }; } &&
  25292. { ac_try='test -s conftest$ac_exeext'
  25293. { (case "(($ac_try" in
  25294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25295. *) ac_try_echo=$ac_try;;
  25296. esac
  25297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25298. (eval "$ac_try") 2>&5
  25299. ac_status=$?
  25300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25301. (exit $ac_status); }; }; then
  25302. ac_cv_search_pthread_rwlock_init=$ac_res
  25303. else
  25304. echo "$as_me: failed program was:" >&5
  25305. sed 's/^/| /' conftest.$ac_ext >&5
  25306. fi
  25307. rm -f core conftest.err conftest.$ac_objext \
  25308. conftest$ac_exeext
  25309. if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
  25310. break
  25311. fi
  25312. done
  25313. if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
  25314. :
  25315. else
  25316. ac_cv_search_pthread_rwlock_init=no
  25317. fi
  25318. rm conftest.$ac_ext
  25319. LIBS=$ac_func_search_save_LIBS
  25320. fi
  25321. { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
  25322. echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
  25323. ac_res=$ac_cv_search_pthread_rwlock_init
  25324. if test "$ac_res" != no; then
  25325. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25326. cat >>confdefs.h <<\_ACEOF
  25327. #define HAVE_PTHREAD_RWLOCK_INIT 1
  25328. _ACEOF
  25329. fi
  25330. { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
  25331. echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
  25332. if test "${ac_cv_search_pthread_getspecific+set}" = set; then
  25333. echo $ECHO_N "(cached) $ECHO_C" >&6
  25334. else
  25335. ac_func_search_save_LIBS=$LIBS
  25336. cat >conftest.$ac_ext <<_ACEOF
  25337. /* confdefs.h. */
  25338. _ACEOF
  25339. cat confdefs.h >>conftest.$ac_ext
  25340. cat >>conftest.$ac_ext <<_ACEOF
  25341. /* end confdefs.h. */
  25342. /* Override any GCC internal prototype to avoid an error.
  25343. Use char because int might match the return type of a GCC
  25344. builtin and then its argument prototype would still apply. */
  25345. #ifdef __cplusplus
  25346. extern "C"
  25347. #endif
  25348. char pthread_getspecific ();
  25349. int
  25350. main ()
  25351. {
  25352. return pthread_getspecific ();
  25353. ;
  25354. return 0;
  25355. }
  25356. _ACEOF
  25357. for ac_lib in '' pthread; do
  25358. if test -z "$ac_lib"; then
  25359. ac_res="none required"
  25360. else
  25361. ac_res=-l$ac_lib
  25362. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25363. fi
  25364. rm -f conftest.$ac_objext conftest$ac_exeext
  25365. if { (ac_try="$ac_link"
  25366. case "(($ac_try" in
  25367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25368. *) ac_try_echo=$ac_try;;
  25369. esac
  25370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25371. (eval "$ac_link") 2>conftest.er1
  25372. ac_status=$?
  25373. grep -v '^ *+' conftest.er1 >conftest.err
  25374. rm -f conftest.er1
  25375. cat conftest.err >&5
  25376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25377. (exit $ac_status); } &&
  25378. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25379. { (case "(($ac_try" in
  25380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25381. *) ac_try_echo=$ac_try;;
  25382. esac
  25383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25384. (eval "$ac_try") 2>&5
  25385. ac_status=$?
  25386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25387. (exit $ac_status); }; } &&
  25388. { ac_try='test -s conftest$ac_exeext'
  25389. { (case "(($ac_try" in
  25390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25391. *) ac_try_echo=$ac_try;;
  25392. esac
  25393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25394. (eval "$ac_try") 2>&5
  25395. ac_status=$?
  25396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25397. (exit $ac_status); }; }; then
  25398. ac_cv_search_pthread_getspecific=$ac_res
  25399. else
  25400. echo "$as_me: failed program was:" >&5
  25401. sed 's/^/| /' conftest.$ac_ext >&5
  25402. fi
  25403. rm -f core conftest.err conftest.$ac_objext \
  25404. conftest$ac_exeext
  25405. if test "${ac_cv_search_pthread_getspecific+set}" = set; then
  25406. break
  25407. fi
  25408. done
  25409. if test "${ac_cv_search_pthread_getspecific+set}" = set; then
  25410. :
  25411. else
  25412. ac_cv_search_pthread_getspecific=no
  25413. fi
  25414. rm conftest.$ac_ext
  25415. LIBS=$ac_func_search_save_LIBS
  25416. fi
  25417. { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
  25418. echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
  25419. ac_res=$ac_cv_search_pthread_getspecific
  25420. if test "$ac_res" != no; then
  25421. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25422. cat >>confdefs.h <<\_ACEOF
  25423. #define HAVE_PTHREAD_GETSPECIFIC 1
  25424. _ACEOF
  25425. fi
  25426. fi
  25427. # Check whether --with-udis86 was given.
  25428. if test "${with_udis86+set}" = set; then
  25429. withval=$with_udis86;
  25430. USE_UDIS86=1
  25431. case "$withval" in
  25432. /usr/lib|yes) ;;
  25433. *) LDFLAGS="$LDFLAGS -L${withval}" ;;
  25434. esac
  25435. { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
  25436. echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
  25437. if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
  25438. echo $ECHO_N "(cached) $ECHO_C" >&6
  25439. else
  25440. ac_check_lib_save_LIBS=$LIBS
  25441. LIBS="-ludis86 $LIBS"
  25442. cat >conftest.$ac_ext <<_ACEOF
  25443. /* confdefs.h. */
  25444. _ACEOF
  25445. cat confdefs.h >>conftest.$ac_ext
  25446. cat >>conftest.$ac_ext <<_ACEOF
  25447. /* end confdefs.h. */
  25448. /* Override any GCC internal prototype to avoid an error.
  25449. Use char because int might match the return type of a GCC
  25450. builtin and then its argument prototype would still apply. */
  25451. #ifdef __cplusplus
  25452. extern "C"
  25453. #endif
  25454. char ud_init ();
  25455. int
  25456. main ()
  25457. {
  25458. return ud_init ();
  25459. ;
  25460. return 0;
  25461. }
  25462. _ACEOF
  25463. rm -f conftest.$ac_objext conftest$ac_exeext
  25464. if { (ac_try="$ac_link"
  25465. case "(($ac_try" in
  25466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25467. *) ac_try_echo=$ac_try;;
  25468. esac
  25469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25470. (eval "$ac_link") 2>conftest.er1
  25471. ac_status=$?
  25472. grep -v '^ *+' conftest.er1 >conftest.err
  25473. rm -f conftest.er1
  25474. cat conftest.err >&5
  25475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25476. (exit $ac_status); } &&
  25477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25478. { (case "(($ac_try" in
  25479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25480. *) ac_try_echo=$ac_try;;
  25481. esac
  25482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25483. (eval "$ac_try") 2>&5
  25484. ac_status=$?
  25485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25486. (exit $ac_status); }; } &&
  25487. { ac_try='test -s conftest$ac_exeext'
  25488. { (case "(($ac_try" in
  25489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25490. *) ac_try_echo=$ac_try;;
  25491. esac
  25492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25493. (eval "$ac_try") 2>&5
  25494. ac_status=$?
  25495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25496. (exit $ac_status); }; }; then
  25497. ac_cv_lib_udis86_ud_init=yes
  25498. else
  25499. echo "$as_me: failed program was:" >&5
  25500. sed 's/^/| /' conftest.$ac_ext >&5
  25501. ac_cv_lib_udis86_ud_init=no
  25502. fi
  25503. rm -f core conftest.err conftest.$ac_objext \
  25504. conftest$ac_exeext conftest.$ac_ext
  25505. LIBS=$ac_check_lib_save_LIBS
  25506. fi
  25507. { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
  25508. echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
  25509. if test $ac_cv_lib_udis86_ud_init = yes; then
  25510. cat >>confdefs.h <<_ACEOF
  25511. #define HAVE_LIBUDIS86 1
  25512. _ACEOF
  25513. LIBS="-ludis86 $LIBS"
  25514. else
  25515. echo "Error! You need to have libudis86 around."
  25516. exit -1
  25517. fi
  25518. else
  25519. USE_UDIS86=0
  25520. fi
  25521. cat >>confdefs.h <<_ACEOF
  25522. #define USE_UDIS86 $USE_UDIS86
  25523. _ACEOF
  25524. # Check whether --with-oprofile was given.
  25525. if test "${with_oprofile+set}" = set; then
  25526. withval=$with_oprofile;
  25527. USE_OPROFILE=1
  25528. case "$withval" in
  25529. /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
  25530. *) llvm_cv_oppath="${withval}/lib/oprofile"
  25531. CPPFLAGS="-I${withval}/include";;
  25532. esac
  25533. LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
  25534. { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
  25535. echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
  25536. if test "${ac_cv_search_op_open_agent+set}" = set; then
  25537. echo $ECHO_N "(cached) $ECHO_C" >&6
  25538. else
  25539. ac_func_search_save_LIBS=$LIBS
  25540. cat >conftest.$ac_ext <<_ACEOF
  25541. /* confdefs.h. */
  25542. _ACEOF
  25543. cat confdefs.h >>conftest.$ac_ext
  25544. cat >>conftest.$ac_ext <<_ACEOF
  25545. /* end confdefs.h. */
  25546. /* Override any GCC internal prototype to avoid an error.
  25547. Use char because int might match the return type of a GCC
  25548. builtin and then its argument prototype would still apply. */
  25549. #ifdef __cplusplus
  25550. extern "C"
  25551. #endif
  25552. char op_open_agent ();
  25553. int
  25554. main ()
  25555. {
  25556. return op_open_agent ();
  25557. ;
  25558. return 0;
  25559. }
  25560. _ACEOF
  25561. for ac_lib in '' opagent; do
  25562. if test -z "$ac_lib"; then
  25563. ac_res="none required"
  25564. else
  25565. ac_res=-l$ac_lib
  25566. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25567. fi
  25568. rm -f conftest.$ac_objext conftest$ac_exeext
  25569. if { (ac_try="$ac_link"
  25570. case "(($ac_try" in
  25571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25572. *) ac_try_echo=$ac_try;;
  25573. esac
  25574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25575. (eval "$ac_link") 2>conftest.er1
  25576. ac_status=$?
  25577. grep -v '^ *+' conftest.er1 >conftest.err
  25578. rm -f conftest.er1
  25579. cat conftest.err >&5
  25580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25581. (exit $ac_status); } &&
  25582. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25583. { (case "(($ac_try" in
  25584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25585. *) ac_try_echo=$ac_try;;
  25586. esac
  25587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25588. (eval "$ac_try") 2>&5
  25589. ac_status=$?
  25590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25591. (exit $ac_status); }; } &&
  25592. { ac_try='test -s conftest$ac_exeext'
  25593. { (case "(($ac_try" in
  25594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25595. *) ac_try_echo=$ac_try;;
  25596. esac
  25597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25598. (eval "$ac_try") 2>&5
  25599. ac_status=$?
  25600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25601. (exit $ac_status); }; }; then
  25602. ac_cv_search_op_open_agent=$ac_res
  25603. else
  25604. echo "$as_me: failed program was:" >&5
  25605. sed 's/^/| /' conftest.$ac_ext >&5
  25606. fi
  25607. rm -f core conftest.err conftest.$ac_objext \
  25608. conftest$ac_exeext
  25609. if test "${ac_cv_search_op_open_agent+set}" = set; then
  25610. break
  25611. fi
  25612. done
  25613. if test "${ac_cv_search_op_open_agent+set}" = set; then
  25614. :
  25615. else
  25616. ac_cv_search_op_open_agent=no
  25617. fi
  25618. rm conftest.$ac_ext
  25619. LIBS=$ac_func_search_save_LIBS
  25620. fi
  25621. { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
  25622. echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
  25623. ac_res=$ac_cv_search_op_open_agent
  25624. if test "$ac_res" != no; then
  25625. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25626. else
  25627. echo "Error! You need to have libopagent around."
  25628. exit -1
  25629. fi
  25630. if test "${ac_cv_header_opagent_h+set}" = set; then
  25631. { echo "$as_me:$LINENO: checking for opagent.h" >&5
  25632. echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
  25633. if test "${ac_cv_header_opagent_h+set}" = set; then
  25634. echo $ECHO_N "(cached) $ECHO_C" >&6
  25635. fi
  25636. { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
  25637. echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
  25638. else
  25639. # Is the header compilable?
  25640. { echo "$as_me:$LINENO: checking opagent.h usability" >&5
  25641. echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
  25642. cat >conftest.$ac_ext <<_ACEOF
  25643. /* confdefs.h. */
  25644. _ACEOF
  25645. cat confdefs.h >>conftest.$ac_ext
  25646. cat >>conftest.$ac_ext <<_ACEOF
  25647. /* end confdefs.h. */
  25648. $ac_includes_default
  25649. #include <opagent.h>
  25650. _ACEOF
  25651. rm -f conftest.$ac_objext
  25652. if { (ac_try="$ac_compile"
  25653. case "(($ac_try" in
  25654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25655. *) ac_try_echo=$ac_try;;
  25656. esac
  25657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25658. (eval "$ac_compile") 2>conftest.er1
  25659. ac_status=$?
  25660. grep -v '^ *+' conftest.er1 >conftest.err
  25661. rm -f conftest.er1
  25662. cat conftest.err >&5
  25663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25664. (exit $ac_status); } &&
  25665. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25666. { (case "(($ac_try" in
  25667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25668. *) ac_try_echo=$ac_try;;
  25669. esac
  25670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25671. (eval "$ac_try") 2>&5
  25672. ac_status=$?
  25673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25674. (exit $ac_status); }; } &&
  25675. { ac_try='test -s conftest.$ac_objext'
  25676. { (case "(($ac_try" in
  25677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25678. *) ac_try_echo=$ac_try;;
  25679. esac
  25680. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25681. (eval "$ac_try") 2>&5
  25682. ac_status=$?
  25683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25684. (exit $ac_status); }; }; then
  25685. ac_header_compiler=yes
  25686. else
  25687. echo "$as_me: failed program was:" >&5
  25688. sed 's/^/| /' conftest.$ac_ext >&5
  25689. ac_header_compiler=no
  25690. fi
  25691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25692. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25693. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25694. # Is the header present?
  25695. { echo "$as_me:$LINENO: checking opagent.h presence" >&5
  25696. echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
  25697. cat >conftest.$ac_ext <<_ACEOF
  25698. /* confdefs.h. */
  25699. _ACEOF
  25700. cat confdefs.h >>conftest.$ac_ext
  25701. cat >>conftest.$ac_ext <<_ACEOF
  25702. /* end confdefs.h. */
  25703. #include <opagent.h>
  25704. _ACEOF
  25705. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25706. case "(($ac_try" in
  25707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25708. *) ac_try_echo=$ac_try;;
  25709. esac
  25710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25711. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25712. ac_status=$?
  25713. grep -v '^ *+' conftest.er1 >conftest.err
  25714. rm -f conftest.er1
  25715. cat conftest.err >&5
  25716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25717. (exit $ac_status); } >/dev/null; then
  25718. if test -s conftest.err; then
  25719. ac_cpp_err=$ac_c_preproc_warn_flag
  25720. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  25721. else
  25722. ac_cpp_err=
  25723. fi
  25724. else
  25725. ac_cpp_err=yes
  25726. fi
  25727. if test -z "$ac_cpp_err"; then
  25728. ac_header_preproc=yes
  25729. else
  25730. echo "$as_me: failed program was:" >&5
  25731. sed 's/^/| /' conftest.$ac_ext >&5
  25732. ac_header_preproc=no
  25733. fi
  25734. rm -f conftest.err conftest.$ac_ext
  25735. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25736. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25737. # So? What about this header?
  25738. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25739. yes:no: )
  25740. { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25741. echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25742. { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
  25743. echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
  25744. ac_header_preproc=yes
  25745. ;;
  25746. no:yes:* )
  25747. { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
  25748. echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
  25749. { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
  25750. echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
  25751. { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
  25752. echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
  25753. { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
  25754. echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
  25755. { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
  25756. echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
  25757. { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
  25758. echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
  25759. ( cat <<\_ASBOX
  25760. ## ----------------------------------- ##
  25761. ## Report this to llvmbugs@cs.uiuc.edu ##
  25762. ## ----------------------------------- ##
  25763. _ASBOX
  25764. ) | sed "s/^/$as_me: WARNING: /" >&2
  25765. ;;
  25766. esac
  25767. { echo "$as_me:$LINENO: checking for opagent.h" >&5
  25768. echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
  25769. if test "${ac_cv_header_opagent_h+set}" = set; then
  25770. echo $ECHO_N "(cached) $ECHO_C" >&6
  25771. else
  25772. ac_cv_header_opagent_h=$ac_header_preproc
  25773. fi
  25774. { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
  25775. echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
  25776. fi
  25777. if test $ac_cv_header_opagent_h = yes; then
  25778. :
  25779. else
  25780. echo "Error! You need to have opagent.h around."
  25781. exit -1
  25782. fi
  25783. else
  25784. llvm_cv_old_LIBS="$LIBS"
  25785. LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
  25786. { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
  25787. echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
  25788. if test "${ac_cv_search_op_open_agent+set}" = set; then
  25789. echo $ECHO_N "(cached) $ECHO_C" >&6
  25790. else
  25791. ac_func_search_save_LIBS=$LIBS
  25792. cat >conftest.$ac_ext <<_ACEOF
  25793. /* confdefs.h. */
  25794. _ACEOF
  25795. cat confdefs.h >>conftest.$ac_ext
  25796. cat >>conftest.$ac_ext <<_ACEOF
  25797. /* end confdefs.h. */
  25798. /* Override any GCC internal prototype to avoid an error.
  25799. Use char because int might match the return type of a GCC
  25800. builtin and then its argument prototype would still apply. */
  25801. #ifdef __cplusplus
  25802. extern "C"
  25803. #endif
  25804. char op_open_agent ();
  25805. int
  25806. main ()
  25807. {
  25808. return op_open_agent ();
  25809. ;
  25810. return 0;
  25811. }
  25812. _ACEOF
  25813. for ac_lib in '' opagent; do
  25814. if test -z "$ac_lib"; then
  25815. ac_res="none required"
  25816. else
  25817. ac_res=-l$ac_lib
  25818. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25819. fi
  25820. rm -f conftest.$ac_objext conftest$ac_exeext
  25821. if { (ac_try="$ac_link"
  25822. case "(($ac_try" in
  25823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25824. *) ac_try_echo=$ac_try;;
  25825. esac
  25826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25827. (eval "$ac_link") 2>conftest.er1
  25828. ac_status=$?
  25829. grep -v '^ *+' conftest.er1 >conftest.err
  25830. rm -f conftest.er1
  25831. cat conftest.err >&5
  25832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25833. (exit $ac_status); } &&
  25834. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25835. { (case "(($ac_try" in
  25836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25837. *) ac_try_echo=$ac_try;;
  25838. esac
  25839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25840. (eval "$ac_try") 2>&5
  25841. ac_status=$?
  25842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25843. (exit $ac_status); }; } &&
  25844. { ac_try='test -s conftest$ac_exeext'
  25845. { (case "(($ac_try" in
  25846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25847. *) ac_try_echo=$ac_try;;
  25848. esac
  25849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25850. (eval "$ac_try") 2>&5
  25851. ac_status=$?
  25852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25853. (exit $ac_status); }; }; then
  25854. ac_cv_search_op_open_agent=$ac_res
  25855. else
  25856. echo "$as_me: failed program was:" >&5
  25857. sed 's/^/| /' conftest.$ac_ext >&5
  25858. fi
  25859. rm -f core conftest.err conftest.$ac_objext \
  25860. conftest$ac_exeext
  25861. if test "${ac_cv_search_op_open_agent+set}" = set; then
  25862. break
  25863. fi
  25864. done
  25865. if test "${ac_cv_search_op_open_agent+set}" = set; then
  25866. :
  25867. else
  25868. ac_cv_search_op_open_agent=no
  25869. fi
  25870. rm conftest.$ac_ext
  25871. LIBS=$ac_func_search_save_LIBS
  25872. fi
  25873. { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
  25874. echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
  25875. ac_res=$ac_cv_search_op_open_agent
  25876. if test "$ac_res" != no; then
  25877. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25878. USE_OPROFILE=1
  25879. else
  25880. LIBS="$llvm_cv_old_LIBS"
  25881. USE_OPROFILE=0
  25882. fi
  25883. if test "${ac_cv_header_opagent_h+set}" = set; then
  25884. { echo "$as_me:$LINENO: checking for opagent.h" >&5
  25885. echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
  25886. if test "${ac_cv_header_opagent_h+set}" = set; then
  25887. echo $ECHO_N "(cached) $ECHO_C" >&6
  25888. fi
  25889. { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
  25890. echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
  25891. else
  25892. # Is the header compilable?
  25893. { echo "$as_me:$LINENO: checking opagent.h usability" >&5
  25894. echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
  25895. cat >conftest.$ac_ext <<_ACEOF
  25896. /* confdefs.h. */
  25897. _ACEOF
  25898. cat confdefs.h >>conftest.$ac_ext
  25899. cat >>conftest.$ac_ext <<_ACEOF
  25900. /* end confdefs.h. */
  25901. $ac_includes_default
  25902. #include <opagent.h>
  25903. _ACEOF
  25904. rm -f conftest.$ac_objext
  25905. if { (ac_try="$ac_compile"
  25906. case "(($ac_try" in
  25907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25908. *) ac_try_echo=$ac_try;;
  25909. esac
  25910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25911. (eval "$ac_compile") 2>conftest.er1
  25912. ac_status=$?
  25913. grep -v '^ *+' conftest.er1 >conftest.err
  25914. rm -f conftest.er1
  25915. cat conftest.err >&5
  25916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25917. (exit $ac_status); } &&
  25918. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25919. { (case "(($ac_try" in
  25920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25921. *) ac_try_echo=$ac_try;;
  25922. esac
  25923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25924. (eval "$ac_try") 2>&5
  25925. ac_status=$?
  25926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25927. (exit $ac_status); }; } &&
  25928. { ac_try='test -s conftest.$ac_objext'
  25929. { (case "(($ac_try" in
  25930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25931. *) ac_try_echo=$ac_try;;
  25932. esac
  25933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25934. (eval "$ac_try") 2>&5
  25935. ac_status=$?
  25936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25937. (exit $ac_status); }; }; then
  25938. ac_header_compiler=yes
  25939. else
  25940. echo "$as_me: failed program was:" >&5
  25941. sed 's/^/| /' conftest.$ac_ext >&5
  25942. ac_header_compiler=no
  25943. fi
  25944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25945. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25946. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25947. # Is the header present?
  25948. { echo "$as_me:$LINENO: checking opagent.h presence" >&5
  25949. echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
  25950. cat >conftest.$ac_ext <<_ACEOF
  25951. /* confdefs.h. */
  25952. _ACEOF
  25953. cat confdefs.h >>conftest.$ac_ext
  25954. cat >>conftest.$ac_ext <<_ACEOF
  25955. /* end confdefs.h. */
  25956. #include <opagent.h>
  25957. _ACEOF
  25958. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25959. case "(($ac_try" in
  25960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25961. *) ac_try_echo=$ac_try;;
  25962. esac
  25963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25964. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25965. ac_status=$?
  25966. grep -v '^ *+' conftest.er1 >conftest.err
  25967. rm -f conftest.er1
  25968. cat conftest.err >&5
  25969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25970. (exit $ac_status); } >/dev/null; then
  25971. if test -s conftest.err; then
  25972. ac_cpp_err=$ac_c_preproc_warn_flag
  25973. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  25974. else
  25975. ac_cpp_err=
  25976. fi
  25977. else
  25978. ac_cpp_err=yes
  25979. fi
  25980. if test -z "$ac_cpp_err"; then
  25981. ac_header_preproc=yes
  25982. else
  25983. echo "$as_me: failed program was:" >&5
  25984. sed 's/^/| /' conftest.$ac_ext >&5
  25985. ac_header_preproc=no
  25986. fi
  25987. rm -f conftest.err conftest.$ac_ext
  25988. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25989. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25990. # So? What about this header?
  25991. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25992. yes:no: )
  25993. { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25994. echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25995. { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
  25996. echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
  25997. ac_header_preproc=yes
  25998. ;;
  25999. no:yes:* )
  26000. { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
  26001. echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
  26002. { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
  26003. echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
  26004. { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
  26005. echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
  26006. { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
  26007. echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26008. { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
  26009. echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
  26010. { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
  26011. echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
  26012. ( cat <<\_ASBOX
  26013. ## ----------------------------------- ##
  26014. ## Report this to llvmbugs@cs.uiuc.edu ##
  26015. ## ----------------------------------- ##
  26016. _ASBOX
  26017. ) | sed "s/^/$as_me: WARNING: /" >&2
  26018. ;;
  26019. esac
  26020. { echo "$as_me:$LINENO: checking for opagent.h" >&5
  26021. echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
  26022. if test "${ac_cv_header_opagent_h+set}" = set; then
  26023. echo $ECHO_N "(cached) $ECHO_C" >&6
  26024. else
  26025. ac_cv_header_opagent_h=$ac_header_preproc
  26026. fi
  26027. { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
  26028. echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
  26029. fi
  26030. if test $ac_cv_header_opagent_h = yes; then
  26031. :
  26032. else
  26033. LIBS="$llvm_cv_old_LIBS"
  26034. USE_OPROFILE=0
  26035. fi
  26036. fi
  26037. cat >>confdefs.h <<_ACEOF
  26038. #define USE_OPROFILE $USE_OPROFILE
  26039. _ACEOF
  26040. ac_header_dirent=no
  26041. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  26042. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  26043. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  26044. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  26045. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26046. echo $ECHO_N "(cached) $ECHO_C" >&6
  26047. else
  26048. cat >conftest.$ac_ext <<_ACEOF
  26049. /* confdefs.h. */
  26050. _ACEOF
  26051. cat confdefs.h >>conftest.$ac_ext
  26052. cat >>conftest.$ac_ext <<_ACEOF
  26053. /* end confdefs.h. */
  26054. #include <sys/types.h>
  26055. #include <$ac_hdr>
  26056. int
  26057. main ()
  26058. {
  26059. if ((DIR *) 0)
  26060. return 0;
  26061. ;
  26062. return 0;
  26063. }
  26064. _ACEOF
  26065. rm -f conftest.$ac_objext
  26066. if { (ac_try="$ac_compile"
  26067. case "(($ac_try" in
  26068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26069. *) ac_try_echo=$ac_try;;
  26070. esac
  26071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26072. (eval "$ac_compile") 2>conftest.er1
  26073. ac_status=$?
  26074. grep -v '^ *+' conftest.er1 >conftest.err
  26075. rm -f conftest.er1
  26076. cat conftest.err >&5
  26077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26078. (exit $ac_status); } &&
  26079. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26080. { (case "(($ac_try" in
  26081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26082. *) ac_try_echo=$ac_try;;
  26083. esac
  26084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26085. (eval "$ac_try") 2>&5
  26086. ac_status=$?
  26087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26088. (exit $ac_status); }; } &&
  26089. { ac_try='test -s conftest.$ac_objext'
  26090. { (case "(($ac_try" in
  26091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26092. *) ac_try_echo=$ac_try;;
  26093. esac
  26094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26095. (eval "$ac_try") 2>&5
  26096. ac_status=$?
  26097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26098. (exit $ac_status); }; }; then
  26099. eval "$as_ac_Header=yes"
  26100. else
  26101. echo "$as_me: failed program was:" >&5
  26102. sed 's/^/| /' conftest.$ac_ext >&5
  26103. eval "$as_ac_Header=no"
  26104. fi
  26105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26106. fi
  26107. ac_res=`eval echo '${'$as_ac_Header'}'`
  26108. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26109. echo "${ECHO_T}$ac_res" >&6; }
  26110. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26111. cat >>confdefs.h <<_ACEOF
  26112. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  26113. _ACEOF
  26114. ac_header_dirent=$ac_hdr; break
  26115. fi
  26116. done
  26117. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  26118. if test $ac_header_dirent = dirent.h; then
  26119. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  26120. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  26121. if test "${ac_cv_search_opendir+set}" = set; then
  26122. echo $ECHO_N "(cached) $ECHO_C" >&6
  26123. else
  26124. ac_func_search_save_LIBS=$LIBS
  26125. cat >conftest.$ac_ext <<_ACEOF
  26126. /* confdefs.h. */
  26127. _ACEOF
  26128. cat confdefs.h >>conftest.$ac_ext
  26129. cat >>conftest.$ac_ext <<_ACEOF
  26130. /* end confdefs.h. */
  26131. /* Override any GCC internal prototype to avoid an error.
  26132. Use char because int might match the return type of a GCC
  26133. builtin and then its argument prototype would still apply. */
  26134. #ifdef __cplusplus
  26135. extern "C"
  26136. #endif
  26137. char opendir ();
  26138. int
  26139. main ()
  26140. {
  26141. return opendir ();
  26142. ;
  26143. return 0;
  26144. }
  26145. _ACEOF
  26146. for ac_lib in '' dir; do
  26147. if test -z "$ac_lib"; then
  26148. ac_res="none required"
  26149. else
  26150. ac_res=-l$ac_lib
  26151. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  26152. fi
  26153. rm -f conftest.$ac_objext conftest$ac_exeext
  26154. if { (ac_try="$ac_link"
  26155. case "(($ac_try" in
  26156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26157. *) ac_try_echo=$ac_try;;
  26158. esac
  26159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26160. (eval "$ac_link") 2>conftest.er1
  26161. ac_status=$?
  26162. grep -v '^ *+' conftest.er1 >conftest.err
  26163. rm -f conftest.er1
  26164. cat conftest.err >&5
  26165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26166. (exit $ac_status); } &&
  26167. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26168. { (case "(($ac_try" in
  26169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26170. *) ac_try_echo=$ac_try;;
  26171. esac
  26172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26173. (eval "$ac_try") 2>&5
  26174. ac_status=$?
  26175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26176. (exit $ac_status); }; } &&
  26177. { ac_try='test -s conftest$ac_exeext'
  26178. { (case "(($ac_try" in
  26179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26180. *) ac_try_echo=$ac_try;;
  26181. esac
  26182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26183. (eval "$ac_try") 2>&5
  26184. ac_status=$?
  26185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26186. (exit $ac_status); }; }; then
  26187. ac_cv_search_opendir=$ac_res
  26188. else
  26189. echo "$as_me: failed program was:" >&5
  26190. sed 's/^/| /' conftest.$ac_ext >&5
  26191. fi
  26192. rm -f core conftest.err conftest.$ac_objext \
  26193. conftest$ac_exeext
  26194. if test "${ac_cv_search_opendir+set}" = set; then
  26195. break
  26196. fi
  26197. done
  26198. if test "${ac_cv_search_opendir+set}" = set; then
  26199. :
  26200. else
  26201. ac_cv_search_opendir=no
  26202. fi
  26203. rm conftest.$ac_ext
  26204. LIBS=$ac_func_search_save_LIBS
  26205. fi
  26206. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  26207. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  26208. ac_res=$ac_cv_search_opendir
  26209. if test "$ac_res" != no; then
  26210. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  26211. fi
  26212. else
  26213. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  26214. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  26215. if test "${ac_cv_search_opendir+set}" = set; then
  26216. echo $ECHO_N "(cached) $ECHO_C" >&6
  26217. else
  26218. ac_func_search_save_LIBS=$LIBS
  26219. cat >conftest.$ac_ext <<_ACEOF
  26220. /* confdefs.h. */
  26221. _ACEOF
  26222. cat confdefs.h >>conftest.$ac_ext
  26223. cat >>conftest.$ac_ext <<_ACEOF
  26224. /* end confdefs.h. */
  26225. /* Override any GCC internal prototype to avoid an error.
  26226. Use char because int might match the return type of a GCC
  26227. builtin and then its argument prototype would still apply. */
  26228. #ifdef __cplusplus
  26229. extern "C"
  26230. #endif
  26231. char opendir ();
  26232. int
  26233. main ()
  26234. {
  26235. return opendir ();
  26236. ;
  26237. return 0;
  26238. }
  26239. _ACEOF
  26240. for ac_lib in '' x; do
  26241. if test -z "$ac_lib"; then
  26242. ac_res="none required"
  26243. else
  26244. ac_res=-l$ac_lib
  26245. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  26246. fi
  26247. rm -f conftest.$ac_objext conftest$ac_exeext
  26248. if { (ac_try="$ac_link"
  26249. case "(($ac_try" in
  26250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26251. *) ac_try_echo=$ac_try;;
  26252. esac
  26253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26254. (eval "$ac_link") 2>conftest.er1
  26255. ac_status=$?
  26256. grep -v '^ *+' conftest.er1 >conftest.err
  26257. rm -f conftest.er1
  26258. cat conftest.err >&5
  26259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26260. (exit $ac_status); } &&
  26261. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26262. { (case "(($ac_try" in
  26263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26264. *) ac_try_echo=$ac_try;;
  26265. esac
  26266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26267. (eval "$ac_try") 2>&5
  26268. ac_status=$?
  26269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26270. (exit $ac_status); }; } &&
  26271. { ac_try='test -s conftest$ac_exeext'
  26272. { (case "(($ac_try" in
  26273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26274. *) ac_try_echo=$ac_try;;
  26275. esac
  26276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26277. (eval "$ac_try") 2>&5
  26278. ac_status=$?
  26279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26280. (exit $ac_status); }; }; then
  26281. ac_cv_search_opendir=$ac_res
  26282. else
  26283. echo "$as_me: failed program was:" >&5
  26284. sed 's/^/| /' conftest.$ac_ext >&5
  26285. fi
  26286. rm -f core conftest.err conftest.$ac_objext \
  26287. conftest$ac_exeext
  26288. if test "${ac_cv_search_opendir+set}" = set; then
  26289. break
  26290. fi
  26291. done
  26292. if test "${ac_cv_search_opendir+set}" = set; then
  26293. :
  26294. else
  26295. ac_cv_search_opendir=no
  26296. fi
  26297. rm conftest.$ac_ext
  26298. LIBS=$ac_func_search_save_LIBS
  26299. fi
  26300. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  26301. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  26302. ac_res=$ac_cv_search_opendir
  26303. if test "$ac_res" != no; then
  26304. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  26305. fi
  26306. fi
  26307. { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
  26308. echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
  26309. if test "${ac_cv_header_mmap_anon+set}" = set; then
  26310. echo $ECHO_N "(cached) $ECHO_C" >&6
  26311. else
  26312. ac_ext=c
  26313. ac_cpp='$CPP $CPPFLAGS'
  26314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26317. cat >conftest.$ac_ext <<_ACEOF
  26318. /* confdefs.h. */
  26319. _ACEOF
  26320. cat confdefs.h >>conftest.$ac_ext
  26321. cat >>conftest.$ac_ext <<_ACEOF
  26322. /* end confdefs.h. */
  26323. #include <sys/mman.h>
  26324. #include <unistd.h>
  26325. #include <fcntl.h>
  26326. int
  26327. main ()
  26328. {
  26329. mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
  26330. ;
  26331. return 0;
  26332. }
  26333. _ACEOF
  26334. rm -f conftest.$ac_objext
  26335. if { (ac_try="$ac_compile"
  26336. case "(($ac_try" in
  26337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26338. *) ac_try_echo=$ac_try;;
  26339. esac
  26340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26341. (eval "$ac_compile") 2>conftest.er1
  26342. ac_status=$?
  26343. grep -v '^ *+' conftest.er1 >conftest.err
  26344. rm -f conftest.er1
  26345. cat conftest.err >&5
  26346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26347. (exit $ac_status); } &&
  26348. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26349. { (case "(($ac_try" in
  26350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26351. *) ac_try_echo=$ac_try;;
  26352. esac
  26353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26354. (eval "$ac_try") 2>&5
  26355. ac_status=$?
  26356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26357. (exit $ac_status); }; } &&
  26358. { ac_try='test -s conftest.$ac_objext'
  26359. { (case "(($ac_try" in
  26360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26361. *) ac_try_echo=$ac_try;;
  26362. esac
  26363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26364. (eval "$ac_try") 2>&5
  26365. ac_status=$?
  26366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26367. (exit $ac_status); }; }; then
  26368. ac_cv_header_mmap_anon=yes
  26369. else
  26370. echo "$as_me: failed program was:" >&5
  26371. sed 's/^/| /' conftest.$ac_ext >&5
  26372. ac_cv_header_mmap_anon=no
  26373. fi
  26374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26375. ac_ext=c
  26376. ac_cpp='$CPP $CPPFLAGS'
  26377. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26378. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26379. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26380. fi
  26381. { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
  26382. echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
  26383. if test "$ac_cv_header_mmap_anon" = yes; then
  26384. cat >>confdefs.h <<\_ACEOF
  26385. #define HAVE_MMAP_ANONYMOUS 1
  26386. _ACEOF
  26387. fi
  26388. { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  26389. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
  26390. if test "${ac_cv_header_stat_broken+set}" = set; then
  26391. echo $ECHO_N "(cached) $ECHO_C" >&6
  26392. else
  26393. cat >conftest.$ac_ext <<_ACEOF
  26394. /* confdefs.h. */
  26395. _ACEOF
  26396. cat confdefs.h >>conftest.$ac_ext
  26397. cat >>conftest.$ac_ext <<_ACEOF
  26398. /* end confdefs.h. */
  26399. #include <sys/types.h>
  26400. #include <sys/stat.h>
  26401. #if defined S_ISBLK && defined S_IFDIR
  26402. # if S_ISBLK (S_IFDIR)
  26403. You lose.
  26404. # endif
  26405. #endif
  26406. #if defined S_ISBLK && defined S_IFCHR
  26407. # if S_ISBLK (S_IFCHR)
  26408. You lose.
  26409. # endif
  26410. #endif
  26411. #if defined S_ISLNK && defined S_IFREG
  26412. # if S_ISLNK (S_IFREG)
  26413. You lose.
  26414. # endif
  26415. #endif
  26416. #if defined S_ISSOCK && defined S_IFREG
  26417. # if S_ISSOCK (S_IFREG)
  26418. You lose.
  26419. # endif
  26420. #endif
  26421. _ACEOF
  26422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26423. $EGREP "You lose" >/dev/null 2>&1; then
  26424. ac_cv_header_stat_broken=yes
  26425. else
  26426. ac_cv_header_stat_broken=no
  26427. fi
  26428. rm -f conftest*
  26429. fi
  26430. { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  26431. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
  26432. if test $ac_cv_header_stat_broken = yes; then
  26433. cat >>confdefs.h <<\_ACEOF
  26434. #define STAT_MACROS_BROKEN 1
  26435. _ACEOF
  26436. fi
  26437. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  26438. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  26439. if test "${ac_cv_header_stdc+set}" = set; then
  26440. echo $ECHO_N "(cached) $ECHO_C" >&6
  26441. else
  26442. cat >conftest.$ac_ext <<_ACEOF
  26443. /* confdefs.h. */
  26444. _ACEOF
  26445. cat confdefs.h >>conftest.$ac_ext
  26446. cat >>conftest.$ac_ext <<_ACEOF
  26447. /* end confdefs.h. */
  26448. #include <stdlib.h>
  26449. #include <stdarg.h>
  26450. #include <string.h>
  26451. #include <float.h>
  26452. int
  26453. main ()
  26454. {
  26455. ;
  26456. return 0;
  26457. }
  26458. _ACEOF
  26459. rm -f conftest.$ac_objext
  26460. if { (ac_try="$ac_compile"
  26461. case "(($ac_try" in
  26462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26463. *) ac_try_echo=$ac_try;;
  26464. esac
  26465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26466. (eval "$ac_compile") 2>conftest.er1
  26467. ac_status=$?
  26468. grep -v '^ *+' conftest.er1 >conftest.err
  26469. rm -f conftest.er1
  26470. cat conftest.err >&5
  26471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26472. (exit $ac_status); } &&
  26473. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26474. { (case "(($ac_try" in
  26475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26476. *) ac_try_echo=$ac_try;;
  26477. esac
  26478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26479. (eval "$ac_try") 2>&5
  26480. ac_status=$?
  26481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26482. (exit $ac_status); }; } &&
  26483. { ac_try='test -s conftest.$ac_objext'
  26484. { (case "(($ac_try" in
  26485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26486. *) ac_try_echo=$ac_try;;
  26487. esac
  26488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26489. (eval "$ac_try") 2>&5
  26490. ac_status=$?
  26491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26492. (exit $ac_status); }; }; then
  26493. ac_cv_header_stdc=yes
  26494. else
  26495. echo "$as_me: failed program was:" >&5
  26496. sed 's/^/| /' conftest.$ac_ext >&5
  26497. ac_cv_header_stdc=no
  26498. fi
  26499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26500. if test $ac_cv_header_stdc = yes; then
  26501. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  26502. cat >conftest.$ac_ext <<_ACEOF
  26503. /* confdefs.h. */
  26504. _ACEOF
  26505. cat confdefs.h >>conftest.$ac_ext
  26506. cat >>conftest.$ac_ext <<_ACEOF
  26507. /* end confdefs.h. */
  26508. #include <string.h>
  26509. _ACEOF
  26510. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26511. $EGREP "memchr" >/dev/null 2>&1; then
  26512. :
  26513. else
  26514. ac_cv_header_stdc=no
  26515. fi
  26516. rm -f conftest*
  26517. fi
  26518. if test $ac_cv_header_stdc = yes; then
  26519. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  26520. cat >conftest.$ac_ext <<_ACEOF
  26521. /* confdefs.h. */
  26522. _ACEOF
  26523. cat confdefs.h >>conftest.$ac_ext
  26524. cat >>conftest.$ac_ext <<_ACEOF
  26525. /* end confdefs.h. */
  26526. #include <stdlib.h>
  26527. _ACEOF
  26528. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26529. $EGREP "free" >/dev/null 2>&1; then
  26530. :
  26531. else
  26532. ac_cv_header_stdc=no
  26533. fi
  26534. rm -f conftest*
  26535. fi
  26536. if test $ac_cv_header_stdc = yes; then
  26537. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  26538. if test "$cross_compiling" = yes; then
  26539. :
  26540. else
  26541. cat >conftest.$ac_ext <<_ACEOF
  26542. /* confdefs.h. */
  26543. _ACEOF
  26544. cat confdefs.h >>conftest.$ac_ext
  26545. cat >>conftest.$ac_ext <<_ACEOF
  26546. /* end confdefs.h. */
  26547. #include <ctype.h>
  26548. #include <stdlib.h>
  26549. #if ((' ' & 0x0FF) == 0x020)
  26550. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  26551. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  26552. #else
  26553. # define ISLOWER(c) \
  26554. (('a' <= (c) && (c) <= 'i') \
  26555. || ('j' <= (c) && (c) <= 'r') \
  26556. || ('s' <= (c) && (c) <= 'z'))
  26557. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  26558. #endif
  26559. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  26560. int
  26561. main ()
  26562. {
  26563. int i;
  26564. for (i = 0; i < 256; i++)
  26565. if (XOR (islower (i), ISLOWER (i))
  26566. || toupper (i) != TOUPPER (i))
  26567. return 2;
  26568. return 0;
  26569. }
  26570. _ACEOF
  26571. rm -f conftest$ac_exeext
  26572. if { (ac_try="$ac_link"
  26573. case "(($ac_try" in
  26574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26575. *) ac_try_echo=$ac_try;;
  26576. esac
  26577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26578. (eval "$ac_link") 2>&5
  26579. ac_status=$?
  26580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26581. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26582. { (case "(($ac_try" in
  26583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26584. *) ac_try_echo=$ac_try;;
  26585. esac
  26586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26587. (eval "$ac_try") 2>&5
  26588. ac_status=$?
  26589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26590. (exit $ac_status); }; }; then
  26591. :
  26592. else
  26593. echo "$as_me: program exited with status $ac_status" >&5
  26594. echo "$as_me: failed program was:" >&5
  26595. sed 's/^/| /' conftest.$ac_ext >&5
  26596. ( exit $ac_status )
  26597. ac_cv_header_stdc=no
  26598. fi
  26599. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26600. fi
  26601. fi
  26602. fi
  26603. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  26604. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  26605. if test $ac_cv_header_stdc = yes; then
  26606. cat >>confdefs.h <<\_ACEOF
  26607. #define STDC_HEADERS 1
  26608. _ACEOF
  26609. fi
  26610. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  26611. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  26612. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  26613. echo $ECHO_N "(cached) $ECHO_C" >&6
  26614. else
  26615. cat >conftest.$ac_ext <<_ACEOF
  26616. /* confdefs.h. */
  26617. _ACEOF
  26618. cat confdefs.h >>conftest.$ac_ext
  26619. cat >>conftest.$ac_ext <<_ACEOF
  26620. /* end confdefs.h. */
  26621. #include <sys/types.h>
  26622. #include <sys/wait.h>
  26623. #ifndef WEXITSTATUS
  26624. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  26625. #endif
  26626. #ifndef WIFEXITED
  26627. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  26628. #endif
  26629. int
  26630. main ()
  26631. {
  26632. int s;
  26633. wait (&s);
  26634. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  26635. ;
  26636. return 0;
  26637. }
  26638. _ACEOF
  26639. rm -f conftest.$ac_objext
  26640. if { (ac_try="$ac_compile"
  26641. case "(($ac_try" in
  26642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26643. *) ac_try_echo=$ac_try;;
  26644. esac
  26645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26646. (eval "$ac_compile") 2>conftest.er1
  26647. ac_status=$?
  26648. grep -v '^ *+' conftest.er1 >conftest.err
  26649. rm -f conftest.er1
  26650. cat conftest.err >&5
  26651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26652. (exit $ac_status); } &&
  26653. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26654. { (case "(($ac_try" in
  26655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26656. *) ac_try_echo=$ac_try;;
  26657. esac
  26658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26659. (eval "$ac_try") 2>&5
  26660. ac_status=$?
  26661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26662. (exit $ac_status); }; } &&
  26663. { ac_try='test -s conftest.$ac_objext'
  26664. { (case "(($ac_try" in
  26665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26666. *) ac_try_echo=$ac_try;;
  26667. esac
  26668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26669. (eval "$ac_try") 2>&5
  26670. ac_status=$?
  26671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26672. (exit $ac_status); }; }; then
  26673. ac_cv_header_sys_wait_h=yes
  26674. else
  26675. echo "$as_me: failed program was:" >&5
  26676. sed 's/^/| /' conftest.$ac_ext >&5
  26677. ac_cv_header_sys_wait_h=no
  26678. fi
  26679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26680. fi
  26681. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  26682. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  26683. if test $ac_cv_header_sys_wait_h = yes; then
  26684. cat >>confdefs.h <<\_ACEOF
  26685. #define HAVE_SYS_WAIT_H 1
  26686. _ACEOF
  26687. fi
  26688. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  26689. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  26690. if test "${ac_cv_header_time+set}" = set; then
  26691. echo $ECHO_N "(cached) $ECHO_C" >&6
  26692. else
  26693. cat >conftest.$ac_ext <<_ACEOF
  26694. /* confdefs.h. */
  26695. _ACEOF
  26696. cat confdefs.h >>conftest.$ac_ext
  26697. cat >>conftest.$ac_ext <<_ACEOF
  26698. /* end confdefs.h. */
  26699. #include <sys/types.h>
  26700. #include <sys/time.h>
  26701. #include <time.h>
  26702. int
  26703. main ()
  26704. {
  26705. if ((struct tm *) 0)
  26706. return 0;
  26707. ;
  26708. return 0;
  26709. }
  26710. _ACEOF
  26711. rm -f conftest.$ac_objext
  26712. if { (ac_try="$ac_compile"
  26713. case "(($ac_try" in
  26714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26715. *) ac_try_echo=$ac_try;;
  26716. esac
  26717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26718. (eval "$ac_compile") 2>conftest.er1
  26719. ac_status=$?
  26720. grep -v '^ *+' conftest.er1 >conftest.err
  26721. rm -f conftest.er1
  26722. cat conftest.err >&5
  26723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26724. (exit $ac_status); } &&
  26725. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26726. { (case "(($ac_try" in
  26727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26728. *) ac_try_echo=$ac_try;;
  26729. esac
  26730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26731. (eval "$ac_try") 2>&5
  26732. ac_status=$?
  26733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26734. (exit $ac_status); }; } &&
  26735. { ac_try='test -s conftest.$ac_objext'
  26736. { (case "(($ac_try" in
  26737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26738. *) ac_try_echo=$ac_try;;
  26739. esac
  26740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26741. (eval "$ac_try") 2>&5
  26742. ac_status=$?
  26743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26744. (exit $ac_status); }; }; then
  26745. ac_cv_header_time=yes
  26746. else
  26747. echo "$as_me: failed program was:" >&5
  26748. sed 's/^/| /' conftest.$ac_ext >&5
  26749. ac_cv_header_time=no
  26750. fi
  26751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26752. fi
  26753. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  26754. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  26755. if test $ac_cv_header_time = yes; then
  26756. cat >>confdefs.h <<\_ACEOF
  26757. #define TIME_WITH_SYS_TIME 1
  26758. _ACEOF
  26759. fi
  26760. for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
  26761. do
  26762. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26763. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26764. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26765. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26766. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26767. echo $ECHO_N "(cached) $ECHO_C" >&6
  26768. fi
  26769. ac_res=`eval echo '${'$as_ac_Header'}'`
  26770. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26771. echo "${ECHO_T}$ac_res" >&6; }
  26772. else
  26773. # Is the header compilable?
  26774. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26775. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  26776. cat >conftest.$ac_ext <<_ACEOF
  26777. /* confdefs.h. */
  26778. _ACEOF
  26779. cat confdefs.h >>conftest.$ac_ext
  26780. cat >>conftest.$ac_ext <<_ACEOF
  26781. /* end confdefs.h. */
  26782. $ac_includes_default
  26783. #include <$ac_header>
  26784. _ACEOF
  26785. rm -f conftest.$ac_objext
  26786. if { (ac_try="$ac_compile"
  26787. case "(($ac_try" in
  26788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26789. *) ac_try_echo=$ac_try;;
  26790. esac
  26791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26792. (eval "$ac_compile") 2>conftest.er1
  26793. ac_status=$?
  26794. grep -v '^ *+' conftest.er1 >conftest.err
  26795. rm -f conftest.er1
  26796. cat conftest.err >&5
  26797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26798. (exit $ac_status); } &&
  26799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26800. { (case "(($ac_try" in
  26801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26802. *) ac_try_echo=$ac_try;;
  26803. esac
  26804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26805. (eval "$ac_try") 2>&5
  26806. ac_status=$?
  26807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26808. (exit $ac_status); }; } &&
  26809. { ac_try='test -s conftest.$ac_objext'
  26810. { (case "(($ac_try" in
  26811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26812. *) ac_try_echo=$ac_try;;
  26813. esac
  26814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26815. (eval "$ac_try") 2>&5
  26816. ac_status=$?
  26817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26818. (exit $ac_status); }; }; then
  26819. ac_header_compiler=yes
  26820. else
  26821. echo "$as_me: failed program was:" >&5
  26822. sed 's/^/| /' conftest.$ac_ext >&5
  26823. ac_header_compiler=no
  26824. fi
  26825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26826. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26827. echo "${ECHO_T}$ac_header_compiler" >&6; }
  26828. # Is the header present?
  26829. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26830. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  26831. cat >conftest.$ac_ext <<_ACEOF
  26832. /* confdefs.h. */
  26833. _ACEOF
  26834. cat confdefs.h >>conftest.$ac_ext
  26835. cat >>conftest.$ac_ext <<_ACEOF
  26836. /* end confdefs.h. */
  26837. #include <$ac_header>
  26838. _ACEOF
  26839. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26840. case "(($ac_try" in
  26841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26842. *) ac_try_echo=$ac_try;;
  26843. esac
  26844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26845. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26846. ac_status=$?
  26847. grep -v '^ *+' conftest.er1 >conftest.err
  26848. rm -f conftest.er1
  26849. cat conftest.err >&5
  26850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26851. (exit $ac_status); } >/dev/null; then
  26852. if test -s conftest.err; then
  26853. ac_cpp_err=$ac_c_preproc_warn_flag
  26854. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26855. else
  26856. ac_cpp_err=
  26857. fi
  26858. else
  26859. ac_cpp_err=yes
  26860. fi
  26861. if test -z "$ac_cpp_err"; then
  26862. ac_header_preproc=yes
  26863. else
  26864. echo "$as_me: failed program was:" >&5
  26865. sed 's/^/| /' conftest.$ac_ext >&5
  26866. ac_header_preproc=no
  26867. fi
  26868. rm -f conftest.err conftest.$ac_ext
  26869. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26870. echo "${ECHO_T}$ac_header_preproc" >&6; }
  26871. # So? What about this header?
  26872. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26873. yes:no: )
  26874. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26875. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26876. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26877. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26878. ac_header_preproc=yes
  26879. ;;
  26880. no:yes:* )
  26881. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26882. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26883. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26884. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26885. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26886. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26887. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26888. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26889. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26890. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26891. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26892. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26893. ( cat <<\_ASBOX
  26894. ## ----------------------------------- ##
  26895. ## Report this to llvmbugs@cs.uiuc.edu ##
  26896. ## ----------------------------------- ##
  26897. _ASBOX
  26898. ) | sed "s/^/$as_me: WARNING: /" >&2
  26899. ;;
  26900. esac
  26901. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26902. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26903. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26904. echo $ECHO_N "(cached) $ECHO_C" >&6
  26905. else
  26906. eval "$as_ac_Header=\$ac_header_preproc"
  26907. fi
  26908. ac_res=`eval echo '${'$as_ac_Header'}'`
  26909. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26910. echo "${ECHO_T}$ac_res" >&6; }
  26911. fi
  26912. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26913. cat >>confdefs.h <<_ACEOF
  26914. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26915. _ACEOF
  26916. fi
  26917. done
  26918. for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
  26919. do
  26920. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26921. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26922. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  26923. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  26924. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26925. echo $ECHO_N "(cached) $ECHO_C" >&6
  26926. fi
  26927. ac_res=`eval echo '${'$as_ac_Header'}'`
  26928. { echo "$as_me:$LINENO: result: $ac_res" >&5
  26929. echo "${ECHO_T}$ac_res" >&6; }
  26930. else
  26931. # Is the header compilable?
  26932. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26933. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  26934. cat >conftest.$ac_ext <<_ACEOF
  26935. /* confdefs.h. */
  26936. _ACEOF
  26937. cat confdefs.h >>conftest.$ac_ext
  26938. cat >>conftest.$ac_ext <<_ACEOF
  26939. /* end confdefs.h. */
  26940. $ac_includes_default
  26941. #include <$ac_header>
  26942. _ACEOF
  26943. rm -f conftest.$ac_objext
  26944. if { (ac_try="$ac_compile"
  26945. case "(($ac_try" in
  26946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26947. *) ac_try_echo=$ac_try;;
  26948. esac
  26949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26950. (eval "$ac_compile") 2>conftest.er1
  26951. ac_status=$?
  26952. grep -v '^ *+' conftest.er1 >conftest.err
  26953. rm -f conftest.er1
  26954. cat conftest.err >&5
  26955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26956. (exit $ac_status); } &&
  26957. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  26958. { (case "(($ac_try" in
  26959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26960. *) ac_try_echo=$ac_try;;
  26961. esac
  26962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26963. (eval "$ac_try") 2>&5
  26964. ac_status=$?
  26965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26966. (exit $ac_status); }; } &&
  26967. { ac_try='test -s conftest.$ac_objext'
  26968. { (case "(($ac_try" in
  26969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26970. *) ac_try_echo=$ac_try;;
  26971. esac
  26972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26973. (eval "$ac_try") 2>&5
  26974. ac_status=$?
  26975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26976. (exit $ac_status); }; }; then
  26977. ac_header_compiler=yes
  26978. else
  26979. echo "$as_me: failed program was:" >&5
  26980. sed 's/^/| /' conftest.$ac_ext >&5
  26981. ac_header_compiler=no
  26982. fi
  26983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26984. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26985. echo "${ECHO_T}$ac_header_compiler" >&6; }
  26986. # Is the header present?
  26987. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26988. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  26989. cat >conftest.$ac_ext <<_ACEOF
  26990. /* confdefs.h. */
  26991. _ACEOF
  26992. cat confdefs.h >>conftest.$ac_ext
  26993. cat >>conftest.$ac_ext <<_ACEOF
  26994. /* end confdefs.h. */
  26995. #include <$ac_header>
  26996. _ACEOF
  26997. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26998. case "(($ac_try" in
  26999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27000. *) ac_try_echo=$ac_try;;
  27001. esac
  27002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27003. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27004. ac_status=$?
  27005. grep -v '^ *+' conftest.er1 >conftest.err
  27006. rm -f conftest.er1
  27007. cat conftest.err >&5
  27008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27009. (exit $ac_status); } >/dev/null; then
  27010. if test -s conftest.err; then
  27011. ac_cpp_err=$ac_c_preproc_warn_flag
  27012. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27013. else
  27014. ac_cpp_err=
  27015. fi
  27016. else
  27017. ac_cpp_err=yes
  27018. fi
  27019. if test -z "$ac_cpp_err"; then
  27020. ac_header_preproc=yes
  27021. else
  27022. echo "$as_me: failed program was:" >&5
  27023. sed 's/^/| /' conftest.$ac_ext >&5
  27024. ac_header_preproc=no
  27025. fi
  27026. rm -f conftest.err conftest.$ac_ext
  27027. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27028. echo "${ECHO_T}$ac_header_preproc" >&6; }
  27029. # So? What about this header?
  27030. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27031. yes:no: )
  27032. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27033. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27034. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27035. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27036. ac_header_preproc=yes
  27037. ;;
  27038. no:yes:* )
  27039. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27040. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27041. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27042. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27043. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27044. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27045. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27046. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27047. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27048. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27049. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27050. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27051. ( cat <<\_ASBOX
  27052. ## ----------------------------------- ##
  27053. ## Report this to llvmbugs@cs.uiuc.edu ##
  27054. ## ----------------------------------- ##
  27055. _ASBOX
  27056. ) | sed "s/^/$as_me: WARNING: /" >&2
  27057. ;;
  27058. esac
  27059. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27060. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27061. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27062. echo $ECHO_N "(cached) $ECHO_C" >&6
  27063. else
  27064. eval "$as_ac_Header=\$ac_header_preproc"
  27065. fi
  27066. ac_res=`eval echo '${'$as_ac_Header'}'`
  27067. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27068. echo "${ECHO_T}$ac_res" >&6; }
  27069. fi
  27070. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27071. cat >>confdefs.h <<_ACEOF
  27072. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27073. _ACEOF
  27074. fi
  27075. done
  27076. for ac_header in utime.h windows.h
  27077. do
  27078. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27079. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27080. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27081. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27082. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27083. echo $ECHO_N "(cached) $ECHO_C" >&6
  27084. fi
  27085. ac_res=`eval echo '${'$as_ac_Header'}'`
  27086. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27087. echo "${ECHO_T}$ac_res" >&6; }
  27088. else
  27089. # Is the header compilable?
  27090. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27091. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  27092. cat >conftest.$ac_ext <<_ACEOF
  27093. /* confdefs.h. */
  27094. _ACEOF
  27095. cat confdefs.h >>conftest.$ac_ext
  27096. cat >>conftest.$ac_ext <<_ACEOF
  27097. /* end confdefs.h. */
  27098. $ac_includes_default
  27099. #include <$ac_header>
  27100. _ACEOF
  27101. rm -f conftest.$ac_objext
  27102. if { (ac_try="$ac_compile"
  27103. case "(($ac_try" in
  27104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27105. *) ac_try_echo=$ac_try;;
  27106. esac
  27107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27108. (eval "$ac_compile") 2>conftest.er1
  27109. ac_status=$?
  27110. grep -v '^ *+' conftest.er1 >conftest.err
  27111. rm -f conftest.er1
  27112. cat conftest.err >&5
  27113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27114. (exit $ac_status); } &&
  27115. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27116. { (case "(($ac_try" in
  27117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27118. *) ac_try_echo=$ac_try;;
  27119. esac
  27120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27121. (eval "$ac_try") 2>&5
  27122. ac_status=$?
  27123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27124. (exit $ac_status); }; } &&
  27125. { ac_try='test -s conftest.$ac_objext'
  27126. { (case "(($ac_try" in
  27127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27128. *) ac_try_echo=$ac_try;;
  27129. esac
  27130. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27131. (eval "$ac_try") 2>&5
  27132. ac_status=$?
  27133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27134. (exit $ac_status); }; }; then
  27135. ac_header_compiler=yes
  27136. else
  27137. echo "$as_me: failed program was:" >&5
  27138. sed 's/^/| /' conftest.$ac_ext >&5
  27139. ac_header_compiler=no
  27140. fi
  27141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27142. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27143. echo "${ECHO_T}$ac_header_compiler" >&6; }
  27144. # Is the header present?
  27145. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27146. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  27147. cat >conftest.$ac_ext <<_ACEOF
  27148. /* confdefs.h. */
  27149. _ACEOF
  27150. cat confdefs.h >>conftest.$ac_ext
  27151. cat >>conftest.$ac_ext <<_ACEOF
  27152. /* end confdefs.h. */
  27153. #include <$ac_header>
  27154. _ACEOF
  27155. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27156. case "(($ac_try" in
  27157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27158. *) ac_try_echo=$ac_try;;
  27159. esac
  27160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27161. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27162. ac_status=$?
  27163. grep -v '^ *+' conftest.er1 >conftest.err
  27164. rm -f conftest.er1
  27165. cat conftest.err >&5
  27166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27167. (exit $ac_status); } >/dev/null; then
  27168. if test -s conftest.err; then
  27169. ac_cpp_err=$ac_c_preproc_warn_flag
  27170. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27171. else
  27172. ac_cpp_err=
  27173. fi
  27174. else
  27175. ac_cpp_err=yes
  27176. fi
  27177. if test -z "$ac_cpp_err"; then
  27178. ac_header_preproc=yes
  27179. else
  27180. echo "$as_me: failed program was:" >&5
  27181. sed 's/^/| /' conftest.$ac_ext >&5
  27182. ac_header_preproc=no
  27183. fi
  27184. rm -f conftest.err conftest.$ac_ext
  27185. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27186. echo "${ECHO_T}$ac_header_preproc" >&6; }
  27187. # So? What about this header?
  27188. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27189. yes:no: )
  27190. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27191. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27192. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27193. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27194. ac_header_preproc=yes
  27195. ;;
  27196. no:yes:* )
  27197. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27198. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27199. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27200. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27201. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27202. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27203. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27204. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27205. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27206. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27207. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27208. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27209. ( cat <<\_ASBOX
  27210. ## ----------------------------------- ##
  27211. ## Report this to llvmbugs@cs.uiuc.edu ##
  27212. ## ----------------------------------- ##
  27213. _ASBOX
  27214. ) | sed "s/^/$as_me: WARNING: /" >&2
  27215. ;;
  27216. esac
  27217. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27218. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27219. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27220. echo $ECHO_N "(cached) $ECHO_C" >&6
  27221. else
  27222. eval "$as_ac_Header=\$ac_header_preproc"
  27223. fi
  27224. ac_res=`eval echo '${'$as_ac_Header'}'`
  27225. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27226. echo "${ECHO_T}$ac_res" >&6; }
  27227. fi
  27228. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27229. cat >>confdefs.h <<_ACEOF
  27230. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27231. _ACEOF
  27232. fi
  27233. done
  27234. for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
  27235. do
  27236. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27237. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27238. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27239. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27240. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27241. echo $ECHO_N "(cached) $ECHO_C" >&6
  27242. fi
  27243. ac_res=`eval echo '${'$as_ac_Header'}'`
  27244. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27245. echo "${ECHO_T}$ac_res" >&6; }
  27246. else
  27247. # Is the header compilable?
  27248. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27249. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  27250. cat >conftest.$ac_ext <<_ACEOF
  27251. /* confdefs.h. */
  27252. _ACEOF
  27253. cat confdefs.h >>conftest.$ac_ext
  27254. cat >>conftest.$ac_ext <<_ACEOF
  27255. /* end confdefs.h. */
  27256. $ac_includes_default
  27257. #include <$ac_header>
  27258. _ACEOF
  27259. rm -f conftest.$ac_objext
  27260. if { (ac_try="$ac_compile"
  27261. case "(($ac_try" in
  27262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27263. *) ac_try_echo=$ac_try;;
  27264. esac
  27265. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27266. (eval "$ac_compile") 2>conftest.er1
  27267. ac_status=$?
  27268. grep -v '^ *+' conftest.er1 >conftest.err
  27269. rm -f conftest.er1
  27270. cat conftest.err >&5
  27271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27272. (exit $ac_status); } &&
  27273. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27274. { (case "(($ac_try" in
  27275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27276. *) ac_try_echo=$ac_try;;
  27277. esac
  27278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27279. (eval "$ac_try") 2>&5
  27280. ac_status=$?
  27281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27282. (exit $ac_status); }; } &&
  27283. { ac_try='test -s conftest.$ac_objext'
  27284. { (case "(($ac_try" in
  27285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27286. *) ac_try_echo=$ac_try;;
  27287. esac
  27288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27289. (eval "$ac_try") 2>&5
  27290. ac_status=$?
  27291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27292. (exit $ac_status); }; }; then
  27293. ac_header_compiler=yes
  27294. else
  27295. echo "$as_me: failed program was:" >&5
  27296. sed 's/^/| /' conftest.$ac_ext >&5
  27297. ac_header_compiler=no
  27298. fi
  27299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27300. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27301. echo "${ECHO_T}$ac_header_compiler" >&6; }
  27302. # Is the header present?
  27303. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27304. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  27305. cat >conftest.$ac_ext <<_ACEOF
  27306. /* confdefs.h. */
  27307. _ACEOF
  27308. cat confdefs.h >>conftest.$ac_ext
  27309. cat >>conftest.$ac_ext <<_ACEOF
  27310. /* end confdefs.h. */
  27311. #include <$ac_header>
  27312. _ACEOF
  27313. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27314. case "(($ac_try" in
  27315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27316. *) ac_try_echo=$ac_try;;
  27317. esac
  27318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27319. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27320. ac_status=$?
  27321. grep -v '^ *+' conftest.er1 >conftest.err
  27322. rm -f conftest.er1
  27323. cat conftest.err >&5
  27324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27325. (exit $ac_status); } >/dev/null; then
  27326. if test -s conftest.err; then
  27327. ac_cpp_err=$ac_c_preproc_warn_flag
  27328. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27329. else
  27330. ac_cpp_err=
  27331. fi
  27332. else
  27333. ac_cpp_err=yes
  27334. fi
  27335. if test -z "$ac_cpp_err"; then
  27336. ac_header_preproc=yes
  27337. else
  27338. echo "$as_me: failed program was:" >&5
  27339. sed 's/^/| /' conftest.$ac_ext >&5
  27340. ac_header_preproc=no
  27341. fi
  27342. rm -f conftest.err conftest.$ac_ext
  27343. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27344. echo "${ECHO_T}$ac_header_preproc" >&6; }
  27345. # So? What about this header?
  27346. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27347. yes:no: )
  27348. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27349. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27350. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27351. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27352. ac_header_preproc=yes
  27353. ;;
  27354. no:yes:* )
  27355. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27356. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27357. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27358. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27359. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27360. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27361. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27362. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27363. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27364. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27365. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27366. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27367. ( cat <<\_ASBOX
  27368. ## ----------------------------------- ##
  27369. ## Report this to llvmbugs@cs.uiuc.edu ##
  27370. ## ----------------------------------- ##
  27371. _ASBOX
  27372. ) | sed "s/^/$as_me: WARNING: /" >&2
  27373. ;;
  27374. esac
  27375. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27376. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27377. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27378. echo $ECHO_N "(cached) $ECHO_C" >&6
  27379. else
  27380. eval "$as_ac_Header=\$ac_header_preproc"
  27381. fi
  27382. ac_res=`eval echo '${'$as_ac_Header'}'`
  27383. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27384. echo "${ECHO_T}$ac_res" >&6; }
  27385. fi
  27386. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27387. cat >>confdefs.h <<_ACEOF
  27388. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27389. _ACEOF
  27390. fi
  27391. done
  27392. for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
  27393. do
  27394. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27395. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27396. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27397. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27398. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27399. echo $ECHO_N "(cached) $ECHO_C" >&6
  27400. fi
  27401. ac_res=`eval echo '${'$as_ac_Header'}'`
  27402. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27403. echo "${ECHO_T}$ac_res" >&6; }
  27404. else
  27405. # Is the header compilable?
  27406. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27407. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  27408. cat >conftest.$ac_ext <<_ACEOF
  27409. /* confdefs.h. */
  27410. _ACEOF
  27411. cat confdefs.h >>conftest.$ac_ext
  27412. cat >>conftest.$ac_ext <<_ACEOF
  27413. /* end confdefs.h. */
  27414. $ac_includes_default
  27415. #include <$ac_header>
  27416. _ACEOF
  27417. rm -f conftest.$ac_objext
  27418. if { (ac_try="$ac_compile"
  27419. case "(($ac_try" in
  27420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27421. *) ac_try_echo=$ac_try;;
  27422. esac
  27423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27424. (eval "$ac_compile") 2>conftest.er1
  27425. ac_status=$?
  27426. grep -v '^ *+' conftest.er1 >conftest.err
  27427. rm -f conftest.er1
  27428. cat conftest.err >&5
  27429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27430. (exit $ac_status); } &&
  27431. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27432. { (case "(($ac_try" in
  27433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27434. *) ac_try_echo=$ac_try;;
  27435. esac
  27436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27437. (eval "$ac_try") 2>&5
  27438. ac_status=$?
  27439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27440. (exit $ac_status); }; } &&
  27441. { ac_try='test -s conftest.$ac_objext'
  27442. { (case "(($ac_try" in
  27443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27444. *) ac_try_echo=$ac_try;;
  27445. esac
  27446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27447. (eval "$ac_try") 2>&5
  27448. ac_status=$?
  27449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27450. (exit $ac_status); }; }; then
  27451. ac_header_compiler=yes
  27452. else
  27453. echo "$as_me: failed program was:" >&5
  27454. sed 's/^/| /' conftest.$ac_ext >&5
  27455. ac_header_compiler=no
  27456. fi
  27457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27458. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27459. echo "${ECHO_T}$ac_header_compiler" >&6; }
  27460. # Is the header present?
  27461. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27462. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  27463. cat >conftest.$ac_ext <<_ACEOF
  27464. /* confdefs.h. */
  27465. _ACEOF
  27466. cat confdefs.h >>conftest.$ac_ext
  27467. cat >>conftest.$ac_ext <<_ACEOF
  27468. /* end confdefs.h. */
  27469. #include <$ac_header>
  27470. _ACEOF
  27471. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27472. case "(($ac_try" in
  27473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27474. *) ac_try_echo=$ac_try;;
  27475. esac
  27476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27477. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27478. ac_status=$?
  27479. grep -v '^ *+' conftest.er1 >conftest.err
  27480. rm -f conftest.er1
  27481. cat conftest.err >&5
  27482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27483. (exit $ac_status); } >/dev/null; then
  27484. if test -s conftest.err; then
  27485. ac_cpp_err=$ac_c_preproc_warn_flag
  27486. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27487. else
  27488. ac_cpp_err=
  27489. fi
  27490. else
  27491. ac_cpp_err=yes
  27492. fi
  27493. if test -z "$ac_cpp_err"; then
  27494. ac_header_preproc=yes
  27495. else
  27496. echo "$as_me: failed program was:" >&5
  27497. sed 's/^/| /' conftest.$ac_ext >&5
  27498. ac_header_preproc=no
  27499. fi
  27500. rm -f conftest.err conftest.$ac_ext
  27501. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27502. echo "${ECHO_T}$ac_header_preproc" >&6; }
  27503. # So? What about this header?
  27504. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27505. yes:no: )
  27506. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27507. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27508. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27509. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27510. ac_header_preproc=yes
  27511. ;;
  27512. no:yes:* )
  27513. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27514. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27515. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27516. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27517. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27518. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27519. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27520. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27521. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27522. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27523. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27524. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27525. ( cat <<\_ASBOX
  27526. ## ----------------------------------- ##
  27527. ## Report this to llvmbugs@cs.uiuc.edu ##
  27528. ## ----------------------------------- ##
  27529. _ASBOX
  27530. ) | sed "s/^/$as_me: WARNING: /" >&2
  27531. ;;
  27532. esac
  27533. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27534. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27535. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27536. echo $ECHO_N "(cached) $ECHO_C" >&6
  27537. else
  27538. eval "$as_ac_Header=\$ac_header_preproc"
  27539. fi
  27540. ac_res=`eval echo '${'$as_ac_Header'}'`
  27541. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27542. echo "${ECHO_T}$ac_res" >&6; }
  27543. fi
  27544. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27545. cat >>confdefs.h <<_ACEOF
  27546. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27547. _ACEOF
  27548. fi
  27549. done
  27550. if test "$ENABLE_THREADS" -eq 1 ; then
  27551. for ac_header in pthread.h
  27552. do
  27553. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27554. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27555. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27556. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27557. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27558. echo $ECHO_N "(cached) $ECHO_C" >&6
  27559. fi
  27560. ac_res=`eval echo '${'$as_ac_Header'}'`
  27561. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27562. echo "${ECHO_T}$ac_res" >&6; }
  27563. else
  27564. # Is the header compilable?
  27565. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27566. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  27567. cat >conftest.$ac_ext <<_ACEOF
  27568. /* confdefs.h. */
  27569. _ACEOF
  27570. cat confdefs.h >>conftest.$ac_ext
  27571. cat >>conftest.$ac_ext <<_ACEOF
  27572. /* end confdefs.h. */
  27573. $ac_includes_default
  27574. #include <$ac_header>
  27575. _ACEOF
  27576. rm -f conftest.$ac_objext
  27577. if { (ac_try="$ac_compile"
  27578. case "(($ac_try" in
  27579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27580. *) ac_try_echo=$ac_try;;
  27581. esac
  27582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27583. (eval "$ac_compile") 2>conftest.er1
  27584. ac_status=$?
  27585. grep -v '^ *+' conftest.er1 >conftest.err
  27586. rm -f conftest.er1
  27587. cat conftest.err >&5
  27588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27589. (exit $ac_status); } &&
  27590. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27591. { (case "(($ac_try" in
  27592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27593. *) ac_try_echo=$ac_try;;
  27594. esac
  27595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27596. (eval "$ac_try") 2>&5
  27597. ac_status=$?
  27598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27599. (exit $ac_status); }; } &&
  27600. { ac_try='test -s conftest.$ac_objext'
  27601. { (case "(($ac_try" in
  27602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27603. *) ac_try_echo=$ac_try;;
  27604. esac
  27605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27606. (eval "$ac_try") 2>&5
  27607. ac_status=$?
  27608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27609. (exit $ac_status); }; }; then
  27610. ac_header_compiler=yes
  27611. else
  27612. echo "$as_me: failed program was:" >&5
  27613. sed 's/^/| /' conftest.$ac_ext >&5
  27614. ac_header_compiler=no
  27615. fi
  27616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27617. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27618. echo "${ECHO_T}$ac_header_compiler" >&6; }
  27619. # Is the header present?
  27620. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27621. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  27622. cat >conftest.$ac_ext <<_ACEOF
  27623. /* confdefs.h. */
  27624. _ACEOF
  27625. cat confdefs.h >>conftest.$ac_ext
  27626. cat >>conftest.$ac_ext <<_ACEOF
  27627. /* end confdefs.h. */
  27628. #include <$ac_header>
  27629. _ACEOF
  27630. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27631. case "(($ac_try" in
  27632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27633. *) ac_try_echo=$ac_try;;
  27634. esac
  27635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27636. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27637. ac_status=$?
  27638. grep -v '^ *+' conftest.er1 >conftest.err
  27639. rm -f conftest.er1
  27640. cat conftest.err >&5
  27641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27642. (exit $ac_status); } >/dev/null; then
  27643. if test -s conftest.err; then
  27644. ac_cpp_err=$ac_c_preproc_warn_flag
  27645. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27646. else
  27647. ac_cpp_err=
  27648. fi
  27649. else
  27650. ac_cpp_err=yes
  27651. fi
  27652. if test -z "$ac_cpp_err"; then
  27653. ac_header_preproc=yes
  27654. else
  27655. echo "$as_me: failed program was:" >&5
  27656. sed 's/^/| /' conftest.$ac_ext >&5
  27657. ac_header_preproc=no
  27658. fi
  27659. rm -f conftest.err conftest.$ac_ext
  27660. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27661. echo "${ECHO_T}$ac_header_preproc" >&6; }
  27662. # So? What about this header?
  27663. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27664. yes:no: )
  27665. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27666. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27667. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27668. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27669. ac_header_preproc=yes
  27670. ;;
  27671. no:yes:* )
  27672. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27673. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27674. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27675. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27676. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27677. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27678. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27679. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27680. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27681. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27682. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27683. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27684. ( cat <<\_ASBOX
  27685. ## ----------------------------------- ##
  27686. ## Report this to llvmbugs@cs.uiuc.edu ##
  27687. ## ----------------------------------- ##
  27688. _ASBOX
  27689. ) | sed "s/^/$as_me: WARNING: /" >&2
  27690. ;;
  27691. esac
  27692. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27693. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27694. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27695. echo $ECHO_N "(cached) $ECHO_C" >&6
  27696. else
  27697. eval "$as_ac_Header=\$ac_header_preproc"
  27698. fi
  27699. ac_res=`eval echo '${'$as_ac_Header'}'`
  27700. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27701. echo "${ECHO_T}$ac_res" >&6; }
  27702. fi
  27703. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27704. cat >>confdefs.h <<_ACEOF
  27705. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27706. _ACEOF
  27707. HAVE_PTHREAD=1
  27708. else
  27709. HAVE_PTHREAD=0
  27710. fi
  27711. done
  27712. else
  27713. HAVE_PTHREAD=0
  27714. fi
  27715. if test "$llvm_cv_enable_libffi" = "yes" ; then
  27716. for ac_header in ffi.h ffi/ffi.h
  27717. do
  27718. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27719. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27720. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27721. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27722. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27723. echo $ECHO_N "(cached) $ECHO_C" >&6
  27724. fi
  27725. ac_res=`eval echo '${'$as_ac_Header'}'`
  27726. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27727. echo "${ECHO_T}$ac_res" >&6; }
  27728. else
  27729. # Is the header compilable?
  27730. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27731. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  27732. cat >conftest.$ac_ext <<_ACEOF
  27733. /* confdefs.h. */
  27734. _ACEOF
  27735. cat confdefs.h >>conftest.$ac_ext
  27736. cat >>conftest.$ac_ext <<_ACEOF
  27737. /* end confdefs.h. */
  27738. $ac_includes_default
  27739. #include <$ac_header>
  27740. _ACEOF
  27741. rm -f conftest.$ac_objext
  27742. if { (ac_try="$ac_compile"
  27743. case "(($ac_try" in
  27744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27745. *) ac_try_echo=$ac_try;;
  27746. esac
  27747. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27748. (eval "$ac_compile") 2>conftest.er1
  27749. ac_status=$?
  27750. grep -v '^ *+' conftest.er1 >conftest.err
  27751. rm -f conftest.er1
  27752. cat conftest.err >&5
  27753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27754. (exit $ac_status); } &&
  27755. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27756. { (case "(($ac_try" in
  27757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27758. *) ac_try_echo=$ac_try;;
  27759. esac
  27760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27761. (eval "$ac_try") 2>&5
  27762. ac_status=$?
  27763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27764. (exit $ac_status); }; } &&
  27765. { ac_try='test -s conftest.$ac_objext'
  27766. { (case "(($ac_try" in
  27767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27768. *) ac_try_echo=$ac_try;;
  27769. esac
  27770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27771. (eval "$ac_try") 2>&5
  27772. ac_status=$?
  27773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27774. (exit $ac_status); }; }; then
  27775. ac_header_compiler=yes
  27776. else
  27777. echo "$as_me: failed program was:" >&5
  27778. sed 's/^/| /' conftest.$ac_ext >&5
  27779. ac_header_compiler=no
  27780. fi
  27781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27782. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27783. echo "${ECHO_T}$ac_header_compiler" >&6; }
  27784. # Is the header present?
  27785. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27786. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  27787. cat >conftest.$ac_ext <<_ACEOF
  27788. /* confdefs.h. */
  27789. _ACEOF
  27790. cat confdefs.h >>conftest.$ac_ext
  27791. cat >>conftest.$ac_ext <<_ACEOF
  27792. /* end confdefs.h. */
  27793. #include <$ac_header>
  27794. _ACEOF
  27795. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27796. case "(($ac_try" in
  27797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27798. *) ac_try_echo=$ac_try;;
  27799. esac
  27800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27801. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27802. ac_status=$?
  27803. grep -v '^ *+' conftest.er1 >conftest.err
  27804. rm -f conftest.er1
  27805. cat conftest.err >&5
  27806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27807. (exit $ac_status); } >/dev/null; then
  27808. if test -s conftest.err; then
  27809. ac_cpp_err=$ac_c_preproc_warn_flag
  27810. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27811. else
  27812. ac_cpp_err=
  27813. fi
  27814. else
  27815. ac_cpp_err=yes
  27816. fi
  27817. if test -z "$ac_cpp_err"; then
  27818. ac_header_preproc=yes
  27819. else
  27820. echo "$as_me: failed program was:" >&5
  27821. sed 's/^/| /' conftest.$ac_ext >&5
  27822. ac_header_preproc=no
  27823. fi
  27824. rm -f conftest.err conftest.$ac_ext
  27825. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27826. echo "${ECHO_T}$ac_header_preproc" >&6; }
  27827. # So? What about this header?
  27828. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27829. yes:no: )
  27830. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27831. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27832. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27833. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27834. ac_header_preproc=yes
  27835. ;;
  27836. no:yes:* )
  27837. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27838. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27839. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27840. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27841. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27842. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27843. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27844. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27845. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27846. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27847. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27848. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27849. ( cat <<\_ASBOX
  27850. ## ----------------------------------- ##
  27851. ## Report this to llvmbugs@cs.uiuc.edu ##
  27852. ## ----------------------------------- ##
  27853. _ASBOX
  27854. ) | sed "s/^/$as_me: WARNING: /" >&2
  27855. ;;
  27856. esac
  27857. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  27858. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  27859. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  27860. echo $ECHO_N "(cached) $ECHO_C" >&6
  27861. else
  27862. eval "$as_ac_Header=\$ac_header_preproc"
  27863. fi
  27864. ac_res=`eval echo '${'$as_ac_Header'}'`
  27865. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27866. echo "${ECHO_T}$ac_res" >&6; }
  27867. fi
  27868. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27869. cat >>confdefs.h <<_ACEOF
  27870. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27871. _ACEOF
  27872. fi
  27873. done
  27874. fi
  27875. { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
  27876. echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
  27877. if test "${ac_cv_huge_val_sanity+set}" = set; then
  27878. echo $ECHO_N "(cached) $ECHO_C" >&6
  27879. else
  27880. ac_ext=cpp
  27881. ac_cpp='$CXXCPP $CPPFLAGS'
  27882. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27883. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27884. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27885. CXXFLAGS=-pedantic
  27886. if test "$cross_compiling" = yes; then
  27887. ac_cv_huge_val_sanity=yes
  27888. else
  27889. cat >conftest.$ac_ext <<_ACEOF
  27890. /* confdefs.h. */
  27891. _ACEOF
  27892. cat confdefs.h >>conftest.$ac_ext
  27893. cat >>conftest.$ac_ext <<_ACEOF
  27894. /* end confdefs.h. */
  27895. #include <math.h>
  27896. int
  27897. main ()
  27898. {
  27899. double x = HUGE_VAL; return x != x;
  27900. ;
  27901. return 0;
  27902. }
  27903. _ACEOF
  27904. rm -f conftest$ac_exeext
  27905. if { (ac_try="$ac_link"
  27906. case "(($ac_try" in
  27907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27908. *) ac_try_echo=$ac_try;;
  27909. esac
  27910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27911. (eval "$ac_link") 2>&5
  27912. ac_status=$?
  27913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27914. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27915. { (case "(($ac_try" in
  27916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27917. *) ac_try_echo=$ac_try;;
  27918. esac
  27919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27920. (eval "$ac_try") 2>&5
  27921. ac_status=$?
  27922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27923. (exit $ac_status); }; }; then
  27924. ac_cv_huge_val_sanity=yes
  27925. else
  27926. echo "$as_me: program exited with status $ac_status" >&5
  27927. echo "$as_me: failed program was:" >&5
  27928. sed 's/^/| /' conftest.$ac_ext >&5
  27929. ( exit $ac_status )
  27930. ac_cv_huge_val_sanity=no
  27931. fi
  27932. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27933. fi
  27934. ac_ext=c
  27935. ac_cpp='$CPP $CPPFLAGS'
  27936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27939. fi
  27940. { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
  27941. echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
  27942. HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
  27943. { echo "$as_me:$LINENO: checking for pid_t" >&5
  27944. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  27945. if test "${ac_cv_type_pid_t+set}" = set; then
  27946. echo $ECHO_N "(cached) $ECHO_C" >&6
  27947. else
  27948. cat >conftest.$ac_ext <<_ACEOF
  27949. /* confdefs.h. */
  27950. _ACEOF
  27951. cat confdefs.h >>conftest.$ac_ext
  27952. cat >>conftest.$ac_ext <<_ACEOF
  27953. /* end confdefs.h. */
  27954. $ac_includes_default
  27955. typedef pid_t ac__type_new_;
  27956. int
  27957. main ()
  27958. {
  27959. if ((ac__type_new_ *) 0)
  27960. return 0;
  27961. if (sizeof (ac__type_new_))
  27962. return 0;
  27963. ;
  27964. return 0;
  27965. }
  27966. _ACEOF
  27967. rm -f conftest.$ac_objext
  27968. if { (ac_try="$ac_compile"
  27969. case "(($ac_try" in
  27970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27971. *) ac_try_echo=$ac_try;;
  27972. esac
  27973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27974. (eval "$ac_compile") 2>conftest.er1
  27975. ac_status=$?
  27976. grep -v '^ *+' conftest.er1 >conftest.err
  27977. rm -f conftest.er1
  27978. cat conftest.err >&5
  27979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27980. (exit $ac_status); } &&
  27981. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27982. { (case "(($ac_try" in
  27983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27984. *) ac_try_echo=$ac_try;;
  27985. esac
  27986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27987. (eval "$ac_try") 2>&5
  27988. ac_status=$?
  27989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27990. (exit $ac_status); }; } &&
  27991. { ac_try='test -s conftest.$ac_objext'
  27992. { (case "(($ac_try" in
  27993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27994. *) ac_try_echo=$ac_try;;
  27995. esac
  27996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27997. (eval "$ac_try") 2>&5
  27998. ac_status=$?
  27999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28000. (exit $ac_status); }; }; then
  28001. ac_cv_type_pid_t=yes
  28002. else
  28003. echo "$as_me: failed program was:" >&5
  28004. sed 's/^/| /' conftest.$ac_ext >&5
  28005. ac_cv_type_pid_t=no
  28006. fi
  28007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28008. fi
  28009. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  28010. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  28011. if test $ac_cv_type_pid_t = yes; then
  28012. :
  28013. else
  28014. cat >>confdefs.h <<_ACEOF
  28015. #define pid_t int
  28016. _ACEOF
  28017. fi
  28018. { echo "$as_me:$LINENO: checking for size_t" >&5
  28019. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  28020. if test "${ac_cv_type_size_t+set}" = set; then
  28021. echo $ECHO_N "(cached) $ECHO_C" >&6
  28022. else
  28023. cat >conftest.$ac_ext <<_ACEOF
  28024. /* confdefs.h. */
  28025. _ACEOF
  28026. cat confdefs.h >>conftest.$ac_ext
  28027. cat >>conftest.$ac_ext <<_ACEOF
  28028. /* end confdefs.h. */
  28029. $ac_includes_default
  28030. typedef size_t ac__type_new_;
  28031. int
  28032. main ()
  28033. {
  28034. if ((ac__type_new_ *) 0)
  28035. return 0;
  28036. if (sizeof (ac__type_new_))
  28037. return 0;
  28038. ;
  28039. return 0;
  28040. }
  28041. _ACEOF
  28042. rm -f conftest.$ac_objext
  28043. if { (ac_try="$ac_compile"
  28044. case "(($ac_try" in
  28045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28046. *) ac_try_echo=$ac_try;;
  28047. esac
  28048. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28049. (eval "$ac_compile") 2>conftest.er1
  28050. ac_status=$?
  28051. grep -v '^ *+' conftest.er1 >conftest.err
  28052. rm -f conftest.er1
  28053. cat conftest.err >&5
  28054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28055. (exit $ac_status); } &&
  28056. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28057. { (case "(($ac_try" in
  28058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28059. *) ac_try_echo=$ac_try;;
  28060. esac
  28061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28062. (eval "$ac_try") 2>&5
  28063. ac_status=$?
  28064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28065. (exit $ac_status); }; } &&
  28066. { ac_try='test -s conftest.$ac_objext'
  28067. { (case "(($ac_try" in
  28068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28069. *) ac_try_echo=$ac_try;;
  28070. esac
  28071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28072. (eval "$ac_try") 2>&5
  28073. ac_status=$?
  28074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28075. (exit $ac_status); }; }; then
  28076. ac_cv_type_size_t=yes
  28077. else
  28078. echo "$as_me: failed program was:" >&5
  28079. sed 's/^/| /' conftest.$ac_ext >&5
  28080. ac_cv_type_size_t=no
  28081. fi
  28082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28083. fi
  28084. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  28085. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  28086. if test $ac_cv_type_size_t = yes; then
  28087. :
  28088. else
  28089. cat >>confdefs.h <<_ACEOF
  28090. #define size_t unsigned int
  28091. _ACEOF
  28092. fi
  28093. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  28094. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  28095. if test "${ac_cv_type_signal+set}" = set; then
  28096. echo $ECHO_N "(cached) $ECHO_C" >&6
  28097. else
  28098. cat >conftest.$ac_ext <<_ACEOF
  28099. /* confdefs.h. */
  28100. _ACEOF
  28101. cat confdefs.h >>conftest.$ac_ext
  28102. cat >>conftest.$ac_ext <<_ACEOF
  28103. /* end confdefs.h. */
  28104. #include <sys/types.h>
  28105. #include <signal.h>
  28106. int
  28107. main ()
  28108. {
  28109. return *(signal (0, 0)) (0) == 1;
  28110. ;
  28111. return 0;
  28112. }
  28113. _ACEOF
  28114. rm -f conftest.$ac_objext
  28115. if { (ac_try="$ac_compile"
  28116. case "(($ac_try" in
  28117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28118. *) ac_try_echo=$ac_try;;
  28119. esac
  28120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28121. (eval "$ac_compile") 2>conftest.er1
  28122. ac_status=$?
  28123. grep -v '^ *+' conftest.er1 >conftest.err
  28124. rm -f conftest.er1
  28125. cat conftest.err >&5
  28126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28127. (exit $ac_status); } &&
  28128. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28129. { (case "(($ac_try" in
  28130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28131. *) ac_try_echo=$ac_try;;
  28132. esac
  28133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28134. (eval "$ac_try") 2>&5
  28135. ac_status=$?
  28136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28137. (exit $ac_status); }; } &&
  28138. { ac_try='test -s conftest.$ac_objext'
  28139. { (case "(($ac_try" in
  28140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28141. *) ac_try_echo=$ac_try;;
  28142. esac
  28143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28144. (eval "$ac_try") 2>&5
  28145. ac_status=$?
  28146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28147. (exit $ac_status); }; }; then
  28148. ac_cv_type_signal=int
  28149. else
  28150. echo "$as_me: failed program was:" >&5
  28151. sed 's/^/| /' conftest.$ac_ext >&5
  28152. ac_cv_type_signal=void
  28153. fi
  28154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28155. fi
  28156. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  28157. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  28158. cat >>confdefs.h <<_ACEOF
  28159. #define RETSIGTYPE $ac_cv_type_signal
  28160. _ACEOF
  28161. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  28162. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  28163. if test "${ac_cv_struct_tm+set}" = set; then
  28164. echo $ECHO_N "(cached) $ECHO_C" >&6
  28165. else
  28166. cat >conftest.$ac_ext <<_ACEOF
  28167. /* confdefs.h. */
  28168. _ACEOF
  28169. cat confdefs.h >>conftest.$ac_ext
  28170. cat >>conftest.$ac_ext <<_ACEOF
  28171. /* end confdefs.h. */
  28172. #include <sys/types.h>
  28173. #include <time.h>
  28174. int
  28175. main ()
  28176. {
  28177. struct tm *tp; tp->tm_sec;
  28178. ;
  28179. return 0;
  28180. }
  28181. _ACEOF
  28182. rm -f conftest.$ac_objext
  28183. if { (ac_try="$ac_compile"
  28184. case "(($ac_try" in
  28185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28186. *) ac_try_echo=$ac_try;;
  28187. esac
  28188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28189. (eval "$ac_compile") 2>conftest.er1
  28190. ac_status=$?
  28191. grep -v '^ *+' conftest.er1 >conftest.err
  28192. rm -f conftest.er1
  28193. cat conftest.err >&5
  28194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28195. (exit $ac_status); } &&
  28196. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28197. { (case "(($ac_try" in
  28198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28199. *) ac_try_echo=$ac_try;;
  28200. esac
  28201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28202. (eval "$ac_try") 2>&5
  28203. ac_status=$?
  28204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28205. (exit $ac_status); }; } &&
  28206. { ac_try='test -s conftest.$ac_objext'
  28207. { (case "(($ac_try" in
  28208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28209. *) ac_try_echo=$ac_try;;
  28210. esac
  28211. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28212. (eval "$ac_try") 2>&5
  28213. ac_status=$?
  28214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28215. (exit $ac_status); }; }; then
  28216. ac_cv_struct_tm=time.h
  28217. else
  28218. echo "$as_me: failed program was:" >&5
  28219. sed 's/^/| /' conftest.$ac_ext >&5
  28220. ac_cv_struct_tm=sys/time.h
  28221. fi
  28222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28223. fi
  28224. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  28225. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  28226. if test $ac_cv_struct_tm = sys/time.h; then
  28227. cat >>confdefs.h <<\_ACEOF
  28228. #define TM_IN_SYS_TIME 1
  28229. _ACEOF
  28230. fi
  28231. { echo "$as_me:$LINENO: checking for int64_t" >&5
  28232. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  28233. if test "${ac_cv_type_int64_t+set}" = set; then
  28234. echo $ECHO_N "(cached) $ECHO_C" >&6
  28235. else
  28236. cat >conftest.$ac_ext <<_ACEOF
  28237. /* confdefs.h. */
  28238. _ACEOF
  28239. cat confdefs.h >>conftest.$ac_ext
  28240. cat >>conftest.$ac_ext <<_ACEOF
  28241. /* end confdefs.h. */
  28242. $ac_includes_default
  28243. typedef int64_t ac__type_new_;
  28244. int
  28245. main ()
  28246. {
  28247. if ((ac__type_new_ *) 0)
  28248. return 0;
  28249. if (sizeof (ac__type_new_))
  28250. return 0;
  28251. ;
  28252. return 0;
  28253. }
  28254. _ACEOF
  28255. rm -f conftest.$ac_objext
  28256. if { (ac_try="$ac_compile"
  28257. case "(($ac_try" in
  28258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28259. *) ac_try_echo=$ac_try;;
  28260. esac
  28261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28262. (eval "$ac_compile") 2>conftest.er1
  28263. ac_status=$?
  28264. grep -v '^ *+' conftest.er1 >conftest.err
  28265. rm -f conftest.er1
  28266. cat conftest.err >&5
  28267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28268. (exit $ac_status); } &&
  28269. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28270. { (case "(($ac_try" in
  28271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28272. *) ac_try_echo=$ac_try;;
  28273. esac
  28274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28275. (eval "$ac_try") 2>&5
  28276. ac_status=$?
  28277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28278. (exit $ac_status); }; } &&
  28279. { ac_try='test -s conftest.$ac_objext'
  28280. { (case "(($ac_try" in
  28281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28282. *) ac_try_echo=$ac_try;;
  28283. esac
  28284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28285. (eval "$ac_try") 2>&5
  28286. ac_status=$?
  28287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28288. (exit $ac_status); }; }; then
  28289. ac_cv_type_int64_t=yes
  28290. else
  28291. echo "$as_me: failed program was:" >&5
  28292. sed 's/^/| /' conftest.$ac_ext >&5
  28293. ac_cv_type_int64_t=no
  28294. fi
  28295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28296. fi
  28297. { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  28298. echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
  28299. if test $ac_cv_type_int64_t = yes; then
  28300. cat >>confdefs.h <<_ACEOF
  28301. #define HAVE_INT64_T 1
  28302. _ACEOF
  28303. else
  28304. { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
  28305. echo "$as_me: error: Type int64_t required but not found" >&2;}
  28306. { (exit 1); exit 1; }; }
  28307. fi
  28308. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  28309. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  28310. if test "${ac_cv_type_uint64_t+set}" = set; then
  28311. echo $ECHO_N "(cached) $ECHO_C" >&6
  28312. else
  28313. cat >conftest.$ac_ext <<_ACEOF
  28314. /* confdefs.h. */
  28315. _ACEOF
  28316. cat confdefs.h >>conftest.$ac_ext
  28317. cat >>conftest.$ac_ext <<_ACEOF
  28318. /* end confdefs.h. */
  28319. $ac_includes_default
  28320. typedef uint64_t ac__type_new_;
  28321. int
  28322. main ()
  28323. {
  28324. if ((ac__type_new_ *) 0)
  28325. return 0;
  28326. if (sizeof (ac__type_new_))
  28327. return 0;
  28328. ;
  28329. return 0;
  28330. }
  28331. _ACEOF
  28332. rm -f conftest.$ac_objext
  28333. if { (ac_try="$ac_compile"
  28334. case "(($ac_try" in
  28335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28336. *) ac_try_echo=$ac_try;;
  28337. esac
  28338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28339. (eval "$ac_compile") 2>conftest.er1
  28340. ac_status=$?
  28341. grep -v '^ *+' conftest.er1 >conftest.err
  28342. rm -f conftest.er1
  28343. cat conftest.err >&5
  28344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28345. (exit $ac_status); } &&
  28346. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28347. { (case "(($ac_try" in
  28348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28349. *) ac_try_echo=$ac_try;;
  28350. esac
  28351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28352. (eval "$ac_try") 2>&5
  28353. ac_status=$?
  28354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28355. (exit $ac_status); }; } &&
  28356. { ac_try='test -s conftest.$ac_objext'
  28357. { (case "(($ac_try" in
  28358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28359. *) ac_try_echo=$ac_try;;
  28360. esac
  28361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28362. (eval "$ac_try") 2>&5
  28363. ac_status=$?
  28364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28365. (exit $ac_status); }; }; then
  28366. ac_cv_type_uint64_t=yes
  28367. else
  28368. echo "$as_me: failed program was:" >&5
  28369. sed 's/^/| /' conftest.$ac_ext >&5
  28370. ac_cv_type_uint64_t=no
  28371. fi
  28372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28373. fi
  28374. { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  28375. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
  28376. if test $ac_cv_type_uint64_t = yes; then
  28377. cat >>confdefs.h <<_ACEOF
  28378. #define HAVE_UINT64_T 1
  28379. _ACEOF
  28380. else
  28381. { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  28382. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  28383. if test "${ac_cv_type_u_int64_t+set}" = set; then
  28384. echo $ECHO_N "(cached) $ECHO_C" >&6
  28385. else
  28386. cat >conftest.$ac_ext <<_ACEOF
  28387. /* confdefs.h. */
  28388. _ACEOF
  28389. cat confdefs.h >>conftest.$ac_ext
  28390. cat >>conftest.$ac_ext <<_ACEOF
  28391. /* end confdefs.h. */
  28392. $ac_includes_default
  28393. typedef u_int64_t ac__type_new_;
  28394. int
  28395. main ()
  28396. {
  28397. if ((ac__type_new_ *) 0)
  28398. return 0;
  28399. if (sizeof (ac__type_new_))
  28400. return 0;
  28401. ;
  28402. return 0;
  28403. }
  28404. _ACEOF
  28405. rm -f conftest.$ac_objext
  28406. if { (ac_try="$ac_compile"
  28407. case "(($ac_try" in
  28408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28409. *) ac_try_echo=$ac_try;;
  28410. esac
  28411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28412. (eval "$ac_compile") 2>conftest.er1
  28413. ac_status=$?
  28414. grep -v '^ *+' conftest.er1 >conftest.err
  28415. rm -f conftest.er1
  28416. cat conftest.err >&5
  28417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28418. (exit $ac_status); } &&
  28419. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28420. { (case "(($ac_try" in
  28421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28422. *) ac_try_echo=$ac_try;;
  28423. esac
  28424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28425. (eval "$ac_try") 2>&5
  28426. ac_status=$?
  28427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28428. (exit $ac_status); }; } &&
  28429. { ac_try='test -s conftest.$ac_objext'
  28430. { (case "(($ac_try" in
  28431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28432. *) ac_try_echo=$ac_try;;
  28433. esac
  28434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28435. (eval "$ac_try") 2>&5
  28436. ac_status=$?
  28437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28438. (exit $ac_status); }; }; then
  28439. ac_cv_type_u_int64_t=yes
  28440. else
  28441. echo "$as_me: failed program was:" >&5
  28442. sed 's/^/| /' conftest.$ac_ext >&5
  28443. ac_cv_type_u_int64_t=no
  28444. fi
  28445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28446. fi
  28447. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  28448. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  28449. if test $ac_cv_type_u_int64_t = yes; then
  28450. cat >>confdefs.h <<_ACEOF
  28451. #define HAVE_U_INT64_T 1
  28452. _ACEOF
  28453. else
  28454. { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
  28455. echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
  28456. { (exit 1); exit 1; }; }
  28457. fi
  28458. fi
  28459. for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
  28460. do
  28461. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28462. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  28463. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  28464. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28465. echo $ECHO_N "(cached) $ECHO_C" >&6
  28466. else
  28467. cat >conftest.$ac_ext <<_ACEOF
  28468. /* confdefs.h. */
  28469. _ACEOF
  28470. cat confdefs.h >>conftest.$ac_ext
  28471. cat >>conftest.$ac_ext <<_ACEOF
  28472. /* end confdefs.h. */
  28473. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28474. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28475. #define $ac_func innocuous_$ac_func
  28476. /* System header to define __stub macros and hopefully few prototypes,
  28477. which can conflict with char $ac_func (); below.
  28478. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28479. <limits.h> exists even on freestanding compilers. */
  28480. #ifdef __STDC__
  28481. # include <limits.h>
  28482. #else
  28483. # include <assert.h>
  28484. #endif
  28485. #undef $ac_func
  28486. /* Override any GCC internal prototype to avoid an error.
  28487. Use char because int might match the return type of a GCC
  28488. builtin and then its argument prototype would still apply. */
  28489. #ifdef __cplusplus
  28490. extern "C"
  28491. #endif
  28492. char $ac_func ();
  28493. /* The GNU C library defines this for functions which it implements
  28494. to always fail with ENOSYS. Some functions are actually named
  28495. something starting with __ and the normal name is an alias. */
  28496. #if defined __stub_$ac_func || defined __stub___$ac_func
  28497. choke me
  28498. #endif
  28499. int
  28500. main ()
  28501. {
  28502. return $ac_func ();
  28503. ;
  28504. return 0;
  28505. }
  28506. _ACEOF
  28507. rm -f conftest.$ac_objext conftest$ac_exeext
  28508. if { (ac_try="$ac_link"
  28509. case "(($ac_try" in
  28510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28511. *) ac_try_echo=$ac_try;;
  28512. esac
  28513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28514. (eval "$ac_link") 2>conftest.er1
  28515. ac_status=$?
  28516. grep -v '^ *+' conftest.er1 >conftest.err
  28517. rm -f conftest.er1
  28518. cat conftest.err >&5
  28519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28520. (exit $ac_status); } &&
  28521. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28522. { (case "(($ac_try" in
  28523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28524. *) ac_try_echo=$ac_try;;
  28525. esac
  28526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28527. (eval "$ac_try") 2>&5
  28528. ac_status=$?
  28529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28530. (exit $ac_status); }; } &&
  28531. { ac_try='test -s conftest$ac_exeext'
  28532. { (case "(($ac_try" in
  28533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28534. *) ac_try_echo=$ac_try;;
  28535. esac
  28536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28537. (eval "$ac_try") 2>&5
  28538. ac_status=$?
  28539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28540. (exit $ac_status); }; }; then
  28541. eval "$as_ac_var=yes"
  28542. else
  28543. echo "$as_me: failed program was:" >&5
  28544. sed 's/^/| /' conftest.$ac_ext >&5
  28545. eval "$as_ac_var=no"
  28546. fi
  28547. rm -f core conftest.err conftest.$ac_objext \
  28548. conftest$ac_exeext conftest.$ac_ext
  28549. fi
  28550. ac_res=`eval echo '${'$as_ac_var'}'`
  28551. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28552. echo "${ECHO_T}$ac_res" >&6; }
  28553. if test `eval echo '${'$as_ac_var'}'` = yes; then
  28554. cat >>confdefs.h <<_ACEOF
  28555. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28556. _ACEOF
  28557. fi
  28558. done
  28559. for ac_func in powf fmodf strtof round
  28560. do
  28561. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28562. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  28563. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  28564. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28565. echo $ECHO_N "(cached) $ECHO_C" >&6
  28566. else
  28567. cat >conftest.$ac_ext <<_ACEOF
  28568. /* confdefs.h. */
  28569. _ACEOF
  28570. cat confdefs.h >>conftest.$ac_ext
  28571. cat >>conftest.$ac_ext <<_ACEOF
  28572. /* end confdefs.h. */
  28573. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28574. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28575. #define $ac_func innocuous_$ac_func
  28576. /* System header to define __stub macros and hopefully few prototypes,
  28577. which can conflict with char $ac_func (); below.
  28578. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28579. <limits.h> exists even on freestanding compilers. */
  28580. #ifdef __STDC__
  28581. # include <limits.h>
  28582. #else
  28583. # include <assert.h>
  28584. #endif
  28585. #undef $ac_func
  28586. /* Override any GCC internal prototype to avoid an error.
  28587. Use char because int might match the return type of a GCC
  28588. builtin and then its argument prototype would still apply. */
  28589. #ifdef __cplusplus
  28590. extern "C"
  28591. #endif
  28592. char $ac_func ();
  28593. /* The GNU C library defines this for functions which it implements
  28594. to always fail with ENOSYS. Some functions are actually named
  28595. something starting with __ and the normal name is an alias. */
  28596. #if defined __stub_$ac_func || defined __stub___$ac_func
  28597. choke me
  28598. #endif
  28599. int
  28600. main ()
  28601. {
  28602. return $ac_func ();
  28603. ;
  28604. return 0;
  28605. }
  28606. _ACEOF
  28607. rm -f conftest.$ac_objext conftest$ac_exeext
  28608. if { (ac_try="$ac_link"
  28609. case "(($ac_try" in
  28610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28611. *) ac_try_echo=$ac_try;;
  28612. esac
  28613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28614. (eval "$ac_link") 2>conftest.er1
  28615. ac_status=$?
  28616. grep -v '^ *+' conftest.er1 >conftest.err
  28617. rm -f conftest.er1
  28618. cat conftest.err >&5
  28619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28620. (exit $ac_status); } &&
  28621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28622. { (case "(($ac_try" in
  28623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28624. *) ac_try_echo=$ac_try;;
  28625. esac
  28626. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28627. (eval "$ac_try") 2>&5
  28628. ac_status=$?
  28629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28630. (exit $ac_status); }; } &&
  28631. { ac_try='test -s conftest$ac_exeext'
  28632. { (case "(($ac_try" in
  28633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28634. *) ac_try_echo=$ac_try;;
  28635. esac
  28636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28637. (eval "$ac_try") 2>&5
  28638. ac_status=$?
  28639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28640. (exit $ac_status); }; }; then
  28641. eval "$as_ac_var=yes"
  28642. else
  28643. echo "$as_me: failed program was:" >&5
  28644. sed 's/^/| /' conftest.$ac_ext >&5
  28645. eval "$as_ac_var=no"
  28646. fi
  28647. rm -f core conftest.err conftest.$ac_objext \
  28648. conftest$ac_exeext conftest.$ac_ext
  28649. fi
  28650. ac_res=`eval echo '${'$as_ac_var'}'`
  28651. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28652. echo "${ECHO_T}$ac_res" >&6; }
  28653. if test `eval echo '${'$as_ac_var'}'` = yes; then
  28654. cat >>confdefs.h <<_ACEOF
  28655. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28656. _ACEOF
  28657. fi
  28658. done
  28659. for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
  28660. do
  28661. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28662. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  28663. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  28664. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28665. echo $ECHO_N "(cached) $ECHO_C" >&6
  28666. else
  28667. cat >conftest.$ac_ext <<_ACEOF
  28668. /* confdefs.h. */
  28669. _ACEOF
  28670. cat confdefs.h >>conftest.$ac_ext
  28671. cat >>conftest.$ac_ext <<_ACEOF
  28672. /* end confdefs.h. */
  28673. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28674. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28675. #define $ac_func innocuous_$ac_func
  28676. /* System header to define __stub macros and hopefully few prototypes,
  28677. which can conflict with char $ac_func (); below.
  28678. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28679. <limits.h> exists even on freestanding compilers. */
  28680. #ifdef __STDC__
  28681. # include <limits.h>
  28682. #else
  28683. # include <assert.h>
  28684. #endif
  28685. #undef $ac_func
  28686. /* Override any GCC internal prototype to avoid an error.
  28687. Use char because int might match the return type of a GCC
  28688. builtin and then its argument prototype would still apply. */
  28689. #ifdef __cplusplus
  28690. extern "C"
  28691. #endif
  28692. char $ac_func ();
  28693. /* The GNU C library defines this for functions which it implements
  28694. to always fail with ENOSYS. Some functions are actually named
  28695. something starting with __ and the normal name is an alias. */
  28696. #if defined __stub_$ac_func || defined __stub___$ac_func
  28697. choke me
  28698. #endif
  28699. int
  28700. main ()
  28701. {
  28702. return $ac_func ();
  28703. ;
  28704. return 0;
  28705. }
  28706. _ACEOF
  28707. rm -f conftest.$ac_objext conftest$ac_exeext
  28708. if { (ac_try="$ac_link"
  28709. case "(($ac_try" in
  28710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28711. *) ac_try_echo=$ac_try;;
  28712. esac
  28713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28714. (eval "$ac_link") 2>conftest.er1
  28715. ac_status=$?
  28716. grep -v '^ *+' conftest.er1 >conftest.err
  28717. rm -f conftest.er1
  28718. cat conftest.err >&5
  28719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28720. (exit $ac_status); } &&
  28721. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28722. { (case "(($ac_try" in
  28723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28724. *) ac_try_echo=$ac_try;;
  28725. esac
  28726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28727. (eval "$ac_try") 2>&5
  28728. ac_status=$?
  28729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28730. (exit $ac_status); }; } &&
  28731. { ac_try='test -s conftest$ac_exeext'
  28732. { (case "(($ac_try" in
  28733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28734. *) ac_try_echo=$ac_try;;
  28735. esac
  28736. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28737. (eval "$ac_try") 2>&5
  28738. ac_status=$?
  28739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28740. (exit $ac_status); }; }; then
  28741. eval "$as_ac_var=yes"
  28742. else
  28743. echo "$as_me: failed program was:" >&5
  28744. sed 's/^/| /' conftest.$ac_ext >&5
  28745. eval "$as_ac_var=no"
  28746. fi
  28747. rm -f core conftest.err conftest.$ac_objext \
  28748. conftest$ac_exeext conftest.$ac_ext
  28749. fi
  28750. ac_res=`eval echo '${'$as_ac_var'}'`
  28751. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28752. echo "${ECHO_T}$ac_res" >&6; }
  28753. if test `eval echo '${'$as_ac_var'}'` = yes; then
  28754. cat >>confdefs.h <<_ACEOF
  28755. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28756. _ACEOF
  28757. fi
  28758. done
  28759. for ac_func in isatty mkdtemp mkstemp
  28760. do
  28761. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28762. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  28763. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  28764. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28765. echo $ECHO_N "(cached) $ECHO_C" >&6
  28766. else
  28767. cat >conftest.$ac_ext <<_ACEOF
  28768. /* confdefs.h. */
  28769. _ACEOF
  28770. cat confdefs.h >>conftest.$ac_ext
  28771. cat >>conftest.$ac_ext <<_ACEOF
  28772. /* end confdefs.h. */
  28773. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28774. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28775. #define $ac_func innocuous_$ac_func
  28776. /* System header to define __stub macros and hopefully few prototypes,
  28777. which can conflict with char $ac_func (); below.
  28778. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28779. <limits.h> exists even on freestanding compilers. */
  28780. #ifdef __STDC__
  28781. # include <limits.h>
  28782. #else
  28783. # include <assert.h>
  28784. #endif
  28785. #undef $ac_func
  28786. /* Override any GCC internal prototype to avoid an error.
  28787. Use char because int might match the return type of a GCC
  28788. builtin and then its argument prototype would still apply. */
  28789. #ifdef __cplusplus
  28790. extern "C"
  28791. #endif
  28792. char $ac_func ();
  28793. /* The GNU C library defines this for functions which it implements
  28794. to always fail with ENOSYS. Some functions are actually named
  28795. something starting with __ and the normal name is an alias. */
  28796. #if defined __stub_$ac_func || defined __stub___$ac_func
  28797. choke me
  28798. #endif
  28799. int
  28800. main ()
  28801. {
  28802. return $ac_func ();
  28803. ;
  28804. return 0;
  28805. }
  28806. _ACEOF
  28807. rm -f conftest.$ac_objext conftest$ac_exeext
  28808. if { (ac_try="$ac_link"
  28809. case "(($ac_try" in
  28810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28811. *) ac_try_echo=$ac_try;;
  28812. esac
  28813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28814. (eval "$ac_link") 2>conftest.er1
  28815. ac_status=$?
  28816. grep -v '^ *+' conftest.er1 >conftest.err
  28817. rm -f conftest.er1
  28818. cat conftest.err >&5
  28819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28820. (exit $ac_status); } &&
  28821. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28822. { (case "(($ac_try" in
  28823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28824. *) ac_try_echo=$ac_try;;
  28825. esac
  28826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28827. (eval "$ac_try") 2>&5
  28828. ac_status=$?
  28829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28830. (exit $ac_status); }; } &&
  28831. { ac_try='test -s conftest$ac_exeext'
  28832. { (case "(($ac_try" in
  28833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28834. *) ac_try_echo=$ac_try;;
  28835. esac
  28836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28837. (eval "$ac_try") 2>&5
  28838. ac_status=$?
  28839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28840. (exit $ac_status); }; }; then
  28841. eval "$as_ac_var=yes"
  28842. else
  28843. echo "$as_me: failed program was:" >&5
  28844. sed 's/^/| /' conftest.$ac_ext >&5
  28845. eval "$as_ac_var=no"
  28846. fi
  28847. rm -f core conftest.err conftest.$ac_objext \
  28848. conftest$ac_exeext conftest.$ac_ext
  28849. fi
  28850. ac_res=`eval echo '${'$as_ac_var'}'`
  28851. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28852. echo "${ECHO_T}$ac_res" >&6; }
  28853. if test `eval echo '${'$as_ac_var'}'` = yes; then
  28854. cat >>confdefs.h <<_ACEOF
  28855. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28856. _ACEOF
  28857. fi
  28858. done
  28859. for ac_func in mktemp realpath sbrk setrlimit strdup
  28860. do
  28861. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28862. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  28863. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  28864. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28865. echo $ECHO_N "(cached) $ECHO_C" >&6
  28866. else
  28867. cat >conftest.$ac_ext <<_ACEOF
  28868. /* confdefs.h. */
  28869. _ACEOF
  28870. cat confdefs.h >>conftest.$ac_ext
  28871. cat >>conftest.$ac_ext <<_ACEOF
  28872. /* end confdefs.h. */
  28873. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28874. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28875. #define $ac_func innocuous_$ac_func
  28876. /* System header to define __stub macros and hopefully few prototypes,
  28877. which can conflict with char $ac_func (); below.
  28878. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28879. <limits.h> exists even on freestanding compilers. */
  28880. #ifdef __STDC__
  28881. # include <limits.h>
  28882. #else
  28883. # include <assert.h>
  28884. #endif
  28885. #undef $ac_func
  28886. /* Override any GCC internal prototype to avoid an error.
  28887. Use char because int might match the return type of a GCC
  28888. builtin and then its argument prototype would still apply. */
  28889. #ifdef __cplusplus
  28890. extern "C"
  28891. #endif
  28892. char $ac_func ();
  28893. /* The GNU C library defines this for functions which it implements
  28894. to always fail with ENOSYS. Some functions are actually named
  28895. something starting with __ and the normal name is an alias. */
  28896. #if defined __stub_$ac_func || defined __stub___$ac_func
  28897. choke me
  28898. #endif
  28899. int
  28900. main ()
  28901. {
  28902. return $ac_func ();
  28903. ;
  28904. return 0;
  28905. }
  28906. _ACEOF
  28907. rm -f conftest.$ac_objext conftest$ac_exeext
  28908. if { (ac_try="$ac_link"
  28909. case "(($ac_try" in
  28910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28911. *) ac_try_echo=$ac_try;;
  28912. esac
  28913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28914. (eval "$ac_link") 2>conftest.er1
  28915. ac_status=$?
  28916. grep -v '^ *+' conftest.er1 >conftest.err
  28917. rm -f conftest.er1
  28918. cat conftest.err >&5
  28919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28920. (exit $ac_status); } &&
  28921. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  28922. { (case "(($ac_try" in
  28923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28924. *) ac_try_echo=$ac_try;;
  28925. esac
  28926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28927. (eval "$ac_try") 2>&5
  28928. ac_status=$?
  28929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28930. (exit $ac_status); }; } &&
  28931. { ac_try='test -s conftest$ac_exeext'
  28932. { (case "(($ac_try" in
  28933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28934. *) ac_try_echo=$ac_try;;
  28935. esac
  28936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28937. (eval "$ac_try") 2>&5
  28938. ac_status=$?
  28939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28940. (exit $ac_status); }; }; then
  28941. eval "$as_ac_var=yes"
  28942. else
  28943. echo "$as_me: failed program was:" >&5
  28944. sed 's/^/| /' conftest.$ac_ext >&5
  28945. eval "$as_ac_var=no"
  28946. fi
  28947. rm -f core conftest.err conftest.$ac_objext \
  28948. conftest$ac_exeext conftest.$ac_ext
  28949. fi
  28950. ac_res=`eval echo '${'$as_ac_var'}'`
  28951. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28952. echo "${ECHO_T}$ac_res" >&6; }
  28953. if test `eval echo '${'$as_ac_var'}'` = yes; then
  28954. cat >>confdefs.h <<_ACEOF
  28955. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28956. _ACEOF
  28957. fi
  28958. done
  28959. for ac_func in strerror strerror_r strerror_s
  28960. do
  28961. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28962. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  28963. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  28964. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28965. echo $ECHO_N "(cached) $ECHO_C" >&6
  28966. else
  28967. cat >conftest.$ac_ext <<_ACEOF
  28968. /* confdefs.h. */
  28969. _ACEOF
  28970. cat confdefs.h >>conftest.$ac_ext
  28971. cat >>conftest.$ac_ext <<_ACEOF
  28972. /* end confdefs.h. */
  28973. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28974. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28975. #define $ac_func innocuous_$ac_func
  28976. /* System header to define __stub macros and hopefully few prototypes,
  28977. which can conflict with char $ac_func (); below.
  28978. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28979. <limits.h> exists even on freestanding compilers. */
  28980. #ifdef __STDC__
  28981. # include <limits.h>
  28982. #else
  28983. # include <assert.h>
  28984. #endif
  28985. #undef $ac_func
  28986. /* Override any GCC internal prototype to avoid an error.
  28987. Use char because int might match the return type of a GCC
  28988. builtin and then its argument prototype would still apply. */
  28989. #ifdef __cplusplus
  28990. extern "C"
  28991. #endif
  28992. char $ac_func ();
  28993. /* The GNU C library defines this for functions which it implements
  28994. to always fail with ENOSYS. Some functions are actually named
  28995. something starting with __ and the normal name is an alias. */
  28996. #if defined __stub_$ac_func || defined __stub___$ac_func
  28997. choke me
  28998. #endif
  28999. int
  29000. main ()
  29001. {
  29002. return $ac_func ();
  29003. ;
  29004. return 0;
  29005. }
  29006. _ACEOF
  29007. rm -f conftest.$ac_objext conftest$ac_exeext
  29008. if { (ac_try="$ac_link"
  29009. case "(($ac_try" in
  29010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29011. *) ac_try_echo=$ac_try;;
  29012. esac
  29013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29014. (eval "$ac_link") 2>conftest.er1
  29015. ac_status=$?
  29016. grep -v '^ *+' conftest.er1 >conftest.err
  29017. rm -f conftest.er1
  29018. cat conftest.err >&5
  29019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29020. (exit $ac_status); } &&
  29021. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29022. { (case "(($ac_try" in
  29023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29024. *) ac_try_echo=$ac_try;;
  29025. esac
  29026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29027. (eval "$ac_try") 2>&5
  29028. ac_status=$?
  29029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29030. (exit $ac_status); }; } &&
  29031. { ac_try='test -s conftest$ac_exeext'
  29032. { (case "(($ac_try" in
  29033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29034. *) ac_try_echo=$ac_try;;
  29035. esac
  29036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29037. (eval "$ac_try") 2>&5
  29038. ac_status=$?
  29039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29040. (exit $ac_status); }; }; then
  29041. eval "$as_ac_var=yes"
  29042. else
  29043. echo "$as_me: failed program was:" >&5
  29044. sed 's/^/| /' conftest.$ac_ext >&5
  29045. eval "$as_ac_var=no"
  29046. fi
  29047. rm -f core conftest.err conftest.$ac_objext \
  29048. conftest$ac_exeext conftest.$ac_ext
  29049. fi
  29050. ac_res=`eval echo '${'$as_ac_var'}'`
  29051. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29052. echo "${ECHO_T}$ac_res" >&6; }
  29053. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29054. cat >>confdefs.h <<_ACEOF
  29055. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29056. _ACEOF
  29057. fi
  29058. done
  29059. for ac_func in strtoll strtoq sysconf malloc_zone_statistics
  29060. do
  29061. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29062. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  29063. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  29064. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29065. echo $ECHO_N "(cached) $ECHO_C" >&6
  29066. else
  29067. cat >conftest.$ac_ext <<_ACEOF
  29068. /* confdefs.h. */
  29069. _ACEOF
  29070. cat confdefs.h >>conftest.$ac_ext
  29071. cat >>conftest.$ac_ext <<_ACEOF
  29072. /* end confdefs.h. */
  29073. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29074. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29075. #define $ac_func innocuous_$ac_func
  29076. /* System header to define __stub macros and hopefully few prototypes,
  29077. which can conflict with char $ac_func (); below.
  29078. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29079. <limits.h> exists even on freestanding compilers. */
  29080. #ifdef __STDC__
  29081. # include <limits.h>
  29082. #else
  29083. # include <assert.h>
  29084. #endif
  29085. #undef $ac_func
  29086. /* Override any GCC internal prototype to avoid an error.
  29087. Use char because int might match the return type of a GCC
  29088. builtin and then its argument prototype would still apply. */
  29089. #ifdef __cplusplus
  29090. extern "C"
  29091. #endif
  29092. char $ac_func ();
  29093. /* The GNU C library defines this for functions which it implements
  29094. to always fail with ENOSYS. Some functions are actually named
  29095. something starting with __ and the normal name is an alias. */
  29096. #if defined __stub_$ac_func || defined __stub___$ac_func
  29097. choke me
  29098. #endif
  29099. int
  29100. main ()
  29101. {
  29102. return $ac_func ();
  29103. ;
  29104. return 0;
  29105. }
  29106. _ACEOF
  29107. rm -f conftest.$ac_objext conftest$ac_exeext
  29108. if { (ac_try="$ac_link"
  29109. case "(($ac_try" in
  29110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29111. *) ac_try_echo=$ac_try;;
  29112. esac
  29113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29114. (eval "$ac_link") 2>conftest.er1
  29115. ac_status=$?
  29116. grep -v '^ *+' conftest.er1 >conftest.err
  29117. rm -f conftest.er1
  29118. cat conftest.err >&5
  29119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29120. (exit $ac_status); } &&
  29121. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29122. { (case "(($ac_try" in
  29123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29124. *) ac_try_echo=$ac_try;;
  29125. esac
  29126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29127. (eval "$ac_try") 2>&5
  29128. ac_status=$?
  29129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29130. (exit $ac_status); }; } &&
  29131. { ac_try='test -s conftest$ac_exeext'
  29132. { (case "(($ac_try" in
  29133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29134. *) ac_try_echo=$ac_try;;
  29135. esac
  29136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29137. (eval "$ac_try") 2>&5
  29138. ac_status=$?
  29139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29140. (exit $ac_status); }; }; then
  29141. eval "$as_ac_var=yes"
  29142. else
  29143. echo "$as_me: failed program was:" >&5
  29144. sed 's/^/| /' conftest.$ac_ext >&5
  29145. eval "$as_ac_var=no"
  29146. fi
  29147. rm -f core conftest.err conftest.$ac_objext \
  29148. conftest$ac_exeext conftest.$ac_ext
  29149. fi
  29150. ac_res=`eval echo '${'$as_ac_var'}'`
  29151. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29152. echo "${ECHO_T}$ac_res" >&6; }
  29153. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29154. cat >>confdefs.h <<_ACEOF
  29155. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29156. _ACEOF
  29157. fi
  29158. done
  29159. for ac_func in setjmp longjmp sigsetjmp siglongjmp
  29160. do
  29161. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29162. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  29163. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  29164. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29165. echo $ECHO_N "(cached) $ECHO_C" >&6
  29166. else
  29167. cat >conftest.$ac_ext <<_ACEOF
  29168. /* confdefs.h. */
  29169. _ACEOF
  29170. cat confdefs.h >>conftest.$ac_ext
  29171. cat >>conftest.$ac_ext <<_ACEOF
  29172. /* end confdefs.h. */
  29173. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29174. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29175. #define $ac_func innocuous_$ac_func
  29176. /* System header to define __stub macros and hopefully few prototypes,
  29177. which can conflict with char $ac_func (); below.
  29178. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29179. <limits.h> exists even on freestanding compilers. */
  29180. #ifdef __STDC__
  29181. # include <limits.h>
  29182. #else
  29183. # include <assert.h>
  29184. #endif
  29185. #undef $ac_func
  29186. /* Override any GCC internal prototype to avoid an error.
  29187. Use char because int might match the return type of a GCC
  29188. builtin and then its argument prototype would still apply. */
  29189. #ifdef __cplusplus
  29190. extern "C"
  29191. #endif
  29192. char $ac_func ();
  29193. /* The GNU C library defines this for functions which it implements
  29194. to always fail with ENOSYS. Some functions are actually named
  29195. something starting with __ and the normal name is an alias. */
  29196. #if defined __stub_$ac_func || defined __stub___$ac_func
  29197. choke me
  29198. #endif
  29199. int
  29200. main ()
  29201. {
  29202. return $ac_func ();
  29203. ;
  29204. return 0;
  29205. }
  29206. _ACEOF
  29207. rm -f conftest.$ac_objext conftest$ac_exeext
  29208. if { (ac_try="$ac_link"
  29209. case "(($ac_try" in
  29210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29211. *) ac_try_echo=$ac_try;;
  29212. esac
  29213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29214. (eval "$ac_link") 2>conftest.er1
  29215. ac_status=$?
  29216. grep -v '^ *+' conftest.er1 >conftest.err
  29217. rm -f conftest.er1
  29218. cat conftest.err >&5
  29219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29220. (exit $ac_status); } &&
  29221. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29222. { (case "(($ac_try" in
  29223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29224. *) ac_try_echo=$ac_try;;
  29225. esac
  29226. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29227. (eval "$ac_try") 2>&5
  29228. ac_status=$?
  29229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29230. (exit $ac_status); }; } &&
  29231. { ac_try='test -s conftest$ac_exeext'
  29232. { (case "(($ac_try" in
  29233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29234. *) ac_try_echo=$ac_try;;
  29235. esac
  29236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29237. (eval "$ac_try") 2>&5
  29238. ac_status=$?
  29239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29240. (exit $ac_status); }; }; then
  29241. eval "$as_ac_var=yes"
  29242. else
  29243. echo "$as_me: failed program was:" >&5
  29244. sed 's/^/| /' conftest.$ac_ext >&5
  29245. eval "$as_ac_var=no"
  29246. fi
  29247. rm -f core conftest.err conftest.$ac_objext \
  29248. conftest$ac_exeext conftest.$ac_ext
  29249. fi
  29250. ac_res=`eval echo '${'$as_ac_var'}'`
  29251. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29252. echo "${ECHO_T}$ac_res" >&6; }
  29253. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29254. cat >>confdefs.h <<_ACEOF
  29255. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29256. _ACEOF
  29257. fi
  29258. done
  29259. { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
  29260. echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
  29261. if test "${llvm_cv_c_printf_a+set}" = set; then
  29262. echo $ECHO_N "(cached) $ECHO_C" >&6
  29263. else
  29264. ac_ext=c
  29265. ac_cpp='$CPP $CPPFLAGS'
  29266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29269. if test "$cross_compiling" = yes; then
  29270. llvmac_cv_c_printf_a=no
  29271. else
  29272. cat >conftest.$ac_ext <<_ACEOF
  29273. /* confdefs.h. */
  29274. _ACEOF
  29275. cat confdefs.h >>conftest.$ac_ext
  29276. cat >>conftest.$ac_ext <<_ACEOF
  29277. /* end confdefs.h. */
  29278. #include <stdio.h>
  29279. #include <stdlib.h>
  29280. int
  29281. main ()
  29282. {
  29283. volatile double A, B;
  29284. char Buffer[100];
  29285. A = 1;
  29286. A /= 10.0;
  29287. sprintf(Buffer, "%a", A);
  29288. B = atof(Buffer);
  29289. if (A != B)
  29290. return (1);
  29291. if (A != 0x1.999999999999ap-4)
  29292. return (1);
  29293. return (0);
  29294. ;
  29295. return 0;
  29296. }
  29297. _ACEOF
  29298. rm -f conftest$ac_exeext
  29299. if { (ac_try="$ac_link"
  29300. case "(($ac_try" in
  29301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29302. *) ac_try_echo=$ac_try;;
  29303. esac
  29304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29305. (eval "$ac_link") 2>&5
  29306. ac_status=$?
  29307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29308. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29309. { (case "(($ac_try" in
  29310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29311. *) ac_try_echo=$ac_try;;
  29312. esac
  29313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29314. (eval "$ac_try") 2>&5
  29315. ac_status=$?
  29316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29317. (exit $ac_status); }; }; then
  29318. llvm_cv_c_printf_a=yes
  29319. else
  29320. echo "$as_me: program exited with status $ac_status" >&5
  29321. echo "$as_me: failed program was:" >&5
  29322. sed 's/^/| /' conftest.$ac_ext >&5
  29323. ( exit $ac_status )
  29324. llvmac_cv_c_printf_a=no
  29325. fi
  29326. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29327. fi
  29328. ac_ext=c
  29329. ac_cpp='$CPP $CPPFLAGS'
  29330. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29331. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29332. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29333. fi
  29334. { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
  29335. echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
  29336. if test "$llvm_cv_c_printf_a" = "yes"; then
  29337. cat >>confdefs.h <<\_ACEOF
  29338. #define HAVE_PRINTF_A 1
  29339. _ACEOF
  29340. fi
  29341. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  29342. # for constant arguments. Useless!
  29343. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  29344. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  29345. if test "${ac_cv_working_alloca_h+set}" = set; then
  29346. echo $ECHO_N "(cached) $ECHO_C" >&6
  29347. else
  29348. cat >conftest.$ac_ext <<_ACEOF
  29349. /* confdefs.h. */
  29350. _ACEOF
  29351. cat confdefs.h >>conftest.$ac_ext
  29352. cat >>conftest.$ac_ext <<_ACEOF
  29353. /* end confdefs.h. */
  29354. #include <alloca.h>
  29355. int
  29356. main ()
  29357. {
  29358. char *p = (char *) alloca (2 * sizeof (int));
  29359. if (p) return 0;
  29360. ;
  29361. return 0;
  29362. }
  29363. _ACEOF
  29364. rm -f conftest.$ac_objext conftest$ac_exeext
  29365. if { (ac_try="$ac_link"
  29366. case "(($ac_try" in
  29367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29368. *) ac_try_echo=$ac_try;;
  29369. esac
  29370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29371. (eval "$ac_link") 2>conftest.er1
  29372. ac_status=$?
  29373. grep -v '^ *+' conftest.er1 >conftest.err
  29374. rm -f conftest.er1
  29375. cat conftest.err >&5
  29376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29377. (exit $ac_status); } &&
  29378. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29379. { (case "(($ac_try" in
  29380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29381. *) ac_try_echo=$ac_try;;
  29382. esac
  29383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29384. (eval "$ac_try") 2>&5
  29385. ac_status=$?
  29386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29387. (exit $ac_status); }; } &&
  29388. { ac_try='test -s conftest$ac_exeext'
  29389. { (case "(($ac_try" in
  29390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29391. *) ac_try_echo=$ac_try;;
  29392. esac
  29393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29394. (eval "$ac_try") 2>&5
  29395. ac_status=$?
  29396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29397. (exit $ac_status); }; }; then
  29398. ac_cv_working_alloca_h=yes
  29399. else
  29400. echo "$as_me: failed program was:" >&5
  29401. sed 's/^/| /' conftest.$ac_ext >&5
  29402. ac_cv_working_alloca_h=no
  29403. fi
  29404. rm -f core conftest.err conftest.$ac_objext \
  29405. conftest$ac_exeext conftest.$ac_ext
  29406. fi
  29407. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  29408. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  29409. if test $ac_cv_working_alloca_h = yes; then
  29410. cat >>confdefs.h <<\_ACEOF
  29411. #define HAVE_ALLOCA_H 1
  29412. _ACEOF
  29413. fi
  29414. { echo "$as_me:$LINENO: checking for alloca" >&5
  29415. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  29416. if test "${ac_cv_func_alloca_works+set}" = set; then
  29417. echo $ECHO_N "(cached) $ECHO_C" >&6
  29418. else
  29419. cat >conftest.$ac_ext <<_ACEOF
  29420. /* confdefs.h. */
  29421. _ACEOF
  29422. cat confdefs.h >>conftest.$ac_ext
  29423. cat >>conftest.$ac_ext <<_ACEOF
  29424. /* end confdefs.h. */
  29425. #ifdef __GNUC__
  29426. # define alloca __builtin_alloca
  29427. #else
  29428. # ifdef _MSC_VER
  29429. # include <malloc.h>
  29430. # define alloca _alloca
  29431. # else
  29432. # if HAVE_ALLOCA_H
  29433. # include <alloca.h>
  29434. # else
  29435. # ifdef _AIX
  29436. #pragma alloca
  29437. # else
  29438. # ifndef alloca /* predefined by HP cc +Olibcalls */
  29439. char *alloca ();
  29440. # endif
  29441. # endif
  29442. # endif
  29443. # endif
  29444. #endif
  29445. int
  29446. main ()
  29447. {
  29448. char *p = (char *) alloca (1);
  29449. if (p) return 0;
  29450. ;
  29451. return 0;
  29452. }
  29453. _ACEOF
  29454. rm -f conftest.$ac_objext conftest$ac_exeext
  29455. if { (ac_try="$ac_link"
  29456. case "(($ac_try" in
  29457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29458. *) ac_try_echo=$ac_try;;
  29459. esac
  29460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29461. (eval "$ac_link") 2>conftest.er1
  29462. ac_status=$?
  29463. grep -v '^ *+' conftest.er1 >conftest.err
  29464. rm -f conftest.er1
  29465. cat conftest.err >&5
  29466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29467. (exit $ac_status); } &&
  29468. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29469. { (case "(($ac_try" in
  29470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29471. *) ac_try_echo=$ac_try;;
  29472. esac
  29473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29474. (eval "$ac_try") 2>&5
  29475. ac_status=$?
  29476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29477. (exit $ac_status); }; } &&
  29478. { ac_try='test -s conftest$ac_exeext'
  29479. { (case "(($ac_try" in
  29480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29481. *) ac_try_echo=$ac_try;;
  29482. esac
  29483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29484. (eval "$ac_try") 2>&5
  29485. ac_status=$?
  29486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29487. (exit $ac_status); }; }; then
  29488. ac_cv_func_alloca_works=yes
  29489. else
  29490. echo "$as_me: failed program was:" >&5
  29491. sed 's/^/| /' conftest.$ac_ext >&5
  29492. ac_cv_func_alloca_works=no
  29493. fi
  29494. rm -f core conftest.err conftest.$ac_objext \
  29495. conftest$ac_exeext conftest.$ac_ext
  29496. fi
  29497. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  29498. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  29499. if test $ac_cv_func_alloca_works = yes; then
  29500. cat >>confdefs.h <<\_ACEOF
  29501. #define HAVE_ALLOCA 1
  29502. _ACEOF
  29503. else
  29504. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  29505. # that cause trouble. Some versions do not even contain alloca or
  29506. # contain a buggy version. If you still want to use their alloca,
  29507. # use ar to extract alloca.o from them instead of compiling alloca.c.
  29508. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  29509. cat >>confdefs.h <<\_ACEOF
  29510. #define C_ALLOCA 1
  29511. _ACEOF
  29512. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  29513. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  29514. if test "${ac_cv_os_cray+set}" = set; then
  29515. echo $ECHO_N "(cached) $ECHO_C" >&6
  29516. else
  29517. cat >conftest.$ac_ext <<_ACEOF
  29518. /* confdefs.h. */
  29519. _ACEOF
  29520. cat confdefs.h >>conftest.$ac_ext
  29521. cat >>conftest.$ac_ext <<_ACEOF
  29522. /* end confdefs.h. */
  29523. #if defined CRAY && ! defined CRAY2
  29524. webecray
  29525. #else
  29526. wenotbecray
  29527. #endif
  29528. _ACEOF
  29529. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29530. $EGREP "webecray" >/dev/null 2>&1; then
  29531. ac_cv_os_cray=yes
  29532. else
  29533. ac_cv_os_cray=no
  29534. fi
  29535. rm -f conftest*
  29536. fi
  29537. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  29538. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  29539. if test $ac_cv_os_cray = yes; then
  29540. for ac_func in _getb67 GETB67 getb67; do
  29541. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29542. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  29543. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  29544. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29545. echo $ECHO_N "(cached) $ECHO_C" >&6
  29546. else
  29547. cat >conftest.$ac_ext <<_ACEOF
  29548. /* confdefs.h. */
  29549. _ACEOF
  29550. cat confdefs.h >>conftest.$ac_ext
  29551. cat >>conftest.$ac_ext <<_ACEOF
  29552. /* end confdefs.h. */
  29553. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29554. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29555. #define $ac_func innocuous_$ac_func
  29556. /* System header to define __stub macros and hopefully few prototypes,
  29557. which can conflict with char $ac_func (); below.
  29558. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29559. <limits.h> exists even on freestanding compilers. */
  29560. #ifdef __STDC__
  29561. # include <limits.h>
  29562. #else
  29563. # include <assert.h>
  29564. #endif
  29565. #undef $ac_func
  29566. /* Override any GCC internal prototype to avoid an error.
  29567. Use char because int might match the return type of a GCC
  29568. builtin and then its argument prototype would still apply. */
  29569. #ifdef __cplusplus
  29570. extern "C"
  29571. #endif
  29572. char $ac_func ();
  29573. /* The GNU C library defines this for functions which it implements
  29574. to always fail with ENOSYS. Some functions are actually named
  29575. something starting with __ and the normal name is an alias. */
  29576. #if defined __stub_$ac_func || defined __stub___$ac_func
  29577. choke me
  29578. #endif
  29579. int
  29580. main ()
  29581. {
  29582. return $ac_func ();
  29583. ;
  29584. return 0;
  29585. }
  29586. _ACEOF
  29587. rm -f conftest.$ac_objext conftest$ac_exeext
  29588. if { (ac_try="$ac_link"
  29589. case "(($ac_try" in
  29590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29591. *) ac_try_echo=$ac_try;;
  29592. esac
  29593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29594. (eval "$ac_link") 2>conftest.er1
  29595. ac_status=$?
  29596. grep -v '^ *+' conftest.er1 >conftest.err
  29597. rm -f conftest.er1
  29598. cat conftest.err >&5
  29599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29600. (exit $ac_status); } &&
  29601. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29602. { (case "(($ac_try" in
  29603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29604. *) ac_try_echo=$ac_try;;
  29605. esac
  29606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29607. (eval "$ac_try") 2>&5
  29608. ac_status=$?
  29609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29610. (exit $ac_status); }; } &&
  29611. { ac_try='test -s conftest$ac_exeext'
  29612. { (case "(($ac_try" in
  29613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29614. *) ac_try_echo=$ac_try;;
  29615. esac
  29616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29617. (eval "$ac_try") 2>&5
  29618. ac_status=$?
  29619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29620. (exit $ac_status); }; }; then
  29621. eval "$as_ac_var=yes"
  29622. else
  29623. echo "$as_me: failed program was:" >&5
  29624. sed 's/^/| /' conftest.$ac_ext >&5
  29625. eval "$as_ac_var=no"
  29626. fi
  29627. rm -f core conftest.err conftest.$ac_objext \
  29628. conftest$ac_exeext conftest.$ac_ext
  29629. fi
  29630. ac_res=`eval echo '${'$as_ac_var'}'`
  29631. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29632. echo "${ECHO_T}$ac_res" >&6; }
  29633. if test `eval echo '${'$as_ac_var'}'` = yes; then
  29634. cat >>confdefs.h <<_ACEOF
  29635. #define CRAY_STACKSEG_END $ac_func
  29636. _ACEOF
  29637. break
  29638. fi
  29639. done
  29640. fi
  29641. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  29642. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  29643. if test "${ac_cv_c_stack_direction+set}" = set; then
  29644. echo $ECHO_N "(cached) $ECHO_C" >&6
  29645. else
  29646. if test "$cross_compiling" = yes; then
  29647. ac_cv_c_stack_direction=0
  29648. else
  29649. cat >conftest.$ac_ext <<_ACEOF
  29650. /* confdefs.h. */
  29651. _ACEOF
  29652. cat confdefs.h >>conftest.$ac_ext
  29653. cat >>conftest.$ac_ext <<_ACEOF
  29654. /* end confdefs.h. */
  29655. $ac_includes_default
  29656. int
  29657. find_stack_direction ()
  29658. {
  29659. static char *addr = 0;
  29660. auto char dummy;
  29661. if (addr == 0)
  29662. {
  29663. addr = &dummy;
  29664. return find_stack_direction ();
  29665. }
  29666. else
  29667. return (&dummy > addr) ? 1 : -1;
  29668. }
  29669. int
  29670. main ()
  29671. {
  29672. return find_stack_direction () < 0;
  29673. }
  29674. _ACEOF
  29675. rm -f conftest$ac_exeext
  29676. if { (ac_try="$ac_link"
  29677. case "(($ac_try" in
  29678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29679. *) ac_try_echo=$ac_try;;
  29680. esac
  29681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29682. (eval "$ac_link") 2>&5
  29683. ac_status=$?
  29684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29685. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29686. { (case "(($ac_try" in
  29687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29688. *) ac_try_echo=$ac_try;;
  29689. esac
  29690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29691. (eval "$ac_try") 2>&5
  29692. ac_status=$?
  29693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29694. (exit $ac_status); }; }; then
  29695. ac_cv_c_stack_direction=1
  29696. else
  29697. echo "$as_me: program exited with status $ac_status" >&5
  29698. echo "$as_me: failed program was:" >&5
  29699. sed 's/^/| /' conftest.$ac_ext >&5
  29700. ( exit $ac_status )
  29701. ac_cv_c_stack_direction=-1
  29702. fi
  29703. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29704. fi
  29705. fi
  29706. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  29707. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  29708. cat >>confdefs.h <<_ACEOF
  29709. #define STACK_DIRECTION $ac_cv_c_stack_direction
  29710. _ACEOF
  29711. fi
  29712. { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
  29713. echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
  29714. if test "${ac_cv_func_rand48+set}" = set; then
  29715. echo $ECHO_N "(cached) $ECHO_C" >&6
  29716. else
  29717. ac_ext=cpp
  29718. ac_cpp='$CXXCPP $CPPFLAGS'
  29719. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29720. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29721. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29722. cat >conftest.$ac_ext <<_ACEOF
  29723. /* confdefs.h. */
  29724. _ACEOF
  29725. cat confdefs.h >>conftest.$ac_ext
  29726. cat >>conftest.$ac_ext <<_ACEOF
  29727. /* end confdefs.h. */
  29728. #include <stdlib.h>
  29729. int
  29730. main ()
  29731. {
  29732. srand48(0);lrand48();drand48();
  29733. ;
  29734. return 0;
  29735. }
  29736. _ACEOF
  29737. rm -f conftest.$ac_objext
  29738. if { (ac_try="$ac_compile"
  29739. case "(($ac_try" in
  29740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29741. *) ac_try_echo=$ac_try;;
  29742. esac
  29743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29744. (eval "$ac_compile") 2>conftest.er1
  29745. ac_status=$?
  29746. grep -v '^ *+' conftest.er1 >conftest.err
  29747. rm -f conftest.er1
  29748. cat conftest.err >&5
  29749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29750. (exit $ac_status); } &&
  29751. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29752. { (case "(($ac_try" in
  29753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29754. *) ac_try_echo=$ac_try;;
  29755. esac
  29756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29757. (eval "$ac_try") 2>&5
  29758. ac_status=$?
  29759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29760. (exit $ac_status); }; } &&
  29761. { ac_try='test -s conftest.$ac_objext'
  29762. { (case "(($ac_try" in
  29763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29764. *) ac_try_echo=$ac_try;;
  29765. esac
  29766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29767. (eval "$ac_try") 2>&5
  29768. ac_status=$?
  29769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29770. (exit $ac_status); }; }; then
  29771. ac_cv_func_rand48=yes
  29772. else
  29773. echo "$as_me: failed program was:" >&5
  29774. sed 's/^/| /' conftest.$ac_ext >&5
  29775. ac_cv_func_rand48=no
  29776. fi
  29777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29778. ac_ext=c
  29779. ac_cpp='$CPP $CPPFLAGS'
  29780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29783. fi
  29784. { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
  29785. echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
  29786. if test "$ac_cv_func_rand48" = "yes" ; then
  29787. cat >>confdefs.h <<\_ACEOF
  29788. #define HAVE_RAND48 1
  29789. _ACEOF
  29790. fi
  29791. { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
  29792. echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
  29793. if test "${ac_cv_cxx_namespaces+set}" = set; then
  29794. echo $ECHO_N "(cached) $ECHO_C" >&6
  29795. else
  29796. ac_ext=cpp
  29797. ac_cpp='$CXXCPP $CPPFLAGS'
  29798. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29799. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29800. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29801. cat >conftest.$ac_ext <<_ACEOF
  29802. /* confdefs.h. */
  29803. _ACEOF
  29804. cat confdefs.h >>conftest.$ac_ext
  29805. cat >>conftest.$ac_ext <<_ACEOF
  29806. /* end confdefs.h. */
  29807. namespace Outer { namespace Inner { int i = 0; }}
  29808. int
  29809. main ()
  29810. {
  29811. using namespace Outer::Inner; return i;
  29812. ;
  29813. return 0;
  29814. }
  29815. _ACEOF
  29816. rm -f conftest.$ac_objext
  29817. if { (ac_try="$ac_compile"
  29818. case "(($ac_try" in
  29819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29820. *) ac_try_echo=$ac_try;;
  29821. esac
  29822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29823. (eval "$ac_compile") 2>conftest.er1
  29824. ac_status=$?
  29825. grep -v '^ *+' conftest.er1 >conftest.err
  29826. rm -f conftest.er1
  29827. cat conftest.err >&5
  29828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29829. (exit $ac_status); } &&
  29830. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29831. { (case "(($ac_try" in
  29832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29833. *) ac_try_echo=$ac_try;;
  29834. esac
  29835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29836. (eval "$ac_try") 2>&5
  29837. ac_status=$?
  29838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29839. (exit $ac_status); }; } &&
  29840. { ac_try='test -s conftest.$ac_objext'
  29841. { (case "(($ac_try" in
  29842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29843. *) ac_try_echo=$ac_try;;
  29844. esac
  29845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29846. (eval "$ac_try") 2>&5
  29847. ac_status=$?
  29848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29849. (exit $ac_status); }; }; then
  29850. ac_cv_cxx_namespaces=yes
  29851. else
  29852. echo "$as_me: failed program was:" >&5
  29853. sed 's/^/| /' conftest.$ac_ext >&5
  29854. ac_cv_cxx_namespaces=no
  29855. fi
  29856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29857. ac_ext=c
  29858. ac_cpp='$CPP $CPPFLAGS'
  29859. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29860. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29861. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29862. fi
  29863. { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
  29864. echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
  29865. if test "$ac_cv_cxx_namespaces" = yes; then
  29866. cat >>confdefs.h <<\_ACEOF
  29867. #define HAVE_NAMESPACES
  29868. _ACEOF
  29869. fi
  29870. { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
  29871. echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
  29872. if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
  29873. echo $ECHO_N "(cached) $ECHO_C" >&6
  29874. else
  29875. ac_ext=cpp
  29876. ac_cpp='$CXXCPP $CPPFLAGS'
  29877. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29878. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29879. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29880. cat >conftest.$ac_ext <<_ACEOF
  29881. /* confdefs.h. */
  29882. _ACEOF
  29883. cat confdefs.h >>conftest.$ac_ext
  29884. cat >>conftest.$ac_ext <<_ACEOF
  29885. /* end confdefs.h. */
  29886. #include <iterator>
  29887. #ifdef HAVE_NAMESPACES
  29888. using namespace std;
  29889. #endif
  29890. int
  29891. main ()
  29892. {
  29893. iterator<int,int,int> t; return 0;
  29894. ;
  29895. return 0;
  29896. }
  29897. _ACEOF
  29898. rm -f conftest.$ac_objext
  29899. if { (ac_try="$ac_compile"
  29900. case "(($ac_try" in
  29901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29902. *) ac_try_echo=$ac_try;;
  29903. esac
  29904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29905. (eval "$ac_compile") 2>conftest.er1
  29906. ac_status=$?
  29907. grep -v '^ *+' conftest.er1 >conftest.err
  29908. rm -f conftest.er1
  29909. cat conftest.err >&5
  29910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29911. (exit $ac_status); } &&
  29912. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29913. { (case "(($ac_try" in
  29914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29915. *) ac_try_echo=$ac_try;;
  29916. esac
  29917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29918. (eval "$ac_try") 2>&5
  29919. ac_status=$?
  29920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29921. (exit $ac_status); }; } &&
  29922. { ac_try='test -s conftest.$ac_objext'
  29923. { (case "(($ac_try" in
  29924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29925. *) ac_try_echo=$ac_try;;
  29926. esac
  29927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29928. (eval "$ac_try") 2>&5
  29929. ac_status=$?
  29930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29931. (exit $ac_status); }; }; then
  29932. ac_cv_cxx_have_std_iterator=yes
  29933. else
  29934. echo "$as_me: failed program was:" >&5
  29935. sed 's/^/| /' conftest.$ac_ext >&5
  29936. ac_cv_cxx_have_std_iterator=no
  29937. fi
  29938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29939. ac_ext=c
  29940. ac_cpp='$CPP $CPPFLAGS'
  29941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29944. fi
  29945. { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
  29946. echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
  29947. if test "$ac_cv_cxx_have_std_iterator" = yes
  29948. then
  29949. cat >>confdefs.h <<\_ACEOF
  29950. #define HAVE_STD_ITERATOR 1
  29951. _ACEOF
  29952. else
  29953. cat >>confdefs.h <<\_ACEOF
  29954. #define HAVE_STD_ITERATOR 0
  29955. _ACEOF
  29956. fi
  29957. { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
  29958. echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
  29959. if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
  29960. echo $ECHO_N "(cached) $ECHO_C" >&6
  29961. else
  29962. ac_ext=cpp
  29963. ac_cpp='$CXXCPP $CPPFLAGS'
  29964. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29965. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29966. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29967. cat >conftest.$ac_ext <<_ACEOF
  29968. /* confdefs.h. */
  29969. _ACEOF
  29970. cat confdefs.h >>conftest.$ac_ext
  29971. cat >>conftest.$ac_ext <<_ACEOF
  29972. /* end confdefs.h. */
  29973. #include <iterator>
  29974. #ifdef HAVE_NAMESPACES
  29975. using namespace std;
  29976. #endif
  29977. int
  29978. main ()
  29979. {
  29980. bidirectional_iterator<int,int> t; return 0;
  29981. ;
  29982. return 0;
  29983. }
  29984. _ACEOF
  29985. rm -f conftest.$ac_objext
  29986. if { (ac_try="$ac_compile"
  29987. case "(($ac_try" in
  29988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29989. *) ac_try_echo=$ac_try;;
  29990. esac
  29991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29992. (eval "$ac_compile") 2>conftest.er1
  29993. ac_status=$?
  29994. grep -v '^ *+' conftest.er1 >conftest.err
  29995. rm -f conftest.er1
  29996. cat conftest.err >&5
  29997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29998. (exit $ac_status); } &&
  29999. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30000. { (case "(($ac_try" in
  30001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30002. *) ac_try_echo=$ac_try;;
  30003. esac
  30004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30005. (eval "$ac_try") 2>&5
  30006. ac_status=$?
  30007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30008. (exit $ac_status); }; } &&
  30009. { ac_try='test -s conftest.$ac_objext'
  30010. { (case "(($ac_try" in
  30011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30012. *) ac_try_echo=$ac_try;;
  30013. esac
  30014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30015. (eval "$ac_try") 2>&5
  30016. ac_status=$?
  30017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30018. (exit $ac_status); }; }; then
  30019. ac_cv_cxx_have_bi_iterator=yes
  30020. else
  30021. echo "$as_me: failed program was:" >&5
  30022. sed 's/^/| /' conftest.$ac_ext >&5
  30023. ac_cv_cxx_have_bi_iterator=no
  30024. fi
  30025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30026. ac_ext=c
  30027. ac_cpp='$CPP $CPPFLAGS'
  30028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30031. fi
  30032. { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
  30033. echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
  30034. if test "$ac_cv_cxx_have_bi_iterator" = yes
  30035. then
  30036. cat >>confdefs.h <<\_ACEOF
  30037. #define HAVE_BI_ITERATOR 1
  30038. _ACEOF
  30039. else
  30040. cat >>confdefs.h <<\_ACEOF
  30041. #define HAVE_BI_ITERATOR 0
  30042. _ACEOF
  30043. fi
  30044. { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
  30045. echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
  30046. if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
  30047. echo $ECHO_N "(cached) $ECHO_C" >&6
  30048. else
  30049. ac_ext=cpp
  30050. ac_cpp='$CXXCPP $CPPFLAGS'
  30051. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30052. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30053. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30054. cat >conftest.$ac_ext <<_ACEOF
  30055. /* confdefs.h. */
  30056. _ACEOF
  30057. cat confdefs.h >>conftest.$ac_ext
  30058. cat >>conftest.$ac_ext <<_ACEOF
  30059. /* end confdefs.h. */
  30060. #include <iterator>
  30061. #ifdef HAVE_NAMESPACES
  30062. using namespace std;
  30063. #endif
  30064. int
  30065. main ()
  30066. {
  30067. forward_iterator<int,int> t; return 0;
  30068. ;
  30069. return 0;
  30070. }
  30071. _ACEOF
  30072. rm -f conftest.$ac_objext
  30073. if { (ac_try="$ac_compile"
  30074. case "(($ac_try" in
  30075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30076. *) ac_try_echo=$ac_try;;
  30077. esac
  30078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30079. (eval "$ac_compile") 2>conftest.er1
  30080. ac_status=$?
  30081. grep -v '^ *+' conftest.er1 >conftest.err
  30082. rm -f conftest.er1
  30083. cat conftest.err >&5
  30084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30085. (exit $ac_status); } &&
  30086. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30087. { (case "(($ac_try" in
  30088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30089. *) ac_try_echo=$ac_try;;
  30090. esac
  30091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30092. (eval "$ac_try") 2>&5
  30093. ac_status=$?
  30094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30095. (exit $ac_status); }; } &&
  30096. { ac_try='test -s conftest.$ac_objext'
  30097. { (case "(($ac_try" in
  30098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30099. *) ac_try_echo=$ac_try;;
  30100. esac
  30101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30102. (eval "$ac_try") 2>&5
  30103. ac_status=$?
  30104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30105. (exit $ac_status); }; }; then
  30106. ac_cv_cxx_have_fwd_iterator=yes
  30107. else
  30108. echo "$as_me: failed program was:" >&5
  30109. sed 's/^/| /' conftest.$ac_ext >&5
  30110. ac_cv_cxx_have_fwd_iterator=no
  30111. fi
  30112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30113. ac_ext=c
  30114. ac_cpp='$CPP $CPPFLAGS'
  30115. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30116. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30117. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30118. fi
  30119. { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
  30120. echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
  30121. if test "$ac_cv_cxx_have_fwd_iterator" = yes
  30122. then
  30123. cat >>confdefs.h <<\_ACEOF
  30124. #define HAVE_FWD_ITERATOR 1
  30125. _ACEOF
  30126. else
  30127. cat >>confdefs.h <<\_ACEOF
  30128. #define HAVE_FWD_ITERATOR 0
  30129. _ACEOF
  30130. fi
  30131. { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
  30132. echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
  30133. if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
  30134. echo $ECHO_N "(cached) $ECHO_C" >&6
  30135. else
  30136. ac_ext=cpp
  30137. ac_cpp='$CXXCPP $CPPFLAGS'
  30138. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30139. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30140. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30141. cat >conftest.$ac_ext <<_ACEOF
  30142. /* confdefs.h. */
  30143. _ACEOF
  30144. cat confdefs.h >>conftest.$ac_ext
  30145. cat >>conftest.$ac_ext <<_ACEOF
  30146. /* end confdefs.h. */
  30147. #include <math.h>
  30148. int
  30149. main ()
  30150. {
  30151. float f; isnan(f);
  30152. ;
  30153. return 0;
  30154. }
  30155. _ACEOF
  30156. rm -f conftest.$ac_objext
  30157. if { (ac_try="$ac_compile"
  30158. case "(($ac_try" in
  30159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30160. *) ac_try_echo=$ac_try;;
  30161. esac
  30162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30163. (eval "$ac_compile") 2>conftest.er1
  30164. ac_status=$?
  30165. grep -v '^ *+' conftest.er1 >conftest.err
  30166. rm -f conftest.er1
  30167. cat conftest.err >&5
  30168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30169. (exit $ac_status); } &&
  30170. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30171. { (case "(($ac_try" in
  30172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30173. *) ac_try_echo=$ac_try;;
  30174. esac
  30175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30176. (eval "$ac_try") 2>&5
  30177. ac_status=$?
  30178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30179. (exit $ac_status); }; } &&
  30180. { ac_try='test -s conftest.$ac_objext'
  30181. { (case "(($ac_try" in
  30182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30183. *) ac_try_echo=$ac_try;;
  30184. esac
  30185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30186. (eval "$ac_try") 2>&5
  30187. ac_status=$?
  30188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30189. (exit $ac_status); }; }; then
  30190. ac_cv_func_isnan_in_math_h=yes
  30191. else
  30192. echo "$as_me: failed program was:" >&5
  30193. sed 's/^/| /' conftest.$ac_ext >&5
  30194. ac_cv_func_isnan_in_math_h=no
  30195. fi
  30196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30197. ac_ext=c
  30198. ac_cpp='$CPP $CPPFLAGS'
  30199. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30200. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30201. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30202. fi
  30203. { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
  30204. echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
  30205. if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
  30206. cat >>confdefs.h <<\_ACEOF
  30207. #define HAVE_ISNAN_IN_MATH_H 1
  30208. _ACEOF
  30209. fi
  30210. { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
  30211. echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
  30212. if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
  30213. echo $ECHO_N "(cached) $ECHO_C" >&6
  30214. else
  30215. ac_ext=cpp
  30216. ac_cpp='$CXXCPP $CPPFLAGS'
  30217. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30218. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30219. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30220. cat >conftest.$ac_ext <<_ACEOF
  30221. /* confdefs.h. */
  30222. _ACEOF
  30223. cat confdefs.h >>conftest.$ac_ext
  30224. cat >>conftest.$ac_ext <<_ACEOF
  30225. /* end confdefs.h. */
  30226. #include <cmath>
  30227. int
  30228. main ()
  30229. {
  30230. float f; isnan(f);
  30231. ;
  30232. return 0;
  30233. }
  30234. _ACEOF
  30235. rm -f conftest.$ac_objext
  30236. if { (ac_try="$ac_compile"
  30237. case "(($ac_try" in
  30238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30239. *) ac_try_echo=$ac_try;;
  30240. esac
  30241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30242. (eval "$ac_compile") 2>conftest.er1
  30243. ac_status=$?
  30244. grep -v '^ *+' conftest.er1 >conftest.err
  30245. rm -f conftest.er1
  30246. cat conftest.err >&5
  30247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30248. (exit $ac_status); } &&
  30249. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30250. { (case "(($ac_try" in
  30251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30252. *) ac_try_echo=$ac_try;;
  30253. esac
  30254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30255. (eval "$ac_try") 2>&5
  30256. ac_status=$?
  30257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30258. (exit $ac_status); }; } &&
  30259. { ac_try='test -s conftest.$ac_objext'
  30260. { (case "(($ac_try" in
  30261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30262. *) ac_try_echo=$ac_try;;
  30263. esac
  30264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30265. (eval "$ac_try") 2>&5
  30266. ac_status=$?
  30267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30268. (exit $ac_status); }; }; then
  30269. ac_cv_func_isnan_in_cmath=yes
  30270. else
  30271. echo "$as_me: failed program was:" >&5
  30272. sed 's/^/| /' conftest.$ac_ext >&5
  30273. ac_cv_func_isnan_in_cmath=no
  30274. fi
  30275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30276. ac_ext=c
  30277. ac_cpp='$CPP $CPPFLAGS'
  30278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30281. fi
  30282. { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
  30283. echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
  30284. if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
  30285. cat >>confdefs.h <<\_ACEOF
  30286. #define HAVE_ISNAN_IN_CMATH 1
  30287. _ACEOF
  30288. fi
  30289. { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
  30290. echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
  30291. if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
  30292. echo $ECHO_N "(cached) $ECHO_C" >&6
  30293. else
  30294. ac_ext=cpp
  30295. ac_cpp='$CXXCPP $CPPFLAGS'
  30296. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30297. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30298. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30299. cat >conftest.$ac_ext <<_ACEOF
  30300. /* confdefs.h. */
  30301. _ACEOF
  30302. cat confdefs.h >>conftest.$ac_ext
  30303. cat >>conftest.$ac_ext <<_ACEOF
  30304. /* end confdefs.h. */
  30305. #include <cmath>
  30306. int
  30307. main ()
  30308. {
  30309. float f; std::isnan(f);
  30310. ;
  30311. return 0;
  30312. }
  30313. _ACEOF
  30314. rm -f conftest.$ac_objext
  30315. if { (ac_try="$ac_compile"
  30316. case "(($ac_try" in
  30317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30318. *) ac_try_echo=$ac_try;;
  30319. esac
  30320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30321. (eval "$ac_compile") 2>conftest.er1
  30322. ac_status=$?
  30323. grep -v '^ *+' conftest.er1 >conftest.err
  30324. rm -f conftest.er1
  30325. cat conftest.err >&5
  30326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30327. (exit $ac_status); } &&
  30328. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30329. { (case "(($ac_try" in
  30330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30331. *) ac_try_echo=$ac_try;;
  30332. esac
  30333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30334. (eval "$ac_try") 2>&5
  30335. ac_status=$?
  30336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30337. (exit $ac_status); }; } &&
  30338. { ac_try='test -s conftest.$ac_objext'
  30339. { (case "(($ac_try" in
  30340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30341. *) ac_try_echo=$ac_try;;
  30342. esac
  30343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30344. (eval "$ac_try") 2>&5
  30345. ac_status=$?
  30346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30347. (exit $ac_status); }; }; then
  30348. ac_cv_func_std_isnan_in_cmath=yes
  30349. else
  30350. echo "$as_me: failed program was:" >&5
  30351. sed 's/^/| /' conftest.$ac_ext >&5
  30352. ac_cv_func_std_isnan_in_cmath=no
  30353. fi
  30354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30355. ac_ext=c
  30356. ac_cpp='$CPP $CPPFLAGS'
  30357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30360. fi
  30361. { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
  30362. echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
  30363. if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
  30364. cat >>confdefs.h <<\_ACEOF
  30365. #define HAVE_STD_ISNAN_IN_CMATH 1
  30366. _ACEOF
  30367. fi
  30368. { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
  30369. echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
  30370. if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
  30371. echo $ECHO_N "(cached) $ECHO_C" >&6
  30372. else
  30373. ac_ext=cpp
  30374. ac_cpp='$CXXCPP $CPPFLAGS'
  30375. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30376. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30377. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30378. cat >conftest.$ac_ext <<_ACEOF
  30379. /* confdefs.h. */
  30380. _ACEOF
  30381. cat confdefs.h >>conftest.$ac_ext
  30382. cat >>conftest.$ac_ext <<_ACEOF
  30383. /* end confdefs.h. */
  30384. #include <math.h>
  30385. int
  30386. main ()
  30387. {
  30388. float f; isinf(f);
  30389. ;
  30390. return 0;
  30391. }
  30392. _ACEOF
  30393. rm -f conftest.$ac_objext
  30394. if { (ac_try="$ac_compile"
  30395. case "(($ac_try" in
  30396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30397. *) ac_try_echo=$ac_try;;
  30398. esac
  30399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30400. (eval "$ac_compile") 2>conftest.er1
  30401. ac_status=$?
  30402. grep -v '^ *+' conftest.er1 >conftest.err
  30403. rm -f conftest.er1
  30404. cat conftest.err >&5
  30405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30406. (exit $ac_status); } &&
  30407. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30408. { (case "(($ac_try" in
  30409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30410. *) ac_try_echo=$ac_try;;
  30411. esac
  30412. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30413. (eval "$ac_try") 2>&5
  30414. ac_status=$?
  30415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30416. (exit $ac_status); }; } &&
  30417. { ac_try='test -s conftest.$ac_objext'
  30418. { (case "(($ac_try" in
  30419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30420. *) ac_try_echo=$ac_try;;
  30421. esac
  30422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30423. (eval "$ac_try") 2>&5
  30424. ac_status=$?
  30425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30426. (exit $ac_status); }; }; then
  30427. ac_cv_func_isinf_in_math_h=yes
  30428. else
  30429. echo "$as_me: failed program was:" >&5
  30430. sed 's/^/| /' conftest.$ac_ext >&5
  30431. ac_cv_func_isinf_in_math_h=no
  30432. fi
  30433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30434. ac_ext=c
  30435. ac_cpp='$CPP $CPPFLAGS'
  30436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30439. fi
  30440. { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
  30441. echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
  30442. if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
  30443. cat >>confdefs.h <<\_ACEOF
  30444. #define HAVE_ISINF_IN_MATH_H 1
  30445. _ACEOF
  30446. fi
  30447. { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
  30448. echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
  30449. if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
  30450. echo $ECHO_N "(cached) $ECHO_C" >&6
  30451. else
  30452. ac_ext=cpp
  30453. ac_cpp='$CXXCPP $CPPFLAGS'
  30454. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30455. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30456. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30457. cat >conftest.$ac_ext <<_ACEOF
  30458. /* confdefs.h. */
  30459. _ACEOF
  30460. cat confdefs.h >>conftest.$ac_ext
  30461. cat >>conftest.$ac_ext <<_ACEOF
  30462. /* end confdefs.h. */
  30463. #include <cmath>
  30464. int
  30465. main ()
  30466. {
  30467. float f; isinf(f);
  30468. ;
  30469. return 0;
  30470. }
  30471. _ACEOF
  30472. rm -f conftest.$ac_objext
  30473. if { (ac_try="$ac_compile"
  30474. case "(($ac_try" in
  30475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30476. *) ac_try_echo=$ac_try;;
  30477. esac
  30478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30479. (eval "$ac_compile") 2>conftest.er1
  30480. ac_status=$?
  30481. grep -v '^ *+' conftest.er1 >conftest.err
  30482. rm -f conftest.er1
  30483. cat conftest.err >&5
  30484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30485. (exit $ac_status); } &&
  30486. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30487. { (case "(($ac_try" in
  30488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30489. *) ac_try_echo=$ac_try;;
  30490. esac
  30491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30492. (eval "$ac_try") 2>&5
  30493. ac_status=$?
  30494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30495. (exit $ac_status); }; } &&
  30496. { ac_try='test -s conftest.$ac_objext'
  30497. { (case "(($ac_try" in
  30498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30499. *) ac_try_echo=$ac_try;;
  30500. esac
  30501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30502. (eval "$ac_try") 2>&5
  30503. ac_status=$?
  30504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30505. (exit $ac_status); }; }; then
  30506. ac_cv_func_isinf_in_cmath=yes
  30507. else
  30508. echo "$as_me: failed program was:" >&5
  30509. sed 's/^/| /' conftest.$ac_ext >&5
  30510. ac_cv_func_isinf_in_cmath=no
  30511. fi
  30512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30513. ac_ext=c
  30514. ac_cpp='$CPP $CPPFLAGS'
  30515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30518. fi
  30519. { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
  30520. echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
  30521. if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
  30522. cat >>confdefs.h <<\_ACEOF
  30523. #define HAVE_ISINF_IN_CMATH 1
  30524. _ACEOF
  30525. fi
  30526. { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
  30527. echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
  30528. if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
  30529. echo $ECHO_N "(cached) $ECHO_C" >&6
  30530. else
  30531. ac_ext=cpp
  30532. ac_cpp='$CXXCPP $CPPFLAGS'
  30533. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30534. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30535. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30536. cat >conftest.$ac_ext <<_ACEOF
  30537. /* confdefs.h. */
  30538. _ACEOF
  30539. cat confdefs.h >>conftest.$ac_ext
  30540. cat >>conftest.$ac_ext <<_ACEOF
  30541. /* end confdefs.h. */
  30542. #include <cmath>
  30543. int
  30544. main ()
  30545. {
  30546. float f; std::isinf(f)}
  30547. ;
  30548. return 0;
  30549. }
  30550. _ACEOF
  30551. rm -f conftest.$ac_objext
  30552. if { (ac_try="$ac_compile"
  30553. case "(($ac_try" in
  30554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30555. *) ac_try_echo=$ac_try;;
  30556. esac
  30557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30558. (eval "$ac_compile") 2>conftest.er1
  30559. ac_status=$?
  30560. grep -v '^ *+' conftest.er1 >conftest.err
  30561. rm -f conftest.er1
  30562. cat conftest.err >&5
  30563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30564. (exit $ac_status); } &&
  30565. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30566. { (case "(($ac_try" in
  30567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30568. *) ac_try_echo=$ac_try;;
  30569. esac
  30570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30571. (eval "$ac_try") 2>&5
  30572. ac_status=$?
  30573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30574. (exit $ac_status); }; } &&
  30575. { ac_try='test -s conftest.$ac_objext'
  30576. { (case "(($ac_try" in
  30577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30578. *) ac_try_echo=$ac_try;;
  30579. esac
  30580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30581. (eval "$ac_try") 2>&5
  30582. ac_status=$?
  30583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30584. (exit $ac_status); }; }; then
  30585. ac_cv_func_std_isinf_in_cmath=yes
  30586. else
  30587. echo "$as_me: failed program was:" >&5
  30588. sed 's/^/| /' conftest.$ac_ext >&5
  30589. ac_cv_func_std_isinf_in_cmath=no
  30590. fi
  30591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30592. ac_ext=c
  30593. ac_cpp='$CPP $CPPFLAGS'
  30594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30597. fi
  30598. { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
  30599. echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
  30600. if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
  30601. cat >>confdefs.h <<\_ACEOF
  30602. #define HAVE_STD_ISINF_IN_CMATH 1
  30603. _ACEOF
  30604. fi
  30605. { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
  30606. echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
  30607. if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
  30608. echo $ECHO_N "(cached) $ECHO_C" >&6
  30609. else
  30610. ac_ext=cpp
  30611. ac_cpp='$CXXCPP $CPPFLAGS'
  30612. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30613. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30614. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30615. cat >conftest.$ac_ext <<_ACEOF
  30616. /* confdefs.h. */
  30617. _ACEOF
  30618. cat confdefs.h >>conftest.$ac_ext
  30619. cat >>conftest.$ac_ext <<_ACEOF
  30620. /* end confdefs.h. */
  30621. #include <ieeefp.h>
  30622. int
  30623. main ()
  30624. {
  30625. float f; finite(f);
  30626. ;
  30627. return 0;
  30628. }
  30629. _ACEOF
  30630. rm -f conftest.$ac_objext
  30631. if { (ac_try="$ac_compile"
  30632. case "(($ac_try" in
  30633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30634. *) ac_try_echo=$ac_try;;
  30635. esac
  30636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30637. (eval "$ac_compile") 2>conftest.er1
  30638. ac_status=$?
  30639. grep -v '^ *+' conftest.er1 >conftest.err
  30640. rm -f conftest.er1
  30641. cat conftest.err >&5
  30642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30643. (exit $ac_status); } &&
  30644. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  30645. { (case "(($ac_try" in
  30646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30647. *) ac_try_echo=$ac_try;;
  30648. esac
  30649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30650. (eval "$ac_try") 2>&5
  30651. ac_status=$?
  30652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30653. (exit $ac_status); }; } &&
  30654. { ac_try='test -s conftest.$ac_objext'
  30655. { (case "(($ac_try" in
  30656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30657. *) ac_try_echo=$ac_try;;
  30658. esac
  30659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30660. (eval "$ac_try") 2>&5
  30661. ac_status=$?
  30662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30663. (exit $ac_status); }; }; then
  30664. ac_cv_func_finite_in_ieeefp_h=yes
  30665. else
  30666. echo "$as_me: failed program was:" >&5
  30667. sed 's/^/| /' conftest.$ac_ext >&5
  30668. ac_cv_func_finite_in_ieeefp_h=no
  30669. fi
  30670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30671. ac_ext=c
  30672. ac_cpp='$CPP $CPPFLAGS'
  30673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30676. fi
  30677. { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
  30678. echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
  30679. if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
  30680. cat >>confdefs.h <<\_ACEOF
  30681. #define HAVE_FINITE_IN_IEEEFP_H 1
  30682. _ACEOF
  30683. fi
  30684. if test "$llvm_cv_platform_type" = "Unix" ; then
  30685. for ac_header in stdlib.h unistd.h
  30686. do
  30687. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30688. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30689. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  30690. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  30691. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30692. echo $ECHO_N "(cached) $ECHO_C" >&6
  30693. fi
  30694. ac_res=`eval echo '${'$as_ac_Header'}'`
  30695. { echo "$as_me:$LINENO: result: $ac_res" >&5
  30696. echo "${ECHO_T}$ac_res" >&6; }
  30697. else
  30698. # Is the header compilable?
  30699. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  30700. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  30701. cat >conftest.$ac_ext <<_ACEOF
  30702. /* confdefs.h. */
  30703. _ACEOF
  30704. cat confdefs.h >>conftest.$ac_ext
  30705. cat >>conftest.$ac_ext <<_ACEOF
  30706. /* end confdefs.h. */
  30707. $ac_includes_default
  30708. #include <$ac_header>
  30709. _ACEOF
  30710. rm -f conftest.$ac_objext
  30711. if { (ac_try="$ac_compile"
  30712. case "(($ac_try" in
  30713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30714. *) ac_try_echo=$ac_try;;
  30715. esac
  30716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30717. (eval "$ac_compile") 2>conftest.er1
  30718. ac_status=$?
  30719. grep -v '^ *+' conftest.er1 >conftest.err
  30720. rm -f conftest.er1
  30721. cat conftest.err >&5
  30722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30723. (exit $ac_status); } &&
  30724. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  30725. { (case "(($ac_try" in
  30726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30727. *) ac_try_echo=$ac_try;;
  30728. esac
  30729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30730. (eval "$ac_try") 2>&5
  30731. ac_status=$?
  30732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30733. (exit $ac_status); }; } &&
  30734. { ac_try='test -s conftest.$ac_objext'
  30735. { (case "(($ac_try" in
  30736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30737. *) ac_try_echo=$ac_try;;
  30738. esac
  30739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30740. (eval "$ac_try") 2>&5
  30741. ac_status=$?
  30742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30743. (exit $ac_status); }; }; then
  30744. ac_header_compiler=yes
  30745. else
  30746. echo "$as_me: failed program was:" >&5
  30747. sed 's/^/| /' conftest.$ac_ext >&5
  30748. ac_header_compiler=no
  30749. fi
  30750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30751. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30752. echo "${ECHO_T}$ac_header_compiler" >&6; }
  30753. # Is the header present?
  30754. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  30755. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  30756. cat >conftest.$ac_ext <<_ACEOF
  30757. /* confdefs.h. */
  30758. _ACEOF
  30759. cat confdefs.h >>conftest.$ac_ext
  30760. cat >>conftest.$ac_ext <<_ACEOF
  30761. /* end confdefs.h. */
  30762. #include <$ac_header>
  30763. _ACEOF
  30764. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30765. case "(($ac_try" in
  30766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30767. *) ac_try_echo=$ac_try;;
  30768. esac
  30769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30770. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30771. ac_status=$?
  30772. grep -v '^ *+' conftest.er1 >conftest.err
  30773. rm -f conftest.er1
  30774. cat conftest.err >&5
  30775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30776. (exit $ac_status); } >/dev/null; then
  30777. if test -s conftest.err; then
  30778. ac_cpp_err=$ac_c_preproc_warn_flag
  30779. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  30780. else
  30781. ac_cpp_err=
  30782. fi
  30783. else
  30784. ac_cpp_err=yes
  30785. fi
  30786. if test -z "$ac_cpp_err"; then
  30787. ac_header_preproc=yes
  30788. else
  30789. echo "$as_me: failed program was:" >&5
  30790. sed 's/^/| /' conftest.$ac_ext >&5
  30791. ac_header_preproc=no
  30792. fi
  30793. rm -f conftest.err conftest.$ac_ext
  30794. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30795. echo "${ECHO_T}$ac_header_preproc" >&6; }
  30796. # So? What about this header?
  30797. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30798. yes:no: )
  30799. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  30800. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30801. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  30802. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  30803. ac_header_preproc=yes
  30804. ;;
  30805. no:yes:* )
  30806. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  30807. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  30808. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  30809. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  30810. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  30811. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  30812. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  30813. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  30814. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  30815. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  30816. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  30817. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  30818. ( cat <<\_ASBOX
  30819. ## ----------------------------------- ##
  30820. ## Report this to llvmbugs@cs.uiuc.edu ##
  30821. ## ----------------------------------- ##
  30822. _ASBOX
  30823. ) | sed "s/^/$as_me: WARNING: /" >&2
  30824. ;;
  30825. esac
  30826. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  30827. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  30828. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  30829. echo $ECHO_N "(cached) $ECHO_C" >&6
  30830. else
  30831. eval "$as_ac_Header=\$ac_header_preproc"
  30832. fi
  30833. ac_res=`eval echo '${'$as_ac_Header'}'`
  30834. { echo "$as_me:$LINENO: result: $ac_res" >&5
  30835. echo "${ECHO_T}$ac_res" >&6; }
  30836. fi
  30837. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  30838. cat >>confdefs.h <<_ACEOF
  30839. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30840. _ACEOF
  30841. fi
  30842. done
  30843. for ac_func in getpagesize
  30844. do
  30845. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30846. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  30847. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  30848. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  30849. echo $ECHO_N "(cached) $ECHO_C" >&6
  30850. else
  30851. cat >conftest.$ac_ext <<_ACEOF
  30852. /* confdefs.h. */
  30853. _ACEOF
  30854. cat confdefs.h >>conftest.$ac_ext
  30855. cat >>conftest.$ac_ext <<_ACEOF
  30856. /* end confdefs.h. */
  30857. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  30858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30859. #define $ac_func innocuous_$ac_func
  30860. /* System header to define __stub macros and hopefully few prototypes,
  30861. which can conflict with char $ac_func (); below.
  30862. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30863. <limits.h> exists even on freestanding compilers. */
  30864. #ifdef __STDC__
  30865. # include <limits.h>
  30866. #else
  30867. # include <assert.h>
  30868. #endif
  30869. #undef $ac_func
  30870. /* Override any GCC internal prototype to avoid an error.
  30871. Use char because int might match the return type of a GCC
  30872. builtin and then its argument prototype would still apply. */
  30873. #ifdef __cplusplus
  30874. extern "C"
  30875. #endif
  30876. char $ac_func ();
  30877. /* The GNU C library defines this for functions which it implements
  30878. to always fail with ENOSYS. Some functions are actually named
  30879. something starting with __ and the normal name is an alias. */
  30880. #if defined __stub_$ac_func || defined __stub___$ac_func
  30881. choke me
  30882. #endif
  30883. int
  30884. main ()
  30885. {
  30886. return $ac_func ();
  30887. ;
  30888. return 0;
  30889. }
  30890. _ACEOF
  30891. rm -f conftest.$ac_objext conftest$ac_exeext
  30892. if { (ac_try="$ac_link"
  30893. case "(($ac_try" in
  30894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30895. *) ac_try_echo=$ac_try;;
  30896. esac
  30897. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30898. (eval "$ac_link") 2>conftest.er1
  30899. ac_status=$?
  30900. grep -v '^ *+' conftest.er1 >conftest.err
  30901. rm -f conftest.er1
  30902. cat conftest.err >&5
  30903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30904. (exit $ac_status); } &&
  30905. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  30906. { (case "(($ac_try" in
  30907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30908. *) ac_try_echo=$ac_try;;
  30909. esac
  30910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30911. (eval "$ac_try") 2>&5
  30912. ac_status=$?
  30913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30914. (exit $ac_status); }; } &&
  30915. { ac_try='test -s conftest$ac_exeext'
  30916. { (case "(($ac_try" in
  30917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30918. *) ac_try_echo=$ac_try;;
  30919. esac
  30920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30921. (eval "$ac_try") 2>&5
  30922. ac_status=$?
  30923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30924. (exit $ac_status); }; }; then
  30925. eval "$as_ac_var=yes"
  30926. else
  30927. echo "$as_me: failed program was:" >&5
  30928. sed 's/^/| /' conftest.$ac_ext >&5
  30929. eval "$as_ac_var=no"
  30930. fi
  30931. rm -f core conftest.err conftest.$ac_objext \
  30932. conftest$ac_exeext conftest.$ac_ext
  30933. fi
  30934. ac_res=`eval echo '${'$as_ac_var'}'`
  30935. { echo "$as_me:$LINENO: result: $ac_res" >&5
  30936. echo "${ECHO_T}$ac_res" >&6; }
  30937. if test `eval echo '${'$as_ac_var'}'` = yes; then
  30938. cat >>confdefs.h <<_ACEOF
  30939. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30940. _ACEOF
  30941. fi
  30942. done
  30943. { echo "$as_me:$LINENO: checking for working mmap" >&5
  30944. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  30945. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  30946. echo $ECHO_N "(cached) $ECHO_C" >&6
  30947. else
  30948. if test "$cross_compiling" = yes; then
  30949. ac_cv_func_mmap_fixed_mapped=no
  30950. else
  30951. cat >conftest.$ac_ext <<_ACEOF
  30952. /* confdefs.h. */
  30953. _ACEOF
  30954. cat confdefs.h >>conftest.$ac_ext
  30955. cat >>conftest.$ac_ext <<_ACEOF
  30956. /* end confdefs.h. */
  30957. $ac_includes_default
  30958. /* malloc might have been renamed as rpl_malloc. */
  30959. #undef malloc
  30960. /* Thanks to Mike Haertel and Jim Avera for this test.
  30961. Here is a matrix of mmap possibilities:
  30962. mmap private not fixed
  30963. mmap private fixed at somewhere currently unmapped
  30964. mmap private fixed at somewhere already mapped
  30965. mmap shared not fixed
  30966. mmap shared fixed at somewhere currently unmapped
  30967. mmap shared fixed at somewhere already mapped
  30968. For private mappings, we should verify that changes cannot be read()
  30969. back from the file, nor mmap's back from the file at a different
  30970. address. (There have been systems where private was not correctly
  30971. implemented like the infamous i386 svr4.0, and systems where the
  30972. VM page cache was not coherent with the file system buffer cache
  30973. like early versions of FreeBSD and possibly contemporary NetBSD.)
  30974. For shared mappings, we should conversely verify that changes get
  30975. propagated back to all the places they're supposed to be.
  30976. Grep wants private fixed already mapped.
  30977. The main things grep needs to know about mmap are:
  30978. * does it exist and is it safe to write into the mmap'd area
  30979. * how to use it (BSD variants) */
  30980. #include <fcntl.h>
  30981. #include <sys/mman.h>
  30982. #if !STDC_HEADERS && !HAVE_STDLIB_H
  30983. char *malloc ();
  30984. #endif
  30985. /* This mess was copied from the GNU getpagesize.h. */
  30986. #if !HAVE_GETPAGESIZE
  30987. /* Assume that all systems that can run configure have sys/param.h. */
  30988. # if !HAVE_SYS_PARAM_H
  30989. # define HAVE_SYS_PARAM_H 1
  30990. # endif
  30991. # ifdef _SC_PAGESIZE
  30992. # define getpagesize() sysconf(_SC_PAGESIZE)
  30993. # else /* no _SC_PAGESIZE */
  30994. # if HAVE_SYS_PARAM_H
  30995. # include <sys/param.h>
  30996. # ifdef EXEC_PAGESIZE
  30997. # define getpagesize() EXEC_PAGESIZE
  30998. # else /* no EXEC_PAGESIZE */
  30999. # ifdef NBPG
  31000. # define getpagesize() NBPG * CLSIZE
  31001. # ifndef CLSIZE
  31002. # define CLSIZE 1
  31003. # endif /* no CLSIZE */
  31004. # else /* no NBPG */
  31005. # ifdef NBPC
  31006. # define getpagesize() NBPC
  31007. # else /* no NBPC */
  31008. # ifdef PAGESIZE
  31009. # define getpagesize() PAGESIZE
  31010. # endif /* PAGESIZE */
  31011. # endif /* no NBPC */
  31012. # endif /* no NBPG */
  31013. # endif /* no EXEC_PAGESIZE */
  31014. # else /* no HAVE_SYS_PARAM_H */
  31015. # define getpagesize() 8192 /* punt totally */
  31016. # endif /* no HAVE_SYS_PARAM_H */
  31017. # endif /* no _SC_PAGESIZE */
  31018. #endif /* no HAVE_GETPAGESIZE */
  31019. int
  31020. main ()
  31021. {
  31022. char *data, *data2, *data3;
  31023. int i, pagesize;
  31024. int fd;
  31025. pagesize = getpagesize ();
  31026. /* First, make a file with some known garbage in it. */
  31027. data = (char *) malloc (pagesize);
  31028. if (!data)
  31029. return 1;
  31030. for (i = 0; i < pagesize; ++i)
  31031. *(data + i) = rand ();
  31032. umask (0);
  31033. fd = creat ("conftest.mmap", 0600);
  31034. if (fd < 0)
  31035. return 1;
  31036. if (write (fd, data, pagesize) != pagesize)
  31037. return 1;
  31038. close (fd);
  31039. /* Next, try to mmap the file at a fixed address which already has
  31040. something else allocated at it. If we can, also make sure that
  31041. we see the same garbage. */
  31042. fd = open ("conftest.mmap", O_RDWR);
  31043. if (fd < 0)
  31044. return 1;
  31045. data2 = (char *) malloc (2 * pagesize);
  31046. if (!data2)
  31047. return 1;
  31048. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  31049. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  31050. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  31051. return 1;
  31052. for (i = 0; i < pagesize; ++i)
  31053. if (*(data + i) != *(data2 + i))
  31054. return 1;
  31055. /* Finally, make sure that changes to the mapped area do not
  31056. percolate back to the file as seen by read(). (This is a bug on
  31057. some variants of i386 svr4.0.) */
  31058. for (i = 0; i < pagesize; ++i)
  31059. *(data2 + i) = *(data2 + i) + 1;
  31060. data3 = (char *) malloc (pagesize);
  31061. if (!data3)
  31062. return 1;
  31063. if (read (fd, data3, pagesize) != pagesize)
  31064. return 1;
  31065. for (i = 0; i < pagesize; ++i)
  31066. if (*(data + i) != *(data3 + i))
  31067. return 1;
  31068. close (fd);
  31069. return 0;
  31070. }
  31071. _ACEOF
  31072. rm -f conftest$ac_exeext
  31073. if { (ac_try="$ac_link"
  31074. case "(($ac_try" in
  31075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31076. *) ac_try_echo=$ac_try;;
  31077. esac
  31078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31079. (eval "$ac_link") 2>&5
  31080. ac_status=$?
  31081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31082. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31083. { (case "(($ac_try" in
  31084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31085. *) ac_try_echo=$ac_try;;
  31086. esac
  31087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31088. (eval "$ac_try") 2>&5
  31089. ac_status=$?
  31090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31091. (exit $ac_status); }; }; then
  31092. ac_cv_func_mmap_fixed_mapped=yes
  31093. else
  31094. echo "$as_me: program exited with status $ac_status" >&5
  31095. echo "$as_me: failed program was:" >&5
  31096. sed 's/^/| /' conftest.$ac_ext >&5
  31097. ( exit $ac_status )
  31098. ac_cv_func_mmap_fixed_mapped=no
  31099. fi
  31100. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31101. fi
  31102. fi
  31103. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  31104. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  31105. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  31106. cat >>confdefs.h <<\_ACEOF
  31107. #define HAVE_MMAP 1
  31108. _ACEOF
  31109. fi
  31110. rm -f conftest.mmap
  31111. { echo "$as_me:$LINENO: checking for mmap of files" >&5
  31112. echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
  31113. if test "${ac_cv_func_mmap_file+set}" = set; then
  31114. echo $ECHO_N "(cached) $ECHO_C" >&6
  31115. else
  31116. ac_ext=c
  31117. ac_cpp='$CPP $CPPFLAGS'
  31118. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31119. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31120. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31121. if test "$cross_compiling" = yes; then
  31122. ac_cv_func_mmap_file=no
  31123. else
  31124. cat >conftest.$ac_ext <<_ACEOF
  31125. /* confdefs.h. */
  31126. _ACEOF
  31127. cat confdefs.h >>conftest.$ac_ext
  31128. cat >>conftest.$ac_ext <<_ACEOF
  31129. /* end confdefs.h. */
  31130. #include <sys/types.h>
  31131. #include <sys/mman.h>
  31132. #include <fcntl.h>
  31133. int
  31134. main ()
  31135. {
  31136. int fd;
  31137. fd = creat ("foo",0777);
  31138. fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
  31139. unlink ("foo");
  31140. return (fd != (int) MAP_FAILED);
  31141. ;
  31142. return 0;
  31143. }
  31144. _ACEOF
  31145. rm -f conftest$ac_exeext
  31146. if { (ac_try="$ac_link"
  31147. case "(($ac_try" in
  31148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31149. *) ac_try_echo=$ac_try;;
  31150. esac
  31151. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31152. (eval "$ac_link") 2>&5
  31153. ac_status=$?
  31154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31155. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31156. { (case "(($ac_try" in
  31157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31158. *) ac_try_echo=$ac_try;;
  31159. esac
  31160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31161. (eval "$ac_try") 2>&5
  31162. ac_status=$?
  31163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31164. (exit $ac_status); }; }; then
  31165. ac_cv_func_mmap_file=yes
  31166. else
  31167. echo "$as_me: program exited with status $ac_status" >&5
  31168. echo "$as_me: failed program was:" >&5
  31169. sed 's/^/| /' conftest.$ac_ext >&5
  31170. ( exit $ac_status )
  31171. ac_cv_func_mmap_file=no
  31172. fi
  31173. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31174. fi
  31175. ac_ext=c
  31176. ac_cpp='$CPP $CPPFLAGS'
  31177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31180. fi
  31181. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
  31182. echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
  31183. if test "$ac_cv_func_mmap_file" = yes; then
  31184. cat >>confdefs.h <<\_ACEOF
  31185. #define HAVE_MMAP_FILE
  31186. _ACEOF
  31187. MMAP_FILE=yes
  31188. fi
  31189. { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
  31190. echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
  31191. if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
  31192. echo $ECHO_N "(cached) $ECHO_C" >&6
  31193. else
  31194. if test "$llvm_cv_os_type" = "Interix" ; then
  31195. ac_cv_need_dev_zero_for_mmap=yes
  31196. else
  31197. ac_cv_need_dev_zero_for_mmap=no
  31198. fi
  31199. fi
  31200. { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
  31201. echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
  31202. if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
  31203. cat >>confdefs.h <<\_ACEOF
  31204. #define NEED_DEV_ZERO_FOR_MMAP 1
  31205. _ACEOF
  31206. fi
  31207. if test "$ac_cv_func_mmap_fixed_mapped" = "no"
  31208. then
  31209. { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
  31210. echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
  31211. fi
  31212. if test "$ac_cv_func_mmap_file" = "no"
  31213. then
  31214. { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
  31215. echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
  31216. fi
  31217. fi
  31218. { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
  31219. echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
  31220. cat >conftest.$ac_ext <<_ACEOF
  31221. /* confdefs.h. */
  31222. _ACEOF
  31223. cat confdefs.h >>conftest.$ac_ext
  31224. cat >>conftest.$ac_ext <<_ACEOF
  31225. /* end confdefs.h. */
  31226. int main() {
  31227. volatile unsigned long val = 1;
  31228. __sync_synchronize();
  31229. __sync_val_compare_and_swap(&val, 1, 0);
  31230. __sync_add_and_fetch(&val, 1);
  31231. __sync_sub_and_fetch(&val, 1);
  31232. return 0;
  31233. }
  31234. _ACEOF
  31235. rm -f conftest.$ac_objext conftest$ac_exeext
  31236. if { (ac_try="$ac_link"
  31237. case "(($ac_try" in
  31238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31239. *) ac_try_echo=$ac_try;;
  31240. esac
  31241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31242. (eval "$ac_link") 2>conftest.er1
  31243. ac_status=$?
  31244. grep -v '^ *+' conftest.er1 >conftest.err
  31245. rm -f conftest.er1
  31246. cat conftest.err >&5
  31247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31248. (exit $ac_status); } &&
  31249. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31250. { (case "(($ac_try" in
  31251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31252. *) ac_try_echo=$ac_try;;
  31253. esac
  31254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31255. (eval "$ac_try") 2>&5
  31256. ac_status=$?
  31257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31258. (exit $ac_status); }; } &&
  31259. { ac_try='test -s conftest$ac_exeext'
  31260. { (case "(($ac_try" in
  31261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31262. *) ac_try_echo=$ac_try;;
  31263. esac
  31264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31265. (eval "$ac_try") 2>&5
  31266. ac_status=$?
  31267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31268. (exit $ac_status); }; }; then
  31269. { echo "$as_me:$LINENO: result: yes" >&5
  31270. echo "${ECHO_T}yes" >&6; }
  31271. cat >>confdefs.h <<\_ACEOF
  31272. #define LLVM_MULTITHREADED 1
  31273. _ACEOF
  31274. else
  31275. echo "$as_me: failed program was:" >&5
  31276. sed 's/^/| /' conftest.$ac_ext >&5
  31277. { echo "$as_me:$LINENO: result: no" >&5
  31278. echo "${ECHO_T}no" >&6; }
  31279. cat >>confdefs.h <<\_ACEOF
  31280. #define LLVM_MULTITHREADED 0
  31281. _ACEOF
  31282. { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
  31283. echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
  31284. fi
  31285. rm -f core conftest.err conftest.$ac_objext \
  31286. conftest$ac_exeext conftest.$ac_ext
  31287. for ac_func in __dso_handle
  31288. do
  31289. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31290. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31291. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31292. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31293. echo $ECHO_N "(cached) $ECHO_C" >&6
  31294. else
  31295. cat >conftest.$ac_ext <<_ACEOF
  31296. /* confdefs.h. */
  31297. _ACEOF
  31298. cat confdefs.h >>conftest.$ac_ext
  31299. cat >>conftest.$ac_ext <<_ACEOF
  31300. /* end confdefs.h. */
  31301. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31302. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31303. #define $ac_func innocuous_$ac_func
  31304. /* System header to define __stub macros and hopefully few prototypes,
  31305. which can conflict with char $ac_func (); below.
  31306. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31307. <limits.h> exists even on freestanding compilers. */
  31308. #ifdef __STDC__
  31309. # include <limits.h>
  31310. #else
  31311. # include <assert.h>
  31312. #endif
  31313. #undef $ac_func
  31314. /* Override any GCC internal prototype to avoid an error.
  31315. Use char because int might match the return type of a GCC
  31316. builtin and then its argument prototype would still apply. */
  31317. #ifdef __cplusplus
  31318. extern "C"
  31319. #endif
  31320. char $ac_func ();
  31321. /* The GNU C library defines this for functions which it implements
  31322. to always fail with ENOSYS. Some functions are actually named
  31323. something starting with __ and the normal name is an alias. */
  31324. #if defined __stub_$ac_func || defined __stub___$ac_func
  31325. choke me
  31326. #endif
  31327. int
  31328. main ()
  31329. {
  31330. return $ac_func ();
  31331. ;
  31332. return 0;
  31333. }
  31334. _ACEOF
  31335. rm -f conftest.$ac_objext conftest$ac_exeext
  31336. if { (ac_try="$ac_link"
  31337. case "(($ac_try" in
  31338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31339. *) ac_try_echo=$ac_try;;
  31340. esac
  31341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31342. (eval "$ac_link") 2>conftest.er1
  31343. ac_status=$?
  31344. grep -v '^ *+' conftest.er1 >conftest.err
  31345. rm -f conftest.er1
  31346. cat conftest.err >&5
  31347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31348. (exit $ac_status); } &&
  31349. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  31350. { (case "(($ac_try" in
  31351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31352. *) ac_try_echo=$ac_try;;
  31353. esac
  31354. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31355. (eval "$ac_try") 2>&5
  31356. ac_status=$?
  31357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31358. (exit $ac_status); }; } &&
  31359. { ac_try='test -s conftest$ac_exeext'
  31360. { (case "(($ac_try" in
  31361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31362. *) ac_try_echo=$ac_try;;
  31363. esac
  31364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31365. (eval "$ac_try") 2>&5
  31366. ac_status=$?
  31367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31368. (exit $ac_status); }; }; then
  31369. eval "$as_ac_var=yes"
  31370. else
  31371. echo "$as_me: failed program was:" >&5
  31372. sed 's/^/| /' conftest.$ac_ext >&5
  31373. eval "$as_ac_var=no"
  31374. fi
  31375. rm -f core conftest.err conftest.$ac_objext \
  31376. conftest$ac_exeext conftest.$ac_ext
  31377. fi
  31378. ac_res=`eval echo '${'$as_ac_var'}'`
  31379. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31380. echo "${ECHO_T}$ac_res" >&6; }
  31381. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31382. cat >>confdefs.h <<_ACEOF
  31383. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31384. _ACEOF
  31385. fi
  31386. done
  31387. { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
  31388. echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
  31389. if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
  31390. echo $ECHO_N "(cached) $ECHO_C" >&6
  31391. else
  31392. llvm_cv_llvmgcc_sanity="no"
  31393. if test -x "$LLVMGCC" ; then
  31394. cp /dev/null conftest.c
  31395. "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
  31396. grep 'target datalayout =' > /dev/null 2>&1
  31397. if test $? -eq 0 ; then
  31398. llvm_cv_llvmgcc_sanity="yes"
  31399. fi
  31400. rm conftest.c
  31401. fi
  31402. fi
  31403. { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
  31404. echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
  31405. if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
  31406. { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
  31407. echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
  31408. llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
  31409. LLVMCC1=$llvmcc1path
  31410. llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
  31411. LLVMCC1PLUS=$llvmcc1pluspath
  31412. llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
  31413. LLVMGCCDIR=$llvmgccdir
  31414. llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
  31415. LLVMGCCLIBEXEC=$llvmgcclibexec
  31416. llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
  31417. llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
  31418. LLVMGCC_VERSION=$llvmgccversion
  31419. LLVMGCC_MAJVERS=$llvmgccmajvers
  31420. llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
  31421. LLVMGCC_LANGS=$llvmgcclangs
  31422. { echo "$as_me:$LINENO: result: ok" >&5
  31423. echo "${ECHO_T}ok" >&6; }
  31424. fi
  31425. SHLIBEXT=$libltdl_cv_shlibext
  31426. # Translate the various configuration directories and other basic
  31427. # information into substitutions that will end up in Makefile.config.in
  31428. # that these configured values can be used by the makefiles
  31429. if test "${prefix}" = "NONE" ; then
  31430. prefix="/usr/local"
  31431. fi
  31432. eval LLVM_PREFIX="${prefix}";
  31433. eval LLVM_BINDIR="${prefix}/bin";
  31434. eval LLVM_LIBDIR="${prefix}/lib";
  31435. eval LLVM_DATADIR="${prefix}/share/llvm";
  31436. eval LLVM_DOCSDIR="${prefix}/docs/llvm";
  31437. eval LLVM_ETCDIR="${prefix}/etc/llvm";
  31438. eval LLVM_INCLUDEDIR="${prefix}/include";
  31439. eval LLVM_INFODIR="${prefix}/info";
  31440. eval LLVM_MANDIR="${prefix}/man";
  31441. LLVM_CONFIGTIME=`date`
  31442. # Place the various directores into the config.h file as #defines so that we
  31443. # can know about the installation paths within LLVM.
  31444. cat >>confdefs.h <<_ACEOF
  31445. #define LLVM_PREFIX "$LLVM_PREFIX"
  31446. _ACEOF
  31447. cat >>confdefs.h <<_ACEOF
  31448. #define LLVM_BINDIR "$LLVM_BINDIR"
  31449. _ACEOF
  31450. cat >>confdefs.h <<_ACEOF
  31451. #define LLVM_LIBDIR "$LLVM_LIBDIR"
  31452. _ACEOF
  31453. cat >>confdefs.h <<_ACEOF
  31454. #define LLVM_DATADIR "$LLVM_DATADIR"
  31455. _ACEOF
  31456. cat >>confdefs.h <<_ACEOF
  31457. #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
  31458. _ACEOF
  31459. cat >>confdefs.h <<_ACEOF
  31460. #define LLVM_ETCDIR "$LLVM_ETCDIR"
  31461. _ACEOF
  31462. cat >>confdefs.h <<_ACEOF
  31463. #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
  31464. _ACEOF
  31465. cat >>confdefs.h <<_ACEOF
  31466. #define LLVM_INFODIR "$LLVM_INFODIR"
  31467. _ACEOF
  31468. cat >>confdefs.h <<_ACEOF
  31469. #define LLVM_MANDIR "$LLVM_MANDIR"
  31470. _ACEOF
  31471. cat >>confdefs.h <<_ACEOF
  31472. #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
  31473. _ACEOF
  31474. cat >>confdefs.h <<_ACEOF
  31475. #define LLVM_HOSTTRIPLE "$host"
  31476. _ACEOF
  31477. # Determine which bindings to build.
  31478. if test "$BINDINGS_TO_BUILD" = auto ; then
  31479. BINDINGS_TO_BUILD=""
  31480. if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
  31481. BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
  31482. fi
  31483. fi
  31484. BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
  31485. # This isn't really configurey, but it avoids having to repeat the list in
  31486. # other files.
  31487. ALL_BINDINGS=ocaml
  31488. # Do any work necessary to ensure that bindings have what they need.
  31489. binding_prereqs_failed=0
  31490. for a_binding in $BINDINGS_TO_BUILD ; do
  31491. case "$a_binding" in
  31492. ocaml)
  31493. if test "x$OCAMLC" = x ; then
  31494. { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
  31495. echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
  31496. binding_prereqs_failed=1
  31497. fi
  31498. if test "x$OCAMLDEP" = x ; then
  31499. { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
  31500. echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
  31501. binding_prereqs_failed=1
  31502. fi
  31503. if test "x$OCAMLOPT" = x ; then
  31504. { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
  31505. echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
  31506. fi
  31507. if test "x$with_ocaml_libdir" != xauto ; then
  31508. OCAML_LIBDIR=$with_ocaml_libdir
  31509. else
  31510. ocaml_stdlib="`"$OCAMLC" -where`"
  31511. if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
  31512. then
  31513. # ocaml stdlib is beneath our prefix; use stdlib
  31514. OCAML_LIBDIR=$ocaml_stdlib
  31515. else
  31516. # ocaml stdlib is outside our prefix; use libdir/ocaml
  31517. OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
  31518. fi
  31519. fi
  31520. ;;
  31521. esac
  31522. done
  31523. if test "$binding_prereqs_failed" = 1 ; then
  31524. { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
  31525. echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
  31526. { (exit 1); exit 1; }; }
  31527. fi
  31528. { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
  31529. echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
  31530. if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
  31531. echo $ECHO_N "(cached) $ECHO_C" >&6
  31532. else
  31533. ac_ext=cpp
  31534. ac_cpp='$CXXCPP $CPPFLAGS'
  31535. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31536. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31537. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31538. oldcxxflags="$CXXFLAGS"
  31539. CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
  31540. cat >conftest.$ac_ext <<_ACEOF
  31541. /* confdefs.h. */
  31542. _ACEOF
  31543. cat confdefs.h >>conftest.$ac_ext
  31544. cat >>conftest.$ac_ext <<_ACEOF
  31545. /* end confdefs.h. */
  31546. int
  31547. main ()
  31548. {
  31549. ;
  31550. return 0;
  31551. }
  31552. _ACEOF
  31553. rm -f conftest.$ac_objext
  31554. if { (ac_try="$ac_compile"
  31555. case "(($ac_try" in
  31556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31557. *) ac_try_echo=$ac_try;;
  31558. esac
  31559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31560. (eval "$ac_compile") 2>conftest.er1
  31561. ac_status=$?
  31562. grep -v '^ *+' conftest.er1 >conftest.err
  31563. rm -f conftest.er1
  31564. cat conftest.err >&5
  31565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31566. (exit $ac_status); } &&
  31567. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  31568. { (case "(($ac_try" in
  31569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31570. *) ac_try_echo=$ac_try;;
  31571. esac
  31572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31573. (eval "$ac_try") 2>&5
  31574. ac_status=$?
  31575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31576. (exit $ac_status); }; } &&
  31577. { ac_try='test -s conftest.$ac_objext'
  31578. { (case "(($ac_try" in
  31579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31580. *) ac_try_echo=$ac_try;;
  31581. esac
  31582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31583. (eval "$ac_try") 2>&5
  31584. ac_status=$?
  31585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31586. (exit $ac_status); }; }; then
  31587. llvm_cv_cxx_visibility_inlines_hidden=yes
  31588. else
  31589. echo "$as_me: failed program was:" >&5
  31590. sed 's/^/| /' conftest.$ac_ext >&5
  31591. llvm_cv_cxx_visibility_inlines_hidden=no
  31592. fi
  31593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31594. CXXFLAGS="$oldcxxflags"
  31595. ac_ext=c
  31596. ac_cpp='$CPP $CPPFLAGS'
  31597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31600. fi
  31601. { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
  31602. echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
  31603. if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
  31604. ENABLE_VISIBILITY_INLINES_HIDDEN=1
  31605. else
  31606. ENABLE_VISIBILITY_INLINES_HIDDEN=0
  31607. fi
  31608. if test "$llvm_cv_link_use_r" = "yes" ; then
  31609. RPATH="-Wl,-R"
  31610. else
  31611. RPATH="-Wl,-rpath"
  31612. fi
  31613. if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
  31614. RDYNAMIC="-Wl,-export-dynamic"
  31615. else
  31616. RDYNAMIC=""
  31617. fi
  31618. ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
  31619. ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
  31620. ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
  31621. ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
  31622. ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
  31623. ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
  31624. ac_config_files="$ac_config_files Makefile.config"
  31625. ac_config_files="$ac_config_files llvm.spec"
  31626. ac_config_files="$ac_config_files docs/doxygen.cfg"
  31627. ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
  31628. ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
  31629. ac_config_commands="$ac_config_commands setup"
  31630. ac_config_commands="$ac_config_commands Makefile"
  31631. ac_config_commands="$ac_config_commands Makefile.common"
  31632. ac_config_commands="$ac_config_commands examples/Makefile"
  31633. ac_config_commands="$ac_config_commands lib/Makefile"
  31634. ac_config_commands="$ac_config_commands runtime/Makefile"
  31635. ac_config_commands="$ac_config_commands test/Makefile"
  31636. ac_config_commands="$ac_config_commands test/Makefile.tests"
  31637. ac_config_commands="$ac_config_commands unittests/Makefile"
  31638. ac_config_commands="$ac_config_commands tools/Makefile"
  31639. ac_config_commands="$ac_config_commands utils/Makefile"
  31640. ac_config_commands="$ac_config_commands projects/Makefile"
  31641. ac_config_commands="$ac_config_commands bindings/Makefile"
  31642. ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
  31643. cat >confcache <<\_ACEOF
  31644. # This file is a shell script that caches the results of configure
  31645. # tests run on this system so they can be shared between configure
  31646. # scripts and configure runs, see configure's option --config-cache.
  31647. # It is not useful on other systems. If it contains results you don't
  31648. # want to keep, you may remove or edit it.
  31649. #
  31650. # config.status only pays attention to the cache file if you give it
  31651. # the --recheck option to rerun configure.
  31652. #
  31653. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  31654. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  31655. # following values.
  31656. _ACEOF
  31657. # The following way of writing the cache mishandles newlines in values,
  31658. # but we know of no workaround that is simple, portable, and efficient.
  31659. # So, we kill variables containing newlines.
  31660. # Ultrix sh set writes to stderr and can't be redirected directly,
  31661. # and sets the high bit in the cache file unless we assign to the vars.
  31662. (
  31663. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31664. eval ac_val=\$$ac_var
  31665. case $ac_val in #(
  31666. *${as_nl}*)
  31667. case $ac_var in #(
  31668. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  31669. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  31670. esac
  31671. case $ac_var in #(
  31672. _ | IFS | as_nl) ;; #(
  31673. *) $as_unset $ac_var ;;
  31674. esac ;;
  31675. esac
  31676. done
  31677. (set) 2>&1 |
  31678. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31679. *${as_nl}ac_space=\ *)
  31680. # `set' does not quote correctly, so add quotes (double-quote
  31681. # substitution turns \\\\ into \\, and sed turns \\ into \).
  31682. sed -n \
  31683. "s/'/'\\\\''/g;
  31684. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31685. ;; #(
  31686. *)
  31687. # `set' quotes correctly as required by POSIX, so do not add quotes.
  31688. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31689. ;;
  31690. esac |
  31691. sort
  31692. ) |
  31693. sed '
  31694. /^ac_cv_env_/b end
  31695. t clear
  31696. :clear
  31697. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31698. t end
  31699. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31700. :end' >>confcache
  31701. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31702. if test -w "$cache_file"; then
  31703. test "x$cache_file" != "x/dev/null" &&
  31704. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  31705. echo "$as_me: updating cache $cache_file" >&6;}
  31706. cat confcache >$cache_file
  31707. else
  31708. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  31709. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31710. fi
  31711. fi
  31712. rm -f confcache
  31713. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  31714. # Let make expand exec_prefix.
  31715. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  31716. DEFS=-DHAVE_CONFIG_H
  31717. ac_libobjs=
  31718. ac_ltlibobjs=
  31719. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  31720. # 1. Remove the extension, and $U if already installed.
  31721. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  31722. ac_i=`echo "$ac_i" | sed "$ac_script"`
  31723. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  31724. # will be set to the directory where LIBOBJS objects are built.
  31725. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  31726. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  31727. done
  31728. LIBOBJS=$ac_libobjs
  31729. LTLIBOBJS=$ac_ltlibobjs
  31730. if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
  31731. { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
  31732. Usually this means the macro was only invoked conditionally." >&5
  31733. echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
  31734. Usually this means the macro was only invoked conditionally." >&2;}
  31735. { (exit 1); exit 1; }; }
  31736. fi
  31737. if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
  31738. { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
  31739. Usually this means the macro was only invoked conditionally." >&5
  31740. echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
  31741. Usually this means the macro was only invoked conditionally." >&2;}
  31742. { (exit 1); exit 1; }; }
  31743. fi
  31744. : ${CONFIG_STATUS=./config.status}
  31745. ac_clean_files_save=$ac_clean_files
  31746. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  31747. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  31748. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  31749. cat >$CONFIG_STATUS <<_ACEOF
  31750. #! $SHELL
  31751. # Generated by $as_me.
  31752. # Run this file to recreate the current configuration.
  31753. # Compiler output produced by configure, useful for debugging
  31754. # configure, is in config.log if it exists.
  31755. debug=false
  31756. ac_cs_recheck=false
  31757. ac_cs_silent=false
  31758. SHELL=\${CONFIG_SHELL-$SHELL}
  31759. _ACEOF
  31760. cat >>$CONFIG_STATUS <<\_ACEOF
  31761. ## --------------------- ##
  31762. ## M4sh Initialization. ##
  31763. ## --------------------- ##
  31764. # Be Bourne compatible
  31765. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  31766. emulate sh
  31767. NULLCMD=:
  31768. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  31769. # is contrary to our usage. Disable this feature.
  31770. alias -g '${1+"$@"}'='"$@"'
  31771. setopt NO_GLOB_SUBST
  31772. else
  31773. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  31774. fi
  31775. BIN_SH=xpg4; export BIN_SH # for Tru64
  31776. DUALCASE=1; export DUALCASE # for MKS sh
  31777. # PATH needs CR
  31778. # Avoid depending upon Character Ranges.
  31779. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31780. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31781. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31782. as_cr_digits='0123456789'
  31783. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31784. # The user is always right.
  31785. if test "${PATH_SEPARATOR+set}" != set; then
  31786. echo "#! /bin/sh" >conf$$.sh
  31787. echo "exit 0" >>conf$$.sh
  31788. chmod +x conf$$.sh
  31789. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31790. PATH_SEPARATOR=';'
  31791. else
  31792. PATH_SEPARATOR=:
  31793. fi
  31794. rm -f conf$$.sh
  31795. fi
  31796. # Support unset when possible.
  31797. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  31798. as_unset=unset
  31799. else
  31800. as_unset=false
  31801. fi
  31802. # IFS
  31803. # We need space, tab and new line, in precisely that order. Quoting is
  31804. # there to prevent editors from complaining about space-tab.
  31805. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  31806. # splitting by setting IFS to empty value.)
  31807. as_nl='
  31808. '
  31809. IFS=" "" $as_nl"
  31810. # Find who we are. Look in the path if we contain no directory separator.
  31811. case $0 in
  31812. *[\\/]* ) as_myself=$0 ;;
  31813. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31814. for as_dir in $PATH
  31815. do
  31816. IFS=$as_save_IFS
  31817. test -z "$as_dir" && as_dir=.
  31818. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  31819. done
  31820. IFS=$as_save_IFS
  31821. ;;
  31822. esac
  31823. # We did not find ourselves, most probably we were run as `sh COMMAND'
  31824. # in which case we are not to be found in the path.
  31825. if test "x$as_myself" = x; then
  31826. as_myself=$0
  31827. fi
  31828. if test ! -f "$as_myself"; then
  31829. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  31830. { (exit 1); exit 1; }
  31831. fi
  31832. # Work around bugs in pre-3.0 UWIN ksh.
  31833. for as_var in ENV MAIL MAILPATH
  31834. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  31835. done
  31836. PS1='$ '
  31837. PS2='> '
  31838. PS4='+ '
  31839. # NLS nuisances.
  31840. for as_var in \
  31841. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  31842. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  31843. LC_TELEPHONE LC_TIME
  31844. do
  31845. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  31846. eval $as_var=C; export $as_var
  31847. else
  31848. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  31849. fi
  31850. done
  31851. # Required to use basename.
  31852. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31853. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31854. as_expr=expr
  31855. else
  31856. as_expr=false
  31857. fi
  31858. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  31859. as_basename=basename
  31860. else
  31861. as_basename=false
  31862. fi
  31863. # Name of the executable.
  31864. as_me=`$as_basename -- "$0" ||
  31865. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  31866. X"$0" : 'X\(//\)$' \| \
  31867. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  31868. echo X/"$0" |
  31869. sed '/^.*\/\([^/][^/]*\)\/*$/{
  31870. s//\1/
  31871. q
  31872. }
  31873. /^X\/\(\/\/\)$/{
  31874. s//\1/
  31875. q
  31876. }
  31877. /^X\/\(\/\).*/{
  31878. s//\1/
  31879. q
  31880. }
  31881. s/.*/./; q'`
  31882. # CDPATH.
  31883. $as_unset CDPATH
  31884. as_lineno_1=$LINENO
  31885. as_lineno_2=$LINENO
  31886. test "x$as_lineno_1" != "x$as_lineno_2" &&
  31887. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  31888. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  31889. # uniformly replaced by the line number. The first 'sed' inserts a
  31890. # line-number line after each line using $LINENO; the second 'sed'
  31891. # does the real work. The second script uses 'N' to pair each
  31892. # line-number line with the line containing $LINENO, and appends
  31893. # trailing '-' during substitution so that $LINENO is not a special
  31894. # case at line end.
  31895. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  31896. # scripts with optimization help from Paolo Bonzini. Blame Lee
  31897. # E. McMahon (1931-1989) for sed's syntax. :-)
  31898. sed -n '
  31899. p
  31900. /[$]LINENO/=
  31901. ' <$as_myself |
  31902. sed '
  31903. s/[$]LINENO.*/&-/
  31904. t lineno
  31905. b
  31906. :lineno
  31907. N
  31908. :loop
  31909. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  31910. t loop
  31911. s/-\n.*//
  31912. ' >$as_me.lineno &&
  31913. chmod +x "$as_me.lineno" ||
  31914. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  31915. { (exit 1); exit 1; }; }
  31916. # Don't try to exec as it changes $[0], causing all sort of problems
  31917. # (the dirname of $[0] is not the place where we might find the
  31918. # original and so on. Autoconf is especially sensitive to this).
  31919. . "./$as_me.lineno"
  31920. # Exit status is that of the last command.
  31921. exit
  31922. }
  31923. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  31924. as_dirname=dirname
  31925. else
  31926. as_dirname=false
  31927. fi
  31928. ECHO_C= ECHO_N= ECHO_T=
  31929. case `echo -n x` in
  31930. -n*)
  31931. case `echo 'x\c'` in
  31932. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  31933. *) ECHO_C='\c';;
  31934. esac;;
  31935. *)
  31936. ECHO_N='-n';;
  31937. esac
  31938. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31939. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31940. as_expr=expr
  31941. else
  31942. as_expr=false
  31943. fi
  31944. rm -f conf$$ conf$$.exe conf$$.file
  31945. if test -d conf$$.dir; then
  31946. rm -f conf$$.dir/conf$$.file
  31947. else
  31948. rm -f conf$$.dir
  31949. mkdir conf$$.dir
  31950. fi
  31951. echo >conf$$.file
  31952. if ln -s conf$$.file conf$$ 2>/dev/null; then
  31953. as_ln_s='ln -s'
  31954. # ... but there are two gotchas:
  31955. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  31956. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  31957. # In both cases, we have to default to `cp -p'.
  31958. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  31959. as_ln_s='cp -p'
  31960. elif ln conf$$.file conf$$ 2>/dev/null; then
  31961. as_ln_s=ln
  31962. else
  31963. as_ln_s='cp -p'
  31964. fi
  31965. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  31966. rmdir conf$$.dir 2>/dev/null
  31967. if mkdir -p . 2>/dev/null; then
  31968. as_mkdir_p=:
  31969. else
  31970. test -d ./-p && rmdir ./-p
  31971. as_mkdir_p=false
  31972. fi
  31973. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  31974. # systems may use methods other than mode bits to determine executability.
  31975. cat >conf$$.file <<_ASEOF
  31976. #! /bin/sh
  31977. exit 0
  31978. _ASEOF
  31979. chmod +x conf$$.file
  31980. if test -x conf$$.file >/dev/null 2>&1; then
  31981. as_executable_p="test -x"
  31982. else
  31983. as_executable_p=:
  31984. fi
  31985. rm -f conf$$.file
  31986. # Sed expression to map a string onto a valid CPP name.
  31987. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  31988. # Sed expression to map a string onto a valid variable name.
  31989. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  31990. exec 6>&1
  31991. # Save the log message, to keep $[0] and so on meaningful, and to
  31992. # report actual input values of CONFIG_FILES etc. instead of their
  31993. # values after options handling.
  31994. ac_log="
  31995. This file was extended by llvm $as_me 2.6, which was
  31996. generated by GNU Autoconf 2.60. Invocation command line was
  31997. CONFIG_FILES = $CONFIG_FILES
  31998. CONFIG_HEADERS = $CONFIG_HEADERS
  31999. CONFIG_LINKS = $CONFIG_LINKS
  32000. CONFIG_COMMANDS = $CONFIG_COMMANDS
  32001. $ $0 $@
  32002. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  32003. "
  32004. _ACEOF
  32005. cat >>$CONFIG_STATUS <<_ACEOF
  32006. # Files that config.status was made for.
  32007. config_files="$ac_config_files"
  32008. config_headers="$ac_config_headers"
  32009. config_commands="$ac_config_commands"
  32010. _ACEOF
  32011. cat >>$CONFIG_STATUS <<\_ACEOF
  32012. ac_cs_usage="\
  32013. \`$as_me' instantiates files from templates according to the
  32014. current configuration.
  32015. Usage: $0 [OPTIONS] [FILE]...
  32016. -h, --help print this help, then exit
  32017. -V, --version print version number, then exit
  32018. -q, --quiet do not print progress messages
  32019. -d, --debug don't remove temporary files
  32020. --recheck update $as_me by reconfiguring in the same conditions
  32021. --file=FILE[:TEMPLATE]
  32022. instantiate the configuration file FILE
  32023. --header=FILE[:TEMPLATE]
  32024. instantiate the configuration header FILE
  32025. Configuration files:
  32026. $config_files
  32027. Configuration headers:
  32028. $config_headers
  32029. Configuration commands:
  32030. $config_commands
  32031. Report bugs to <bug-autoconf@gnu.org>."
  32032. _ACEOF
  32033. cat >>$CONFIG_STATUS <<_ACEOF
  32034. ac_cs_version="\\
  32035. llvm config.status 2.6
  32036. configured by $0, generated by GNU Autoconf 2.60,
  32037. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  32038. Copyright (C) 2006 Free Software Foundation, Inc.
  32039. This config.status script is free software; the Free Software Foundation
  32040. gives unlimited permission to copy, distribute and modify it."
  32041. ac_pwd='$ac_pwd'
  32042. srcdir='$srcdir'
  32043. INSTALL='$INSTALL'
  32044. _ACEOF
  32045. cat >>$CONFIG_STATUS <<\_ACEOF
  32046. # If no file are specified by the user, then we need to provide default
  32047. # value. By we need to know if files were specified by the user.
  32048. ac_need_defaults=:
  32049. while test $# != 0
  32050. do
  32051. case $1 in
  32052. --*=*)
  32053. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  32054. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  32055. ac_shift=:
  32056. ;;
  32057. *)
  32058. ac_option=$1
  32059. ac_optarg=$2
  32060. ac_shift=shift
  32061. ;;
  32062. esac
  32063. case $ac_option in
  32064. # Handling of the options.
  32065. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  32066. ac_cs_recheck=: ;;
  32067. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  32068. echo "$ac_cs_version"; exit ;;
  32069. --debug | --debu | --deb | --de | --d | -d )
  32070. debug=: ;;
  32071. --file | --fil | --fi | --f )
  32072. $ac_shift
  32073. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  32074. ac_need_defaults=false;;
  32075. --header | --heade | --head | --hea )
  32076. $ac_shift
  32077. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  32078. ac_need_defaults=false;;
  32079. --he | --h)
  32080. # Conflict between --help and --header
  32081. { echo "$as_me: error: ambiguous option: $1
  32082. Try \`$0 --help' for more information." >&2
  32083. { (exit 1); exit 1; }; };;
  32084. --help | --hel | -h )
  32085. echo "$ac_cs_usage"; exit ;;
  32086. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  32087. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  32088. ac_cs_silent=: ;;
  32089. # This is an error.
  32090. -*) { echo "$as_me: error: unrecognized option: $1
  32091. Try \`$0 --help' for more information." >&2
  32092. { (exit 1); exit 1; }; } ;;
  32093. *) ac_config_targets="$ac_config_targets $1"
  32094. ac_need_defaults=false ;;
  32095. esac
  32096. shift
  32097. done
  32098. ac_configure_extra_args=
  32099. if $ac_cs_silent; then
  32100. exec 6>/dev/null
  32101. ac_configure_extra_args="$ac_configure_extra_args --silent"
  32102. fi
  32103. _ACEOF
  32104. cat >>$CONFIG_STATUS <<_ACEOF
  32105. if \$ac_cs_recheck; then
  32106. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  32107. CONFIG_SHELL=$SHELL
  32108. export CONFIG_SHELL
  32109. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  32110. fi
  32111. _ACEOF
  32112. cat >>$CONFIG_STATUS <<\_ACEOF
  32113. exec 5>>config.log
  32114. {
  32115. echo
  32116. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  32117. ## Running $as_me. ##
  32118. _ASBOX
  32119. echo "$ac_log"
  32120. } >&5
  32121. _ACEOF
  32122. cat >>$CONFIG_STATUS <<_ACEOF
  32123. #
  32124. # INIT-COMMANDS
  32125. #
  32126. llvm_src="${srcdir}"
  32127. _ACEOF
  32128. cat >>$CONFIG_STATUS <<\_ACEOF
  32129. # Handling of arguments.
  32130. for ac_config_target in $ac_config_targets
  32131. do
  32132. case $ac_config_target in
  32133. "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
  32134. "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
  32135. "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
  32136. "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
  32137. "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
  32138. "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
  32139. "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
  32140. "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
  32141. "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
  32142. "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
  32143. "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
  32144. "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
  32145. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  32146. "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
  32147. "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
  32148. "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
  32149. "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
  32150. "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
  32151. "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
  32152. "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
  32153. "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
  32154. "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
  32155. "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
  32156. "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
  32157. "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
  32158. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  32159. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  32160. { (exit 1); exit 1; }; };;
  32161. esac
  32162. done
  32163. # If the user did not use the arguments to specify the items to instantiate,
  32164. # then the envvar interface is used. Set only those that are not.
  32165. # We use the long form for the default assignment because of an extremely
  32166. # bizarre bug on SunOS 4.1.3.
  32167. if $ac_need_defaults; then
  32168. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  32169. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  32170. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  32171. fi
  32172. # Have a temporary directory for convenience. Make it in the build tree
  32173. # simply because there is no reason against having it here, and in addition,
  32174. # creating and moving files from /tmp can sometimes cause problems.
  32175. # Hook for its removal unless debugging.
  32176. # Note that there is a small window in which the directory will not be cleaned:
  32177. # after its creation but before its name has been assigned to `$tmp'.
  32178. $debug ||
  32179. {
  32180. tmp=
  32181. trap 'exit_status=$?
  32182. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  32183. ' 0
  32184. trap '{ (exit 1); exit 1; }' 1 2 13 15
  32185. }
  32186. # Create a (secure) tmp directory for tmp files.
  32187. {
  32188. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  32189. test -n "$tmp" && test -d "$tmp"
  32190. } ||
  32191. {
  32192. tmp=./conf$$-$RANDOM
  32193. (umask 077 && mkdir "$tmp")
  32194. } ||
  32195. {
  32196. echo "$me: cannot create a temporary directory in ." >&2
  32197. { (exit 1); exit 1; }
  32198. }
  32199. #
  32200. # Set up the sed scripts for CONFIG_FILES section.
  32201. #
  32202. # No need to generate the scripts if there are no CONFIG_FILES.
  32203. # This happens for instance when ./config.status config.h
  32204. if test -n "$CONFIG_FILES"; then
  32205. _ACEOF
  32206. ac_delim='%!_!# '
  32207. for ac_last_try in false false false false false :; do
  32208. cat >conf$$subs.sed <<_ACEOF
  32209. SHELL!$SHELL$ac_delim
  32210. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  32211. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  32212. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  32213. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  32214. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  32215. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  32216. exec_prefix!$exec_prefix$ac_delim
  32217. prefix!$prefix$ac_delim
  32218. program_transform_name!$program_transform_name$ac_delim
  32219. bindir!$bindir$ac_delim
  32220. sbindir!$sbindir$ac_delim
  32221. libexecdir!$libexecdir$ac_delim
  32222. datarootdir!$datarootdir$ac_delim
  32223. datadir!$datadir$ac_delim
  32224. sysconfdir!$sysconfdir$ac_delim
  32225. sharedstatedir!$sharedstatedir$ac_delim
  32226. localstatedir!$localstatedir$ac_delim
  32227. includedir!$includedir$ac_delim
  32228. oldincludedir!$oldincludedir$ac_delim
  32229. docdir!$docdir$ac_delim
  32230. infodir!$infodir$ac_delim
  32231. htmldir!$htmldir$ac_delim
  32232. dvidir!$dvidir$ac_delim
  32233. pdfdir!$pdfdir$ac_delim
  32234. psdir!$psdir$ac_delim
  32235. libdir!$libdir$ac_delim
  32236. localedir!$localedir$ac_delim
  32237. mandir!$mandir$ac_delim
  32238. DEFS!$DEFS$ac_delim
  32239. ECHO_C!$ECHO_C$ac_delim
  32240. ECHO_N!$ECHO_N$ac_delim
  32241. ECHO_T!$ECHO_T$ac_delim
  32242. LIBS!$LIBS$ac_delim
  32243. build_alias!$build_alias$ac_delim
  32244. host_alias!$host_alias$ac_delim
  32245. target_alias!$target_alias$ac_delim
  32246. LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
  32247. subdirs!$subdirs$ac_delim
  32248. build!$build$ac_delim
  32249. build_cpu!$build_cpu$ac_delim
  32250. build_vendor!$build_vendor$ac_delim
  32251. build_os!$build_os$ac_delim
  32252. host!$host$ac_delim
  32253. host_cpu!$host_cpu$ac_delim
  32254. host_vendor!$host_vendor$ac_delim
  32255. host_os!$host_os$ac_delim
  32256. target!$target$ac_delim
  32257. target_cpu!$target_cpu$ac_delim
  32258. target_vendor!$target_vendor$ac_delim
  32259. target_os!$target_os$ac_delim
  32260. OS!$OS$ac_delim
  32261. HOST_OS!$HOST_OS$ac_delim
  32262. TARGET_OS!$TARGET_OS$ac_delim
  32263. LINKALL!$LINKALL$ac_delim
  32264. NOLINKALL!$NOLINKALL$ac_delim
  32265. LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
  32266. LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
  32267. ARCH!$ARCH$ac_delim
  32268. ENDIAN!$ENDIAN$ac_delim
  32269. CC!$CC$ac_delim
  32270. CFLAGS!$CFLAGS$ac_delim
  32271. LDFLAGS!$LDFLAGS$ac_delim
  32272. CPPFLAGS!$CPPFLAGS$ac_delim
  32273. ac_ct_CC!$ac_ct_CC$ac_delim
  32274. EXEEXT!$EXEEXT$ac_delim
  32275. OBJEXT!$OBJEXT$ac_delim
  32276. CPP!$CPP$ac_delim
  32277. GREP!$GREP$ac_delim
  32278. EGREP!$EGREP$ac_delim
  32279. LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
  32280. BUILD_CC!$BUILD_CC$ac_delim
  32281. BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
  32282. BUILD_CXX!$BUILD_CXX$ac_delim
  32283. CVSBUILD!$CVSBUILD$ac_delim
  32284. ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
  32285. ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
  32286. DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
  32287. LLVM_COMPACT_SENTINELS!$LLVM_COMPACT_SENTINELS$ac_delim
  32288. ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
  32289. EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
  32290. DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
  32291. JIT!$JIT$ac_delim
  32292. TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
  32293. ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
  32294. ENABLE_THREADS!$ENABLE_THREADS$ac_delim
  32295. ENABLE_PIC!$ENABLE_PIC$ac_delim
  32296. TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
  32297. LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
  32298. LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
  32299. LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
  32300. ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
  32301. EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
  32302. BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
  32303. ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
  32304. ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
  32305. CXX!$CXX$ac_delim
  32306. _ACEOF
  32307. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  32308. break
  32309. elif $ac_last_try; then
  32310. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32311. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32312. { (exit 1); exit 1; }; }
  32313. else
  32314. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32315. fi
  32316. done
  32317. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32318. if test -n "$ac_eof"; then
  32319. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32320. ac_eof=`expr $ac_eof + 1`
  32321. fi
  32322. cat >>$CONFIG_STATUS <<_ACEOF
  32323. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  32324. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32325. _ACEOF
  32326. sed '
  32327. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32328. s/^/s,@/; s/!/@,|#_!!_#|/
  32329. :n
  32330. t n
  32331. s/'"$ac_delim"'$/,g/; t
  32332. s/$/\\/; p
  32333. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32334. ' >>$CONFIG_STATUS <conf$$subs.sed
  32335. rm -f conf$$subs.sed
  32336. cat >>$CONFIG_STATUS <<_ACEOF
  32337. CEOF$ac_eof
  32338. _ACEOF
  32339. ac_delim='%!_!# '
  32340. for ac_last_try in false false false false false :; do
  32341. cat >conf$$subs.sed <<_ACEOF
  32342. CXXFLAGS!$CXXFLAGS$ac_delim
  32343. ac_ct_CXX!$ac_ct_CXX$ac_delim
  32344. NM!$NM$ac_delim
  32345. ifGNUmake!$ifGNUmake$ac_delim
  32346. LN_S!$LN_S$ac_delim
  32347. CMP!$CMP$ac_delim
  32348. CP!$CP$ac_delim
  32349. DATE!$DATE$ac_delim
  32350. FIND!$FIND$ac_delim
  32351. MKDIR!$MKDIR$ac_delim
  32352. MV!$MV$ac_delim
  32353. RANLIB!$RANLIB$ac_delim
  32354. RM!$RM$ac_delim
  32355. SED!$SED$ac_delim
  32356. TAR!$TAR$ac_delim
  32357. BINPWD!$BINPWD$ac_delim
  32358. GRAPHVIZ!$GRAPHVIZ$ac_delim
  32359. DOT!$DOT$ac_delim
  32360. FDP!$FDP$ac_delim
  32361. NEATO!$NEATO$ac_delim
  32362. TWOPI!$TWOPI$ac_delim
  32363. CIRCO!$CIRCO$ac_delim
  32364. GV!$GV$ac_delim
  32365. DOTTY!$DOTTY$ac_delim
  32366. PERL!$PERL$ac_delim
  32367. HAVE_PERL!$HAVE_PERL$ac_delim
  32368. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  32369. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  32370. INSTALL_DATA!$INSTALL_DATA$ac_delim
  32371. BZIP2!$BZIP2$ac_delim
  32372. DOXYGEN!$DOXYGEN$ac_delim
  32373. GROFF!$GROFF$ac_delim
  32374. GZIP!$GZIP$ac_delim
  32375. POD2HTML!$POD2HTML$ac_delim
  32376. POD2MAN!$POD2MAN$ac_delim
  32377. RUNTEST!$RUNTEST$ac_delim
  32378. TCLSH!$TCLSH$ac_delim
  32379. ZIP!$ZIP$ac_delim
  32380. OCAMLC!$OCAMLC$ac_delim
  32381. OCAMLOPT!$OCAMLOPT$ac_delim
  32382. OCAMLDEP!$OCAMLDEP$ac_delim
  32383. OCAMLDOC!$OCAMLDOC$ac_delim
  32384. GAS!$GAS$ac_delim
  32385. INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
  32386. INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
  32387. CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
  32388. CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
  32389. LIBADD_DL!$LIBADD_DL$ac_delim
  32390. ECHO!$ECHO$ac_delim
  32391. AR!$AR$ac_delim
  32392. STRIP!$STRIP$ac_delim
  32393. CXXCPP!$CXXCPP$ac_delim
  32394. F77!$F77$ac_delim
  32395. FFLAGS!$FFLAGS$ac_delim
  32396. ac_ct_F77!$ac_ct_F77$ac_delim
  32397. LIBTOOL!$LIBTOOL$ac_delim
  32398. LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
  32399. LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
  32400. LLVMGCC!$LLVMGCC$ac_delim
  32401. LLVMGXX!$LLVMGXX$ac_delim
  32402. USE_UDIS86!$USE_UDIS86$ac_delim
  32403. USE_OPROFILE!$USE_OPROFILE$ac_delim
  32404. HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
  32405. HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
  32406. ALLOCA!$ALLOCA$ac_delim
  32407. MMAP_FILE!$MMAP_FILE$ac_delim
  32408. LLVMCC1!$LLVMCC1$ac_delim
  32409. LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
  32410. LLVMGCCDIR!$LLVMGCCDIR$ac_delim
  32411. LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
  32412. LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
  32413. LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
  32414. LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
  32415. SHLIBEXT!$SHLIBEXT$ac_delim
  32416. LLVM_PREFIX!$LLVM_PREFIX$ac_delim
  32417. LLVM_BINDIR!$LLVM_BINDIR$ac_delim
  32418. LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
  32419. LLVM_DATADIR!$LLVM_DATADIR$ac_delim
  32420. LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
  32421. LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
  32422. LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
  32423. LLVM_INFODIR!$LLVM_INFODIR$ac_delim
  32424. LLVM_MANDIR!$LLVM_MANDIR$ac_delim
  32425. LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
  32426. BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
  32427. ALL_BINDINGS!$ALL_BINDINGS$ac_delim
  32428. OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
  32429. ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
  32430. RPATH!$RPATH$ac_delim
  32431. RDYNAMIC!$RDYNAMIC$ac_delim
  32432. LIBOBJS!$LIBOBJS$ac_delim
  32433. LTLIBOBJS!$LTLIBOBJS$ac_delim
  32434. _ACEOF
  32435. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
  32436. break
  32437. elif $ac_last_try; then
  32438. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32439. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32440. { (exit 1); exit 1; }; }
  32441. else
  32442. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32443. fi
  32444. done
  32445. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32446. if test -n "$ac_eof"; then
  32447. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32448. ac_eof=`expr $ac_eof + 1`
  32449. fi
  32450. cat >>$CONFIG_STATUS <<_ACEOF
  32451. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  32452. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  32453. _ACEOF
  32454. sed '
  32455. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32456. s/^/s,@/; s/!/@,|#_!!_#|/
  32457. :n
  32458. t n
  32459. s/'"$ac_delim"'$/,g/; t
  32460. s/$/\\/; p
  32461. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32462. ' >>$CONFIG_STATUS <conf$$subs.sed
  32463. rm -f conf$$subs.sed
  32464. cat >>$CONFIG_STATUS <<_ACEOF
  32465. :end
  32466. s/|#_!!_#|//g
  32467. CEOF$ac_eof
  32468. _ACEOF
  32469. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  32470. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  32471. # trailing colons and then remove the whole line if VPATH becomes empty
  32472. # (actually we leave an empty line to preserve line numbers).
  32473. if test "x$srcdir" = x.; then
  32474. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  32475. s/:*\$(srcdir):*/:/
  32476. s/:*\${srcdir}:*/:/
  32477. s/:*@srcdir@:*/:/
  32478. s/^\([^=]*=[ ]*\):*/\1/
  32479. s/:*$//
  32480. s/^[^=]*=[ ]*$//
  32481. }'
  32482. fi
  32483. cat >>$CONFIG_STATUS <<\_ACEOF
  32484. fi # test -n "$CONFIG_FILES"
  32485. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  32486. do
  32487. case $ac_tag in
  32488. :[FHLC]) ac_mode=$ac_tag; continue;;
  32489. esac
  32490. case $ac_mode$ac_tag in
  32491. :[FHL]*:*);;
  32492. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  32493. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  32494. { (exit 1); exit 1; }; };;
  32495. :[FH]-) ac_tag=-:-;;
  32496. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  32497. esac
  32498. ac_save_IFS=$IFS
  32499. IFS=:
  32500. set x $ac_tag
  32501. IFS=$ac_save_IFS
  32502. shift
  32503. ac_file=$1
  32504. shift
  32505. case $ac_mode in
  32506. :L) ac_source=$1;;
  32507. :[FH])
  32508. ac_file_inputs=
  32509. for ac_f
  32510. do
  32511. case $ac_f in
  32512. -) ac_f="$tmp/stdin";;
  32513. *) # Look for the file first in the build tree, then in the source tree
  32514. # (if the path is not absolute). The absolute path cannot be DOS-style,
  32515. # because $ac_f cannot contain `:'.
  32516. test -f "$ac_f" ||
  32517. case $ac_f in
  32518. [\\/$]*) false;;
  32519. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  32520. esac ||
  32521. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  32522. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  32523. { (exit 1); exit 1; }; };;
  32524. esac
  32525. ac_file_inputs="$ac_file_inputs $ac_f"
  32526. done
  32527. # Let's still pretend it is `configure' which instantiates (i.e., don't
  32528. # use $as_me), people would be surprised to read:
  32529. # /* config.h. Generated by config.status. */
  32530. configure_input="Generated from "`IFS=:
  32531. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  32532. if test x"$ac_file" != x-; then
  32533. configure_input="$ac_file. $configure_input"
  32534. { echo "$as_me:$LINENO: creating $ac_file" >&5
  32535. echo "$as_me: creating $ac_file" >&6;}
  32536. fi
  32537. case $ac_tag in
  32538. *:-:* | *:-) cat >"$tmp/stdin";;
  32539. esac
  32540. ;;
  32541. esac
  32542. ac_dir=`$as_dirname -- "$ac_file" ||
  32543. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32544. X"$ac_file" : 'X\(//\)[^/]' \| \
  32545. X"$ac_file" : 'X\(//\)$' \| \
  32546. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  32547. echo X"$ac_file" |
  32548. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32549. s//\1/
  32550. q
  32551. }
  32552. /^X\(\/\/\)[^/].*/{
  32553. s//\1/
  32554. q
  32555. }
  32556. /^X\(\/\/\)$/{
  32557. s//\1/
  32558. q
  32559. }
  32560. /^X\(\/\).*/{
  32561. s//\1/
  32562. q
  32563. }
  32564. s/.*/./; q'`
  32565. { as_dir="$ac_dir"
  32566. case $as_dir in #(
  32567. -*) as_dir=./$as_dir;;
  32568. esac
  32569. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32570. as_dirs=
  32571. while :; do
  32572. case $as_dir in #(
  32573. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32574. *) as_qdir=$as_dir;;
  32575. esac
  32576. as_dirs="'$as_qdir' $as_dirs"
  32577. as_dir=`$as_dirname -- "$as_dir" ||
  32578. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32579. X"$as_dir" : 'X\(//\)[^/]' \| \
  32580. X"$as_dir" : 'X\(//\)$' \| \
  32581. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32582. echo X"$as_dir" |
  32583. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32584. s//\1/
  32585. q
  32586. }
  32587. /^X\(\/\/\)[^/].*/{
  32588. s//\1/
  32589. q
  32590. }
  32591. /^X\(\/\/\)$/{
  32592. s//\1/
  32593. q
  32594. }
  32595. /^X\(\/\).*/{
  32596. s//\1/
  32597. q
  32598. }
  32599. s/.*/./; q'`
  32600. test -d "$as_dir" && break
  32601. done
  32602. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32603. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32604. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32605. { (exit 1); exit 1; }; }; }
  32606. ac_builddir=.
  32607. case "$ac_dir" in
  32608. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32609. *)
  32610. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32611. # A ".." for each directory in $ac_dir_suffix.
  32612. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  32613. case $ac_top_builddir_sub in
  32614. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32615. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32616. esac ;;
  32617. esac
  32618. ac_abs_top_builddir=$ac_pwd
  32619. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32620. # for backward compatibility:
  32621. ac_top_builddir=$ac_top_build_prefix
  32622. case $srcdir in
  32623. .) # We are building in place.
  32624. ac_srcdir=.
  32625. ac_top_srcdir=$ac_top_builddir_sub
  32626. ac_abs_top_srcdir=$ac_pwd ;;
  32627. [\\/]* | ?:[\\/]* ) # Absolute name.
  32628. ac_srcdir=$srcdir$ac_dir_suffix;
  32629. ac_top_srcdir=$srcdir
  32630. ac_abs_top_srcdir=$srcdir ;;
  32631. *) # Relative name.
  32632. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32633. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32634. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32635. esac
  32636. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32637. case $ac_mode in
  32638. :F)
  32639. #
  32640. # CONFIG_FILE
  32641. #
  32642. case $INSTALL in
  32643. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  32644. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  32645. esac
  32646. _ACEOF
  32647. cat >>$CONFIG_STATUS <<\_ACEOF
  32648. # If the template does not know about datarootdir, expand it.
  32649. # FIXME: This hack should be removed a few years after 2.60.
  32650. ac_datarootdir_hack=; ac_datarootdir_seen=
  32651. case `sed -n '/datarootdir/ {
  32652. p
  32653. q
  32654. }
  32655. /@datadir@/p
  32656. /@docdir@/p
  32657. /@infodir@/p
  32658. /@localedir@/p
  32659. /@mandir@/p
  32660. ' $ac_file_inputs` in
  32661. *datarootdir*) ac_datarootdir_seen=yes;;
  32662. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  32663. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  32664. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  32665. _ACEOF
  32666. cat >>$CONFIG_STATUS <<_ACEOF
  32667. ac_datarootdir_hack='
  32668. s&@datadir@&$datadir&g
  32669. s&@docdir@&$docdir&g
  32670. s&@infodir@&$infodir&g
  32671. s&@localedir@&$localedir&g
  32672. s&@mandir@&$mandir&g
  32673. s&\\\${datarootdir}&$datarootdir&g' ;;
  32674. esac
  32675. _ACEOF
  32676. # Neutralize VPATH when `$srcdir' = `.'.
  32677. # Shell code in configure.ac might set extrasub.
  32678. # FIXME: do we really want to maintain this feature?
  32679. cat >>$CONFIG_STATUS <<_ACEOF
  32680. sed "$ac_vpsub
  32681. $extrasub
  32682. _ACEOF
  32683. cat >>$CONFIG_STATUS <<\_ACEOF
  32684. :t
  32685. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32686. s&@configure_input@&$configure_input&;t t
  32687. s&@top_builddir@&$ac_top_builddir_sub&;t t
  32688. s&@srcdir@&$ac_srcdir&;t t
  32689. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  32690. s&@top_srcdir@&$ac_top_srcdir&;t t
  32691. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  32692. s&@builddir@&$ac_builddir&;t t
  32693. s&@abs_builddir@&$ac_abs_builddir&;t t
  32694. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  32695. s&@INSTALL@&$ac_INSTALL&;t t
  32696. $ac_datarootdir_hack
  32697. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  32698. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  32699. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  32700. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  32701. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32702. which seems to be undefined. Please make sure it is defined." >&5
  32703. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32704. which seems to be undefined. Please make sure it is defined." >&2;}
  32705. rm -f "$tmp/stdin"
  32706. case $ac_file in
  32707. -) cat "$tmp/out"; rm -f "$tmp/out";;
  32708. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  32709. esac
  32710. ;;
  32711. :H)
  32712. #
  32713. # CONFIG_HEADER
  32714. #
  32715. _ACEOF
  32716. # Transform confdefs.h into a sed script `conftest.defines', that
  32717. # substitutes the proper values into config.h.in to produce config.h.
  32718. rm -f conftest.defines conftest.tail
  32719. # First, append a space to every undef/define line, to ease matching.
  32720. echo 's/$/ /' >conftest.defines
  32721. # Then, protect against being on the right side of a sed subst, or in
  32722. # an unquoted here document, in config.status. If some macros were
  32723. # called several times there might be several #defines for the same
  32724. # symbol, which is useless. But do not sort them, since the last
  32725. # AC_DEFINE must be honored.
  32726. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  32727. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  32728. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  32729. # PARAMS is the parameter list in the macro definition--in most cases, it's
  32730. # just an empty string.
  32731. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  32732. ac_dB='\\)[ (].*,\\1define\\2'
  32733. ac_dC=' '
  32734. ac_dD=' ,'
  32735. uniq confdefs.h |
  32736. sed -n '
  32737. t rset
  32738. :rset
  32739. s/^[ ]*#[ ]*define[ ][ ]*//
  32740. t ok
  32741. d
  32742. :ok
  32743. s/[\\&,]/\\&/g
  32744. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  32745. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  32746. ' >>conftest.defines
  32747. # Remove the space that was appended to ease matching.
  32748. # Then replace #undef with comments. This is necessary, for
  32749. # example, in the case of _POSIX_SOURCE, which is predefined and required
  32750. # on some systems where configure will not decide to define it.
  32751. # (The regexp can be short, since the line contains either #define or #undef.)
  32752. echo 's/ $//
  32753. s,^[ #]*u.*,/* & */,' >>conftest.defines
  32754. # Break up conftest.defines:
  32755. ac_max_sed_lines=50
  32756. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  32757. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  32758. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  32759. # et cetera.
  32760. ac_in='$ac_file_inputs'
  32761. ac_out='"$tmp/out1"'
  32762. ac_nxt='"$tmp/out2"'
  32763. while :
  32764. do
  32765. # Write a here document:
  32766. cat >>$CONFIG_STATUS <<_ACEOF
  32767. # First, check the format of the line:
  32768. cat >"\$tmp/defines.sed" <<\\CEOF
  32769. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  32770. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  32771. b
  32772. :def
  32773. _ACEOF
  32774. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  32775. echo 'CEOF
  32776. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  32777. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  32778. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  32779. grep . conftest.tail >/dev/null || break
  32780. rm -f conftest.defines
  32781. mv conftest.tail conftest.defines
  32782. done
  32783. rm -f conftest.defines conftest.tail
  32784. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  32785. cat >>$CONFIG_STATUS <<\_ACEOF
  32786. if test x"$ac_file" != x-; then
  32787. echo "/* $configure_input */" >"$tmp/config.h"
  32788. cat "$ac_result" >>"$tmp/config.h"
  32789. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  32790. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  32791. echo "$as_me: $ac_file is unchanged" >&6;}
  32792. else
  32793. rm -f $ac_file
  32794. mv "$tmp/config.h" $ac_file
  32795. fi
  32796. else
  32797. echo "/* $configure_input */"
  32798. cat "$ac_result"
  32799. fi
  32800. rm -f "$tmp/out12"
  32801. ;;
  32802. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  32803. echo "$as_me: executing $ac_file commands" >&6;}
  32804. ;;
  32805. esac
  32806. case $ac_file$ac_mode in
  32807. "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
  32808. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
  32809. "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
  32810. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
  32811. "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
  32812. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
  32813. "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
  32814. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
  32815. "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
  32816. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
  32817. "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
  32818. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
  32819. "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
  32820. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
  32821. "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
  32822. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
  32823. "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
  32824. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
  32825. "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
  32826. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
  32827. "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
  32828. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
  32829. "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
  32830. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
  32831. "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
  32832. ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
  32833. esac
  32834. done # for ac_tag
  32835. { (exit 0); exit 0; }
  32836. _ACEOF
  32837. chmod +x $CONFIG_STATUS
  32838. ac_clean_files=$ac_clean_files_save
  32839. # configure is writing to config.log, and then calls config.status.
  32840. # config.status does its own redirection, appending to config.log.
  32841. # Unfortunately, on DOS this fails, as config.log is still kept open
  32842. # by configure, so config.status won't be able to write to it; its
  32843. # output is simply discarded. So we exec the FD to /dev/null,
  32844. # effectively closing config.log, so it can be properly (re)opened and
  32845. # appended to by config.status. When coming back to configure, we
  32846. # need to make the FD available again.
  32847. if test "$no_create" != yes; then
  32848. ac_cs_success=:
  32849. ac_config_status_args=
  32850. test "$silent" = yes &&
  32851. ac_config_status_args="$ac_config_status_args --quiet"
  32852. exec 5>/dev/null
  32853. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  32854. exec 5>>config.log
  32855. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  32856. # would make configure fail if this is the last instruction.
  32857. $ac_cs_success || { (exit 1); exit 1; }
  32858. fi
  32859. #
  32860. # CONFIG_SUBDIRS section.
  32861. #
  32862. if test "$no_recursion" != yes; then
  32863. # Remove --cache-file and --srcdir arguments so they do not pile up.
  32864. ac_sub_configure_args=
  32865. ac_prev=
  32866. eval "set x $ac_configure_args"
  32867. shift
  32868. for ac_arg
  32869. do
  32870. if test -n "$ac_prev"; then
  32871. ac_prev=
  32872. continue
  32873. fi
  32874. case $ac_arg in
  32875. -cache-file | --cache-file | --cache-fil | --cache-fi \
  32876. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  32877. ac_prev=cache_file ;;
  32878. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  32879. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  32880. | --c=*)
  32881. ;;
  32882. --config-cache | -C)
  32883. ;;
  32884. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  32885. ac_prev=srcdir ;;
  32886. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  32887. ;;
  32888. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  32889. ac_prev=prefix ;;
  32890. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  32891. ;;
  32892. *)
  32893. case $ac_arg in
  32894. *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  32895. esac
  32896. ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
  32897. esac
  32898. done
  32899. # Always prepend --prefix to ensure using the same prefix
  32900. # in subdir configurations.
  32901. ac_arg="--prefix=$prefix"
  32902. case $ac_arg in
  32903. *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  32904. esac
  32905. ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
  32906. ac_popdir=`pwd`
  32907. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  32908. # Do not complain, so a configure script can configure whichever
  32909. # parts of a large source tree are present.
  32910. test -d "$srcdir/$ac_dir" || continue
  32911. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  32912. echo "$as_me:$LINENO: $ac_msg" >&5
  32913. echo "$ac_msg" >&6
  32914. { as_dir="$ac_dir"
  32915. case $as_dir in #(
  32916. -*) as_dir=./$as_dir;;
  32917. esac
  32918. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32919. as_dirs=
  32920. while :; do
  32921. case $as_dir in #(
  32922. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32923. *) as_qdir=$as_dir;;
  32924. esac
  32925. as_dirs="'$as_qdir' $as_dirs"
  32926. as_dir=`$as_dirname -- "$as_dir" ||
  32927. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32928. X"$as_dir" : 'X\(//\)[^/]' \| \
  32929. X"$as_dir" : 'X\(//\)$' \| \
  32930. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32931. echo X"$as_dir" |
  32932. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32933. s//\1/
  32934. q
  32935. }
  32936. /^X\(\/\/\)[^/].*/{
  32937. s//\1/
  32938. q
  32939. }
  32940. /^X\(\/\/\)$/{
  32941. s//\1/
  32942. q
  32943. }
  32944. /^X\(\/\).*/{
  32945. s//\1/
  32946. q
  32947. }
  32948. s/.*/./; q'`
  32949. test -d "$as_dir" && break
  32950. done
  32951. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32952. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32953. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32954. { (exit 1); exit 1; }; }; }
  32955. ac_builddir=.
  32956. case "$ac_dir" in
  32957. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32958. *)
  32959. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32960. # A ".." for each directory in $ac_dir_suffix.
  32961. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  32962. case $ac_top_builddir_sub in
  32963. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32964. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32965. esac ;;
  32966. esac
  32967. ac_abs_top_builddir=$ac_pwd
  32968. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32969. # for backward compatibility:
  32970. ac_top_builddir=$ac_top_build_prefix
  32971. case $srcdir in
  32972. .) # We are building in place.
  32973. ac_srcdir=.
  32974. ac_top_srcdir=$ac_top_builddir_sub
  32975. ac_abs_top_srcdir=$ac_pwd ;;
  32976. [\\/]* | ?:[\\/]* ) # Absolute name.
  32977. ac_srcdir=$srcdir$ac_dir_suffix;
  32978. ac_top_srcdir=$srcdir
  32979. ac_abs_top_srcdir=$srcdir ;;
  32980. *) # Relative name.
  32981. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32982. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32983. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32984. esac
  32985. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32986. cd "$ac_dir"
  32987. # Check for guested configure; otherwise get Cygnus style configure.
  32988. if test -f "$ac_srcdir/configure.gnu"; then
  32989. ac_sub_configure=$ac_srcdir/configure.gnu
  32990. elif test -f "$ac_srcdir/configure"; then
  32991. ac_sub_configure=$ac_srcdir/configure
  32992. elif test -f "$ac_srcdir/configure.in"; then
  32993. # This should be Cygnus configure.
  32994. ac_sub_configure=$ac_aux_dir/configure
  32995. else
  32996. { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
  32997. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  32998. ac_sub_configure=
  32999. fi
  33000. # The recursion is here.
  33001. if test -n "$ac_sub_configure"; then
  33002. # Make the cache file name correct relative to the subdirectory.
  33003. case $cache_file in
  33004. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  33005. *) # Relative name.
  33006. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  33007. esac
  33008. { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  33009. echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  33010. # The eval makes quoting arguments work.
  33011. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  33012. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  33013. { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  33014. echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  33015. { (exit 1); exit 1; }; }
  33016. fi
  33017. cd "$ac_popdir"
  33018. done
  33019. fi