PageRenderTime 119ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 3ms

/lib/libmad/configure

http://github.com/xbmc/xbmc
Shell | 16295 lines | 14701 code | 947 blank | 647 comment | 818 complexity | 71e4c26efe9182b37046c029d0ac1df0 MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-3.0, LGPL-2.0, 0BSD, Unlicense, GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0
  1. #! /bin/sh
  2. # From configure.ac Id: configure.ac,v 1.9 2004/01/23 09:41:32 rob Exp .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.63 for MPEG Audio Decoder 0.15.1b.
  5. #
  6. # Report bugs to <support@underbit.com>.
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='printf %s\n'
  45. as_echo_n='printf %s'
  46. else
  47. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  48. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  49. as_echo_n='/usr/ucb/echo -n'
  50. else
  51. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  52. as_echo_n_body='eval
  53. arg=$1;
  54. case $arg in
  55. *"$as_nl"*)
  56. expr "X$arg" : "X\\(.*\\)$as_nl";
  57. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  58. esac;
  59. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  60. '
  61. export as_echo_n_body
  62. as_echo_n='sh -c $as_echo_n_body as_echo'
  63. fi
  64. export as_echo_body
  65. as_echo='sh -c $as_echo_body as_echo'
  66. fi
  67. # The user is always right.
  68. if test "${PATH_SEPARATOR+set}" != set; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Support unset when possible.
  76. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  77. as_unset=unset
  78. else
  79. as_unset=false
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. case $0 in
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. { (exit 1); exit 1; }
  108. fi
  109. # Work around bugs in pre-3.0 UWIN ksh.
  110. for as_var in ENV MAIL MAILPATH
  111. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # Required to use basename.
  122. if expr a : '\(a\)' >/dev/null 2>&1 &&
  123. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  124. as_expr=expr
  125. else
  126. as_expr=false
  127. fi
  128. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  129. as_basename=basename
  130. else
  131. as_basename=false
  132. fi
  133. # Name of the executable.
  134. as_me=`$as_basename -- "$0" ||
  135. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  136. X"$0" : 'X\(//\)$' \| \
  137. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  138. $as_echo X/"$0" |
  139. sed '/^.*\/\([^/][^/]*\)\/*$/{
  140. s//\1/
  141. q
  142. }
  143. /^X\/\(\/\/\)$/{
  144. s//\1/
  145. q
  146. }
  147. /^X\/\(\/\).*/{
  148. s//\1/
  149. q
  150. }
  151. s/.*/./; q'`
  152. # CDPATH.
  153. $as_unset CDPATH
  154. if test "x$CONFIG_SHELL" = x; then
  155. if (eval ":") 2>/dev/null; then
  156. as_have_required=yes
  157. else
  158. as_have_required=no
  159. fi
  160. if test $as_have_required = yes && (eval ":
  161. (as_func_return () {
  162. (exit \$1)
  163. }
  164. as_func_success () {
  165. as_func_return 0
  166. }
  167. as_func_failure () {
  168. as_func_return 1
  169. }
  170. as_func_ret_success () {
  171. return 0
  172. }
  173. as_func_ret_failure () {
  174. return 1
  175. }
  176. exitcode=0
  177. if as_func_success; then
  178. :
  179. else
  180. exitcode=1
  181. echo as_func_success failed.
  182. fi
  183. if as_func_failure; then
  184. exitcode=1
  185. echo as_func_failure succeeded.
  186. fi
  187. if as_func_ret_success; then
  188. :
  189. else
  190. exitcode=1
  191. echo as_func_ret_success failed.
  192. fi
  193. if as_func_ret_failure; then
  194. exitcode=1
  195. echo as_func_ret_failure succeeded.
  196. fi
  197. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  198. :
  199. else
  200. exitcode=1
  201. echo positional parameters were not saved.
  202. fi
  203. test \$exitcode = 0) || { (exit 1); exit 1; }
  204. (
  205. as_lineno_1=\$LINENO
  206. as_lineno_2=\$LINENO
  207. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  208. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  209. ") 2> /dev/null; then
  210. :
  211. else
  212. as_candidate_shells=
  213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  214. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  215. do
  216. IFS=$as_save_IFS
  217. test -z "$as_dir" && as_dir=.
  218. case $as_dir in
  219. /*)
  220. for as_base in sh bash ksh sh5; do
  221. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  222. done;;
  223. esac
  224. done
  225. IFS=$as_save_IFS
  226. for as_shell in $as_candidate_shells $SHELL; do
  227. # Try only shells that exist, to save several forks.
  228. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  229. { ("$as_shell") 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. _ASEOF
  244. }; then
  245. CONFIG_SHELL=$as_shell
  246. as_have_required=yes
  247. if { "$as_shell" 2> /dev/null <<\_ASEOF
  248. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  249. emulate sh
  250. NULLCMD=:
  251. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  252. # is contrary to our usage. Disable this feature.
  253. alias -g '${1+"$@"}'='"$@"'
  254. setopt NO_GLOB_SUBST
  255. else
  256. case `(set -o) 2>/dev/null` in
  257. *posix*) set -o posix ;;
  258. esac
  259. fi
  260. :
  261. (as_func_return () {
  262. (exit $1)
  263. }
  264. as_func_success () {
  265. as_func_return 0
  266. }
  267. as_func_failure () {
  268. as_func_return 1
  269. }
  270. as_func_ret_success () {
  271. return 0
  272. }
  273. as_func_ret_failure () {
  274. return 1
  275. }
  276. exitcode=0
  277. if as_func_success; then
  278. :
  279. else
  280. exitcode=1
  281. echo as_func_success failed.
  282. fi
  283. if as_func_failure; then
  284. exitcode=1
  285. echo as_func_failure succeeded.
  286. fi
  287. if as_func_ret_success; then
  288. :
  289. else
  290. exitcode=1
  291. echo as_func_ret_success failed.
  292. fi
  293. if as_func_ret_failure; then
  294. exitcode=1
  295. echo as_func_ret_failure succeeded.
  296. fi
  297. if ( set x; as_func_ret_success y && test x = "$1" ); then
  298. :
  299. else
  300. exitcode=1
  301. echo positional parameters were not saved.
  302. fi
  303. test $exitcode = 0) || { (exit 1); exit 1; }
  304. (
  305. as_lineno_1=$LINENO
  306. as_lineno_2=$LINENO
  307. test "x$as_lineno_1" != "x$as_lineno_2" &&
  308. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  309. _ASEOF
  310. }; then
  311. break
  312. fi
  313. fi
  314. done
  315. if test "x$CONFIG_SHELL" != x; then
  316. for as_var in BASH_ENV ENV
  317. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  318. done
  319. export CONFIG_SHELL
  320. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  321. fi
  322. if test $as_have_required = no; then
  323. echo This script requires a shell more modern than all the
  324. echo shells that I found on your system. Please install a
  325. echo modern shell, or manually run the script under such a
  326. echo shell if you do have one.
  327. { (exit 1); exit 1; }
  328. fi
  329. fi
  330. fi
  331. (eval "as_func_return () {
  332. (exit \$1)
  333. }
  334. as_func_success () {
  335. as_func_return 0
  336. }
  337. as_func_failure () {
  338. as_func_return 1
  339. }
  340. as_func_ret_success () {
  341. return 0
  342. }
  343. as_func_ret_failure () {
  344. return 1
  345. }
  346. exitcode=0
  347. if as_func_success; then
  348. :
  349. else
  350. exitcode=1
  351. echo as_func_success failed.
  352. fi
  353. if as_func_failure; then
  354. exitcode=1
  355. echo as_func_failure succeeded.
  356. fi
  357. if as_func_ret_success; then
  358. :
  359. else
  360. exitcode=1
  361. echo as_func_ret_success failed.
  362. fi
  363. if as_func_ret_failure; then
  364. exitcode=1
  365. echo as_func_ret_failure succeeded.
  366. fi
  367. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  368. :
  369. else
  370. exitcode=1
  371. echo positional parameters were not saved.
  372. fi
  373. test \$exitcode = 0") || {
  374. echo No shell found that supports shell functions.
  375. echo Please tell bug-autoconf@gnu.org about your system,
  376. echo including any error possibly output before this message.
  377. echo This can help us improve future autoconf versions.
  378. echo Configuration will now proceed without shell functions.
  379. }
  380. as_lineno_1=$LINENO
  381. as_lineno_2=$LINENO
  382. test "x$as_lineno_1" != "x$as_lineno_2" &&
  383. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  384. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  385. # uniformly replaced by the line number. The first 'sed' inserts a
  386. # line-number line after each line using $LINENO; the second 'sed'
  387. # does the real work. The second script uses 'N' to pair each
  388. # line-number line with the line containing $LINENO, and appends
  389. # trailing '-' during substitution so that $LINENO is not a special
  390. # case at line end.
  391. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  392. # scripts with optimization help from Paolo Bonzini. Blame Lee
  393. # E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  411. { (exit 1); exit 1; }; }
  412. # Don't try to exec as it changes $[0], causing all sort of problems
  413. # (the dirname of $[0] is not the place where we might find the
  414. # original and so on. Autoconf is especially sensitive to this).
  415. . "./$as_me.lineno"
  416. # Exit status is that of the last command.
  417. exit
  418. }
  419. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  420. as_dirname=dirname
  421. else
  422. as_dirname=false
  423. fi
  424. ECHO_C= ECHO_N= ECHO_T=
  425. case `echo -n x` in
  426. -n*)
  427. case `echo 'x\c'` in
  428. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  429. *) ECHO_C='\c';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. if expr a : '\(a\)' >/dev/null 2>&1 &&
  435. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  436. as_expr=expr
  437. else
  438. as_expr=false
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.file
  441. if test -d conf$$.dir; then
  442. rm -f conf$$.dir/conf$$.file
  443. else
  444. rm -f conf$$.dir
  445. mkdir conf$$.dir 2>/dev/null
  446. fi
  447. if (echo >conf$$.file) 2>/dev/null; then
  448. if ln -s conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s='ln -s'
  450. # ... but there are two gotchas:
  451. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  452. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  453. # In both cases, we have to default to `cp -p'.
  454. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  455. as_ln_s='cp -p'
  456. elif ln conf$$.file conf$$ 2>/dev/null; then
  457. as_ln_s=ln
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. else
  462. as_ln_s='cp -p'
  463. fi
  464. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  465. rmdir conf$$.dir 2>/dev/null
  466. if mkdir -p . 2>/dev/null; then
  467. as_mkdir_p=:
  468. else
  469. test -d ./-p && rmdir ./-p
  470. as_mkdir_p=false
  471. fi
  472. if test -x / >/dev/null 2>&1; then
  473. as_test_x='test -x'
  474. else
  475. if ls -dL / >/dev/null 2>&1; then
  476. as_ls_L_option=L
  477. else
  478. as_ls_L_option=
  479. fi
  480. as_test_x='
  481. eval sh -c '\''
  482. if test -d "$1"; then
  483. test -d "$1/.";
  484. else
  485. case $1 in
  486. -*)set "./$1";;
  487. esac;
  488. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  489. ???[sx]*):;;*)false;;esac;fi
  490. '\'' sh
  491. '
  492. fi
  493. as_executable_p=$as_test_x
  494. # Sed expression to map a string onto a valid CPP name.
  495. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  496. # Sed expression to map a string onto a valid variable name.
  497. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  498. # Check that we are running under the correct shell.
  499. SHELL=${CONFIG_SHELL-/bin/sh}
  500. case X$lt_ECHO in
  501. X*--fallback-echo)
  502. # Remove one level of quotation (which was required for Make).
  503. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  504. ;;
  505. esac
  506. ECHO=${lt_ECHO-echo}
  507. if test "X$1" = X--no-reexec; then
  508. # Discard the --no-reexec flag, and continue.
  509. shift
  510. elif test "X$1" = X--fallback-echo; then
  511. # Avoid inline document here, it may be left over
  512. :
  513. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  514. # Yippee, $ECHO works!
  515. :
  516. else
  517. # Restart under the correct shell.
  518. exec $SHELL "$0" --no-reexec ${1+"$@"}
  519. fi
  520. if test "X$1" = X--fallback-echo; then
  521. # used as fallback echo
  522. shift
  523. cat <<_LT_EOF
  524. $*
  525. _LT_EOF
  526. exit 0
  527. fi
  528. # The HP-UX ksh and POSIX shell print the target directory to stdout
  529. # if CDPATH is set.
  530. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  531. if test -z "$lt_ECHO"; then
  532. if test "X${echo_test_string+set}" != Xset; then
  533. # find a string as large as possible, as long as the shell can cope with it
  534. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  535. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  536. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  537. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  538. then
  539. break
  540. fi
  541. done
  542. fi
  543. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. :
  547. else
  548. # The Solaris, AIX, and Digital Unix default echo programs unquote
  549. # backslashes. This makes it impossible to quote backslashes using
  550. # echo "$something" | sed 's/\\/\\\\/g'
  551. #
  552. # So, first we look for a working echo in the user's PATH.
  553. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  554. for dir in $PATH /usr/ucb; do
  555. IFS="$lt_save_ifs"
  556. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  557. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. ECHO="$dir/echo"
  561. break
  562. fi
  563. done
  564. IFS="$lt_save_ifs"
  565. if test "X$ECHO" = Xecho; then
  566. # We didn't find a better echo, so look for alternatives.
  567. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  568. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. # This shell has a builtin print -r that does the trick.
  571. ECHO='print -r'
  572. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  573. test "X$CONFIG_SHELL" != X/bin/ksh; then
  574. # If we have ksh, try running configure again with it.
  575. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  576. export ORIGINAL_CONFIG_SHELL
  577. CONFIG_SHELL=/bin/ksh
  578. export CONFIG_SHELL
  579. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  580. else
  581. # Try using printf.
  582. ECHO='printf %s\n'
  583. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  584. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  585. test "X$echo_testing_string" = "X$echo_test_string"; then
  586. # Cool, printf works
  587. :
  588. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  589. test "X$echo_testing_string" = 'X\t' &&
  590. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  591. test "X$echo_testing_string" = "X$echo_test_string"; then
  592. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  593. export CONFIG_SHELL
  594. SHELL="$CONFIG_SHELL"
  595. export SHELL
  596. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  597. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  598. test "X$echo_testing_string" = 'X\t' &&
  599. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  600. test "X$echo_testing_string" = "X$echo_test_string"; then
  601. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  602. else
  603. # maybe with a smaller string...
  604. prev=:
  605. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  606. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  607. then
  608. break
  609. fi
  610. prev="$cmd"
  611. done
  612. if test "$prev" != 'sed 50q "$0"'; then
  613. echo_test_string=`eval $prev`
  614. export echo_test_string
  615. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  616. else
  617. # Oops. We lost completely, so just stick with echo.
  618. ECHO=echo
  619. fi
  620. fi
  621. fi
  622. fi
  623. fi
  624. fi
  625. # Copy echo and quote the copy suitably for passing to libtool from
  626. # the Makefile, instead of quoting the original, which is used later.
  627. lt_ECHO=$ECHO
  628. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  629. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  630. fi
  631. exec 7<&0 </dev/null 6>&1
  632. # Name of the host.
  633. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  634. # so uname gets run too.
  635. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  636. #
  637. # Initializations.
  638. #
  639. ac_default_prefix=/usr/local
  640. ac_clean_files=
  641. ac_config_libobj_dir=.
  642. LIBOBJS=
  643. cross_compiling=no
  644. subdirs=
  645. MFLAGS=
  646. MAKEFLAGS=
  647. SHELL=${CONFIG_SHELL-/bin/sh}
  648. # Identity of this package.
  649. PACKAGE_NAME='MPEG Audio Decoder'
  650. PACKAGE_TARNAME='libmad'
  651. PACKAGE_VERSION='0.15.1b'
  652. PACKAGE_STRING='MPEG Audio Decoder 0.15.1b'
  653. PACKAGE_BUGREPORT='support@underbit.com'
  654. ac_unique_file="decoder.h"
  655. # Factoring default headers for most tests.
  656. ac_includes_default="\
  657. #include <stdio.h>
  658. #ifdef HAVE_SYS_TYPES_H
  659. # include <sys/types.h>
  660. #endif
  661. #ifdef HAVE_SYS_STAT_H
  662. # include <sys/stat.h>
  663. #endif
  664. #ifdef STDC_HEADERS
  665. # include <stdlib.h>
  666. # include <stddef.h>
  667. #else
  668. # ifdef HAVE_STDLIB_H
  669. # include <stdlib.h>
  670. # endif
  671. #endif
  672. #ifdef HAVE_STRING_H
  673. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  674. # include <memory.h>
  675. # endif
  676. # include <string.h>
  677. #endif
  678. #ifdef HAVE_STRINGS_H
  679. # include <strings.h>
  680. #endif
  681. #ifdef HAVE_INTTYPES_H
  682. # include <inttypes.h>
  683. #endif
  684. #ifdef HAVE_STDINT_H
  685. # include <stdint.h>
  686. #endif
  687. #ifdef HAVE_UNISTD_H
  688. # include <unistd.h>
  689. #endif"
  690. ac_subst_vars='LTLIBOBJS
  691. LIBOBJS
  692. ASO_OBJS
  693. ASO
  694. FPM
  695. LIBTOOL_DEPS
  696. CPP
  697. OTOOL64
  698. OTOOL
  699. LIPO
  700. NMEDIT
  701. DSYMUTIL
  702. lt_ECHO
  703. RANLIB
  704. AR
  705. OBJDUMP
  706. LN_S
  707. NM
  708. ac_ct_DUMPBIN
  709. DUMPBIN
  710. LD
  711. FGREP
  712. EGREP
  713. GREP
  714. SED
  715. LIBTOOL
  716. am__fastdepCCAS_FALSE
  717. am__fastdepCCAS_TRUE
  718. CCASDEPMODE
  719. CCASFLAGS
  720. CCAS
  721. am__fastdepCC_FALSE
  722. am__fastdepCC_TRUE
  723. CCDEPMODE
  724. AMDEPBACKSLASH
  725. AMDEP_FALSE
  726. AMDEP_TRUE
  727. am__quote
  728. am__include
  729. DEPDIR
  730. OBJEXT
  731. EXEEXT
  732. ac_ct_CC
  733. CPPFLAGS
  734. LDFLAGS
  735. CFLAGS
  736. CC
  737. host_os
  738. host_vendor
  739. host_cpu
  740. host
  741. build_os
  742. build_vendor
  743. build_cpu
  744. build
  745. am__untar
  746. am__tar
  747. AMTAR
  748. am__leading_dot
  749. SET_MAKE
  750. AWK
  751. mkdir_p
  752. MKDIR_P
  753. INSTALL_STRIP_PROGRAM
  754. STRIP
  755. install_sh
  756. MAKEINFO
  757. AUTOHEADER
  758. AUTOMAKE
  759. AUTOCONF
  760. ACLOCAL
  761. VERSION
  762. PACKAGE
  763. CYGPATH_W
  764. am__isrc
  765. INSTALL_DATA
  766. INSTALL_SCRIPT
  767. INSTALL_PROGRAM
  768. target_alias
  769. host_alias
  770. build_alias
  771. LIBS
  772. ECHO_T
  773. ECHO_N
  774. ECHO_C
  775. DEFS
  776. mandir
  777. localedir
  778. libdir
  779. psdir
  780. pdfdir
  781. dvidir
  782. htmldir
  783. infodir
  784. docdir
  785. oldincludedir
  786. includedir
  787. localstatedir
  788. sharedstatedir
  789. sysconfdir
  790. datadir
  791. datarootdir
  792. libexecdir
  793. sbindir
  794. bindir
  795. program_transform_name
  796. prefix
  797. exec_prefix
  798. PACKAGE_BUGREPORT
  799. PACKAGE_STRING
  800. PACKAGE_VERSION
  801. PACKAGE_TARNAME
  802. PACKAGE_NAME
  803. PATH_SEPARATOR
  804. SHELL'
  805. ac_subst_files=''
  806. ac_user_opts='
  807. enable_option_checking
  808. enable_dependency_tracking
  809. enable_shared
  810. enable_static
  811. with_pic
  812. enable_fast_install
  813. with_gnu_ld
  814. enable_libtool_lock
  815. enable_speed
  816. enable_accuracy
  817. enable_fpm
  818. enable_sso
  819. enable_aso
  820. enable_strict_iso
  821. enable_profiling
  822. enable_debugging
  823. enable_experimental
  824. '
  825. ac_precious_vars='build_alias
  826. host_alias
  827. target_alias
  828. CC
  829. CFLAGS
  830. LDFLAGS
  831. LIBS
  832. CPPFLAGS
  833. CCAS
  834. CCASFLAGS
  835. CPP'
  836. # Initialize some variables set by options.
  837. ac_init_help=
  838. ac_init_version=false
  839. ac_unrecognized_opts=
  840. ac_unrecognized_sep=
  841. # The variables have the same names as the options, with
  842. # dashes changed to underlines.
  843. cache_file=/dev/null
  844. exec_prefix=NONE
  845. no_create=
  846. no_recursion=
  847. prefix=NONE
  848. program_prefix=NONE
  849. program_suffix=NONE
  850. program_transform_name=s,x,x,
  851. silent=
  852. site=
  853. srcdir=
  854. verbose=
  855. x_includes=NONE
  856. x_libraries=NONE
  857. # Installation directory options.
  858. # These are left unexpanded so users can "make install exec_prefix=/foo"
  859. # and all the variables that are supposed to be based on exec_prefix
  860. # by default will actually change.
  861. # Use braces instead of parens because sh, perl, etc. also accept them.
  862. # (The list follows the same order as the GNU Coding Standards.)
  863. bindir='${exec_prefix}/bin'
  864. sbindir='${exec_prefix}/sbin'
  865. libexecdir='${exec_prefix}/libexec'
  866. datarootdir='${prefix}/share'
  867. datadir='${datarootdir}'
  868. sysconfdir='${prefix}/etc'
  869. sharedstatedir='${prefix}/com'
  870. localstatedir='${prefix}/var'
  871. includedir='${prefix}/include'
  872. oldincludedir='/usr/include'
  873. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  874. infodir='${datarootdir}/info'
  875. htmldir='${docdir}'
  876. dvidir='${docdir}'
  877. pdfdir='${docdir}'
  878. psdir='${docdir}'
  879. libdir='${exec_prefix}/lib'
  880. localedir='${datarootdir}/locale'
  881. mandir='${datarootdir}/man'
  882. ac_prev=
  883. ac_dashdash=
  884. for ac_option
  885. do
  886. # If the previous option needs an argument, assign it.
  887. if test -n "$ac_prev"; then
  888. eval $ac_prev=\$ac_option
  889. ac_prev=
  890. continue
  891. fi
  892. case $ac_option in
  893. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  894. *) ac_optarg=yes ;;
  895. esac
  896. # Accept the important Cygnus configure options, so we can diagnose typos.
  897. case $ac_dashdash$ac_option in
  898. --)
  899. ac_dashdash=yes ;;
  900. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  901. ac_prev=bindir ;;
  902. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  903. bindir=$ac_optarg ;;
  904. -build | --build | --buil | --bui | --bu)
  905. ac_prev=build_alias ;;
  906. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  907. build_alias=$ac_optarg ;;
  908. -cache-file | --cache-file | --cache-fil | --cache-fi \
  909. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  910. ac_prev=cache_file ;;
  911. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  912. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  913. cache_file=$ac_optarg ;;
  914. --config-cache | -C)
  915. cache_file=config.cache ;;
  916. -datadir | --datadir | --datadi | --datad)
  917. ac_prev=datadir ;;
  918. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  919. datadir=$ac_optarg ;;
  920. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  921. | --dataroo | --dataro | --datar)
  922. ac_prev=datarootdir ;;
  923. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  924. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  925. datarootdir=$ac_optarg ;;
  926. -disable-* | --disable-*)
  927. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  928. # Reject names that are not valid shell variable names.
  929. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  930. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  931. { (exit 1); exit 1; }; }
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  955. { (exit 1); exit 1; }; }
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "enable_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval enable_$ac_useropt=\$ac_optarg ;;
  966. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  967. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  968. | --exec | --exe | --ex)
  969. ac_prev=exec_prefix ;;
  970. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  971. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  972. | --exec=* | --exe=* | --ex=*)
  973. exec_prefix=$ac_optarg ;;
  974. -gas | --gas | --ga | --g)
  975. # Obsolete; use --with-gas.
  976. with_gas=yes ;;
  977. -help | --help | --hel | --he | -h)
  978. ac_init_help=long ;;
  979. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  980. ac_init_help=recursive ;;
  981. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  982. ac_init_help=short ;;
  983. -host | --host | --hos | --ho)
  984. ac_prev=host_alias ;;
  985. -host=* | --host=* | --hos=* | --ho=*)
  986. host_alias=$ac_optarg ;;
  987. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  988. ac_prev=htmldir ;;
  989. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  990. | --ht=*)
  991. htmldir=$ac_optarg ;;
  992. -includedir | --includedir | --includedi | --included | --include \
  993. | --includ | --inclu | --incl | --inc)
  994. ac_prev=includedir ;;
  995. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  996. | --includ=* | --inclu=* | --incl=* | --inc=*)
  997. includedir=$ac_optarg ;;
  998. -infodir | --infodir | --infodi | --infod | --info | --inf)
  999. ac_prev=infodir ;;
  1000. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1001. infodir=$ac_optarg ;;
  1002. -libdir | --libdir | --libdi | --libd)
  1003. ac_prev=libdir ;;
  1004. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1005. libdir=$ac_optarg ;;
  1006. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1007. | --libexe | --libex | --libe)
  1008. ac_prev=libexecdir ;;
  1009. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1010. | --libexe=* | --libex=* | --libe=*)
  1011. libexecdir=$ac_optarg ;;
  1012. -localedir | --localedir | --localedi | --localed | --locale)
  1013. ac_prev=localedir ;;
  1014. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1015. localedir=$ac_optarg ;;
  1016. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1017. | --localstate | --localstat | --localsta | --localst | --locals)
  1018. ac_prev=localstatedir ;;
  1019. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1020. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1021. localstatedir=$ac_optarg ;;
  1022. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1023. ac_prev=mandir ;;
  1024. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1025. mandir=$ac_optarg ;;
  1026. -nfp | --nfp | --nf)
  1027. # Obsolete; use --without-fp.
  1028. with_fp=no ;;
  1029. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1030. | --no-cr | --no-c | -n)
  1031. no_create=yes ;;
  1032. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1033. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1034. no_recursion=yes ;;
  1035. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1036. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1037. | --oldin | --oldi | --old | --ol | --o)
  1038. ac_prev=oldincludedir ;;
  1039. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1040. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1041. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1042. oldincludedir=$ac_optarg ;;
  1043. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1044. ac_prev=prefix ;;
  1045. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1046. prefix=$ac_optarg ;;
  1047. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1048. | --program-pre | --program-pr | --program-p)
  1049. ac_prev=program_prefix ;;
  1050. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1051. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1052. program_prefix=$ac_optarg ;;
  1053. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1054. | --program-suf | --program-su | --program-s)
  1055. ac_prev=program_suffix ;;
  1056. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1057. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1058. program_suffix=$ac_optarg ;;
  1059. -program-transform-name | --program-transform-name \
  1060. | --program-transform-nam | --program-transform-na \
  1061. | --program-transform-n | --program-transform- \
  1062. | --program-transform | --program-transfor \
  1063. | --program-transfo | --program-transf \
  1064. | --program-trans | --program-tran \
  1065. | --progr-tra | --program-tr | --program-t)
  1066. ac_prev=program_transform_name ;;
  1067. -program-transform-name=* | --program-transform-name=* \
  1068. | --program-transform-nam=* | --program-transform-na=* \
  1069. | --program-transform-n=* | --program-transform-=* \
  1070. | --program-transform=* | --program-transfor=* \
  1071. | --program-transfo=* | --program-transf=* \
  1072. | --program-trans=* | --program-tran=* \
  1073. | --progr-tra=* | --program-tr=* | --program-t=*)
  1074. program_transform_name=$ac_optarg ;;
  1075. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1076. ac_prev=pdfdir ;;
  1077. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1078. pdfdir=$ac_optarg ;;
  1079. -psdir | --psdir | --psdi | --psd | --ps)
  1080. ac_prev=psdir ;;
  1081. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1082. psdir=$ac_optarg ;;
  1083. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1084. | -silent | --silent | --silen | --sile | --sil)
  1085. silent=yes ;;
  1086. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1087. ac_prev=sbindir ;;
  1088. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1089. | --sbi=* | --sb=*)
  1090. sbindir=$ac_optarg ;;
  1091. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1092. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1093. | --sharedst | --shareds | --shared | --share | --shar \
  1094. | --sha | --sh)
  1095. ac_prev=sharedstatedir ;;
  1096. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1097. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1098. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1099. | --sha=* | --sh=*)
  1100. sharedstatedir=$ac_optarg ;;
  1101. -site | --site | --sit)
  1102. ac_prev=site ;;
  1103. -site=* | --site=* | --sit=*)
  1104. site=$ac_optarg ;;
  1105. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1106. ac_prev=srcdir ;;
  1107. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1108. srcdir=$ac_optarg ;;
  1109. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1110. | --syscon | --sysco | --sysc | --sys | --sy)
  1111. ac_prev=sysconfdir ;;
  1112. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1113. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1114. sysconfdir=$ac_optarg ;;
  1115. -target | --target | --targe | --targ | --tar | --ta | --t)
  1116. ac_prev=target_alias ;;
  1117. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1118. target_alias=$ac_optarg ;;
  1119. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1120. verbose=yes ;;
  1121. -version | --version | --versio | --versi | --vers | -V)
  1122. ac_init_version=: ;;
  1123. -with-* | --with-*)
  1124. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1127. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1128. { (exit 1); exit 1; }; }
  1129. ac_useropt_orig=$ac_useropt
  1130. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1131. case $ac_user_opts in
  1132. *"
  1133. "with_$ac_useropt"
  1134. "*) ;;
  1135. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1136. ac_unrecognized_sep=', ';;
  1137. esac
  1138. eval with_$ac_useropt=\$ac_optarg ;;
  1139. -without-* | --without-*)
  1140. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1141. # Reject names that are not valid shell variable names.
  1142. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1143. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1144. { (exit 1); exit 1; }; }
  1145. ac_useropt_orig=$ac_useropt
  1146. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1147. case $ac_user_opts in
  1148. *"
  1149. "with_$ac_useropt"
  1150. "*) ;;
  1151. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1152. ac_unrecognized_sep=', ';;
  1153. esac
  1154. eval with_$ac_useropt=no ;;
  1155. --x)
  1156. # Obsolete; use --with-x.
  1157. with_x=yes ;;
  1158. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1159. | --x-incl | --x-inc | --x-in | --x-i)
  1160. ac_prev=x_includes ;;
  1161. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1162. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1163. x_includes=$ac_optarg ;;
  1164. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1165. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1166. ac_prev=x_libraries ;;
  1167. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1168. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1169. x_libraries=$ac_optarg ;;
  1170. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1171. Try \`$0 --help' for more information." >&2
  1172. { (exit 1); exit 1; }; }
  1173. ;;
  1174. *=*)
  1175. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1176. # Reject names that are not valid shell variable names.
  1177. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1178. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1179. { (exit 1); exit 1; }; }
  1180. eval $ac_envvar=\$ac_optarg
  1181. export $ac_envvar ;;
  1182. *)
  1183. # FIXME: should be removed in autoconf 3.0.
  1184. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1185. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1186. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1187. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1188. ;;
  1189. esac
  1190. done
  1191. if test -n "$ac_prev"; then
  1192. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1193. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1194. { (exit 1); exit 1; }; }
  1195. fi
  1196. if test -n "$ac_unrecognized_opts"; then
  1197. case $enable_option_checking in
  1198. no) ;;
  1199. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1200. { (exit 1); exit 1; }; } ;;
  1201. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1202. esac
  1203. fi
  1204. # Check all directory arguments for consistency.
  1205. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1206. datadir sysconfdir sharedstatedir localstatedir includedir \
  1207. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1208. libdir localedir mandir
  1209. do
  1210. eval ac_val=\$$ac_var
  1211. # Remove trailing slashes.
  1212. case $ac_val in
  1213. */ )
  1214. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1215. eval $ac_var=\$ac_val;;
  1216. esac
  1217. # Be sure to have absolute directory names.
  1218. case $ac_val in
  1219. [\\/$]* | ?:[\\/]* ) continue;;
  1220. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1221. esac
  1222. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1223. { (exit 1); exit 1; }; }
  1224. done
  1225. # There might be people who depend on the old broken behavior: `$host'
  1226. # used to hold the argument of --host etc.
  1227. # FIXME: To remove some day.
  1228. build=$build_alias
  1229. host=$host_alias
  1230. target=$target_alias
  1231. # FIXME: To remove some day.
  1232. if test "x$host_alias" != x; then
  1233. if test "x$build_alias" = x; then
  1234. cross_compiling=maybe
  1235. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1236. If a cross compiler is detected then cross compile mode will be used." >&2
  1237. elif test "x$build_alias" != "x$host_alias"; then
  1238. cross_compiling=yes
  1239. fi
  1240. fi
  1241. ac_tool_prefix=
  1242. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1243. test "$silent" = yes && exec 6>/dev/null
  1244. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1245. ac_ls_di=`ls -di .` &&
  1246. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1247. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1248. { (exit 1); exit 1; }; }
  1249. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1250. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1251. { (exit 1); exit 1; }; }
  1252. # Find the source files, if location was not specified.
  1253. if test -z "$srcdir"; then
  1254. ac_srcdir_defaulted=yes
  1255. # Try the directory containing this script, then the parent directory.
  1256. ac_confdir=`$as_dirname -- "$as_myself" ||
  1257. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1258. X"$as_myself" : 'X\(//\)[^/]' \| \
  1259. X"$as_myself" : 'X\(//\)$' \| \
  1260. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1261. $as_echo X"$as_myself" |
  1262. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)[^/].*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\/\)$/{
  1271. s//\1/
  1272. q
  1273. }
  1274. /^X\(\/\).*/{
  1275. s//\1/
  1276. q
  1277. }
  1278. s/.*/./; q'`
  1279. srcdir=$ac_confdir
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. srcdir=..
  1282. fi
  1283. else
  1284. ac_srcdir_defaulted=no
  1285. fi
  1286. if test ! -r "$srcdir/$ac_unique_file"; then
  1287. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1288. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1289. { (exit 1); exit 1; }; }
  1290. fi
  1291. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1292. ac_abs_confdir=`(
  1293. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1294. { (exit 1); exit 1; }; }
  1295. pwd)`
  1296. # When building in place, set srcdir=.
  1297. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1298. srcdir=.
  1299. fi
  1300. # Remove unnecessary trailing slashes from srcdir.
  1301. # Double slashes in file names in object file debugging info
  1302. # mess up M-x gdb in Emacs.
  1303. case $srcdir in
  1304. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1305. esac
  1306. for ac_var in $ac_precious_vars; do
  1307. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1308. eval ac_env_${ac_var}_value=\$${ac_var}
  1309. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1310. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1311. done
  1312. #
  1313. # Report the --help message.
  1314. #
  1315. if test "$ac_init_help" = "long"; then
  1316. # Omit some internal or obsolete options to make the list less imposing.
  1317. # This message is too long to be a string in the A/UX 3.1 sh.
  1318. cat <<_ACEOF
  1319. \`configure' configures MPEG Audio Decoder 0.15.1b to adapt to many kinds of systems.
  1320. Usage: $0 [OPTION]... [VAR=VALUE]...
  1321. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1322. VAR=VALUE. See below for descriptions of some of the useful variables.
  1323. Defaults for the options are specified in brackets.
  1324. Configuration:
  1325. -h, --help display this help and exit
  1326. --help=short display options specific to this package
  1327. --help=recursive display the short help of all the included packages
  1328. -V, --version display version information and exit
  1329. -q, --quiet, --silent do not print \`checking...' messages
  1330. --cache-file=FILE cache test results in FILE [disabled]
  1331. -C, --config-cache alias for \`--cache-file=config.cache'
  1332. -n, --no-create do not create output files
  1333. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1334. Installation directories:
  1335. --prefix=PREFIX install architecture-independent files in PREFIX
  1336. [$ac_default_prefix]
  1337. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1338. [PREFIX]
  1339. By default, \`make install' will install all the files in
  1340. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1341. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1342. for instance \`--prefix=\$HOME'.
  1343. For better control, use the options below.
  1344. Fine tuning of the installation directories:
  1345. --bindir=DIR user executables [EPREFIX/bin]
  1346. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1347. --libexecdir=DIR program executables [EPREFIX/libexec]
  1348. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1349. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1350. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1351. --libdir=DIR object code libraries [EPREFIX/lib]
  1352. --includedir=DIR C header files [PREFIX/include]
  1353. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1354. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1355. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1356. --infodir=DIR info documentation [DATAROOTDIR/info]
  1357. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1358. --mandir=DIR man documentation [DATAROOTDIR/man]
  1359. --docdir=DIR documentation root [DATAROOTDIR/doc/libmad]
  1360. --htmldir=DIR html documentation [DOCDIR]
  1361. --dvidir=DIR dvi documentation [DOCDIR]
  1362. --pdfdir=DIR pdf documentation [DOCDIR]
  1363. --psdir=DIR ps documentation [DOCDIR]
  1364. _ACEOF
  1365. cat <<\_ACEOF
  1366. Program names:
  1367. --program-prefix=PREFIX prepend PREFIX to installed program names
  1368. --program-suffix=SUFFIX append SUFFIX to installed program names
  1369. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1370. System types:
  1371. --build=BUILD configure for building on BUILD [guessed]
  1372. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1373. _ACEOF
  1374. fi
  1375. if test -n "$ac_init_help"; then
  1376. case $ac_init_help in
  1377. short | recursive ) echo "Configuration of MPEG Audio Decoder 0.15.1b:";;
  1378. esac
  1379. cat <<\_ACEOF
  1380. Optional Features:
  1381. --disable-option-checking ignore unrecognized --enable/--with options
  1382. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1383. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1384. --disable-dependency-tracking speeds up one-time build
  1385. --enable-dependency-tracking do not reject slow dependency extractors
  1386. --enable-shared[=PKGS] build shared libraries [default=yes]
  1387. --enable-static[=PKGS] build static libraries [default=yes]
  1388. --enable-fast-install[=PKGS]
  1389. optimize for fast installation [default=yes]
  1390. --disable-libtool-lock avoid locking (might break parallel builds)
  1391. --enable-speed optimize for speed over accuracy
  1392. --enable-accuracy optimize for accuracy over speed
  1393. --enable-fpm=ARCH use ARCH-specific fixed-point math routines (one of:
  1394. intel, arm, mips, sparc, ppc, 64bit, default)
  1395. --enable-sso use subband synthesis optimization
  1396. --disable-aso disable architecture-specific optimizations
  1397. --enable-strict-iso use strict ISO/IEC interpretations
  1398. --enable-profiling generate profiling code
  1399. --enable-debugging enable diagnostic debugging support
  1400. --disable-debugging do not enable debugging and use more optimization
  1401. --enable-experimental enable experimental code
  1402. Optional Packages:
  1403. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1404. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1405. --with-pic try to use only PIC/non-PIC objects [default=use
  1406. both]
  1407. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1408. Some influential environment variables:
  1409. CC C compiler command
  1410. CFLAGS C compiler flags
  1411. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1412. nonstandard directory <lib dir>
  1413. LIBS libraries to pass to the linker, e.g. -l<library>
  1414. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1415. you have headers in a nonstandard directory <include dir>
  1416. CCAS assembler compiler command (defaults to CC)
  1417. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1418. CPP C preprocessor
  1419. Use these variables to override the choices made by `configure' or to help
  1420. it to find libraries and programs with nonstandard names/locations.
  1421. Report bugs to <support@underbit.com>.
  1422. _ACEOF
  1423. ac_status=$?
  1424. fi
  1425. if test "$ac_init_help" = "recursive"; then
  1426. # If there are subdirs, report their specific --help.
  1427. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1428. test -d "$ac_dir" ||
  1429. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1430. continue
  1431. ac_builddir=.
  1432. case "$ac_dir" in
  1433. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1434. *)
  1435. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1436. # A ".." for each directory in $ac_dir_suffix.
  1437. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1438. case $ac_top_builddir_sub in
  1439. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1440. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1441. esac ;;
  1442. esac
  1443. ac_abs_top_builddir=$ac_pwd
  1444. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1445. # for backward compatibility:
  1446. ac_top_builddir=$ac_top_build_prefix
  1447. case $srcdir in
  1448. .) # We are building in place.
  1449. ac_srcdir=.
  1450. ac_top_srcdir=$ac_top_builddir_sub
  1451. ac_abs_top_srcdir=$ac_pwd ;;
  1452. [\\/]* | ?:[\\/]* ) # Absolute name.
  1453. ac_srcdir=$srcdir$ac_dir_suffix;
  1454. ac_top_srcdir=$srcdir
  1455. ac_abs_top_srcdir=$srcdir ;;
  1456. *) # Relative name.
  1457. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1458. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1459. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1460. esac
  1461. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1462. cd "$ac_dir" || { ac_status=$?; continue; }
  1463. # Check for guested configure.
  1464. if test -f "$ac_srcdir/configure.gnu"; then
  1465. echo &&
  1466. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1467. elif test -f "$ac_srcdir/configure"; then
  1468. echo &&
  1469. $SHELL "$ac_srcdir/configure" --help=recursive
  1470. else
  1471. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1472. fi || ac_status=$?
  1473. cd "$ac_pwd" || { ac_status=$?; break; }
  1474. done
  1475. fi
  1476. test -n "$ac_init_help" && exit $ac_status
  1477. if $ac_init_version; then
  1478. cat <<\_ACEOF
  1479. MPEG Audio Decoder configure 0.15.1b
  1480. generated by GNU Autoconf 2.63
  1481. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1482. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1483. This configure script is free software; the Free Software Foundation
  1484. gives unlimited permission to copy, distribute and modify it.
  1485. _ACEOF
  1486. exit
  1487. fi
  1488. cat >config.log <<_ACEOF
  1489. This file contains any messages produced by compilers while
  1490. running configure, to aid debugging if configure makes a mistake.
  1491. It was created by MPEG Audio Decoder $as_me 0.15.1b, which was
  1492. generated by GNU Autoconf 2.63. Invocation command line was
  1493. $ $0 $@
  1494. _ACEOF
  1495. exec 5>>config.log
  1496. {
  1497. cat <<_ASUNAME
  1498. ## --------- ##
  1499. ## Platform. ##
  1500. ## --------- ##
  1501. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1502. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1503. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1504. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1505. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1506. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1507. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1508. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1509. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1510. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1511. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1512. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1513. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1514. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1515. _ASUNAME
  1516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1517. for as_dir in $PATH
  1518. do
  1519. IFS=$as_save_IFS
  1520. test -z "$as_dir" && as_dir=.
  1521. $as_echo "PATH: $as_dir"
  1522. done
  1523. IFS=$as_save_IFS
  1524. } >&5
  1525. cat >&5 <<_ACEOF
  1526. ## ----------- ##
  1527. ## Core tests. ##
  1528. ## ----------- ##
  1529. _ACEOF
  1530. # Keep a trace of the command line.
  1531. # Strip out --no-create and --no-recursion so they do not pile up.
  1532. # Strip out --silent because we don't want to record it for future runs.
  1533. # Also quote any args containing shell meta-characters.
  1534. # Make two passes to allow for proper duplicate-argument suppression.
  1535. ac_configure_args=
  1536. ac_configure_args0=
  1537. ac_configure_args1=
  1538. ac_must_keep_next=false
  1539. for ac_pass in 1 2
  1540. do
  1541. for ac_arg
  1542. do
  1543. case $ac_arg in
  1544. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1545. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1546. | -silent | --silent | --silen | --sile | --sil)
  1547. continue ;;
  1548. *\'*)
  1549. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1550. esac
  1551. case $ac_pass in
  1552. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1553. 2)
  1554. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1555. if test $ac_must_keep_next = true; then
  1556. ac_must_keep_next=false # Got value, back to normal.
  1557. else
  1558. case $ac_arg in
  1559. *=* | --config-cache | -C | -disable-* | --disable-* \
  1560. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1561. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1562. | -with-* | --with-* | -without-* | --without-* | --x)
  1563. case "$ac_configure_args0 " in
  1564. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1565. esac
  1566. ;;
  1567. -* ) ac_must_keep_next=true ;;
  1568. esac
  1569. fi
  1570. ac_configure_args="$ac_configure_args '$ac_arg'"
  1571. ;;
  1572. esac
  1573. done
  1574. done
  1575. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1576. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1577. # When interrupted or exit'd, cleanup temporary files, and complete
  1578. # config.log. We remove comments because anyway the quotes in there
  1579. # would cause problems or look ugly.
  1580. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1581. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1582. trap 'exit_status=$?
  1583. # Save into config.log some information that might help in debugging.
  1584. {
  1585. echo
  1586. cat <<\_ASBOX
  1587. ## ---------------- ##
  1588. ## Cache variables. ##
  1589. ## ---------------- ##
  1590. _ASBOX
  1591. echo
  1592. # The following way of writing the cache mishandles newlines in values,
  1593. (
  1594. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1595. eval ac_val=\$$ac_var
  1596. case $ac_val in #(
  1597. *${as_nl}*)
  1598. case $ac_var in #(
  1599. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1600. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1601. esac
  1602. case $ac_var in #(
  1603. _ | IFS | as_nl) ;; #(
  1604. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1605. *) $as_unset $ac_var ;;
  1606. esac ;;
  1607. esac
  1608. done
  1609. (set) 2>&1 |
  1610. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1611. *${as_nl}ac_space=\ *)
  1612. sed -n \
  1613. "s/'\''/'\''\\\\'\'''\''/g;
  1614. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1615. ;; #(
  1616. *)
  1617. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1618. ;;
  1619. esac |
  1620. sort
  1621. )
  1622. echo
  1623. cat <<\_ASBOX
  1624. ## ----------------- ##
  1625. ## Output variables. ##
  1626. ## ----------------- ##
  1627. _ASBOX
  1628. echo
  1629. for ac_var in $ac_subst_vars
  1630. do
  1631. eval ac_val=\$$ac_var
  1632. case $ac_val in
  1633. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1634. esac
  1635. $as_echo "$ac_var='\''$ac_val'\''"
  1636. done | sort
  1637. echo
  1638. if test -n "$ac_subst_files"; then
  1639. cat <<\_ASBOX
  1640. ## ------------------- ##
  1641. ## File substitutions. ##
  1642. ## ------------------- ##
  1643. _ASBOX
  1644. echo
  1645. for ac_var in $ac_subst_files
  1646. do
  1647. eval ac_val=\$$ac_var
  1648. case $ac_val in
  1649. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1650. esac
  1651. $as_echo "$ac_var='\''$ac_val'\''"
  1652. done | sort
  1653. echo
  1654. fi
  1655. if test -s confdefs.h; then
  1656. cat <<\_ASBOX
  1657. ## ----------- ##
  1658. ## confdefs.h. ##
  1659. ## ----------- ##
  1660. _ASBOX
  1661. echo
  1662. cat confdefs.h
  1663. echo
  1664. fi
  1665. test "$ac_signal" != 0 &&
  1666. $as_echo "$as_me: caught signal $ac_signal"
  1667. $as_echo "$as_me: exit $exit_status"
  1668. } >&5
  1669. rm -f core *.core core.conftest.* &&
  1670. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1671. exit $exit_status
  1672. ' 0
  1673. for ac_signal in 1 2 13 15; do
  1674. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1675. done
  1676. ac_signal=0
  1677. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1678. rm -f -r conftest* confdefs.h
  1679. # Predefined preprocessor variables.
  1680. cat >>confdefs.h <<_ACEOF
  1681. #define PACKAGE_NAME "$PACKAGE_NAME"
  1682. _ACEOF
  1683. cat >>confdefs.h <<_ACEOF
  1684. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1685. _ACEOF
  1686. cat >>confdefs.h <<_ACEOF
  1687. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1688. _ACEOF
  1689. cat >>confdefs.h <<_ACEOF
  1690. #define PACKAGE_STRING "$PACKAGE_STRING"
  1691. _ACEOF
  1692. cat >>confdefs.h <<_ACEOF
  1693. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1694. _ACEOF
  1695. # Let the site file select an alternate cache file if it wants to.
  1696. # Prefer an explicitly selected file to automatically selected ones.
  1697. ac_site_file1=NONE
  1698. ac_site_file2=NONE
  1699. if test -n "$CONFIG_SITE"; then
  1700. ac_site_file1=$CONFIG_SITE
  1701. elif test "x$prefix" != xNONE; then
  1702. ac_site_file1=$prefix/share/config.site
  1703. ac_site_file2=$prefix/etc/config.site
  1704. else
  1705. ac_site_file1=$ac_default_prefix/share/config.site
  1706. ac_site_file2=$ac_default_prefix/etc/config.site
  1707. fi
  1708. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1709. do
  1710. test "x$ac_site_file" = xNONE && continue
  1711. if test -r "$ac_site_file"; then
  1712. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1713. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1714. sed 's/^/| /' "$ac_site_file" >&5
  1715. . "$ac_site_file"
  1716. fi
  1717. done
  1718. if test -r "$cache_file"; then
  1719. # Some versions of bash will fail to source /dev/null (special
  1720. # files actually), so we avoid doing that.
  1721. if test -f "$cache_file"; then
  1722. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1723. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1724. case $cache_file in
  1725. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1726. *) . "./$cache_file";;
  1727. esac
  1728. fi
  1729. else
  1730. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1731. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1732. >$cache_file
  1733. fi
  1734. # Check that the precious variables saved in the cache have kept the same
  1735. # value.
  1736. ac_cache_corrupted=false
  1737. for ac_var in $ac_precious_vars; do
  1738. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1739. eval ac_new_set=\$ac_env_${ac_var}_set
  1740. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1741. eval ac_new_val=\$ac_env_${ac_var}_value
  1742. case $ac_old_set,$ac_new_set in
  1743. set,)
  1744. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1745. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1746. ac_cache_corrupted=: ;;
  1747. ,set)
  1748. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1749. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1750. ac_cache_corrupted=: ;;
  1751. ,);;
  1752. *)
  1753. if test "x$ac_old_val" != "x$ac_new_val"; then
  1754. # differences in whitespace do not lead to failure.
  1755. ac_old_val_w=`echo x $ac_old_val`
  1756. ac_new_val_w=`echo x $ac_new_val`
  1757. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1758. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1759. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1760. ac_cache_corrupted=:
  1761. else
  1762. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1763. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1764. eval $ac_var=\$ac_old_val
  1765. fi
  1766. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1767. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1768. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1769. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1770. fi;;
  1771. esac
  1772. # Pass precious variables to config.status.
  1773. if test "$ac_new_set" = set; then
  1774. case $ac_new_val in
  1775. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1776. *) ac_arg=$ac_var=$ac_new_val ;;
  1777. esac
  1778. case " $ac_configure_args " in
  1779. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1780. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1781. esac
  1782. fi
  1783. done
  1784. if $ac_cache_corrupted; then
  1785. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1786. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1787. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1788. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1789. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1790. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1791. { (exit 1); exit 1; }; }
  1792. fi
  1793. ac_ext=c
  1794. ac_cpp='$CPP $CPPFLAGS'
  1795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1798. am__api_version='1.10'
  1799. ac_aux_dir=
  1800. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1801. if test -f "$ac_dir/install-sh"; then
  1802. ac_aux_dir=$ac_dir
  1803. ac_install_sh="$ac_aux_dir/install-sh -c"
  1804. break
  1805. elif test -f "$ac_dir/install.sh"; then
  1806. ac_aux_dir=$ac_dir
  1807. ac_install_sh="$ac_aux_dir/install.sh -c"
  1808. break
  1809. elif test -f "$ac_dir/shtool"; then
  1810. ac_aux_dir=$ac_dir
  1811. ac_install_sh="$ac_aux_dir/shtool install -c"
  1812. break
  1813. fi
  1814. done
  1815. if test -z "$ac_aux_dir"; then
  1816. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1817. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1818. { (exit 1); exit 1; }; }
  1819. fi
  1820. # These three variables are undocumented and unsupported,
  1821. # and are intended to be withdrawn in a future Autoconf release.
  1822. # They can cause serious problems if a builder's source tree is in a directory
  1823. # whose full name contains unusual characters.
  1824. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1825. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1826. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1827. # Find a good install program. We prefer a C program (faster),
  1828. # so one script is as good as another. But avoid the broken or
  1829. # incompatible versions:
  1830. # SysV /etc/install, /usr/sbin/install
  1831. # SunOS /usr/etc/install
  1832. # IRIX /sbin/install
  1833. # AIX /bin/install
  1834. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1835. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1836. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1837. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1838. # OS/2's system install, which has a completely different semantic
  1839. # ./install, which can be erroneously created by make from ./install.sh.
  1840. # Reject install programs that cannot install multiple files.
  1841. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1842. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1843. if test -z "$INSTALL"; then
  1844. if test "${ac_cv_path_install+set}" = set; then
  1845. $as_echo_n "(cached) " >&6
  1846. else
  1847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1848. for as_dir in $PATH
  1849. do
  1850. IFS=$as_save_IFS
  1851. test -z "$as_dir" && as_dir=.
  1852. # Account for people who put trailing slashes in PATH elements.
  1853. case $as_dir/ in
  1854. ./ | .// | /cC/* | \
  1855. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1856. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1857. /usr/ucb/* ) ;;
  1858. *)
  1859. # OSF1 and SCO ODT 3.0 have their own names for install.
  1860. # Don't use installbsd from OSF since it installs stuff as root
  1861. # by default.
  1862. for ac_prog in ginstall scoinst install; do
  1863. for ac_exec_ext in '' $ac_executable_extensions; do
  1864. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1865. if test $ac_prog = install &&
  1866. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1867. # AIX install. It has an incompatible calling convention.
  1868. :
  1869. elif test $ac_prog = install &&
  1870. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1871. # program-specific install script used by HP pwplus--don't use.
  1872. :
  1873. else
  1874. rm -rf conftest.one conftest.two conftest.dir
  1875. echo one > conftest.one
  1876. echo two > conftest.two
  1877. mkdir conftest.dir
  1878. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1879. test -s conftest.one && test -s conftest.two &&
  1880. test -s conftest.dir/conftest.one &&
  1881. test -s conftest.dir/conftest.two
  1882. then
  1883. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1884. break 3
  1885. fi
  1886. fi
  1887. fi
  1888. done
  1889. done
  1890. ;;
  1891. esac
  1892. done
  1893. IFS=$as_save_IFS
  1894. rm -rf conftest.one conftest.two conftest.dir
  1895. fi
  1896. if test "${ac_cv_path_install+set}" = set; then
  1897. INSTALL=$ac_cv_path_install
  1898. else
  1899. # As a last resort, use the slow shell script. Don't cache a
  1900. # value for INSTALL within a source directory, because that will
  1901. # break other packages using the cache if that directory is
  1902. # removed, or if the value is a relative name.
  1903. INSTALL=$ac_install_sh
  1904. fi
  1905. fi
  1906. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1907. $as_echo "$INSTALL" >&6; }
  1908. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1909. # It thinks the first close brace ends the variable substitution.
  1910. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1911. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1912. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1913. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1914. $as_echo_n "checking whether build environment is sane... " >&6; }
  1915. # Just in case
  1916. sleep 1
  1917. echo timestamp > conftest.file
  1918. # Do `set' in a subshell so we don't clobber the current shell's
  1919. # arguments. Must try -L first in case configure is actually a
  1920. # symlink; some systems play weird games with the mod time of symlinks
  1921. # (eg FreeBSD returns the mod time of the symlink's containing
  1922. # directory).
  1923. if (
  1924. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1925. if test "$*" = "X"; then
  1926. # -L didn't work.
  1927. set X `ls -t $srcdir/configure conftest.file`
  1928. fi
  1929. rm -f conftest.file
  1930. if test "$*" != "X $srcdir/configure conftest.file" \
  1931. && test "$*" != "X conftest.file $srcdir/configure"; then
  1932. # If neither matched, then we have a broken ls. This can happen
  1933. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1934. # broken ls alias from the environment. This has actually
  1935. # happened. Such a system could not be considered "sane".
  1936. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1937. alias in your environment" >&5
  1938. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1939. alias in your environment" >&2;}
  1940. { (exit 1); exit 1; }; }
  1941. fi
  1942. test "$2" = conftest.file
  1943. )
  1944. then
  1945. # Ok.
  1946. :
  1947. else
  1948. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1949. Check your system clock" >&5
  1950. $as_echo "$as_me: error: newly created file is older than distributed files!
  1951. Check your system clock" >&2;}
  1952. { (exit 1); exit 1; }; }
  1953. fi
  1954. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1955. $as_echo "yes" >&6; }
  1956. test "$program_prefix" != NONE &&
  1957. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1958. # Use a double $ so make ignores it.
  1959. test "$program_suffix" != NONE &&
  1960. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1961. # Double any \ or $.
  1962. # By default was `s,x,x', remove it if useless.
  1963. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1964. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1965. # expand $ac_aux_dir to an absolute path
  1966. am_aux_dir=`cd $ac_aux_dir && pwd`
  1967. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1968. # Use eval to expand $SHELL
  1969. if eval "$MISSING --run true"; then
  1970. am_missing_run="$MISSING --run "
  1971. else
  1972. am_missing_run=
  1973. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1974. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1975. fi
  1976. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1977. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1978. if test -z "$MKDIR_P"; then
  1979. if test "${ac_cv_path_mkdir+set}" = set; then
  1980. $as_echo_n "(cached) " >&6
  1981. else
  1982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1983. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1984. do
  1985. IFS=$as_save_IFS
  1986. test -z "$as_dir" && as_dir=.
  1987. for ac_prog in mkdir gmkdir; do
  1988. for ac_exec_ext in '' $ac_executable_extensions; do
  1989. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1990. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1991. 'mkdir (GNU coreutils) '* | \
  1992. 'mkdir (coreutils) '* | \
  1993. 'mkdir (fileutils) '4.1*)
  1994. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1995. break 3;;
  1996. esac
  1997. done
  1998. done
  1999. done
  2000. IFS=$as_save_IFS
  2001. fi
  2002. if test "${ac_cv_path_mkdir+set}" = set; then
  2003. MKDIR_P="$ac_cv_path_mkdir -p"
  2004. else
  2005. # As a last resort, use the slow shell script. Don't cache a
  2006. # value for MKDIR_P within a source directory, because that will
  2007. # break other packages using the cache if that directory is
  2008. # removed, or if the value is a relative name.
  2009. test -d ./--version && rmdir ./--version
  2010. MKDIR_P="$ac_install_sh -d"
  2011. fi
  2012. fi
  2013. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2014. $as_echo "$MKDIR_P" >&6; }
  2015. mkdir_p="$MKDIR_P"
  2016. case $mkdir_p in
  2017. [\\/$]* | ?:[\\/]*) ;;
  2018. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2019. esac
  2020. for ac_prog in gawk mawk nawk awk
  2021. do
  2022. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2023. set dummy $ac_prog; ac_word=$2
  2024. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2025. $as_echo_n "checking for $ac_word... " >&6; }
  2026. if test "${ac_cv_prog_AWK+set}" = set; then
  2027. $as_echo_n "(cached) " >&6
  2028. else
  2029. if test -n "$AWK"; then
  2030. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2031. else
  2032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2033. for as_dir in $PATH
  2034. do
  2035. IFS=$as_save_IFS
  2036. test -z "$as_dir" && as_dir=.
  2037. for ac_exec_ext in '' $ac_executable_extensions; do
  2038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2039. ac_cv_prog_AWK="$ac_prog"
  2040. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2041. break 2
  2042. fi
  2043. done
  2044. done
  2045. IFS=$as_save_IFS
  2046. fi
  2047. fi
  2048. AWK=$ac_cv_prog_AWK
  2049. if test -n "$AWK"; then
  2050. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2051. $as_echo "$AWK" >&6; }
  2052. else
  2053. { $as_echo "$as_me:$LINENO: result: no" >&5
  2054. $as_echo "no" >&6; }
  2055. fi
  2056. test -n "$AWK" && break
  2057. done
  2058. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2059. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2060. set x ${MAKE-make}
  2061. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2062. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2063. $as_echo_n "(cached) " >&6
  2064. else
  2065. cat >conftest.make <<\_ACEOF
  2066. SHELL = /bin/sh
  2067. all:
  2068. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2069. _ACEOF
  2070. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2071. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2072. *@@@%%%=?*=@@@%%%*)
  2073. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2074. *)
  2075. eval ac_cv_prog_make_${ac_make}_set=no;;
  2076. esac
  2077. rm -f conftest.make
  2078. fi
  2079. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2080. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2081. $as_echo "yes" >&6; }
  2082. SET_MAKE=
  2083. else
  2084. { $as_echo "$as_me:$LINENO: result: no" >&5
  2085. $as_echo "no" >&6; }
  2086. SET_MAKE="MAKE=${MAKE-make}"
  2087. fi
  2088. rm -rf .tst 2>/dev/null
  2089. mkdir .tst 2>/dev/null
  2090. if test -d .tst; then
  2091. am__leading_dot=.
  2092. else
  2093. am__leading_dot=_
  2094. fi
  2095. rmdir .tst 2>/dev/null
  2096. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2097. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2098. # is not polluted with repeated "-I."
  2099. am__isrc=' -I$(srcdir)'
  2100. # test to see if srcdir already configured
  2101. if test -f $srcdir/config.status; then
  2102. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2103. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2104. { (exit 1); exit 1; }; }
  2105. fi
  2106. fi
  2107. # test whether we have cygpath
  2108. if test -z "$CYGPATH_W"; then
  2109. if (cygpath --version) >/dev/null 2>/dev/null; then
  2110. CYGPATH_W='cygpath -w'
  2111. else
  2112. CYGPATH_W=echo
  2113. fi
  2114. fi
  2115. # Define the identity of the package.
  2116. PACKAGE='libmad'
  2117. VERSION='0.15.1b'
  2118. cat >>confdefs.h <<_ACEOF
  2119. #define PACKAGE "$PACKAGE"
  2120. _ACEOF
  2121. cat >>confdefs.h <<_ACEOF
  2122. #define VERSION "$VERSION"
  2123. _ACEOF
  2124. # Some tools Automake needs.
  2125. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2126. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2127. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2128. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2129. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2130. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2131. # Installed binaries are usually stripped using `strip' when the user
  2132. # run `make install-strip'. However `strip' might not be the right
  2133. # tool to use in cross-compilation environments, therefore Automake
  2134. # will honor the `STRIP' environment variable to overrule this program.
  2135. if test "$cross_compiling" != no; then
  2136. if test -n "$ac_tool_prefix"; then
  2137. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2138. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2139. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2140. $as_echo_n "checking for $ac_word... " >&6; }
  2141. if test "${ac_cv_prog_STRIP+set}" = set; then
  2142. $as_echo_n "(cached) " >&6
  2143. else
  2144. if test -n "$STRIP"; then
  2145. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2146. else
  2147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2148. for as_dir in $PATH
  2149. do
  2150. IFS=$as_save_IFS
  2151. test -z "$as_dir" && as_dir=.
  2152. for ac_exec_ext in '' $ac_executable_extensions; do
  2153. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2154. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2155. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2156. break 2
  2157. fi
  2158. done
  2159. done
  2160. IFS=$as_save_IFS
  2161. fi
  2162. fi
  2163. STRIP=$ac_cv_prog_STRIP
  2164. if test -n "$STRIP"; then
  2165. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2166. $as_echo "$STRIP" >&6; }
  2167. else
  2168. { $as_echo "$as_me:$LINENO: result: no" >&5
  2169. $as_echo "no" >&6; }
  2170. fi
  2171. fi
  2172. if test -z "$ac_cv_prog_STRIP"; then
  2173. ac_ct_STRIP=$STRIP
  2174. # Extract the first word of "strip", so it can be a program name with args.
  2175. set dummy strip; ac_word=$2
  2176. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2177. $as_echo_n "checking for $ac_word... " >&6; }
  2178. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2179. $as_echo_n "(cached) " >&6
  2180. else
  2181. if test -n "$ac_ct_STRIP"; then
  2182. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2183. else
  2184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2185. for as_dir in $PATH
  2186. do
  2187. IFS=$as_save_IFS
  2188. test -z "$as_dir" && as_dir=.
  2189. for ac_exec_ext in '' $ac_executable_extensions; do
  2190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2191. ac_cv_prog_ac_ct_STRIP="strip"
  2192. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2193. break 2
  2194. fi
  2195. done
  2196. done
  2197. IFS=$as_save_IFS
  2198. fi
  2199. fi
  2200. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2201. if test -n "$ac_ct_STRIP"; then
  2202. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2203. $as_echo "$ac_ct_STRIP" >&6; }
  2204. else
  2205. { $as_echo "$as_me:$LINENO: result: no" >&5
  2206. $as_echo "no" >&6; }
  2207. fi
  2208. if test "x$ac_ct_STRIP" = x; then
  2209. STRIP=":"
  2210. else
  2211. case $cross_compiling:$ac_tool_warned in
  2212. yes:)
  2213. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2215. ac_tool_warned=yes ;;
  2216. esac
  2217. STRIP=$ac_ct_STRIP
  2218. fi
  2219. else
  2220. STRIP="$ac_cv_prog_STRIP"
  2221. fi
  2222. fi
  2223. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2224. # We need awk for the "check" target. The system "awk" is bad on
  2225. # some platforms.
  2226. # Always define AMTAR for backward compatibility.
  2227. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2228. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2229. ac_config_headers="$ac_config_headers config.h"
  2230. # Make sure we can run config.sub.
  2231. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2232. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2233. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2234. { (exit 1); exit 1; }; }
  2235. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2236. $as_echo_n "checking build system type... " >&6; }
  2237. if test "${ac_cv_build+set}" = set; then
  2238. $as_echo_n "(cached) " >&6
  2239. else
  2240. ac_build_alias=$build_alias
  2241. test "x$ac_build_alias" = x &&
  2242. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2243. test "x$ac_build_alias" = x &&
  2244. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2245. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2246. { (exit 1); exit 1; }; }
  2247. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2248. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2249. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2250. { (exit 1); exit 1; }; }
  2251. fi
  2252. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2253. $as_echo "$ac_cv_build" >&6; }
  2254. case $ac_cv_build in
  2255. *-*-*) ;;
  2256. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2257. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2258. { (exit 1); exit 1; }; };;
  2259. esac
  2260. build=$ac_cv_build
  2261. ac_save_IFS=$IFS; IFS='-'
  2262. set x $ac_cv_build
  2263. shift
  2264. build_cpu=$1
  2265. build_vendor=$2
  2266. shift; shift
  2267. # Remember, the first character of IFS is used to create $*,
  2268. # except with old shells:
  2269. build_os=$*
  2270. IFS=$ac_save_IFS
  2271. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2272. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2273. $as_echo_n "checking host system type... " >&6; }
  2274. if test "${ac_cv_host+set}" = set; then
  2275. $as_echo_n "(cached) " >&6
  2276. else
  2277. if test "x$host_alias" = x; then
  2278. ac_cv_host=$ac_cv_build
  2279. else
  2280. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2281. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2282. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2283. { (exit 1); exit 1; }; }
  2284. fi
  2285. fi
  2286. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2287. $as_echo "$ac_cv_host" >&6; }
  2288. case $ac_cv_host in
  2289. *-*-*) ;;
  2290. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2291. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2292. { (exit 1); exit 1; }; };;
  2293. esac
  2294. host=$ac_cv_host
  2295. ac_save_IFS=$IFS; IFS='-'
  2296. set x $ac_cv_host
  2297. shift
  2298. host_cpu=$1
  2299. host_vendor=$2
  2300. shift; shift
  2301. # Remember, the first character of IFS is used to create $*,
  2302. # except with old shells:
  2303. host_os=$*
  2304. IFS=$ac_save_IFS
  2305. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2306. ac_ext=c
  2307. ac_cpp='$CPP $CPPFLAGS'
  2308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2311. if test -n "$ac_tool_prefix"; then
  2312. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2313. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2314. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2315. $as_echo_n "checking for $ac_word... " >&6; }
  2316. if test "${ac_cv_prog_CC+set}" = set; then
  2317. $as_echo_n "(cached) " >&6
  2318. else
  2319. if test -n "$CC"; then
  2320. ac_cv_prog_CC="$CC" # Let the user override the test.
  2321. else
  2322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2323. for as_dir in $PATH
  2324. do
  2325. IFS=$as_save_IFS
  2326. test -z "$as_dir" && as_dir=.
  2327. for ac_exec_ext in '' $ac_executable_extensions; do
  2328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2329. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2330. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2331. break 2
  2332. fi
  2333. done
  2334. done
  2335. IFS=$as_save_IFS
  2336. fi
  2337. fi
  2338. CC=$ac_cv_prog_CC
  2339. if test -n "$CC"; then
  2340. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2341. $as_echo "$CC" >&6; }
  2342. else
  2343. { $as_echo "$as_me:$LINENO: result: no" >&5
  2344. $as_echo "no" >&6; }
  2345. fi
  2346. fi
  2347. if test -z "$ac_cv_prog_CC"; then
  2348. ac_ct_CC=$CC
  2349. # Extract the first word of "gcc", so it can be a program name with args.
  2350. set dummy gcc; ac_word=$2
  2351. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2352. $as_echo_n "checking for $ac_word... " >&6; }
  2353. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2354. $as_echo_n "(cached) " >&6
  2355. else
  2356. if test -n "$ac_ct_CC"; then
  2357. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2358. else
  2359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2360. for as_dir in $PATH
  2361. do
  2362. IFS=$as_save_IFS
  2363. test -z "$as_dir" && as_dir=.
  2364. for ac_exec_ext in '' $ac_executable_extensions; do
  2365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2366. ac_cv_prog_ac_ct_CC="gcc"
  2367. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2368. break 2
  2369. fi
  2370. done
  2371. done
  2372. IFS=$as_save_IFS
  2373. fi
  2374. fi
  2375. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2376. if test -n "$ac_ct_CC"; then
  2377. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2378. $as_echo "$ac_ct_CC" >&6; }
  2379. else
  2380. { $as_echo "$as_me:$LINENO: result: no" >&5
  2381. $as_echo "no" >&6; }
  2382. fi
  2383. if test "x$ac_ct_CC" = x; then
  2384. CC=""
  2385. else
  2386. case $cross_compiling:$ac_tool_warned in
  2387. yes:)
  2388. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2390. ac_tool_warned=yes ;;
  2391. esac
  2392. CC=$ac_ct_CC
  2393. fi
  2394. else
  2395. CC="$ac_cv_prog_CC"
  2396. fi
  2397. if test -z "$CC"; then
  2398. if test -n "$ac_tool_prefix"; then
  2399. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2400. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2401. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2402. $as_echo_n "checking for $ac_word... " >&6; }
  2403. if test "${ac_cv_prog_CC+set}" = set; then
  2404. $as_echo_n "(cached) " >&6
  2405. else
  2406. if test -n "$CC"; then
  2407. ac_cv_prog_CC="$CC" # Let the user override the test.
  2408. else
  2409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2410. for as_dir in $PATH
  2411. do
  2412. IFS=$as_save_IFS
  2413. test -z "$as_dir" && as_dir=.
  2414. for ac_exec_ext in '' $ac_executable_extensions; do
  2415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2416. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2417. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2418. break 2
  2419. fi
  2420. done
  2421. done
  2422. IFS=$as_save_IFS
  2423. fi
  2424. fi
  2425. CC=$ac_cv_prog_CC
  2426. if test -n "$CC"; then
  2427. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2428. $as_echo "$CC" >&6; }
  2429. else
  2430. { $as_echo "$as_me:$LINENO: result: no" >&5
  2431. $as_echo "no" >&6; }
  2432. fi
  2433. fi
  2434. fi
  2435. if test -z "$CC"; then
  2436. # Extract the first word of "cc", so it can be a program name with args.
  2437. set dummy cc; ac_word=$2
  2438. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2439. $as_echo_n "checking for $ac_word... " >&6; }
  2440. if test "${ac_cv_prog_CC+set}" = set; then
  2441. $as_echo_n "(cached) " >&6
  2442. else
  2443. if test -n "$CC"; then
  2444. ac_cv_prog_CC="$CC" # Let the user override the test.
  2445. else
  2446. ac_prog_rejected=no
  2447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2448. for as_dir in $PATH
  2449. do
  2450. IFS=$as_save_IFS
  2451. test -z "$as_dir" && as_dir=.
  2452. for ac_exec_ext in '' $ac_executable_extensions; do
  2453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2454. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2455. ac_prog_rejected=yes
  2456. continue
  2457. fi
  2458. ac_cv_prog_CC="cc"
  2459. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. IFS=$as_save_IFS
  2465. if test $ac_prog_rejected = yes; then
  2466. # We found a bogon in the path, so make sure we never use it.
  2467. set dummy $ac_cv_prog_CC
  2468. shift
  2469. if test $# != 0; then
  2470. # We chose a different compiler from the bogus one.
  2471. # However, it has the same basename, so the bogon will be chosen
  2472. # first if we set CC to just the basename; use the full file name.
  2473. shift
  2474. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2475. fi
  2476. fi
  2477. fi
  2478. fi
  2479. CC=$ac_cv_prog_CC
  2480. if test -n "$CC"; then
  2481. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2482. $as_echo "$CC" >&6; }
  2483. else
  2484. { $as_echo "$as_me:$LINENO: result: no" >&5
  2485. $as_echo "no" >&6; }
  2486. fi
  2487. fi
  2488. if test -z "$CC"; then
  2489. if test -n "$ac_tool_prefix"; then
  2490. for ac_prog in cl.exe
  2491. do
  2492. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2493. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2494. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2495. $as_echo_n "checking for $ac_word... " >&6; }
  2496. if test "${ac_cv_prog_CC+set}" = set; then
  2497. $as_echo_n "(cached) " >&6
  2498. else
  2499. if test -n "$CC"; then
  2500. ac_cv_prog_CC="$CC" # Let the user override the test.
  2501. else
  2502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2503. for as_dir in $PATH
  2504. do
  2505. IFS=$as_save_IFS
  2506. test -z "$as_dir" && as_dir=.
  2507. for ac_exec_ext in '' $ac_executable_extensions; do
  2508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2509. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2510. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2511. break 2
  2512. fi
  2513. done
  2514. done
  2515. IFS=$as_save_IFS
  2516. fi
  2517. fi
  2518. CC=$ac_cv_prog_CC
  2519. if test -n "$CC"; then
  2520. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2521. $as_echo "$CC" >&6; }
  2522. else
  2523. { $as_echo "$as_me:$LINENO: result: no" >&5
  2524. $as_echo "no" >&6; }
  2525. fi
  2526. test -n "$CC" && break
  2527. done
  2528. fi
  2529. if test -z "$CC"; then
  2530. ac_ct_CC=$CC
  2531. for ac_prog in cl.exe
  2532. do
  2533. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2534. set dummy $ac_prog; ac_word=$2
  2535. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2536. $as_echo_n "checking for $ac_word... " >&6; }
  2537. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2538. $as_echo_n "(cached) " >&6
  2539. else
  2540. if test -n "$ac_ct_CC"; then
  2541. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2542. else
  2543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2544. for as_dir in $PATH
  2545. do
  2546. IFS=$as_save_IFS
  2547. test -z "$as_dir" && as_dir=.
  2548. for ac_exec_ext in '' $ac_executable_extensions; do
  2549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2550. ac_cv_prog_ac_ct_CC="$ac_prog"
  2551. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2552. break 2
  2553. fi
  2554. done
  2555. done
  2556. IFS=$as_save_IFS
  2557. fi
  2558. fi
  2559. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2560. if test -n "$ac_ct_CC"; then
  2561. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2562. $as_echo "$ac_ct_CC" >&6; }
  2563. else
  2564. { $as_echo "$as_me:$LINENO: result: no" >&5
  2565. $as_echo "no" >&6; }
  2566. fi
  2567. test -n "$ac_ct_CC" && break
  2568. done
  2569. if test "x$ac_ct_CC" = x; then
  2570. CC=""
  2571. else
  2572. case $cross_compiling:$ac_tool_warned in
  2573. yes:)
  2574. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2576. ac_tool_warned=yes ;;
  2577. esac
  2578. CC=$ac_ct_CC
  2579. fi
  2580. fi
  2581. fi
  2582. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2584. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2585. See \`config.log' for more details." >&5
  2586. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2587. See \`config.log' for more details." >&2;}
  2588. { (exit 1); exit 1; }; }; }
  2589. # Provide some information about the compiler.
  2590. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2591. set X $ac_compile
  2592. ac_compiler=$2
  2593. { (ac_try="$ac_compiler --version >&5"
  2594. case "(($ac_try" in
  2595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2596. *) ac_try_echo=$ac_try;;
  2597. esac
  2598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2599. $as_echo "$ac_try_echo") >&5
  2600. (eval "$ac_compiler --version >&5") 2>&5
  2601. ac_status=$?
  2602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2603. (exit $ac_status); }
  2604. { (ac_try="$ac_compiler -v >&5"
  2605. case "(($ac_try" in
  2606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2607. *) ac_try_echo=$ac_try;;
  2608. esac
  2609. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2610. $as_echo "$ac_try_echo") >&5
  2611. (eval "$ac_compiler -v >&5") 2>&5
  2612. ac_status=$?
  2613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2614. (exit $ac_status); }
  2615. { (ac_try="$ac_compiler -V >&5"
  2616. case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2621. $as_echo "$ac_try_echo") >&5
  2622. (eval "$ac_compiler -V >&5") 2>&5
  2623. ac_status=$?
  2624. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2625. (exit $ac_status); }
  2626. cat >conftest.$ac_ext <<_ACEOF
  2627. /* confdefs.h. */
  2628. _ACEOF
  2629. cat confdefs.h >>conftest.$ac_ext
  2630. cat >>conftest.$ac_ext <<_ACEOF
  2631. /* end confdefs.h. */
  2632. int
  2633. main ()
  2634. {
  2635. ;
  2636. return 0;
  2637. }
  2638. _ACEOF
  2639. ac_clean_files_save=$ac_clean_files
  2640. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2641. # Try to create an executable without -o first, disregard a.out.
  2642. # It will help us diagnose broken compilers, and finding out an intuition
  2643. # of exeext.
  2644. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2645. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2646. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2647. # The possible output files:
  2648. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2649. ac_rmfiles=
  2650. for ac_file in $ac_files
  2651. do
  2652. case $ac_file in
  2653. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2654. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2655. esac
  2656. done
  2657. rm -f $ac_rmfiles
  2658. if { (ac_try="$ac_link_default"
  2659. case "(($ac_try" in
  2660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2661. *) ac_try_echo=$ac_try;;
  2662. esac
  2663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2664. $as_echo "$ac_try_echo") >&5
  2665. (eval "$ac_link_default") 2>&5
  2666. ac_status=$?
  2667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668. (exit $ac_status); }; then
  2669. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2670. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2671. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2672. # so that the user can short-circuit this test for compilers unknown to
  2673. # Autoconf.
  2674. for ac_file in $ac_files ''
  2675. do
  2676. test -f "$ac_file" || continue
  2677. case $ac_file in
  2678. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2679. ;;
  2680. [ab].out )
  2681. # We found the default executable, but exeext='' is most
  2682. # certainly right.
  2683. break;;
  2684. *.* )
  2685. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2686. then :; else
  2687. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2688. fi
  2689. # We set ac_cv_exeext here because the later test for it is not
  2690. # safe: cross compilers may not add the suffix if given an `-o'
  2691. # argument, so we may need to know it at that point already.
  2692. # Even if this section looks crufty: it has the advantage of
  2693. # actually working.
  2694. break;;
  2695. * )
  2696. break;;
  2697. esac
  2698. done
  2699. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2700. else
  2701. ac_file=''
  2702. fi
  2703. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2704. $as_echo "$ac_file" >&6; }
  2705. if test -z "$ac_file"; then
  2706. $as_echo "$as_me: failed program was:" >&5
  2707. sed 's/^/| /' conftest.$ac_ext >&5
  2708. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2709. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2710. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2711. See \`config.log' for more details." >&5
  2712. $as_echo "$as_me: error: C compiler cannot create executables
  2713. See \`config.log' for more details." >&2;}
  2714. { (exit 77); exit 77; }; }; }
  2715. fi
  2716. ac_exeext=$ac_cv_exeext
  2717. # Check that the compiler produces executables we can run. If not, either
  2718. # the compiler is broken, or we cross compile.
  2719. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2720. $as_echo_n "checking whether the C compiler works... " >&6; }
  2721. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2722. # If not cross compiling, check that we can run a simple program.
  2723. if test "$cross_compiling" != yes; then
  2724. if { ac_try='./$ac_file'
  2725. { (case "(($ac_try" in
  2726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2727. *) ac_try_echo=$ac_try;;
  2728. esac
  2729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2730. $as_echo "$ac_try_echo") >&5
  2731. (eval "$ac_try") 2>&5
  2732. ac_status=$?
  2733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2734. (exit $ac_status); }; }; then
  2735. cross_compiling=no
  2736. else
  2737. if test "$cross_compiling" = maybe; then
  2738. cross_compiling=yes
  2739. else
  2740. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2741. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2742. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2743. If you meant to cross compile, use \`--host'.
  2744. See \`config.log' for more details." >&5
  2745. $as_echo "$as_me: error: cannot run C compiled programs.
  2746. If you meant to cross compile, use \`--host'.
  2747. See \`config.log' for more details." >&2;}
  2748. { (exit 1); exit 1; }; }; }
  2749. fi
  2750. fi
  2751. fi
  2752. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2753. $as_echo "yes" >&6; }
  2754. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2755. ac_clean_files=$ac_clean_files_save
  2756. # Check that the compiler produces executables we can run. If not, either
  2757. # the compiler is broken, or we cross compile.
  2758. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2759. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2760. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2761. $as_echo "$cross_compiling" >&6; }
  2762. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2763. $as_echo_n "checking for suffix of executables... " >&6; }
  2764. if { (ac_try="$ac_link"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2770. $as_echo "$ac_try_echo") >&5
  2771. (eval "$ac_link") 2>&5
  2772. ac_status=$?
  2773. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2774. (exit $ac_status); }; then
  2775. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2776. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2777. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2778. # `rm'.
  2779. for ac_file in conftest.exe conftest conftest.*; do
  2780. test -f "$ac_file" || continue
  2781. case $ac_file in
  2782. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2783. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2784. break;;
  2785. * ) break;;
  2786. esac
  2787. done
  2788. else
  2789. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2790. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2791. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2792. See \`config.log' for more details." >&5
  2793. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2794. See \`config.log' for more details." >&2;}
  2795. { (exit 1); exit 1; }; }; }
  2796. fi
  2797. rm -f conftest$ac_cv_exeext
  2798. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2799. $as_echo "$ac_cv_exeext" >&6; }
  2800. rm -f conftest.$ac_ext
  2801. EXEEXT=$ac_cv_exeext
  2802. ac_exeext=$EXEEXT
  2803. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2804. $as_echo_n "checking for suffix of object files... " >&6; }
  2805. if test "${ac_cv_objext+set}" = set; then
  2806. $as_echo_n "(cached) " >&6
  2807. else
  2808. cat >conftest.$ac_ext <<_ACEOF
  2809. /* confdefs.h. */
  2810. _ACEOF
  2811. cat confdefs.h >>conftest.$ac_ext
  2812. cat >>conftest.$ac_ext <<_ACEOF
  2813. /* end confdefs.h. */
  2814. int
  2815. main ()
  2816. {
  2817. ;
  2818. return 0;
  2819. }
  2820. _ACEOF
  2821. rm -f conftest.o conftest.obj
  2822. if { (ac_try="$ac_compile"
  2823. case "(($ac_try" in
  2824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2825. *) ac_try_echo=$ac_try;;
  2826. esac
  2827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2828. $as_echo "$ac_try_echo") >&5
  2829. (eval "$ac_compile") 2>&5
  2830. ac_status=$?
  2831. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2832. (exit $ac_status); }; then
  2833. for ac_file in conftest.o conftest.obj conftest.*; do
  2834. test -f "$ac_file" || continue;
  2835. case $ac_file in
  2836. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2837. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2838. break;;
  2839. esac
  2840. done
  2841. else
  2842. $as_echo "$as_me: failed program was:" >&5
  2843. sed 's/^/| /' conftest.$ac_ext >&5
  2844. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2845. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2846. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2847. See \`config.log' for more details." >&5
  2848. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2849. See \`config.log' for more details." >&2;}
  2850. { (exit 1); exit 1; }; }; }
  2851. fi
  2852. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2853. fi
  2854. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2855. $as_echo "$ac_cv_objext" >&6; }
  2856. OBJEXT=$ac_cv_objext
  2857. ac_objext=$OBJEXT
  2858. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2859. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2860. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2861. $as_echo_n "(cached) " >&6
  2862. else
  2863. cat >conftest.$ac_ext <<_ACEOF
  2864. /* confdefs.h. */
  2865. _ACEOF
  2866. cat confdefs.h >>conftest.$ac_ext
  2867. cat >>conftest.$ac_ext <<_ACEOF
  2868. /* end confdefs.h. */
  2869. int
  2870. main ()
  2871. {
  2872. #ifndef __GNUC__
  2873. choke me
  2874. #endif
  2875. ;
  2876. return 0;
  2877. }
  2878. _ACEOF
  2879. rm -f conftest.$ac_objext
  2880. if { (ac_try="$ac_compile"
  2881. case "(($ac_try" in
  2882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2883. *) ac_try_echo=$ac_try;;
  2884. esac
  2885. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2886. $as_echo "$ac_try_echo") >&5
  2887. (eval "$ac_compile") 2>conftest.er1
  2888. ac_status=$?
  2889. grep -v '^ *+' conftest.er1 >conftest.err
  2890. rm -f conftest.er1
  2891. cat conftest.err >&5
  2892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893. (exit $ac_status); } && {
  2894. test -z "$ac_c_werror_flag" ||
  2895. test ! -s conftest.err
  2896. } && test -s conftest.$ac_objext; then
  2897. ac_compiler_gnu=yes
  2898. else
  2899. $as_echo "$as_me: failed program was:" >&5
  2900. sed 's/^/| /' conftest.$ac_ext >&5
  2901. ac_compiler_gnu=no
  2902. fi
  2903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2904. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2905. fi
  2906. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2907. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2908. if test $ac_compiler_gnu = yes; then
  2909. GCC=yes
  2910. else
  2911. GCC=
  2912. fi
  2913. ac_test_CFLAGS=${CFLAGS+set}
  2914. ac_save_CFLAGS=$CFLAGS
  2915. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2916. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2917. if test "${ac_cv_prog_cc_g+set}" = set; then
  2918. $as_echo_n "(cached) " >&6
  2919. else
  2920. ac_save_c_werror_flag=$ac_c_werror_flag
  2921. ac_c_werror_flag=yes
  2922. ac_cv_prog_cc_g=no
  2923. CFLAGS="-g"
  2924. cat >conftest.$ac_ext <<_ACEOF
  2925. /* confdefs.h. */
  2926. _ACEOF
  2927. cat confdefs.h >>conftest.$ac_ext
  2928. cat >>conftest.$ac_ext <<_ACEOF
  2929. /* end confdefs.h. */
  2930. int
  2931. main ()
  2932. {
  2933. ;
  2934. return 0;
  2935. }
  2936. _ACEOF
  2937. rm -f conftest.$ac_objext
  2938. if { (ac_try="$ac_compile"
  2939. case "(($ac_try" in
  2940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2941. *) ac_try_echo=$ac_try;;
  2942. esac
  2943. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2944. $as_echo "$ac_try_echo") >&5
  2945. (eval "$ac_compile") 2>conftest.er1
  2946. ac_status=$?
  2947. grep -v '^ *+' conftest.er1 >conftest.err
  2948. rm -f conftest.er1
  2949. cat conftest.err >&5
  2950. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2951. (exit $ac_status); } && {
  2952. test -z "$ac_c_werror_flag" ||
  2953. test ! -s conftest.err
  2954. } && test -s conftest.$ac_objext; then
  2955. ac_cv_prog_cc_g=yes
  2956. else
  2957. $as_echo "$as_me: failed program was:" >&5
  2958. sed 's/^/| /' conftest.$ac_ext >&5
  2959. CFLAGS=""
  2960. cat >conftest.$ac_ext <<_ACEOF
  2961. /* confdefs.h. */
  2962. _ACEOF
  2963. cat confdefs.h >>conftest.$ac_ext
  2964. cat >>conftest.$ac_ext <<_ACEOF
  2965. /* end confdefs.h. */
  2966. int
  2967. main ()
  2968. {
  2969. ;
  2970. return 0;
  2971. }
  2972. _ACEOF
  2973. rm -f conftest.$ac_objext
  2974. if { (ac_try="$ac_compile"
  2975. case "(($ac_try" in
  2976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2977. *) ac_try_echo=$ac_try;;
  2978. esac
  2979. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2980. $as_echo "$ac_try_echo") >&5
  2981. (eval "$ac_compile") 2>conftest.er1
  2982. ac_status=$?
  2983. grep -v '^ *+' conftest.er1 >conftest.err
  2984. rm -f conftest.er1
  2985. cat conftest.err >&5
  2986. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2987. (exit $ac_status); } && {
  2988. test -z "$ac_c_werror_flag" ||
  2989. test ! -s conftest.err
  2990. } && test -s conftest.$ac_objext; then
  2991. :
  2992. else
  2993. $as_echo "$as_me: failed program was:" >&5
  2994. sed 's/^/| /' conftest.$ac_ext >&5
  2995. ac_c_werror_flag=$ac_save_c_werror_flag
  2996. CFLAGS="-g"
  2997. cat >conftest.$ac_ext <<_ACEOF
  2998. /* confdefs.h. */
  2999. _ACEOF
  3000. cat confdefs.h >>conftest.$ac_ext
  3001. cat >>conftest.$ac_ext <<_ACEOF
  3002. /* end confdefs.h. */
  3003. int
  3004. main ()
  3005. {
  3006. ;
  3007. return 0;
  3008. }
  3009. _ACEOF
  3010. rm -f conftest.$ac_objext
  3011. if { (ac_try="$ac_compile"
  3012. case "(($ac_try" in
  3013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3014. *) ac_try_echo=$ac_try;;
  3015. esac
  3016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3017. $as_echo "$ac_try_echo") >&5
  3018. (eval "$ac_compile") 2>conftest.er1
  3019. ac_status=$?
  3020. grep -v '^ *+' conftest.er1 >conftest.err
  3021. rm -f conftest.er1
  3022. cat conftest.err >&5
  3023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024. (exit $ac_status); } && {
  3025. test -z "$ac_c_werror_flag" ||
  3026. test ! -s conftest.err
  3027. } && test -s conftest.$ac_objext; then
  3028. ac_cv_prog_cc_g=yes
  3029. else
  3030. $as_echo "$as_me: failed program was:" >&5
  3031. sed 's/^/| /' conftest.$ac_ext >&5
  3032. fi
  3033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3034. fi
  3035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3036. fi
  3037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3038. ac_c_werror_flag=$ac_save_c_werror_flag
  3039. fi
  3040. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3041. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3042. if test "$ac_test_CFLAGS" = set; then
  3043. CFLAGS=$ac_save_CFLAGS
  3044. elif test $ac_cv_prog_cc_g = yes; then
  3045. if test "$GCC" = yes; then
  3046. CFLAGS="-g -O2"
  3047. else
  3048. CFLAGS="-g"
  3049. fi
  3050. else
  3051. if test "$GCC" = yes; then
  3052. CFLAGS="-O2"
  3053. else
  3054. CFLAGS=
  3055. fi
  3056. fi
  3057. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3058. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3059. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3060. $as_echo_n "(cached) " >&6
  3061. else
  3062. ac_cv_prog_cc_c89=no
  3063. ac_save_CC=$CC
  3064. cat >conftest.$ac_ext <<_ACEOF
  3065. /* confdefs.h. */
  3066. _ACEOF
  3067. cat confdefs.h >>conftest.$ac_ext
  3068. cat >>conftest.$ac_ext <<_ACEOF
  3069. /* end confdefs.h. */
  3070. #include <stdarg.h>
  3071. #include <stdio.h>
  3072. #include <sys/types.h>
  3073. #include <sys/stat.h>
  3074. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3075. struct buf { int x; };
  3076. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3077. static char *e (p, i)
  3078. char **p;
  3079. int i;
  3080. {
  3081. return p[i];
  3082. }
  3083. static char *f (char * (*g) (char **, int), char **p, ...)
  3084. {
  3085. char *s;
  3086. va_list v;
  3087. va_start (v,p);
  3088. s = g (p, va_arg (v,int));
  3089. va_end (v);
  3090. return s;
  3091. }
  3092. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3093. function prototypes and stuff, but not '\xHH' hex character constants.
  3094. These don't provoke an error unfortunately, instead are silently treated
  3095. as 'x'. The following induces an error, until -std is added to get
  3096. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3097. array size at least. It's necessary to write '\x00'==0 to get something
  3098. that's true only with -std. */
  3099. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3100. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3101. inside strings and character constants. */
  3102. #define FOO(x) 'x'
  3103. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3104. int test (int i, double x);
  3105. struct s1 {int (*f) (int a);};
  3106. struct s2 {int (*f) (double a);};
  3107. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3108. int argc;
  3109. char **argv;
  3110. int
  3111. main ()
  3112. {
  3113. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3114. ;
  3115. return 0;
  3116. }
  3117. _ACEOF
  3118. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3119. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3120. do
  3121. CC="$ac_save_CC $ac_arg"
  3122. rm -f conftest.$ac_objext
  3123. if { (ac_try="$ac_compile"
  3124. case "(($ac_try" in
  3125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3126. *) ac_try_echo=$ac_try;;
  3127. esac
  3128. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3129. $as_echo "$ac_try_echo") >&5
  3130. (eval "$ac_compile") 2>conftest.er1
  3131. ac_status=$?
  3132. grep -v '^ *+' conftest.er1 >conftest.err
  3133. rm -f conftest.er1
  3134. cat conftest.err >&5
  3135. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3136. (exit $ac_status); } && {
  3137. test -z "$ac_c_werror_flag" ||
  3138. test ! -s conftest.err
  3139. } && test -s conftest.$ac_objext; then
  3140. ac_cv_prog_cc_c89=$ac_arg
  3141. else
  3142. $as_echo "$as_me: failed program was:" >&5
  3143. sed 's/^/| /' conftest.$ac_ext >&5
  3144. fi
  3145. rm -f core conftest.err conftest.$ac_objext
  3146. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3147. done
  3148. rm -f conftest.$ac_ext
  3149. CC=$ac_save_CC
  3150. fi
  3151. # AC_CACHE_VAL
  3152. case "x$ac_cv_prog_cc_c89" in
  3153. x)
  3154. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3155. $as_echo "none needed" >&6; } ;;
  3156. xno)
  3157. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3158. $as_echo "unsupported" >&6; } ;;
  3159. *)
  3160. CC="$CC $ac_cv_prog_cc_c89"
  3161. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3162. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3163. esac
  3164. ac_ext=c
  3165. ac_cpp='$CPP $CPPFLAGS'
  3166. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3167. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3168. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3169. DEPDIR="${am__leading_dot}deps"
  3170. ac_config_commands="$ac_config_commands depfiles"
  3171. am_make=${MAKE-make}
  3172. cat > confinc << 'END'
  3173. am__doit:
  3174. @echo done
  3175. .PHONY: am__doit
  3176. END
  3177. # If we don't find an include directive, just comment out the code.
  3178. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3179. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3180. am__include="#"
  3181. am__quote=
  3182. _am_result=none
  3183. # First try GNU make style include.
  3184. echo "include confinc" > confmf
  3185. # We grep out `Entering directory' and `Leaving directory'
  3186. # messages which can occur if `w' ends up in MAKEFLAGS.
  3187. # In particular we don't look at `^make:' because GNU make might
  3188. # be invoked under some other name (usually "gmake"), in which
  3189. # case it prints its new name instead of `make'.
  3190. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3191. am__include=include
  3192. am__quote=
  3193. _am_result=GNU
  3194. fi
  3195. # Now try BSD make style include.
  3196. if test "$am__include" = "#"; then
  3197. echo '.include "confinc"' > confmf
  3198. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3199. am__include=.include
  3200. am__quote="\""
  3201. _am_result=BSD
  3202. fi
  3203. fi
  3204. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3205. $as_echo "$_am_result" >&6; }
  3206. rm -f confinc confmf
  3207. # Check whether --enable-dependency-tracking was given.
  3208. if test "${enable_dependency_tracking+set}" = set; then
  3209. enableval=$enable_dependency_tracking;
  3210. fi
  3211. if test "x$enable_dependency_tracking" != xno; then
  3212. am_depcomp="$ac_aux_dir/depcomp"
  3213. AMDEPBACKSLASH='\'
  3214. fi
  3215. if test "x$enable_dependency_tracking" != xno; then
  3216. AMDEP_TRUE=
  3217. AMDEP_FALSE='#'
  3218. else
  3219. AMDEP_TRUE='#'
  3220. AMDEP_FALSE=
  3221. fi
  3222. depcc="$CC" am_compiler_list=
  3223. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3224. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3225. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3226. $as_echo_n "(cached) " >&6
  3227. else
  3228. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3229. # We make a subdir and do the tests there. Otherwise we can end up
  3230. # making bogus files that we don't know about and never remove. For
  3231. # instance it was reported that on HP-UX the gcc test will end up
  3232. # making a dummy file named `D' -- because `-MD' means `put the output
  3233. # in D'.
  3234. mkdir conftest.dir
  3235. # Copy depcomp to subdir because otherwise we won't find it if we're
  3236. # using a relative directory.
  3237. cp "$am_depcomp" conftest.dir
  3238. cd conftest.dir
  3239. # We will build objects and dependencies in a subdirectory because
  3240. # it helps to detect inapplicable dependency modes. For instance
  3241. # both Tru64's cc and ICC support -MD to output dependencies as a
  3242. # side effect of compilation, but ICC will put the dependencies in
  3243. # the current directory while Tru64 will put them in the object
  3244. # directory.
  3245. mkdir sub
  3246. am_cv_CC_dependencies_compiler_type=none
  3247. if test "$am_compiler_list" = ""; then
  3248. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3249. fi
  3250. for depmode in $am_compiler_list; do
  3251. # Setup a source with many dependencies, because some compilers
  3252. # like to wrap large dependency lists on column 80 (with \), and
  3253. # we should not choose a depcomp mode which is confused by this.
  3254. #
  3255. # We need to recreate these files for each test, as the compiler may
  3256. # overwrite some of them when testing with obscure command lines.
  3257. # This happens at least with the AIX C compiler.
  3258. : > sub/conftest.c
  3259. for i in 1 2 3 4 5 6; do
  3260. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3261. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3262. # Solaris 8's {/usr,}/bin/sh.
  3263. touch sub/conftst$i.h
  3264. done
  3265. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3266. case $depmode in
  3267. nosideeffect)
  3268. # after this tag, mechanisms are not by side-effect, so they'll
  3269. # only be used when explicitly requested
  3270. if test "x$enable_dependency_tracking" = xyes; then
  3271. continue
  3272. else
  3273. break
  3274. fi
  3275. ;;
  3276. none) break ;;
  3277. esac
  3278. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3279. # mode. It turns out that the SunPro C++ compiler does not properly
  3280. # handle `-M -o', and we need to detect this.
  3281. if depmode=$depmode \
  3282. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3283. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3284. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3285. >/dev/null 2>conftest.err &&
  3286. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3287. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3288. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3289. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3290. # icc doesn't choke on unknown options, it will just issue warnings
  3291. # or remarks (even with -Werror). So we grep stderr for any message
  3292. # that says an option was ignored or not supported.
  3293. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3294. # icc: Command line warning: ignoring option '-M'; no argument required
  3295. # The diagnosis changed in icc 8.0:
  3296. # icc: Command line remark: option '-MP' not supported
  3297. if (grep 'ignoring option' conftest.err ||
  3298. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3299. am_cv_CC_dependencies_compiler_type=$depmode
  3300. break
  3301. fi
  3302. fi
  3303. done
  3304. cd ..
  3305. rm -rf conftest.dir
  3306. else
  3307. am_cv_CC_dependencies_compiler_type=none
  3308. fi
  3309. fi
  3310. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3311. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3312. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3313. if
  3314. test "x$enable_dependency_tracking" != xno \
  3315. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3316. am__fastdepCC_TRUE=
  3317. am__fastdepCC_FALSE='#'
  3318. else
  3319. am__fastdepCC_TRUE='#'
  3320. am__fastdepCC_FALSE=
  3321. fi
  3322. # By default we simply use the C compiler to build assembly code.
  3323. test "${CCAS+set}" = set || CCAS=$CC
  3324. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3325. depcc="$CCAS" am_compiler_list=
  3326. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3327. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3328. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  3329. $as_echo_n "(cached) " >&6
  3330. else
  3331. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3332. # We make a subdir and do the tests there. Otherwise we can end up
  3333. # making bogus files that we don't know about and never remove. For
  3334. # instance it was reported that on HP-UX the gcc test will end up
  3335. # making a dummy file named `D' -- because `-MD' means `put the output
  3336. # in D'.
  3337. mkdir conftest.dir
  3338. # Copy depcomp to subdir because otherwise we won't find it if we're
  3339. # using a relative directory.
  3340. cp "$am_depcomp" conftest.dir
  3341. cd conftest.dir
  3342. # We will build objects and dependencies in a subdirectory because
  3343. # it helps to detect inapplicable dependency modes. For instance
  3344. # both Tru64's cc and ICC support -MD to output dependencies as a
  3345. # side effect of compilation, but ICC will put the dependencies in
  3346. # the current directory while Tru64 will put them in the object
  3347. # directory.
  3348. mkdir sub
  3349. am_cv_CCAS_dependencies_compiler_type=none
  3350. if test "$am_compiler_list" = ""; then
  3351. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3352. fi
  3353. for depmode in $am_compiler_list; do
  3354. # Setup a source with many dependencies, because some compilers
  3355. # like to wrap large dependency lists on column 80 (with \), and
  3356. # we should not choose a depcomp mode which is confused by this.
  3357. #
  3358. # We need to recreate these files for each test, as the compiler may
  3359. # overwrite some of them when testing with obscure command lines.
  3360. # This happens at least with the AIX C compiler.
  3361. : > sub/conftest.c
  3362. for i in 1 2 3 4 5 6; do
  3363. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3364. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3365. # Solaris 8's {/usr,}/bin/sh.
  3366. touch sub/conftst$i.h
  3367. done
  3368. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3369. case $depmode in
  3370. nosideeffect)
  3371. # after this tag, mechanisms are not by side-effect, so they'll
  3372. # only be used when explicitly requested
  3373. if test "x$enable_dependency_tracking" = xyes; then
  3374. continue
  3375. else
  3376. break
  3377. fi
  3378. ;;
  3379. none) break ;;
  3380. esac
  3381. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3382. # mode. It turns out that the SunPro C++ compiler does not properly
  3383. # handle `-M -o', and we need to detect this.
  3384. if depmode=$depmode \
  3385. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3386. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3387. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3388. >/dev/null 2>conftest.err &&
  3389. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3390. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3391. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3392. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3393. # icc doesn't choke on unknown options, it will just issue warnings
  3394. # or remarks (even with -Werror). So we grep stderr for any message
  3395. # that says an option was ignored or not supported.
  3396. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3397. # icc: Command line warning: ignoring option '-M'; no argument required
  3398. # The diagnosis changed in icc 8.0:
  3399. # icc: Command line remark: option '-MP' not supported
  3400. if (grep 'ignoring option' conftest.err ||
  3401. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3402. am_cv_CCAS_dependencies_compiler_type=$depmode
  3403. break
  3404. fi
  3405. fi
  3406. done
  3407. cd ..
  3408. rm -rf conftest.dir
  3409. else
  3410. am_cv_CCAS_dependencies_compiler_type=none
  3411. fi
  3412. fi
  3413. { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  3414. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  3415. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  3416. if
  3417. test "x$enable_dependency_tracking" != xno \
  3418. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  3419. am__fastdepCCAS_TRUE=
  3420. am__fastdepCCAS_FALSE='#'
  3421. else
  3422. am__fastdepCCAS_TRUE='#'
  3423. am__fastdepCCAS_FALSE=
  3424. fi
  3425. if test "$GCC" = yes
  3426. then
  3427. case "$host" in
  3428. *-*-mingw*)
  3429. case "$build" in
  3430. *-*-cygwin*)
  3431. CPPFLAGS="$CPPFLAGS -mno-cygwin"
  3432. LDFLAGS="$LDFLAGS -mno-cygwin"
  3433. ;;
  3434. esac
  3435. esac
  3436. fi
  3437. case `pwd` in
  3438. *\ * | *\ *)
  3439. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3440. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3441. esac
  3442. macro_version='2.2.6'
  3443. macro_revision='1.3012'
  3444. ltmain="$ac_aux_dir/ltmain.sh"
  3445. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3446. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3447. if test "${ac_cv_path_SED+set}" = set; then
  3448. $as_echo_n "(cached) " >&6
  3449. else
  3450. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3451. for ac_i in 1 2 3 4 5 6 7; do
  3452. ac_script="$ac_script$as_nl$ac_script"
  3453. done
  3454. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3455. $as_unset ac_script || ac_script=
  3456. if test -z "$SED"; then
  3457. ac_path_SED_found=false
  3458. # Loop through the user's path and test for each of PROGNAME-LIST
  3459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3460. for as_dir in $PATH
  3461. do
  3462. IFS=$as_save_IFS
  3463. test -z "$as_dir" && as_dir=.
  3464. for ac_prog in sed gsed; do
  3465. for ac_exec_ext in '' $ac_executable_extensions; do
  3466. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3467. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3468. # Check for GNU ac_path_SED and select it if it is found.
  3469. # Check for GNU $ac_path_SED
  3470. case `"$ac_path_SED" --version 2>&1` in
  3471. *GNU*)
  3472. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3473. *)
  3474. ac_count=0
  3475. $as_echo_n 0123456789 >"conftest.in"
  3476. while :
  3477. do
  3478. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3479. mv "conftest.tmp" "conftest.in"
  3480. cp "conftest.in" "conftest.nl"
  3481. $as_echo '' >> "conftest.nl"
  3482. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3483. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3484. ac_count=`expr $ac_count + 1`
  3485. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3486. # Best one so far, save it but keep looking for a better one
  3487. ac_cv_path_SED="$ac_path_SED"
  3488. ac_path_SED_max=$ac_count
  3489. fi
  3490. # 10*(2^10) chars as input seems more than enough
  3491. test $ac_count -gt 10 && break
  3492. done
  3493. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3494. esac
  3495. $ac_path_SED_found && break 3
  3496. done
  3497. done
  3498. done
  3499. IFS=$as_save_IFS
  3500. if test -z "$ac_cv_path_SED"; then
  3501. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3502. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3503. { (exit 1); exit 1; }; }
  3504. fi
  3505. else
  3506. ac_cv_path_SED=$SED
  3507. fi
  3508. fi
  3509. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3510. $as_echo "$ac_cv_path_SED" >&6; }
  3511. SED="$ac_cv_path_SED"
  3512. rm -f conftest.sed
  3513. test -z "$SED" && SED=sed
  3514. Xsed="$SED -e 1s/^X//"
  3515. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3516. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3517. if test "${ac_cv_path_GREP+set}" = set; then
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. if test -z "$GREP"; then
  3521. ac_path_GREP_found=false
  3522. # Loop through the user's path and test for each of PROGNAME-LIST
  3523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3524. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3525. do
  3526. IFS=$as_save_IFS
  3527. test -z "$as_dir" && as_dir=.
  3528. for ac_prog in grep ggrep; do
  3529. for ac_exec_ext in '' $ac_executable_extensions; do
  3530. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3531. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3532. # Check for GNU ac_path_GREP and select it if it is found.
  3533. # Check for GNU $ac_path_GREP
  3534. case `"$ac_path_GREP" --version 2>&1` in
  3535. *GNU*)
  3536. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3537. *)
  3538. ac_count=0
  3539. $as_echo_n 0123456789 >"conftest.in"
  3540. while :
  3541. do
  3542. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3543. mv "conftest.tmp" "conftest.in"
  3544. cp "conftest.in" "conftest.nl"
  3545. $as_echo 'GREP' >> "conftest.nl"
  3546. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3547. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3548. ac_count=`expr $ac_count + 1`
  3549. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3550. # Best one so far, save it but keep looking for a better one
  3551. ac_cv_path_GREP="$ac_path_GREP"
  3552. ac_path_GREP_max=$ac_count
  3553. fi
  3554. # 10*(2^10) chars as input seems more than enough
  3555. test $ac_count -gt 10 && break
  3556. done
  3557. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3558. esac
  3559. $ac_path_GREP_found && break 3
  3560. done
  3561. done
  3562. done
  3563. IFS=$as_save_IFS
  3564. if test -z "$ac_cv_path_GREP"; then
  3565. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3566. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3567. { (exit 1); exit 1; }; }
  3568. fi
  3569. else
  3570. ac_cv_path_GREP=$GREP
  3571. fi
  3572. fi
  3573. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3574. $as_echo "$ac_cv_path_GREP" >&6; }
  3575. GREP="$ac_cv_path_GREP"
  3576. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3577. $as_echo_n "checking for egrep... " >&6; }
  3578. if test "${ac_cv_path_EGREP+set}" = set; then
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3582. then ac_cv_path_EGREP="$GREP -E"
  3583. else
  3584. if test -z "$EGREP"; then
  3585. ac_path_EGREP_found=false
  3586. # Loop through the user's path and test for each of PROGNAME-LIST
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3589. do
  3590. IFS=$as_save_IFS
  3591. test -z "$as_dir" && as_dir=.
  3592. for ac_prog in egrep; do
  3593. for ac_exec_ext in '' $ac_executable_extensions; do
  3594. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3595. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3596. # Check for GNU ac_path_EGREP and select it if it is found.
  3597. # Check for GNU $ac_path_EGREP
  3598. case `"$ac_path_EGREP" --version 2>&1` in
  3599. *GNU*)
  3600. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3601. *)
  3602. ac_count=0
  3603. $as_echo_n 0123456789 >"conftest.in"
  3604. while :
  3605. do
  3606. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3607. mv "conftest.tmp" "conftest.in"
  3608. cp "conftest.in" "conftest.nl"
  3609. $as_echo 'EGREP' >> "conftest.nl"
  3610. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3611. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3612. ac_count=`expr $ac_count + 1`
  3613. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3614. # Best one so far, save it but keep looking for a better one
  3615. ac_cv_path_EGREP="$ac_path_EGREP"
  3616. ac_path_EGREP_max=$ac_count
  3617. fi
  3618. # 10*(2^10) chars as input seems more than enough
  3619. test $ac_count -gt 10 && break
  3620. done
  3621. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3622. esac
  3623. $ac_path_EGREP_found && break 3
  3624. done
  3625. done
  3626. done
  3627. IFS=$as_save_IFS
  3628. if test -z "$ac_cv_path_EGREP"; then
  3629. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3630. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3631. { (exit 1); exit 1; }; }
  3632. fi
  3633. else
  3634. ac_cv_path_EGREP=$EGREP
  3635. fi
  3636. fi
  3637. fi
  3638. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3639. $as_echo "$ac_cv_path_EGREP" >&6; }
  3640. EGREP="$ac_cv_path_EGREP"
  3641. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  3642. $as_echo_n "checking for fgrep... " >&6; }
  3643. if test "${ac_cv_path_FGREP+set}" = set; then
  3644. $as_echo_n "(cached) " >&6
  3645. else
  3646. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3647. then ac_cv_path_FGREP="$GREP -F"
  3648. else
  3649. if test -z "$FGREP"; then
  3650. ac_path_FGREP_found=false
  3651. # Loop through the user's path and test for each of PROGNAME-LIST
  3652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3653. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3654. do
  3655. IFS=$as_save_IFS
  3656. test -z "$as_dir" && as_dir=.
  3657. for ac_prog in fgrep; do
  3658. for ac_exec_ext in '' $ac_executable_extensions; do
  3659. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3660. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3661. # Check for GNU ac_path_FGREP and select it if it is found.
  3662. # Check for GNU $ac_path_FGREP
  3663. case `"$ac_path_FGREP" --version 2>&1` in
  3664. *GNU*)
  3665. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3666. *)
  3667. ac_count=0
  3668. $as_echo_n 0123456789 >"conftest.in"
  3669. while :
  3670. do
  3671. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3672. mv "conftest.tmp" "conftest.in"
  3673. cp "conftest.in" "conftest.nl"
  3674. $as_echo 'FGREP' >> "conftest.nl"
  3675. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3676. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3677. ac_count=`expr $ac_count + 1`
  3678. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3679. # Best one so far, save it but keep looking for a better one
  3680. ac_cv_path_FGREP="$ac_path_FGREP"
  3681. ac_path_FGREP_max=$ac_count
  3682. fi
  3683. # 10*(2^10) chars as input seems more than enough
  3684. test $ac_count -gt 10 && break
  3685. done
  3686. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3687. esac
  3688. $ac_path_FGREP_found && break 3
  3689. done
  3690. done
  3691. done
  3692. IFS=$as_save_IFS
  3693. if test -z "$ac_cv_path_FGREP"; then
  3694. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3695. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3696. { (exit 1); exit 1; }; }
  3697. fi
  3698. else
  3699. ac_cv_path_FGREP=$FGREP
  3700. fi
  3701. fi
  3702. fi
  3703. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3704. $as_echo "$ac_cv_path_FGREP" >&6; }
  3705. FGREP="$ac_cv_path_FGREP"
  3706. test -z "$GREP" && GREP=grep
  3707. # Check whether --with-gnu-ld was given.
  3708. if test "${with_gnu_ld+set}" = set; then
  3709. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3710. else
  3711. with_gnu_ld=no
  3712. fi
  3713. ac_prog=ld
  3714. if test "$GCC" = yes; then
  3715. # Check if gcc -print-prog-name=ld gives a path.
  3716. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3717. $as_echo_n "checking for ld used by $CC... " >&6; }
  3718. case $host in
  3719. *-*-mingw*)
  3720. # gcc leaves a trailing carriage return which upsets mingw
  3721. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3722. *)
  3723. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3724. esac
  3725. case $ac_prog in
  3726. # Accept absolute paths.
  3727. [\\/]* | ?:[\\/]*)
  3728. re_direlt='/[^/][^/]*/\.\./'
  3729. # Canonicalize the pathname of ld
  3730. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3731. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3732. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3733. done
  3734. test -z "$LD" && LD="$ac_prog"
  3735. ;;
  3736. "")
  3737. # If it fails, then pretend we aren't using GCC.
  3738. ac_prog=ld
  3739. ;;
  3740. *)
  3741. # If it is relative, then search for the first ld in PATH.
  3742. with_gnu_ld=unknown
  3743. ;;
  3744. esac
  3745. elif test "$with_gnu_ld" = yes; then
  3746. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3747. $as_echo_n "checking for GNU ld... " >&6; }
  3748. else
  3749. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3750. $as_echo_n "checking for non-GNU ld... " >&6; }
  3751. fi
  3752. if test "${lt_cv_path_LD+set}" = set; then
  3753. $as_echo_n "(cached) " >&6
  3754. else
  3755. if test -z "$LD"; then
  3756. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3757. for ac_dir in $PATH; do
  3758. IFS="$lt_save_ifs"
  3759. test -z "$ac_dir" && ac_dir=.
  3760. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3761. lt_cv_path_LD="$ac_dir/$ac_prog"
  3762. # Check to see if the program is GNU ld. I'd rather use --version,
  3763. # but apparently some variants of GNU ld only accept -v.
  3764. # Break only if it was the GNU/non-GNU ld that we prefer.
  3765. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3766. *GNU* | *'with BFD'*)
  3767. test "$with_gnu_ld" != no && break
  3768. ;;
  3769. *)
  3770. test "$with_gnu_ld" != yes && break
  3771. ;;
  3772. esac
  3773. fi
  3774. done
  3775. IFS="$lt_save_ifs"
  3776. else
  3777. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3778. fi
  3779. fi
  3780. LD="$lt_cv_path_LD"
  3781. if test -n "$LD"; then
  3782. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3783. $as_echo "$LD" >&6; }
  3784. else
  3785. { $as_echo "$as_me:$LINENO: result: no" >&5
  3786. $as_echo "no" >&6; }
  3787. fi
  3788. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3789. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3790. { (exit 1); exit 1; }; }
  3791. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3792. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3793. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3794. $as_echo_n "(cached) " >&6
  3795. else
  3796. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3797. case `$LD -v 2>&1 </dev/null` in
  3798. *GNU* | *'with BFD'*)
  3799. lt_cv_prog_gnu_ld=yes
  3800. ;;
  3801. *)
  3802. lt_cv_prog_gnu_ld=no
  3803. ;;
  3804. esac
  3805. fi
  3806. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3807. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3808. with_gnu_ld=$lt_cv_prog_gnu_ld
  3809. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3810. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3811. if test "${lt_cv_path_NM+set}" = set; then
  3812. $as_echo_n "(cached) " >&6
  3813. else
  3814. if test -n "$NM"; then
  3815. # Let the user override the test.
  3816. lt_cv_path_NM="$NM"
  3817. else
  3818. lt_nm_to_check="${ac_tool_prefix}nm"
  3819. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3820. lt_nm_to_check="$lt_nm_to_check nm"
  3821. fi
  3822. for lt_tmp_nm in $lt_nm_to_check; do
  3823. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3824. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3825. IFS="$lt_save_ifs"
  3826. test -z "$ac_dir" && ac_dir=.
  3827. tmp_nm="$ac_dir/$lt_tmp_nm"
  3828. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3829. # Check to see if the nm accepts a BSD-compat flag.
  3830. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3831. # nm: unknown option "B" ignored
  3832. # Tru64's nm complains that /dev/null is an invalid object file
  3833. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3834. */dev/null* | *'Invalid file or object type'*)
  3835. lt_cv_path_NM="$tmp_nm -B"
  3836. break
  3837. ;;
  3838. *)
  3839. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3840. */dev/null*)
  3841. lt_cv_path_NM="$tmp_nm -p"
  3842. break
  3843. ;;
  3844. *)
  3845. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3846. continue # so that we can try to find one that supports BSD flags
  3847. ;;
  3848. esac
  3849. ;;
  3850. esac
  3851. fi
  3852. done
  3853. IFS="$lt_save_ifs"
  3854. done
  3855. : ${lt_cv_path_NM=no}
  3856. fi
  3857. fi
  3858. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3859. $as_echo "$lt_cv_path_NM" >&6; }
  3860. if test "$lt_cv_path_NM" != "no"; then
  3861. NM="$lt_cv_path_NM"
  3862. else
  3863. # Didn't find any BSD compatible name lister, look for dumpbin.
  3864. if test -n "$ac_tool_prefix"; then
  3865. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3866. do
  3867. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3868. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3869. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3870. $as_echo_n "checking for $ac_word... " >&6; }
  3871. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. if test -n "$DUMPBIN"; then
  3875. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3876. else
  3877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3878. for as_dir in $PATH
  3879. do
  3880. IFS=$as_save_IFS
  3881. test -z "$as_dir" && as_dir=.
  3882. for ac_exec_ext in '' $ac_executable_extensions; do
  3883. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3884. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3885. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3886. break 2
  3887. fi
  3888. done
  3889. done
  3890. IFS=$as_save_IFS
  3891. fi
  3892. fi
  3893. DUMPBIN=$ac_cv_prog_DUMPBIN
  3894. if test -n "$DUMPBIN"; then
  3895. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  3896. $as_echo "$DUMPBIN" >&6; }
  3897. else
  3898. { $as_echo "$as_me:$LINENO: result: no" >&5
  3899. $as_echo "no" >&6; }
  3900. fi
  3901. test -n "$DUMPBIN" && break
  3902. done
  3903. fi
  3904. if test -z "$DUMPBIN"; then
  3905. ac_ct_DUMPBIN=$DUMPBIN
  3906. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3907. do
  3908. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3909. set dummy $ac_prog; ac_word=$2
  3910. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3911. $as_echo_n "checking for $ac_word... " >&6; }
  3912. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if test -n "$ac_ct_DUMPBIN"; then
  3916. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3917. else
  3918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3919. for as_dir in $PATH
  3920. do
  3921. IFS=$as_save_IFS
  3922. test -z "$as_dir" && as_dir=.
  3923. for ac_exec_ext in '' $ac_executable_extensions; do
  3924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3925. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3926. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3927. break 2
  3928. fi
  3929. done
  3930. done
  3931. IFS=$as_save_IFS
  3932. fi
  3933. fi
  3934. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3935. if test -n "$ac_ct_DUMPBIN"; then
  3936. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  3937. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3938. else
  3939. { $as_echo "$as_me:$LINENO: result: no" >&5
  3940. $as_echo "no" >&6; }
  3941. fi
  3942. test -n "$ac_ct_DUMPBIN" && break
  3943. done
  3944. if test "x$ac_ct_DUMPBIN" = x; then
  3945. DUMPBIN=":"
  3946. else
  3947. case $cross_compiling:$ac_tool_warned in
  3948. yes:)
  3949. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3951. ac_tool_warned=yes ;;
  3952. esac
  3953. DUMPBIN=$ac_ct_DUMPBIN
  3954. fi
  3955. fi
  3956. if test "$DUMPBIN" != ":"; then
  3957. NM="$DUMPBIN"
  3958. fi
  3959. fi
  3960. test -z "$NM" && NM=nm
  3961. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  3962. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3963. if test "${lt_cv_nm_interface+set}" = set; then
  3964. $as_echo_n "(cached) " >&6
  3965. else
  3966. lt_cv_nm_interface="BSD nm"
  3967. echo "int some_variable = 0;" > conftest.$ac_ext
  3968. (eval echo "\"\$as_me:4489: $ac_compile\"" >&5)
  3969. (eval "$ac_compile" 2>conftest.err)
  3970. cat conftest.err >&5
  3971. (eval echo "\"\$as_me:4492: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3972. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3973. cat conftest.err >&5
  3974. (eval echo "\"\$as_me:4495: output\"" >&5)
  3975. cat conftest.out >&5
  3976. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3977. lt_cv_nm_interface="MS dumpbin"
  3978. fi
  3979. rm -f conftest*
  3980. fi
  3981. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  3982. $as_echo "$lt_cv_nm_interface" >&6; }
  3983. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3984. $as_echo_n "checking whether ln -s works... " >&6; }
  3985. LN_S=$as_ln_s
  3986. if test "$LN_S" = "ln -s"; then
  3987. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3988. $as_echo "yes" >&6; }
  3989. else
  3990. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3991. $as_echo "no, using $LN_S" >&6; }
  3992. fi
  3993. # find the maximum length of command line arguments
  3994. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  3995. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3996. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. i=0
  4000. teststring="ABCD"
  4001. case $build_os in
  4002. msdosdjgpp*)
  4003. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4004. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4005. # during glob expansion). Even if it were fixed, the result of this
  4006. # check would be larger than it should be.
  4007. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4008. ;;
  4009. gnu*)
  4010. # Under GNU Hurd, this test is not required because there is
  4011. # no limit to the length of command line arguments.
  4012. # Libtool will interpret -1 as no limit whatsoever
  4013. lt_cv_sys_max_cmd_len=-1;
  4014. ;;
  4015. cygwin* | mingw* | cegcc*)
  4016. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4017. # about 5 minutes as the teststring grows exponentially.
  4018. # Worse, since 9x/ME are not pre-emptively multitasking,
  4019. # you end up with a "frozen" computer, even though with patience
  4020. # the test eventually succeeds (with a max line length of 256k).
  4021. # Instead, let's just punt: use the minimum linelength reported by
  4022. # all of the supported platforms: 8192 (on NT/2K/XP).
  4023. lt_cv_sys_max_cmd_len=8192;
  4024. ;;
  4025. amigaos*)
  4026. # On AmigaOS with pdksh, this test takes hours, literally.
  4027. # So we just punt and use a minimum line length of 8192.
  4028. lt_cv_sys_max_cmd_len=8192;
  4029. ;;
  4030. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4031. # This has been around since 386BSD, at least. Likely further.
  4032. if test -x /sbin/sysctl; then
  4033. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4034. elif test -x /usr/sbin/sysctl; then
  4035. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4036. else
  4037. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4038. fi
  4039. # And add a safety zone
  4040. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4041. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4042. ;;
  4043. interix*)
  4044. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4045. lt_cv_sys_max_cmd_len=196608
  4046. ;;
  4047. osf*)
  4048. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4049. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4050. # nice to cause kernel panics so lets avoid the loop below.
  4051. # First set a reasonable default.
  4052. lt_cv_sys_max_cmd_len=16384
  4053. #
  4054. if test -x /sbin/sysconfig; then
  4055. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4056. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4057. esac
  4058. fi
  4059. ;;
  4060. sco3.2v5*)
  4061. lt_cv_sys_max_cmd_len=102400
  4062. ;;
  4063. sysv5* | sco5v6* | sysv4.2uw2*)
  4064. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4065. if test -n "$kargmax"; then
  4066. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4067. else
  4068. lt_cv_sys_max_cmd_len=32768
  4069. fi
  4070. ;;
  4071. *)
  4072. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4073. if test -n "$lt_cv_sys_max_cmd_len"; then
  4074. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4075. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4076. else
  4077. # Make teststring a little bigger before we do anything with it.
  4078. # a 1K string should be a reasonable start.
  4079. for i in 1 2 3 4 5 6 7 8 ; do
  4080. teststring=$teststring$teststring
  4081. done
  4082. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4083. # If test is not a shell built-in, we'll probably end up computing a
  4084. # maximum length that is only half of the actual maximum length, but
  4085. # we can't tell.
  4086. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4087. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4088. test $i != 17 # 1/2 MB should be enough
  4089. do
  4090. i=`expr $i + 1`
  4091. teststring=$teststring$teststring
  4092. done
  4093. # Only check the string length outside the loop.
  4094. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4095. teststring=
  4096. # Add a significant safety factor because C++ compilers can tack on
  4097. # massive amounts of additional arguments before passing them to the
  4098. # linker. It appears as though 1/2 is a usable value.
  4099. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4100. fi
  4101. ;;
  4102. esac
  4103. fi
  4104. if test -n $lt_cv_sys_max_cmd_len ; then
  4105. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4106. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4107. else
  4108. { $as_echo "$as_me:$LINENO: result: none" >&5
  4109. $as_echo "none" >&6; }
  4110. fi
  4111. max_cmd_len=$lt_cv_sys_max_cmd_len
  4112. : ${CP="cp -f"}
  4113. : ${MV="mv -f"}
  4114. : ${RM="rm -f"}
  4115. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4116. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4117. # Try some XSI features
  4118. xsi_shell=no
  4119. ( _lt_dummy="a/b/c"
  4120. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4121. = c,a/b,, \
  4122. && eval 'test $(( 1 + 1 )) -eq 2 \
  4123. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4124. && xsi_shell=yes
  4125. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4126. $as_echo "$xsi_shell" >&6; }
  4127. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4128. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4129. lt_shell_append=no
  4130. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4131. >/dev/null 2>&1 \
  4132. && lt_shell_append=yes
  4133. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4134. $as_echo "$lt_shell_append" >&6; }
  4135. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4136. lt_unset=unset
  4137. else
  4138. lt_unset=false
  4139. fi
  4140. # test EBCDIC or ASCII
  4141. case `echo X|tr X '\101'` in
  4142. A) # ASCII based system
  4143. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4144. lt_SP2NL='tr \040 \012'
  4145. lt_NL2SP='tr \015\012 \040\040'
  4146. ;;
  4147. *) # EBCDIC based system
  4148. lt_SP2NL='tr \100 \n'
  4149. lt_NL2SP='tr \r\n \100\100'
  4150. ;;
  4151. esac
  4152. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4153. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4154. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4155. $as_echo_n "(cached) " >&6
  4156. else
  4157. lt_cv_ld_reload_flag='-r'
  4158. fi
  4159. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4160. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4161. reload_flag=$lt_cv_ld_reload_flag
  4162. case $reload_flag in
  4163. "" | " "*) ;;
  4164. *) reload_flag=" $reload_flag" ;;
  4165. esac
  4166. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4167. case $host_os in
  4168. darwin*)
  4169. if test "$GCC" = yes; then
  4170. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4171. else
  4172. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4173. fi
  4174. ;;
  4175. esac
  4176. if test -n "$ac_tool_prefix"; then
  4177. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4178. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4179. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4180. $as_echo_n "checking for $ac_word... " >&6; }
  4181. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4182. $as_echo_n "(cached) " >&6
  4183. else
  4184. if test -n "$OBJDUMP"; then
  4185. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4186. else
  4187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4188. for as_dir in $PATH
  4189. do
  4190. IFS=$as_save_IFS
  4191. test -z "$as_dir" && as_dir=.
  4192. for ac_exec_ext in '' $ac_executable_extensions; do
  4193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4194. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4195. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4196. break 2
  4197. fi
  4198. done
  4199. done
  4200. IFS=$as_save_IFS
  4201. fi
  4202. fi
  4203. OBJDUMP=$ac_cv_prog_OBJDUMP
  4204. if test -n "$OBJDUMP"; then
  4205. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4206. $as_echo "$OBJDUMP" >&6; }
  4207. else
  4208. { $as_echo "$as_me:$LINENO: result: no" >&5
  4209. $as_echo "no" >&6; }
  4210. fi
  4211. fi
  4212. if test -z "$ac_cv_prog_OBJDUMP"; then
  4213. ac_ct_OBJDUMP=$OBJDUMP
  4214. # Extract the first word of "objdump", so it can be a program name with args.
  4215. set dummy objdump; ac_word=$2
  4216. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4217. $as_echo_n "checking for $ac_word... " >&6; }
  4218. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. if test -n "$ac_ct_OBJDUMP"; then
  4222. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4223. else
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH
  4226. do
  4227. IFS=$as_save_IFS
  4228. test -z "$as_dir" && as_dir=.
  4229. for ac_exec_ext in '' $ac_executable_extensions; do
  4230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4231. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4232. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4233. break 2
  4234. fi
  4235. done
  4236. done
  4237. IFS=$as_save_IFS
  4238. fi
  4239. fi
  4240. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4241. if test -n "$ac_ct_OBJDUMP"; then
  4242. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4243. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4244. else
  4245. { $as_echo "$as_me:$LINENO: result: no" >&5
  4246. $as_echo "no" >&6; }
  4247. fi
  4248. if test "x$ac_ct_OBJDUMP" = x; then
  4249. OBJDUMP="false"
  4250. else
  4251. case $cross_compiling:$ac_tool_warned in
  4252. yes:)
  4253. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4255. ac_tool_warned=yes ;;
  4256. esac
  4257. OBJDUMP=$ac_ct_OBJDUMP
  4258. fi
  4259. else
  4260. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4261. fi
  4262. test -z "$OBJDUMP" && OBJDUMP=objdump
  4263. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4264. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4265. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4266. $as_echo_n "(cached) " >&6
  4267. else
  4268. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4269. lt_cv_file_magic_test_file=
  4270. lt_cv_deplibs_check_method='unknown'
  4271. # Need to set the preceding variable on all platforms that support
  4272. # interlibrary dependencies.
  4273. # 'none' -- dependencies not supported.
  4274. # `unknown' -- same as none, but documents that we really don't know.
  4275. # 'pass_all' -- all dependencies passed with no checks.
  4276. # 'test_compile' -- check by making test program.
  4277. # 'file_magic [[regex]]' -- check by looking for files in library path
  4278. # which responds to the $file_magic_cmd with a given extended regex.
  4279. # If you have `file' or equivalent on your system and you're not sure
  4280. # whether `pass_all' will *always* work, you probably want this one.
  4281. case $host_os in
  4282. aix[4-9]*)
  4283. lt_cv_deplibs_check_method=pass_all
  4284. ;;
  4285. beos*)
  4286. lt_cv_deplibs_check_method=pass_all
  4287. ;;
  4288. bsdi[45]*)
  4289. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4290. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4291. lt_cv_file_magic_test_file=/shlib/libc.so
  4292. ;;
  4293. cygwin*)
  4294. # func_win32_libid is a shell function defined in ltmain.sh
  4295. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4296. lt_cv_file_magic_cmd='func_win32_libid'
  4297. ;;
  4298. mingw* | pw32*)
  4299. # Base MSYS/MinGW do not provide the 'file' command needed by
  4300. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4301. # unless we find 'file', for example because we are cross-compiling.
  4302. if ( file / ) >/dev/null 2>&1; then
  4303. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4304. lt_cv_file_magic_cmd='func_win32_libid'
  4305. else
  4306. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4307. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4308. fi
  4309. ;;
  4310. cegcc)
  4311. # use the weaker test based on 'objdump'. See mingw*.
  4312. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4313. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4314. ;;
  4315. darwin* | rhapsody*)
  4316. lt_cv_deplibs_check_method=pass_all
  4317. ;;
  4318. freebsd* | dragonfly*)
  4319. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4320. case $host_cpu in
  4321. i*86 )
  4322. # Not sure whether the presence of OpenBSD here was a mistake.
  4323. # Let's accept both of them until this is cleared up.
  4324. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4325. lt_cv_file_magic_cmd=/usr/bin/file
  4326. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4327. ;;
  4328. esac
  4329. else
  4330. lt_cv_deplibs_check_method=pass_all
  4331. fi
  4332. ;;
  4333. gnu*)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. hpux10.20* | hpux11*)
  4337. lt_cv_file_magic_cmd=/usr/bin/file
  4338. case $host_cpu in
  4339. ia64*)
  4340. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4341. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4342. ;;
  4343. hppa*64*)
  4344. 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]'
  4345. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4346. ;;
  4347. *)
  4348. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4349. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4350. ;;
  4351. esac
  4352. ;;
  4353. interix[3-9]*)
  4354. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4355. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4356. ;;
  4357. irix5* | irix6* | nonstopux*)
  4358. case $LD in
  4359. *-32|*"-32 ") libmagic=32-bit;;
  4360. *-n32|*"-n32 ") libmagic=N32;;
  4361. *-64|*"-64 ") libmagic=64-bit;;
  4362. *) libmagic=never-match;;
  4363. esac
  4364. lt_cv_deplibs_check_method=pass_all
  4365. ;;
  4366. # This must be Linux ELF.
  4367. linux* | k*bsd*-gnu)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. netbsd* | netbsdelf*-gnu)
  4371. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4372. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4373. else
  4374. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4375. fi
  4376. ;;
  4377. newos6*)
  4378. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4379. lt_cv_file_magic_cmd=/usr/bin/file
  4380. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4381. ;;
  4382. *nto* | *qnx*)
  4383. lt_cv_deplibs_check_method=pass_all
  4384. ;;
  4385. openbsd*)
  4386. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4387. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4388. else
  4389. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4390. fi
  4391. ;;
  4392. osf3* | osf4* | osf5*)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. rdos*)
  4396. lt_cv_deplibs_check_method=pass_all
  4397. ;;
  4398. solaris*)
  4399. lt_cv_deplibs_check_method=pass_all
  4400. ;;
  4401. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4402. lt_cv_deplibs_check_method=pass_all
  4403. ;;
  4404. sysv4 | sysv4.3*)
  4405. case $host_vendor in
  4406. motorola)
  4407. 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]'
  4408. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4409. ;;
  4410. ncr)
  4411. lt_cv_deplibs_check_method=pass_all
  4412. ;;
  4413. sequent)
  4414. lt_cv_file_magic_cmd='/bin/file'
  4415. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4416. ;;
  4417. sni)
  4418. lt_cv_file_magic_cmd='/bin/file'
  4419. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4420. lt_cv_file_magic_test_file=/lib/libc.so
  4421. ;;
  4422. siemens)
  4423. lt_cv_deplibs_check_method=pass_all
  4424. ;;
  4425. pc)
  4426. lt_cv_deplibs_check_method=pass_all
  4427. ;;
  4428. esac
  4429. ;;
  4430. tpf*)
  4431. lt_cv_deplibs_check_method=pass_all
  4432. ;;
  4433. esac
  4434. fi
  4435. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4436. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4437. file_magic_cmd=$lt_cv_file_magic_cmd
  4438. deplibs_check_method=$lt_cv_deplibs_check_method
  4439. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4440. if test -n "$ac_tool_prefix"; then
  4441. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4442. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4443. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4444. $as_echo_n "checking for $ac_word... " >&6; }
  4445. if test "${ac_cv_prog_AR+set}" = set; then
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. if test -n "$AR"; then
  4449. ac_cv_prog_AR="$AR" # Let the user override the test.
  4450. else
  4451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4452. for as_dir in $PATH
  4453. do
  4454. IFS=$as_save_IFS
  4455. test -z "$as_dir" && as_dir=.
  4456. for ac_exec_ext in '' $ac_executable_extensions; do
  4457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4458. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4459. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4460. break 2
  4461. fi
  4462. done
  4463. done
  4464. IFS=$as_save_IFS
  4465. fi
  4466. fi
  4467. AR=$ac_cv_prog_AR
  4468. if test -n "$AR"; then
  4469. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4470. $as_echo "$AR" >&6; }
  4471. else
  4472. { $as_echo "$as_me:$LINENO: result: no" >&5
  4473. $as_echo "no" >&6; }
  4474. fi
  4475. fi
  4476. if test -z "$ac_cv_prog_AR"; then
  4477. ac_ct_AR=$AR
  4478. # Extract the first word of "ar", so it can be a program name with args.
  4479. set dummy ar; ac_word=$2
  4480. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4481. $as_echo_n "checking for $ac_word... " >&6; }
  4482. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$ac_ct_AR"; then
  4486. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4487. else
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4495. ac_cv_prog_ac_ct_AR="ar"
  4496. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497. break 2
  4498. fi
  4499. done
  4500. done
  4501. IFS=$as_save_IFS
  4502. fi
  4503. fi
  4504. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4505. if test -n "$ac_ct_AR"; then
  4506. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4507. $as_echo "$ac_ct_AR" >&6; }
  4508. else
  4509. { $as_echo "$as_me:$LINENO: result: no" >&5
  4510. $as_echo "no" >&6; }
  4511. fi
  4512. if test "x$ac_ct_AR" = x; then
  4513. AR="false"
  4514. else
  4515. case $cross_compiling:$ac_tool_warned in
  4516. yes:)
  4517. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4519. ac_tool_warned=yes ;;
  4520. esac
  4521. AR=$ac_ct_AR
  4522. fi
  4523. else
  4524. AR="$ac_cv_prog_AR"
  4525. fi
  4526. test -z "$AR" && AR=ar
  4527. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4528. if test -n "$ac_tool_prefix"; then
  4529. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4530. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4531. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4532. $as_echo_n "checking for $ac_word... " >&6; }
  4533. if test "${ac_cv_prog_STRIP+set}" = set; then
  4534. $as_echo_n "(cached) " >&6
  4535. else
  4536. if test -n "$STRIP"; then
  4537. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4538. else
  4539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4540. for as_dir in $PATH
  4541. do
  4542. IFS=$as_save_IFS
  4543. test -z "$as_dir" && as_dir=.
  4544. for ac_exec_ext in '' $ac_executable_extensions; do
  4545. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4546. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4547. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4548. break 2
  4549. fi
  4550. done
  4551. done
  4552. IFS=$as_save_IFS
  4553. fi
  4554. fi
  4555. STRIP=$ac_cv_prog_STRIP
  4556. if test -n "$STRIP"; then
  4557. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4558. $as_echo "$STRIP" >&6; }
  4559. else
  4560. { $as_echo "$as_me:$LINENO: result: no" >&5
  4561. $as_echo "no" >&6; }
  4562. fi
  4563. fi
  4564. if test -z "$ac_cv_prog_STRIP"; then
  4565. ac_ct_STRIP=$STRIP
  4566. # Extract the first word of "strip", so it can be a program name with args.
  4567. set dummy strip; ac_word=$2
  4568. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4569. $as_echo_n "checking for $ac_word... " >&6; }
  4570. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. if test -n "$ac_ct_STRIP"; then
  4574. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4575. else
  4576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4577. for as_dir in $PATH
  4578. do
  4579. IFS=$as_save_IFS
  4580. test -z "$as_dir" && as_dir=.
  4581. for ac_exec_ext in '' $ac_executable_extensions; do
  4582. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4583. ac_cv_prog_ac_ct_STRIP="strip"
  4584. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4585. break 2
  4586. fi
  4587. done
  4588. done
  4589. IFS=$as_save_IFS
  4590. fi
  4591. fi
  4592. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4593. if test -n "$ac_ct_STRIP"; then
  4594. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4595. $as_echo "$ac_ct_STRIP" >&6; }
  4596. else
  4597. { $as_echo "$as_me:$LINENO: result: no" >&5
  4598. $as_echo "no" >&6; }
  4599. fi
  4600. if test "x$ac_ct_STRIP" = x; then
  4601. STRIP=":"
  4602. else
  4603. case $cross_compiling:$ac_tool_warned in
  4604. yes:)
  4605. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4607. ac_tool_warned=yes ;;
  4608. esac
  4609. STRIP=$ac_ct_STRIP
  4610. fi
  4611. else
  4612. STRIP="$ac_cv_prog_STRIP"
  4613. fi
  4614. test -z "$STRIP" && STRIP=:
  4615. if test -n "$ac_tool_prefix"; then
  4616. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4617. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4618. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4619. $as_echo_n "checking for $ac_word... " >&6; }
  4620. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. if test -n "$RANLIB"; then
  4624. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4625. else
  4626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4627. for as_dir in $PATH
  4628. do
  4629. IFS=$as_save_IFS
  4630. test -z "$as_dir" && as_dir=.
  4631. for ac_exec_ext in '' $ac_executable_extensions; do
  4632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4633. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4634. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4635. break 2
  4636. fi
  4637. done
  4638. done
  4639. IFS=$as_save_IFS
  4640. fi
  4641. fi
  4642. RANLIB=$ac_cv_prog_RANLIB
  4643. if test -n "$RANLIB"; then
  4644. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4645. $as_echo "$RANLIB" >&6; }
  4646. else
  4647. { $as_echo "$as_me:$LINENO: result: no" >&5
  4648. $as_echo "no" >&6; }
  4649. fi
  4650. fi
  4651. if test -z "$ac_cv_prog_RANLIB"; then
  4652. ac_ct_RANLIB=$RANLIB
  4653. # Extract the first word of "ranlib", so it can be a program name with args.
  4654. set dummy ranlib; ac_word=$2
  4655. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4656. $as_echo_n "checking for $ac_word... " >&6; }
  4657. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. if test -n "$ac_ct_RANLIB"; then
  4661. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4662. else
  4663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4664. for as_dir in $PATH
  4665. do
  4666. IFS=$as_save_IFS
  4667. test -z "$as_dir" && as_dir=.
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4670. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4671. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4672. break 2
  4673. fi
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. fi
  4678. fi
  4679. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4680. if test -n "$ac_ct_RANLIB"; then
  4681. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4682. $as_echo "$ac_ct_RANLIB" >&6; }
  4683. else
  4684. { $as_echo "$as_me:$LINENO: result: no" >&5
  4685. $as_echo "no" >&6; }
  4686. fi
  4687. if test "x$ac_ct_RANLIB" = x; then
  4688. RANLIB=":"
  4689. else
  4690. case $cross_compiling:$ac_tool_warned in
  4691. yes:)
  4692. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4694. ac_tool_warned=yes ;;
  4695. esac
  4696. RANLIB=$ac_ct_RANLIB
  4697. fi
  4698. else
  4699. RANLIB="$ac_cv_prog_RANLIB"
  4700. fi
  4701. test -z "$RANLIB" && RANLIB=:
  4702. # Determine commands to create old-style static archives.
  4703. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4704. old_postinstall_cmds='chmod 644 $oldlib'
  4705. old_postuninstall_cmds=
  4706. if test -n "$RANLIB"; then
  4707. case $host_os in
  4708. openbsd*)
  4709. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4710. ;;
  4711. *)
  4712. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4713. ;;
  4714. esac
  4715. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4716. fi
  4717. # If no C compiler was specified, use CC.
  4718. LTCC=${LTCC-"$CC"}
  4719. # If no C compiler flags were specified, use CFLAGS.
  4720. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4721. # Allow CC to be a program name with arguments.
  4722. compiler=$CC
  4723. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4724. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4725. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4726. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. # These are sane defaults that work on at least a few old systems.
  4730. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4731. # Character class describing NM global symbol codes.
  4732. symcode='[BCDEGRST]'
  4733. # Regexp to match symbols that can be accessed directly from C.
  4734. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4735. # Define system-specific variables.
  4736. case $host_os in
  4737. aix*)
  4738. symcode='[BCDT]'
  4739. ;;
  4740. cygwin* | mingw* | pw32* | cegcc*)
  4741. symcode='[ABCDGISTW]'
  4742. ;;
  4743. hpux*)
  4744. if test "$host_cpu" = ia64; then
  4745. symcode='[ABCDEGRST]'
  4746. fi
  4747. ;;
  4748. irix* | nonstopux*)
  4749. symcode='[BCDEGRST]'
  4750. ;;
  4751. osf*)
  4752. symcode='[BCDEGQRST]'
  4753. ;;
  4754. solaris*)
  4755. symcode='[BDRT]'
  4756. ;;
  4757. sco3.2v5*)
  4758. symcode='[DT]'
  4759. ;;
  4760. sysv4.2uw2*)
  4761. symcode='[DT]'
  4762. ;;
  4763. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4764. symcode='[ABDT]'
  4765. ;;
  4766. sysv4)
  4767. symcode='[DFNSTU]'
  4768. ;;
  4769. esac
  4770. # If we're using GNU nm, then use its standard symbol codes.
  4771. case `$NM -V 2>&1` in
  4772. *GNU* | *'with BFD'*)
  4773. symcode='[ABCDGIRSTW]' ;;
  4774. esac
  4775. # Transform an extracted symbol line into a proper C declaration.
  4776. # Some systems (esp. on ia64) link data and code symbols differently,
  4777. # so use this general approach.
  4778. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4779. # Transform an extracted symbol line into symbol name and symbol address
  4780. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4781. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4782. # Handle CRLF in mingw tool chain
  4783. opt_cr=
  4784. case $build_os in
  4785. mingw*)
  4786. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4787. ;;
  4788. esac
  4789. # Try without a prefix underscore, then with it.
  4790. for ac_symprfx in "" "_"; do
  4791. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4792. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4793. # Write the raw and C identifiers.
  4794. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4795. # Fake it for dumpbin and say T for any non-static function
  4796. # and D for any global variable.
  4797. # Also find C++ and __fastcall symbols from MSVC++,
  4798. # which start with @ or ?.
  4799. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4800. " {last_section=section; section=\$ 3};"\
  4801. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4802. " \$ 0!~/External *\|/{next};"\
  4803. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4804. " {if(hide[section]) next};"\
  4805. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4806. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4807. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4808. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4809. " ' prfx=^$ac_symprfx"
  4810. else
  4811. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4812. fi
  4813. # Check to see that the pipe works correctly.
  4814. pipe_works=no
  4815. rm -f conftest*
  4816. cat > conftest.$ac_ext <<_LT_EOF
  4817. #ifdef __cplusplus
  4818. extern "C" {
  4819. #endif
  4820. char nm_test_var;
  4821. void nm_test_func(void);
  4822. void nm_test_func(void){}
  4823. #ifdef __cplusplus
  4824. }
  4825. #endif
  4826. int main(){nm_test_var='a';nm_test_func();return(0);}
  4827. _LT_EOF
  4828. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4829. (eval $ac_compile) 2>&5
  4830. ac_status=$?
  4831. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. (exit $ac_status); }; then
  4833. # Now try to grab the symbols.
  4834. nlist=conftest.nm
  4835. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4836. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4837. ac_status=$?
  4838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4839. (exit $ac_status); } && test -s "$nlist"; then
  4840. # Try sorting and uniquifying the output.
  4841. if sort "$nlist" | uniq > "$nlist"T; then
  4842. mv -f "$nlist"T "$nlist"
  4843. else
  4844. rm -f "$nlist"T
  4845. fi
  4846. # Make sure that we snagged all the symbols we need.
  4847. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4848. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4849. cat <<_LT_EOF > conftest.$ac_ext
  4850. #ifdef __cplusplus
  4851. extern "C" {
  4852. #endif
  4853. _LT_EOF
  4854. # Now generate the symbol file.
  4855. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4856. cat <<_LT_EOF >> conftest.$ac_ext
  4857. /* The mapping between symbol names and symbols. */
  4858. const struct {
  4859. const char *name;
  4860. void *address;
  4861. }
  4862. lt__PROGRAM__LTX_preloaded_symbols[] =
  4863. {
  4864. { "@PROGRAM@", (void *) 0 },
  4865. _LT_EOF
  4866. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4867. cat <<\_LT_EOF >> conftest.$ac_ext
  4868. {0, (void *) 0}
  4869. };
  4870. /* This works around a problem in FreeBSD linker */
  4871. #ifdef FREEBSD_WORKAROUND
  4872. static const void *lt_preloaded_setup() {
  4873. return lt__PROGRAM__LTX_preloaded_symbols;
  4874. }
  4875. #endif
  4876. #ifdef __cplusplus
  4877. }
  4878. #endif
  4879. _LT_EOF
  4880. # Now try linking the two files.
  4881. mv conftest.$ac_objext conftstm.$ac_objext
  4882. lt_save_LIBS="$LIBS"
  4883. lt_save_CFLAGS="$CFLAGS"
  4884. LIBS="conftstm.$ac_objext"
  4885. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4886. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4887. (eval $ac_link) 2>&5
  4888. ac_status=$?
  4889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4891. pipe_works=yes
  4892. fi
  4893. LIBS="$lt_save_LIBS"
  4894. CFLAGS="$lt_save_CFLAGS"
  4895. else
  4896. echo "cannot find nm_test_func in $nlist" >&5
  4897. fi
  4898. else
  4899. echo "cannot find nm_test_var in $nlist" >&5
  4900. fi
  4901. else
  4902. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4903. fi
  4904. else
  4905. echo "$progname: failed program was:" >&5
  4906. cat conftest.$ac_ext >&5
  4907. fi
  4908. rm -rf conftest* conftst*
  4909. # Do not use the global_symbol_pipe unless it works.
  4910. if test "$pipe_works" = yes; then
  4911. break
  4912. else
  4913. lt_cv_sys_global_symbol_pipe=
  4914. fi
  4915. done
  4916. fi
  4917. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4918. lt_cv_sys_global_symbol_to_cdecl=
  4919. fi
  4920. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4921. { $as_echo "$as_me:$LINENO: result: failed" >&5
  4922. $as_echo "failed" >&6; }
  4923. else
  4924. { $as_echo "$as_me:$LINENO: result: ok" >&5
  4925. $as_echo "ok" >&6; }
  4926. fi
  4927. # Check whether --enable-libtool-lock was given.
  4928. if test "${enable_libtool_lock+set}" = set; then
  4929. enableval=$enable_libtool_lock;
  4930. fi
  4931. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4932. # Some flags need to be propagated to the compiler or linker for good
  4933. # libtool support.
  4934. case $host in
  4935. ia64-*-hpux*)
  4936. # Find out which ABI we are using.
  4937. echo 'int i;' > conftest.$ac_ext
  4938. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4939. (eval $ac_compile) 2>&5
  4940. ac_status=$?
  4941. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4942. (exit $ac_status); }; then
  4943. case `/usr/bin/file conftest.$ac_objext` in
  4944. *ELF-32*)
  4945. HPUX_IA64_MODE="32"
  4946. ;;
  4947. *ELF-64*)
  4948. HPUX_IA64_MODE="64"
  4949. ;;
  4950. esac
  4951. fi
  4952. rm -rf conftest*
  4953. ;;
  4954. *-*-irix6*)
  4955. # Find out which ABI we are using.
  4956. echo '#line 5701 "configure"' > conftest.$ac_ext
  4957. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4958. (eval $ac_compile) 2>&5
  4959. ac_status=$?
  4960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4961. (exit $ac_status); }; then
  4962. if test "$lt_cv_prog_gnu_ld" = yes; then
  4963. case `/usr/bin/file conftest.$ac_objext` in
  4964. *32-bit*)
  4965. LD="${LD-ld} -melf32bsmip"
  4966. ;;
  4967. *N32*)
  4968. LD="${LD-ld} -melf32bmipn32"
  4969. ;;
  4970. *64-bit*)
  4971. LD="${LD-ld} -melf64bmip"
  4972. ;;
  4973. esac
  4974. else
  4975. case `/usr/bin/file conftest.$ac_objext` in
  4976. *32-bit*)
  4977. LD="${LD-ld} -32"
  4978. ;;
  4979. *N32*)
  4980. LD="${LD-ld} -n32"
  4981. ;;
  4982. *64-bit*)
  4983. LD="${LD-ld} -64"
  4984. ;;
  4985. esac
  4986. fi
  4987. fi
  4988. rm -rf conftest*
  4989. ;;
  4990. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4991. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4992. # Find out which ABI we are using.
  4993. echo 'int i;' > conftest.$ac_ext
  4994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4995. (eval $ac_compile) 2>&5
  4996. ac_status=$?
  4997. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4998. (exit $ac_status); }; then
  4999. case `/usr/bin/file conftest.o` in
  5000. *32-bit*)
  5001. case $host in
  5002. x86_64-*kfreebsd*-gnu)
  5003. LD="${LD-ld} -m elf_i386_fbsd"
  5004. ;;
  5005. x86_64-*linux*)
  5006. LD="${LD-ld} -m elf_i386"
  5007. ;;
  5008. ppc64-*linux*|powerpc64-*linux*)
  5009. LD="${LD-ld} -m elf32ppclinux"
  5010. ;;
  5011. s390x-*linux*)
  5012. LD="${LD-ld} -m elf_s390"
  5013. ;;
  5014. sparc64-*linux*)
  5015. LD="${LD-ld} -m elf32_sparc"
  5016. ;;
  5017. esac
  5018. ;;
  5019. *64-bit*)
  5020. case $host in
  5021. x86_64-*kfreebsd*-gnu)
  5022. LD="${LD-ld} -m elf_x86_64_fbsd"
  5023. ;;
  5024. x86_64-*linux*)
  5025. LD="${LD-ld} -m elf_x86_64"
  5026. ;;
  5027. ppc*-*linux*|powerpc*-*linux*)
  5028. LD="${LD-ld} -m elf64ppc"
  5029. ;;
  5030. s390*-*linux*|s390*-*tpf*)
  5031. LD="${LD-ld} -m elf64_s390"
  5032. ;;
  5033. sparc*-*linux*)
  5034. LD="${LD-ld} -m elf64_sparc"
  5035. ;;
  5036. esac
  5037. ;;
  5038. esac
  5039. fi
  5040. rm -rf conftest*
  5041. ;;
  5042. *-*-sco3.2v5*)
  5043. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5044. SAVE_CFLAGS="$CFLAGS"
  5045. CFLAGS="$CFLAGS -belf"
  5046. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5047. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5048. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5049. $as_echo_n "(cached) " >&6
  5050. else
  5051. ac_ext=c
  5052. ac_cpp='$CPP $CPPFLAGS'
  5053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5056. cat >conftest.$ac_ext <<_ACEOF
  5057. /* confdefs.h. */
  5058. _ACEOF
  5059. cat confdefs.h >>conftest.$ac_ext
  5060. cat >>conftest.$ac_ext <<_ACEOF
  5061. /* end confdefs.h. */
  5062. int
  5063. main ()
  5064. {
  5065. ;
  5066. return 0;
  5067. }
  5068. _ACEOF
  5069. rm -f conftest.$ac_objext conftest$ac_exeext
  5070. if { (ac_try="$ac_link"
  5071. case "(($ac_try" in
  5072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5073. *) ac_try_echo=$ac_try;;
  5074. esac
  5075. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5076. $as_echo "$ac_try_echo") >&5
  5077. (eval "$ac_link") 2>conftest.er1
  5078. ac_status=$?
  5079. grep -v '^ *+' conftest.er1 >conftest.err
  5080. rm -f conftest.er1
  5081. cat conftest.err >&5
  5082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5083. (exit $ac_status); } && {
  5084. test -z "$ac_c_werror_flag" ||
  5085. test ! -s conftest.err
  5086. } && test -s conftest$ac_exeext && {
  5087. test "$cross_compiling" = yes ||
  5088. $as_test_x conftest$ac_exeext
  5089. }; then
  5090. lt_cv_cc_needs_belf=yes
  5091. else
  5092. $as_echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. lt_cv_cc_needs_belf=no
  5095. fi
  5096. rm -rf conftest.dSYM
  5097. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5098. conftest$ac_exeext conftest.$ac_ext
  5099. ac_ext=c
  5100. ac_cpp='$CPP $CPPFLAGS'
  5101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5104. fi
  5105. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5106. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5107. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5108. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5109. CFLAGS="$SAVE_CFLAGS"
  5110. fi
  5111. ;;
  5112. sparc*-*solaris*)
  5113. # Find out which ABI we are using.
  5114. echo 'int i;' > conftest.$ac_ext
  5115. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5116. (eval $ac_compile) 2>&5
  5117. ac_status=$?
  5118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5119. (exit $ac_status); }; then
  5120. case `/usr/bin/file conftest.o` in
  5121. *64-bit*)
  5122. case $lt_cv_prog_gnu_ld in
  5123. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5124. *)
  5125. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5126. LD="${LD-ld} -64"
  5127. fi
  5128. ;;
  5129. esac
  5130. ;;
  5131. esac
  5132. fi
  5133. rm -rf conftest*
  5134. ;;
  5135. esac
  5136. need_locks="$enable_libtool_lock"
  5137. case $host_os in
  5138. rhapsody* | darwin*)
  5139. if test -n "$ac_tool_prefix"; then
  5140. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5141. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5142. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5143. $as_echo_n "checking for $ac_word... " >&6; }
  5144. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5145. $as_echo_n "(cached) " >&6
  5146. else
  5147. if test -n "$DSYMUTIL"; then
  5148. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5149. else
  5150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5151. for as_dir in $PATH
  5152. do
  5153. IFS=$as_save_IFS
  5154. test -z "$as_dir" && as_dir=.
  5155. for ac_exec_ext in '' $ac_executable_extensions; do
  5156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5157. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5158. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5159. break 2
  5160. fi
  5161. done
  5162. done
  5163. IFS=$as_save_IFS
  5164. fi
  5165. fi
  5166. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5167. if test -n "$DSYMUTIL"; then
  5168. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5169. $as_echo "$DSYMUTIL" >&6; }
  5170. else
  5171. { $as_echo "$as_me:$LINENO: result: no" >&5
  5172. $as_echo "no" >&6; }
  5173. fi
  5174. fi
  5175. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5176. ac_ct_DSYMUTIL=$DSYMUTIL
  5177. # Extract the first word of "dsymutil", so it can be a program name with args.
  5178. set dummy dsymutil; ac_word=$2
  5179. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5180. $as_echo_n "checking for $ac_word... " >&6; }
  5181. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5182. $as_echo_n "(cached) " >&6
  5183. else
  5184. if test -n "$ac_ct_DSYMUTIL"; then
  5185. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5186. else
  5187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5188. for as_dir in $PATH
  5189. do
  5190. IFS=$as_save_IFS
  5191. test -z "$as_dir" && as_dir=.
  5192. for ac_exec_ext in '' $ac_executable_extensions; do
  5193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5194. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5195. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5196. break 2
  5197. fi
  5198. done
  5199. done
  5200. IFS=$as_save_IFS
  5201. fi
  5202. fi
  5203. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5204. if test -n "$ac_ct_DSYMUTIL"; then
  5205. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5206. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5207. else
  5208. { $as_echo "$as_me:$LINENO: result: no" >&5
  5209. $as_echo "no" >&6; }
  5210. fi
  5211. if test "x$ac_ct_DSYMUTIL" = x; then
  5212. DSYMUTIL=":"
  5213. else
  5214. case $cross_compiling:$ac_tool_warned in
  5215. yes:)
  5216. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5217. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5218. ac_tool_warned=yes ;;
  5219. esac
  5220. DSYMUTIL=$ac_ct_DSYMUTIL
  5221. fi
  5222. else
  5223. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5224. fi
  5225. if test -n "$ac_tool_prefix"; then
  5226. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5227. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5228. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5229. $as_echo_n "checking for $ac_word... " >&6; }
  5230. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. if test -n "$NMEDIT"; then
  5234. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5235. else
  5236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5237. for as_dir in $PATH
  5238. do
  5239. IFS=$as_save_IFS
  5240. test -z "$as_dir" && as_dir=.
  5241. for ac_exec_ext in '' $ac_executable_extensions; do
  5242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5243. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5244. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5245. break 2
  5246. fi
  5247. done
  5248. done
  5249. IFS=$as_save_IFS
  5250. fi
  5251. fi
  5252. NMEDIT=$ac_cv_prog_NMEDIT
  5253. if test -n "$NMEDIT"; then
  5254. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5255. $as_echo "$NMEDIT" >&6; }
  5256. else
  5257. { $as_echo "$as_me:$LINENO: result: no" >&5
  5258. $as_echo "no" >&6; }
  5259. fi
  5260. fi
  5261. if test -z "$ac_cv_prog_NMEDIT"; then
  5262. ac_ct_NMEDIT=$NMEDIT
  5263. # Extract the first word of "nmedit", so it can be a program name with args.
  5264. set dummy nmedit; ac_word=$2
  5265. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5266. $as_echo_n "checking for $ac_word... " >&6; }
  5267. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. if test -n "$ac_ct_NMEDIT"; then
  5271. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5272. else
  5273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5274. for as_dir in $PATH
  5275. do
  5276. IFS=$as_save_IFS
  5277. test -z "$as_dir" && as_dir=.
  5278. for ac_exec_ext in '' $ac_executable_extensions; do
  5279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5280. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5281. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5282. break 2
  5283. fi
  5284. done
  5285. done
  5286. IFS=$as_save_IFS
  5287. fi
  5288. fi
  5289. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5290. if test -n "$ac_ct_NMEDIT"; then
  5291. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5292. $as_echo "$ac_ct_NMEDIT" >&6; }
  5293. else
  5294. { $as_echo "$as_me:$LINENO: result: no" >&5
  5295. $as_echo "no" >&6; }
  5296. fi
  5297. if test "x$ac_ct_NMEDIT" = x; then
  5298. NMEDIT=":"
  5299. else
  5300. case $cross_compiling:$ac_tool_warned in
  5301. yes:)
  5302. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5303. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5304. ac_tool_warned=yes ;;
  5305. esac
  5306. NMEDIT=$ac_ct_NMEDIT
  5307. fi
  5308. else
  5309. NMEDIT="$ac_cv_prog_NMEDIT"
  5310. fi
  5311. if test -n "$ac_tool_prefix"; then
  5312. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5313. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5314. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5315. $as_echo_n "checking for $ac_word... " >&6; }
  5316. if test "${ac_cv_prog_LIPO+set}" = set; then
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. if test -n "$LIPO"; then
  5320. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5321. else
  5322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5323. for as_dir in $PATH
  5324. do
  5325. IFS=$as_save_IFS
  5326. test -z "$as_dir" && as_dir=.
  5327. for ac_exec_ext in '' $ac_executable_extensions; do
  5328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5329. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5330. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5331. break 2
  5332. fi
  5333. done
  5334. done
  5335. IFS=$as_save_IFS
  5336. fi
  5337. fi
  5338. LIPO=$ac_cv_prog_LIPO
  5339. if test -n "$LIPO"; then
  5340. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5341. $as_echo "$LIPO" >&6; }
  5342. else
  5343. { $as_echo "$as_me:$LINENO: result: no" >&5
  5344. $as_echo "no" >&6; }
  5345. fi
  5346. fi
  5347. if test -z "$ac_cv_prog_LIPO"; then
  5348. ac_ct_LIPO=$LIPO
  5349. # Extract the first word of "lipo", so it can be a program name with args.
  5350. set dummy lipo; ac_word=$2
  5351. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5352. $as_echo_n "checking for $ac_word... " >&6; }
  5353. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. if test -n "$ac_ct_LIPO"; then
  5357. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5358. else
  5359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5360. for as_dir in $PATH
  5361. do
  5362. IFS=$as_save_IFS
  5363. test -z "$as_dir" && as_dir=.
  5364. for ac_exec_ext in '' $ac_executable_extensions; do
  5365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5366. ac_cv_prog_ac_ct_LIPO="lipo"
  5367. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5368. break 2
  5369. fi
  5370. done
  5371. done
  5372. IFS=$as_save_IFS
  5373. fi
  5374. fi
  5375. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5376. if test -n "$ac_ct_LIPO"; then
  5377. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5378. $as_echo "$ac_ct_LIPO" >&6; }
  5379. else
  5380. { $as_echo "$as_me:$LINENO: result: no" >&5
  5381. $as_echo "no" >&6; }
  5382. fi
  5383. if test "x$ac_ct_LIPO" = x; then
  5384. LIPO=":"
  5385. else
  5386. case $cross_compiling:$ac_tool_warned in
  5387. yes:)
  5388. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5390. ac_tool_warned=yes ;;
  5391. esac
  5392. LIPO=$ac_ct_LIPO
  5393. fi
  5394. else
  5395. LIPO="$ac_cv_prog_LIPO"
  5396. fi
  5397. if test -n "$ac_tool_prefix"; then
  5398. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5399. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5400. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5401. $as_echo_n "checking for $ac_word... " >&6; }
  5402. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5403. $as_echo_n "(cached) " >&6
  5404. else
  5405. if test -n "$OTOOL"; then
  5406. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5407. else
  5408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5409. for as_dir in $PATH
  5410. do
  5411. IFS=$as_save_IFS
  5412. test -z "$as_dir" && as_dir=.
  5413. for ac_exec_ext in '' $ac_executable_extensions; do
  5414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5415. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5416. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5417. break 2
  5418. fi
  5419. done
  5420. done
  5421. IFS=$as_save_IFS
  5422. fi
  5423. fi
  5424. OTOOL=$ac_cv_prog_OTOOL
  5425. if test -n "$OTOOL"; then
  5426. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5427. $as_echo "$OTOOL" >&6; }
  5428. else
  5429. { $as_echo "$as_me:$LINENO: result: no" >&5
  5430. $as_echo "no" >&6; }
  5431. fi
  5432. fi
  5433. if test -z "$ac_cv_prog_OTOOL"; then
  5434. ac_ct_OTOOL=$OTOOL
  5435. # Extract the first word of "otool", so it can be a program name with args.
  5436. set dummy otool; ac_word=$2
  5437. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5438. $as_echo_n "checking for $ac_word... " >&6; }
  5439. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. if test -n "$ac_ct_OTOOL"; then
  5443. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5444. else
  5445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5446. for as_dir in $PATH
  5447. do
  5448. IFS=$as_save_IFS
  5449. test -z "$as_dir" && as_dir=.
  5450. for ac_exec_ext in '' $ac_executable_extensions; do
  5451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5452. ac_cv_prog_ac_ct_OTOOL="otool"
  5453. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5454. break 2
  5455. fi
  5456. done
  5457. done
  5458. IFS=$as_save_IFS
  5459. fi
  5460. fi
  5461. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5462. if test -n "$ac_ct_OTOOL"; then
  5463. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5464. $as_echo "$ac_ct_OTOOL" >&6; }
  5465. else
  5466. { $as_echo "$as_me:$LINENO: result: no" >&5
  5467. $as_echo "no" >&6; }
  5468. fi
  5469. if test "x$ac_ct_OTOOL" = x; then
  5470. OTOOL=":"
  5471. else
  5472. case $cross_compiling:$ac_tool_warned in
  5473. yes:)
  5474. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5476. ac_tool_warned=yes ;;
  5477. esac
  5478. OTOOL=$ac_ct_OTOOL
  5479. fi
  5480. else
  5481. OTOOL="$ac_cv_prog_OTOOL"
  5482. fi
  5483. if test -n "$ac_tool_prefix"; then
  5484. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5485. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5486. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5487. $as_echo_n "checking for $ac_word... " >&6; }
  5488. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5489. $as_echo_n "(cached) " >&6
  5490. else
  5491. if test -n "$OTOOL64"; then
  5492. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5493. else
  5494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5495. for as_dir in $PATH
  5496. do
  5497. IFS=$as_save_IFS
  5498. test -z "$as_dir" && as_dir=.
  5499. for ac_exec_ext in '' $ac_executable_extensions; do
  5500. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5501. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5502. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5503. break 2
  5504. fi
  5505. done
  5506. done
  5507. IFS=$as_save_IFS
  5508. fi
  5509. fi
  5510. OTOOL64=$ac_cv_prog_OTOOL64
  5511. if test -n "$OTOOL64"; then
  5512. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5513. $as_echo "$OTOOL64" >&6; }
  5514. else
  5515. { $as_echo "$as_me:$LINENO: result: no" >&5
  5516. $as_echo "no" >&6; }
  5517. fi
  5518. fi
  5519. if test -z "$ac_cv_prog_OTOOL64"; then
  5520. ac_ct_OTOOL64=$OTOOL64
  5521. # Extract the first word of "otool64", so it can be a program name with args.
  5522. set dummy otool64; ac_word=$2
  5523. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5524. $as_echo_n "checking for $ac_word... " >&6; }
  5525. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5526. $as_echo_n "(cached) " >&6
  5527. else
  5528. if test -n "$ac_ct_OTOOL64"; then
  5529. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5530. else
  5531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5532. for as_dir in $PATH
  5533. do
  5534. IFS=$as_save_IFS
  5535. test -z "$as_dir" && as_dir=.
  5536. for ac_exec_ext in '' $ac_executable_extensions; do
  5537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5538. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5539. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5540. break 2
  5541. fi
  5542. done
  5543. done
  5544. IFS=$as_save_IFS
  5545. fi
  5546. fi
  5547. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5548. if test -n "$ac_ct_OTOOL64"; then
  5549. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5550. $as_echo "$ac_ct_OTOOL64" >&6; }
  5551. else
  5552. { $as_echo "$as_me:$LINENO: result: no" >&5
  5553. $as_echo "no" >&6; }
  5554. fi
  5555. if test "x$ac_ct_OTOOL64" = x; then
  5556. OTOOL64=":"
  5557. else
  5558. case $cross_compiling:$ac_tool_warned in
  5559. yes:)
  5560. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5561. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5562. ac_tool_warned=yes ;;
  5563. esac
  5564. OTOOL64=$ac_ct_OTOOL64
  5565. fi
  5566. else
  5567. OTOOL64="$ac_cv_prog_OTOOL64"
  5568. fi
  5569. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5570. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5571. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. lt_cv_apple_cc_single_mod=no
  5575. if test -z "${LT_MULTI_MODULE}"; then
  5576. # By default we will add the -single_module flag. You can override
  5577. # by either setting the environment variable LT_MULTI_MODULE
  5578. # non-empty at configure time, or by adding -multi_module to the
  5579. # link flags.
  5580. rm -rf libconftest.dylib*
  5581. echo "int foo(void){return 1;}" > conftest.c
  5582. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5583. -dynamiclib -Wl,-single_module conftest.c" >&5
  5584. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5585. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5586. _lt_result=$?
  5587. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5588. lt_cv_apple_cc_single_mod=yes
  5589. else
  5590. cat conftest.err >&5
  5591. fi
  5592. rm -rf libconftest.dylib*
  5593. rm -f conftest.*
  5594. fi
  5595. fi
  5596. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5597. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5598. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5599. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5600. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. lt_cv_ld_exported_symbols_list=no
  5604. save_LDFLAGS=$LDFLAGS
  5605. echo "_main" > conftest.sym
  5606. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5607. cat >conftest.$ac_ext <<_ACEOF
  5608. /* confdefs.h. */
  5609. _ACEOF
  5610. cat confdefs.h >>conftest.$ac_ext
  5611. cat >>conftest.$ac_ext <<_ACEOF
  5612. /* end confdefs.h. */
  5613. int
  5614. main ()
  5615. {
  5616. ;
  5617. return 0;
  5618. }
  5619. _ACEOF
  5620. rm -f conftest.$ac_objext conftest$ac_exeext
  5621. if { (ac_try="$ac_link"
  5622. case "(($ac_try" in
  5623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5624. *) ac_try_echo=$ac_try;;
  5625. esac
  5626. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5627. $as_echo "$ac_try_echo") >&5
  5628. (eval "$ac_link") 2>conftest.er1
  5629. ac_status=$?
  5630. grep -v '^ *+' conftest.er1 >conftest.err
  5631. rm -f conftest.er1
  5632. cat conftest.err >&5
  5633. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5634. (exit $ac_status); } && {
  5635. test -z "$ac_c_werror_flag" ||
  5636. test ! -s conftest.err
  5637. } && test -s conftest$ac_exeext && {
  5638. test "$cross_compiling" = yes ||
  5639. $as_test_x conftest$ac_exeext
  5640. }; then
  5641. lt_cv_ld_exported_symbols_list=yes
  5642. else
  5643. $as_echo "$as_me: failed program was:" >&5
  5644. sed 's/^/| /' conftest.$ac_ext >&5
  5645. lt_cv_ld_exported_symbols_list=no
  5646. fi
  5647. rm -rf conftest.dSYM
  5648. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5649. conftest$ac_exeext conftest.$ac_ext
  5650. LDFLAGS="$save_LDFLAGS"
  5651. fi
  5652. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5653. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5654. case $host_os in
  5655. rhapsody* | darwin1.[012])
  5656. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5657. darwin1.*)
  5658. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5659. darwin*) # darwin 5.x on
  5660. # if running on 10.5 or later, the deployment target defaults
  5661. # to the OS version, if on x86, and 10.4, the deployment
  5662. # target defaults to 10.4. Don't you love it?
  5663. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5664. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5665. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5666. 10.[012]*)
  5667. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5668. 10.*)
  5669. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5670. esac
  5671. ;;
  5672. esac
  5673. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5674. _lt_dar_single_mod='$single_module'
  5675. fi
  5676. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5677. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5678. else
  5679. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5680. fi
  5681. if test "$DSYMUTIL" != ":"; then
  5682. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5683. else
  5684. _lt_dsymutil=
  5685. fi
  5686. ;;
  5687. esac
  5688. ac_ext=c
  5689. ac_cpp='$CPP $CPPFLAGS'
  5690. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5691. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5692. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5693. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5694. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5695. # On Suns, sometimes $CPP names a directory.
  5696. if test -n "$CPP" && test -d "$CPP"; then
  5697. CPP=
  5698. fi
  5699. if test -z "$CPP"; then
  5700. if test "${ac_cv_prog_CPP+set}" = set; then
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. # Double quotes because CPP needs to be expanded
  5704. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5705. do
  5706. ac_preproc_ok=false
  5707. for ac_c_preproc_warn_flag in '' yes
  5708. do
  5709. # Use a header file that comes with gcc, so configuring glibc
  5710. # with a fresh cross-compiler works.
  5711. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5712. # <limits.h> exists even on freestanding compilers.
  5713. # On the NeXT, cc -E runs the code through the compiler's parser,
  5714. # not just through cpp. "Syntax error" is here to catch this case.
  5715. cat >conftest.$ac_ext <<_ACEOF
  5716. /* confdefs.h. */
  5717. _ACEOF
  5718. cat confdefs.h >>conftest.$ac_ext
  5719. cat >>conftest.$ac_ext <<_ACEOF
  5720. /* end confdefs.h. */
  5721. #ifdef __STDC__
  5722. # include <limits.h>
  5723. #else
  5724. # include <assert.h>
  5725. #endif
  5726. Syntax error
  5727. _ACEOF
  5728. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5729. case "(($ac_try" in
  5730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5731. *) ac_try_echo=$ac_try;;
  5732. esac
  5733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5734. $as_echo "$ac_try_echo") >&5
  5735. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5736. ac_status=$?
  5737. grep -v '^ *+' conftest.er1 >conftest.err
  5738. rm -f conftest.er1
  5739. cat conftest.err >&5
  5740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5741. (exit $ac_status); } >/dev/null && {
  5742. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5743. test ! -s conftest.err
  5744. }; then
  5745. :
  5746. else
  5747. $as_echo "$as_me: failed program was:" >&5
  5748. sed 's/^/| /' conftest.$ac_ext >&5
  5749. # Broken: fails on valid input.
  5750. continue
  5751. fi
  5752. rm -f conftest.err conftest.$ac_ext
  5753. # OK, works on sane cases. Now check whether nonexistent headers
  5754. # can be detected and how.
  5755. cat >conftest.$ac_ext <<_ACEOF
  5756. /* confdefs.h. */
  5757. _ACEOF
  5758. cat confdefs.h >>conftest.$ac_ext
  5759. cat >>conftest.$ac_ext <<_ACEOF
  5760. /* end confdefs.h. */
  5761. #include <ac_nonexistent.h>
  5762. _ACEOF
  5763. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5764. case "(($ac_try" in
  5765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5766. *) ac_try_echo=$ac_try;;
  5767. esac
  5768. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5769. $as_echo "$ac_try_echo") >&5
  5770. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5771. ac_status=$?
  5772. grep -v '^ *+' conftest.er1 >conftest.err
  5773. rm -f conftest.er1
  5774. cat conftest.err >&5
  5775. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5776. (exit $ac_status); } >/dev/null && {
  5777. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5778. test ! -s conftest.err
  5779. }; then
  5780. # Broken: success on invalid input.
  5781. continue
  5782. else
  5783. $as_echo "$as_me: failed program was:" >&5
  5784. sed 's/^/| /' conftest.$ac_ext >&5
  5785. # Passes both tests.
  5786. ac_preproc_ok=:
  5787. break
  5788. fi
  5789. rm -f conftest.err conftest.$ac_ext
  5790. done
  5791. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5792. rm -f conftest.err conftest.$ac_ext
  5793. if $ac_preproc_ok; then
  5794. break
  5795. fi
  5796. done
  5797. ac_cv_prog_CPP=$CPP
  5798. fi
  5799. CPP=$ac_cv_prog_CPP
  5800. else
  5801. ac_cv_prog_CPP=$CPP
  5802. fi
  5803. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5804. $as_echo "$CPP" >&6; }
  5805. ac_preproc_ok=false
  5806. for ac_c_preproc_warn_flag in '' yes
  5807. do
  5808. # Use a header file that comes with gcc, so configuring glibc
  5809. # with a fresh cross-compiler works.
  5810. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5811. # <limits.h> exists even on freestanding compilers.
  5812. # On the NeXT, cc -E runs the code through the compiler's parser,
  5813. # not just through cpp. "Syntax error" is here to catch this case.
  5814. cat >conftest.$ac_ext <<_ACEOF
  5815. /* confdefs.h. */
  5816. _ACEOF
  5817. cat confdefs.h >>conftest.$ac_ext
  5818. cat >>conftest.$ac_ext <<_ACEOF
  5819. /* end confdefs.h. */
  5820. #ifdef __STDC__
  5821. # include <limits.h>
  5822. #else
  5823. # include <assert.h>
  5824. #endif
  5825. Syntax error
  5826. _ACEOF
  5827. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5828. case "(($ac_try" in
  5829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5830. *) ac_try_echo=$ac_try;;
  5831. esac
  5832. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5833. $as_echo "$ac_try_echo") >&5
  5834. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5835. ac_status=$?
  5836. grep -v '^ *+' conftest.er1 >conftest.err
  5837. rm -f conftest.er1
  5838. cat conftest.err >&5
  5839. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5840. (exit $ac_status); } >/dev/null && {
  5841. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5842. test ! -s conftest.err
  5843. }; then
  5844. :
  5845. else
  5846. $as_echo "$as_me: failed program was:" >&5
  5847. sed 's/^/| /' conftest.$ac_ext >&5
  5848. # Broken: fails on valid input.
  5849. continue
  5850. fi
  5851. rm -f conftest.err conftest.$ac_ext
  5852. # OK, works on sane cases. Now check whether nonexistent headers
  5853. # can be detected and how.
  5854. cat >conftest.$ac_ext <<_ACEOF
  5855. /* confdefs.h. */
  5856. _ACEOF
  5857. cat confdefs.h >>conftest.$ac_ext
  5858. cat >>conftest.$ac_ext <<_ACEOF
  5859. /* end confdefs.h. */
  5860. #include <ac_nonexistent.h>
  5861. _ACEOF
  5862. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5863. case "(($ac_try" in
  5864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5865. *) ac_try_echo=$ac_try;;
  5866. esac
  5867. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5868. $as_echo "$ac_try_echo") >&5
  5869. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5870. ac_status=$?
  5871. grep -v '^ *+' conftest.er1 >conftest.err
  5872. rm -f conftest.er1
  5873. cat conftest.err >&5
  5874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5875. (exit $ac_status); } >/dev/null && {
  5876. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5877. test ! -s conftest.err
  5878. }; then
  5879. # Broken: success on invalid input.
  5880. continue
  5881. else
  5882. $as_echo "$as_me: failed program was:" >&5
  5883. sed 's/^/| /' conftest.$ac_ext >&5
  5884. # Passes both tests.
  5885. ac_preproc_ok=:
  5886. break
  5887. fi
  5888. rm -f conftest.err conftest.$ac_ext
  5889. done
  5890. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5891. rm -f conftest.err conftest.$ac_ext
  5892. if $ac_preproc_ok; then
  5893. :
  5894. else
  5895. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5896. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5897. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5898. See \`config.log' for more details." >&5
  5899. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5900. See \`config.log' for more details." >&2;}
  5901. { (exit 1); exit 1; }; }; }
  5902. fi
  5903. ac_ext=c
  5904. ac_cpp='$CPP $CPPFLAGS'
  5905. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5906. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5908. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5909. $as_echo_n "checking for ANSI C header files... " >&6; }
  5910. if test "${ac_cv_header_stdc+set}" = set; then
  5911. $as_echo_n "(cached) " >&6
  5912. else
  5913. cat >conftest.$ac_ext <<_ACEOF
  5914. /* confdefs.h. */
  5915. _ACEOF
  5916. cat confdefs.h >>conftest.$ac_ext
  5917. cat >>conftest.$ac_ext <<_ACEOF
  5918. /* end confdefs.h. */
  5919. #include <stdlib.h>
  5920. #include <stdarg.h>
  5921. #include <string.h>
  5922. #include <float.h>
  5923. int
  5924. main ()
  5925. {
  5926. ;
  5927. return 0;
  5928. }
  5929. _ACEOF
  5930. rm -f conftest.$ac_objext
  5931. if { (ac_try="$ac_compile"
  5932. case "(($ac_try" in
  5933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5934. *) ac_try_echo=$ac_try;;
  5935. esac
  5936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5937. $as_echo "$ac_try_echo") >&5
  5938. (eval "$ac_compile") 2>conftest.er1
  5939. ac_status=$?
  5940. grep -v '^ *+' conftest.er1 >conftest.err
  5941. rm -f conftest.er1
  5942. cat conftest.err >&5
  5943. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5944. (exit $ac_status); } && {
  5945. test -z "$ac_c_werror_flag" ||
  5946. test ! -s conftest.err
  5947. } && test -s conftest.$ac_objext; then
  5948. ac_cv_header_stdc=yes
  5949. else
  5950. $as_echo "$as_me: failed program was:" >&5
  5951. sed 's/^/| /' conftest.$ac_ext >&5
  5952. ac_cv_header_stdc=no
  5953. fi
  5954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5955. if test $ac_cv_header_stdc = yes; then
  5956. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5957. cat >conftest.$ac_ext <<_ACEOF
  5958. /* confdefs.h. */
  5959. _ACEOF
  5960. cat confdefs.h >>conftest.$ac_ext
  5961. cat >>conftest.$ac_ext <<_ACEOF
  5962. /* end confdefs.h. */
  5963. #include <string.h>
  5964. _ACEOF
  5965. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5966. $EGREP "memchr" >/dev/null 2>&1; then
  5967. :
  5968. else
  5969. ac_cv_header_stdc=no
  5970. fi
  5971. rm -f conftest*
  5972. fi
  5973. if test $ac_cv_header_stdc = yes; then
  5974. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5975. cat >conftest.$ac_ext <<_ACEOF
  5976. /* confdefs.h. */
  5977. _ACEOF
  5978. cat confdefs.h >>conftest.$ac_ext
  5979. cat >>conftest.$ac_ext <<_ACEOF
  5980. /* end confdefs.h. */
  5981. #include <stdlib.h>
  5982. _ACEOF
  5983. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5984. $EGREP "free" >/dev/null 2>&1; then
  5985. :
  5986. else
  5987. ac_cv_header_stdc=no
  5988. fi
  5989. rm -f conftest*
  5990. fi
  5991. if test $ac_cv_header_stdc = yes; then
  5992. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5993. if test "$cross_compiling" = yes; then
  5994. :
  5995. else
  5996. cat >conftest.$ac_ext <<_ACEOF
  5997. /* confdefs.h. */
  5998. _ACEOF
  5999. cat confdefs.h >>conftest.$ac_ext
  6000. cat >>conftest.$ac_ext <<_ACEOF
  6001. /* end confdefs.h. */
  6002. #include <ctype.h>
  6003. #include <stdlib.h>
  6004. #if ((' ' & 0x0FF) == 0x020)
  6005. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6006. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6007. #else
  6008. # define ISLOWER(c) \
  6009. (('a' <= (c) && (c) <= 'i') \
  6010. || ('j' <= (c) && (c) <= 'r') \
  6011. || ('s' <= (c) && (c) <= 'z'))
  6012. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6013. #endif
  6014. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6015. int
  6016. main ()
  6017. {
  6018. int i;
  6019. for (i = 0; i < 256; i++)
  6020. if (XOR (islower (i), ISLOWER (i))
  6021. || toupper (i) != TOUPPER (i))
  6022. return 2;
  6023. return 0;
  6024. }
  6025. _ACEOF
  6026. rm -f conftest$ac_exeext
  6027. if { (ac_try="$ac_link"
  6028. case "(($ac_try" in
  6029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6030. *) ac_try_echo=$ac_try;;
  6031. esac
  6032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6033. $as_echo "$ac_try_echo") >&5
  6034. (eval "$ac_link") 2>&5
  6035. ac_status=$?
  6036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6037. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6038. { (case "(($ac_try" in
  6039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6040. *) ac_try_echo=$ac_try;;
  6041. esac
  6042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6043. $as_echo "$ac_try_echo") >&5
  6044. (eval "$ac_try") 2>&5
  6045. ac_status=$?
  6046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6047. (exit $ac_status); }; }; then
  6048. :
  6049. else
  6050. $as_echo "$as_me: program exited with status $ac_status" >&5
  6051. $as_echo "$as_me: failed program was:" >&5
  6052. sed 's/^/| /' conftest.$ac_ext >&5
  6053. ( exit $ac_status )
  6054. ac_cv_header_stdc=no
  6055. fi
  6056. rm -rf conftest.dSYM
  6057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6058. fi
  6059. fi
  6060. fi
  6061. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6062. $as_echo "$ac_cv_header_stdc" >&6; }
  6063. if test $ac_cv_header_stdc = yes; then
  6064. cat >>confdefs.h <<\_ACEOF
  6065. #define STDC_HEADERS 1
  6066. _ACEOF
  6067. fi
  6068. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6069. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6070. inttypes.h stdint.h unistd.h
  6071. do
  6072. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6073. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6074. $as_echo_n "checking for $ac_header... " >&6; }
  6075. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. cat >conftest.$ac_ext <<_ACEOF
  6079. /* confdefs.h. */
  6080. _ACEOF
  6081. cat confdefs.h >>conftest.$ac_ext
  6082. cat >>conftest.$ac_ext <<_ACEOF
  6083. /* end confdefs.h. */
  6084. $ac_includes_default
  6085. #include <$ac_header>
  6086. _ACEOF
  6087. rm -f conftest.$ac_objext
  6088. if { (ac_try="$ac_compile"
  6089. case "(($ac_try" in
  6090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6091. *) ac_try_echo=$ac_try;;
  6092. esac
  6093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6094. $as_echo "$ac_try_echo") >&5
  6095. (eval "$ac_compile") 2>conftest.er1
  6096. ac_status=$?
  6097. grep -v '^ *+' conftest.er1 >conftest.err
  6098. rm -f conftest.er1
  6099. cat conftest.err >&5
  6100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6101. (exit $ac_status); } && {
  6102. test -z "$ac_c_werror_flag" ||
  6103. test ! -s conftest.err
  6104. } && test -s conftest.$ac_objext; then
  6105. eval "$as_ac_Header=yes"
  6106. else
  6107. $as_echo "$as_me: failed program was:" >&5
  6108. sed 's/^/| /' conftest.$ac_ext >&5
  6109. eval "$as_ac_Header=no"
  6110. fi
  6111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6112. fi
  6113. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6114. $as_echo "$as_val"'`
  6115. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6116. $as_echo "$ac_res" >&6; }
  6117. as_val=`eval 'as_val=${'$as_ac_Header'}
  6118. $as_echo "$as_val"'`
  6119. if test "x$as_val" = x""yes; then
  6120. cat >>confdefs.h <<_ACEOF
  6121. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6122. _ACEOF
  6123. fi
  6124. done
  6125. for ac_header in dlfcn.h
  6126. do
  6127. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6128. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6129. $as_echo_n "checking for $ac_header... " >&6; }
  6130. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6131. $as_echo_n "(cached) " >&6
  6132. else
  6133. cat >conftest.$ac_ext <<_ACEOF
  6134. /* confdefs.h. */
  6135. _ACEOF
  6136. cat confdefs.h >>conftest.$ac_ext
  6137. cat >>conftest.$ac_ext <<_ACEOF
  6138. /* end confdefs.h. */
  6139. $ac_includes_default
  6140. #include <$ac_header>
  6141. _ACEOF
  6142. rm -f conftest.$ac_objext
  6143. if { (ac_try="$ac_compile"
  6144. case "(($ac_try" in
  6145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6146. *) ac_try_echo=$ac_try;;
  6147. esac
  6148. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6149. $as_echo "$ac_try_echo") >&5
  6150. (eval "$ac_compile") 2>conftest.er1
  6151. ac_status=$?
  6152. grep -v '^ *+' conftest.er1 >conftest.err
  6153. rm -f conftest.er1
  6154. cat conftest.err >&5
  6155. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6156. (exit $ac_status); } && {
  6157. test -z "$ac_c_werror_flag" ||
  6158. test ! -s conftest.err
  6159. } && test -s conftest.$ac_objext; then
  6160. eval "$as_ac_Header=yes"
  6161. else
  6162. $as_echo "$as_me: failed program was:" >&5
  6163. sed 's/^/| /' conftest.$ac_ext >&5
  6164. eval "$as_ac_Header=no"
  6165. fi
  6166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6167. fi
  6168. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6169. $as_echo "$as_val"'`
  6170. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6171. $as_echo "$ac_res" >&6; }
  6172. as_val=`eval 'as_val=${'$as_ac_Header'}
  6173. $as_echo "$as_val"'`
  6174. if test "x$as_val" = x""yes; then
  6175. cat >>confdefs.h <<_ACEOF
  6176. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6177. _ACEOF
  6178. fi
  6179. done
  6180. # Set options
  6181. enable_dlopen=no
  6182. enable_win32_dll=no
  6183. # Check whether --enable-shared was given.
  6184. if test "${enable_shared+set}" = set; then
  6185. enableval=$enable_shared; p=${PACKAGE-default}
  6186. case $enableval in
  6187. yes) enable_shared=yes ;;
  6188. no) enable_shared=no ;;
  6189. *)
  6190. enable_shared=no
  6191. # Look at the argument we got. We use all the common list separators.
  6192. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6193. for pkg in $enableval; do
  6194. IFS="$lt_save_ifs"
  6195. if test "X$pkg" = "X$p"; then
  6196. enable_shared=yes
  6197. fi
  6198. done
  6199. IFS="$lt_save_ifs"
  6200. ;;
  6201. esac
  6202. else
  6203. enable_shared=yes
  6204. fi
  6205. # Check whether --enable-static was given.
  6206. if test "${enable_static+set}" = set; then
  6207. enableval=$enable_static; p=${PACKAGE-default}
  6208. case $enableval in
  6209. yes) enable_static=yes ;;
  6210. no) enable_static=no ;;
  6211. *)
  6212. enable_static=no
  6213. # Look at the argument we got. We use all the common list separators.
  6214. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6215. for pkg in $enableval; do
  6216. IFS="$lt_save_ifs"
  6217. if test "X$pkg" = "X$p"; then
  6218. enable_static=yes
  6219. fi
  6220. done
  6221. IFS="$lt_save_ifs"
  6222. ;;
  6223. esac
  6224. else
  6225. enable_static=yes
  6226. fi
  6227. # Check whether --with-pic was given.
  6228. if test "${with_pic+set}" = set; then
  6229. withval=$with_pic; pic_mode="$withval"
  6230. else
  6231. pic_mode=default
  6232. fi
  6233. test -z "$pic_mode" && pic_mode=default
  6234. # Check whether --enable-fast-install was given.
  6235. if test "${enable_fast_install+set}" = set; then
  6236. enableval=$enable_fast_install; p=${PACKAGE-default}
  6237. case $enableval in
  6238. yes) enable_fast_install=yes ;;
  6239. no) enable_fast_install=no ;;
  6240. *)
  6241. enable_fast_install=no
  6242. # Look at the argument we got. We use all the common list separators.
  6243. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6244. for pkg in $enableval; do
  6245. IFS="$lt_save_ifs"
  6246. if test "X$pkg" = "X$p"; then
  6247. enable_fast_install=yes
  6248. fi
  6249. done
  6250. IFS="$lt_save_ifs"
  6251. ;;
  6252. esac
  6253. else
  6254. enable_fast_install=yes
  6255. fi
  6256. # This can be used to rebuild libtool when needed
  6257. LIBTOOL_DEPS="$ltmain"
  6258. # Always use our own libtool.
  6259. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6260. test -z "$LN_S" && LN_S="ln -s"
  6261. if test -n "${ZSH_VERSION+set}" ; then
  6262. setopt NO_GLOB_SUBST
  6263. fi
  6264. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6265. $as_echo_n "checking for objdir... " >&6; }
  6266. if test "${lt_cv_objdir+set}" = set; then
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. rm -f .libs 2>/dev/null
  6270. mkdir .libs 2>/dev/null
  6271. if test -d .libs; then
  6272. lt_cv_objdir=.libs
  6273. else
  6274. # MS-DOS does not allow filenames that begin with a dot.
  6275. lt_cv_objdir=_libs
  6276. fi
  6277. rmdir .libs 2>/dev/null
  6278. fi
  6279. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6280. $as_echo "$lt_cv_objdir" >&6; }
  6281. objdir=$lt_cv_objdir
  6282. cat >>confdefs.h <<_ACEOF
  6283. #define LT_OBJDIR "$lt_cv_objdir/"
  6284. _ACEOF
  6285. case $host_os in
  6286. aix3*)
  6287. # AIX sometimes has problems with the GCC collect2 program. For some
  6288. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6289. # vanish in a puff of smoke.
  6290. if test "X${COLLECT_NAMES+set}" != Xset; then
  6291. COLLECT_NAMES=
  6292. export COLLECT_NAMES
  6293. fi
  6294. ;;
  6295. esac
  6296. # Sed substitution that helps us do robust quoting. It backslashifies
  6297. # metacharacters that are still active within double-quoted strings.
  6298. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6299. # Same as above, but do not quote variable references.
  6300. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6301. # Sed substitution to delay expansion of an escaped shell variable in a
  6302. # double_quote_subst'ed string.
  6303. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6304. # Sed substitution to delay expansion of an escaped single quote.
  6305. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6306. # Sed substitution to avoid accidental globbing in evaled expressions
  6307. no_glob_subst='s/\*/\\\*/g'
  6308. # Global variables:
  6309. ofile=libtool
  6310. can_build_shared=yes
  6311. # All known linkers require a `.a' archive for static linking (except MSVC,
  6312. # which needs '.lib').
  6313. libext=a
  6314. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6315. old_CC="$CC"
  6316. old_CFLAGS="$CFLAGS"
  6317. # Set sane defaults for various variables
  6318. test -z "$CC" && CC=cc
  6319. test -z "$LTCC" && LTCC=$CC
  6320. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6321. test -z "$LD" && LD=ld
  6322. test -z "$ac_objext" && ac_objext=o
  6323. for cc_temp in $compiler""; do
  6324. case $cc_temp in
  6325. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6326. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6327. \-*) ;;
  6328. *) break;;
  6329. esac
  6330. done
  6331. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6332. # Only perform the check for file, if the check method requires it
  6333. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6334. case $deplibs_check_method in
  6335. file_magic*)
  6336. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6337. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6338. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6339. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6340. $as_echo_n "(cached) " >&6
  6341. else
  6342. case $MAGIC_CMD in
  6343. [\\/*] | ?:[\\/]*)
  6344. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6345. ;;
  6346. *)
  6347. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6348. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6349. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6350. for ac_dir in $ac_dummy; do
  6351. IFS="$lt_save_ifs"
  6352. test -z "$ac_dir" && ac_dir=.
  6353. if test -f $ac_dir/${ac_tool_prefix}file; then
  6354. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6355. if test -n "$file_magic_test_file"; then
  6356. case $deplibs_check_method in
  6357. "file_magic "*)
  6358. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6359. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6360. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6361. $EGREP "$file_magic_regex" > /dev/null; then
  6362. :
  6363. else
  6364. cat <<_LT_EOF 1>&2
  6365. *** Warning: the command libtool uses to detect shared libraries,
  6366. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6367. *** The result is that libtool may fail to recognize shared libraries
  6368. *** as such. This will affect the creation of libtool libraries that
  6369. *** depend on shared libraries, but programs linked with such libtool
  6370. *** libraries will work regardless of this problem. Nevertheless, you
  6371. *** may want to report the problem to your system manager and/or to
  6372. *** bug-libtool@gnu.org
  6373. _LT_EOF
  6374. fi ;;
  6375. esac
  6376. fi
  6377. break
  6378. fi
  6379. done
  6380. IFS="$lt_save_ifs"
  6381. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6382. ;;
  6383. esac
  6384. fi
  6385. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6386. if test -n "$MAGIC_CMD"; then
  6387. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6388. $as_echo "$MAGIC_CMD" >&6; }
  6389. else
  6390. { $as_echo "$as_me:$LINENO: result: no" >&5
  6391. $as_echo "no" >&6; }
  6392. fi
  6393. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6394. if test -n "$ac_tool_prefix"; then
  6395. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6396. $as_echo_n "checking for file... " >&6; }
  6397. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. case $MAGIC_CMD in
  6401. [\\/*] | ?:[\\/]*)
  6402. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6403. ;;
  6404. *)
  6405. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6406. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6407. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6408. for ac_dir in $ac_dummy; do
  6409. IFS="$lt_save_ifs"
  6410. test -z "$ac_dir" && ac_dir=.
  6411. if test -f $ac_dir/file; then
  6412. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6413. if test -n "$file_magic_test_file"; then
  6414. case $deplibs_check_method in
  6415. "file_magic "*)
  6416. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6417. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6418. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6419. $EGREP "$file_magic_regex" > /dev/null; then
  6420. :
  6421. else
  6422. cat <<_LT_EOF 1>&2
  6423. *** Warning: the command libtool uses to detect shared libraries,
  6424. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6425. *** The result is that libtool may fail to recognize shared libraries
  6426. *** as such. This will affect the creation of libtool libraries that
  6427. *** depend on shared libraries, but programs linked with such libtool
  6428. *** libraries will work regardless of this problem. Nevertheless, you
  6429. *** may want to report the problem to your system manager and/or to
  6430. *** bug-libtool@gnu.org
  6431. _LT_EOF
  6432. fi ;;
  6433. esac
  6434. fi
  6435. break
  6436. fi
  6437. done
  6438. IFS="$lt_save_ifs"
  6439. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6440. ;;
  6441. esac
  6442. fi
  6443. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6444. if test -n "$MAGIC_CMD"; then
  6445. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6446. $as_echo "$MAGIC_CMD" >&6; }
  6447. else
  6448. { $as_echo "$as_me:$LINENO: result: no" >&5
  6449. $as_echo "no" >&6; }
  6450. fi
  6451. else
  6452. MAGIC_CMD=:
  6453. fi
  6454. fi
  6455. fi
  6456. ;;
  6457. esac
  6458. # Use C for the default configuration in the libtool script
  6459. lt_save_CC="$CC"
  6460. ac_ext=c
  6461. ac_cpp='$CPP $CPPFLAGS'
  6462. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6463. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6464. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6465. # Source file extension for C test sources.
  6466. ac_ext=c
  6467. # Object file extension for compiled C test sources.
  6468. objext=o
  6469. objext=$objext
  6470. # Code to be used in simple compile tests
  6471. lt_simple_compile_test_code="int some_variable = 0;"
  6472. # Code to be used in simple link tests
  6473. lt_simple_link_test_code='int main(){return(0);}'
  6474. # If no C compiler was specified, use CC.
  6475. LTCC=${LTCC-"$CC"}
  6476. # If no C compiler flags were specified, use CFLAGS.
  6477. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6478. # Allow CC to be a program name with arguments.
  6479. compiler=$CC
  6480. # Save the default compiler, since it gets overwritten when the other
  6481. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6482. compiler_DEFAULT=$CC
  6483. # save warnings/boilerplate of simple test code
  6484. ac_outfile=conftest.$ac_objext
  6485. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6486. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6487. _lt_compiler_boilerplate=`cat conftest.err`
  6488. $RM conftest*
  6489. ac_outfile=conftest.$ac_objext
  6490. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6491. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6492. _lt_linker_boilerplate=`cat conftest.err`
  6493. $RM -r conftest*
  6494. if test -n "$compiler"; then
  6495. lt_prog_compiler_no_builtin_flag=
  6496. if test "$GCC" = yes; then
  6497. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6498. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6499. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6500. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6501. $as_echo_n "(cached) " >&6
  6502. else
  6503. lt_cv_prog_compiler_rtti_exceptions=no
  6504. ac_outfile=conftest.$ac_objext
  6505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6506. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6507. # Insert the option either (1) after the last *FLAGS variable, or
  6508. # (2) before a word containing "conftest.", or (3) at the end.
  6509. # Note that $ac_compile itself does not contain backslashes and begins
  6510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6511. # The option is referenced via a variable to avoid confusing sed.
  6512. lt_compile=`echo "$ac_compile" | $SED \
  6513. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6514. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6515. -e 's:$: $lt_compiler_flag:'`
  6516. (eval echo "\"\$as_me:7554: $lt_compile\"" >&5)
  6517. (eval "$lt_compile" 2>conftest.err)
  6518. ac_status=$?
  6519. cat conftest.err >&5
  6520. echo "$as_me:7558: \$? = $ac_status" >&5
  6521. if (exit $ac_status) && test -s "$ac_outfile"; then
  6522. # The compiler can only warn and ignore the option if not recognized
  6523. # So say no if there are warnings other than the usual output.
  6524. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6525. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6526. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6527. lt_cv_prog_compiler_rtti_exceptions=yes
  6528. fi
  6529. fi
  6530. $RM conftest*
  6531. fi
  6532. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6533. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6534. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6535. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6536. else
  6537. :
  6538. fi
  6539. fi
  6540. lt_prog_compiler_wl=
  6541. lt_prog_compiler_pic=
  6542. lt_prog_compiler_static=
  6543. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6544. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6545. if test "$GCC" = yes; then
  6546. lt_prog_compiler_wl='-Wl,'
  6547. lt_prog_compiler_static='-static'
  6548. case $host_os in
  6549. aix*)
  6550. # All AIX code is PIC.
  6551. if test "$host_cpu" = ia64; then
  6552. # AIX 5 now supports IA64 processor
  6553. lt_prog_compiler_static='-Bstatic'
  6554. fi
  6555. ;;
  6556. amigaos*)
  6557. case $host_cpu in
  6558. powerpc)
  6559. # see comment about AmigaOS4 .so support
  6560. lt_prog_compiler_pic='-fPIC'
  6561. ;;
  6562. m68k)
  6563. # FIXME: we need at least 68020 code to build shared libraries, but
  6564. # adding the `-m68020' flag to GCC prevents building anything better,
  6565. # like `-m68040'.
  6566. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6567. ;;
  6568. esac
  6569. ;;
  6570. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6571. # PIC is the default for these OSes.
  6572. ;;
  6573. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6574. # This hack is so that the source file can tell whether it is being
  6575. # built for inclusion in a dll (and should export symbols for example).
  6576. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6577. # (--disable-auto-import) libraries
  6578. lt_prog_compiler_pic='-DDLL_EXPORT'
  6579. ;;
  6580. darwin* | rhapsody*)
  6581. # PIC is the default on this platform
  6582. # Common symbols not allowed in MH_DYLIB files
  6583. lt_prog_compiler_pic='-fno-common'
  6584. ;;
  6585. hpux*)
  6586. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6587. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6588. # sets the default TLS model and affects inlining.
  6589. case $host_cpu in
  6590. hppa*64*)
  6591. # +Z the default
  6592. ;;
  6593. *)
  6594. lt_prog_compiler_pic='-fPIC'
  6595. ;;
  6596. esac
  6597. ;;
  6598. interix[3-9]*)
  6599. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6600. # Instead, we relocate shared libraries at runtime.
  6601. ;;
  6602. msdosdjgpp*)
  6603. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6604. # on systems that don't support them.
  6605. lt_prog_compiler_can_build_shared=no
  6606. enable_shared=no
  6607. ;;
  6608. *nto* | *qnx*)
  6609. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6610. # it will coredump.
  6611. lt_prog_compiler_pic='-fPIC -shared'
  6612. ;;
  6613. sysv4*MP*)
  6614. if test -d /usr/nec; then
  6615. lt_prog_compiler_pic=-Kconform_pic
  6616. fi
  6617. ;;
  6618. *)
  6619. lt_prog_compiler_pic='-fPIC'
  6620. ;;
  6621. esac
  6622. else
  6623. # PORTME Check for flag to pass linker flags through the system compiler.
  6624. case $host_os in
  6625. aix*)
  6626. lt_prog_compiler_wl='-Wl,'
  6627. if test "$host_cpu" = ia64; then
  6628. # AIX 5 now supports IA64 processor
  6629. lt_prog_compiler_static='-Bstatic'
  6630. else
  6631. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6632. fi
  6633. ;;
  6634. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6635. # This hack is so that the source file can tell whether it is being
  6636. # built for inclusion in a dll (and should export symbols for example).
  6637. lt_prog_compiler_pic='-DDLL_EXPORT'
  6638. ;;
  6639. hpux9* | hpux10* | hpux11*)
  6640. lt_prog_compiler_wl='-Wl,'
  6641. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6642. # not for PA HP-UX.
  6643. case $host_cpu in
  6644. hppa*64*|ia64*)
  6645. # +Z the default
  6646. ;;
  6647. *)
  6648. lt_prog_compiler_pic='+Z'
  6649. ;;
  6650. esac
  6651. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6652. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6653. ;;
  6654. irix5* | irix6* | nonstopux*)
  6655. lt_prog_compiler_wl='-Wl,'
  6656. # PIC (with -KPIC) is the default.
  6657. lt_prog_compiler_static='-non_shared'
  6658. ;;
  6659. linux* | k*bsd*-gnu)
  6660. case $cc_basename in
  6661. # old Intel for x86_64 which still supported -KPIC.
  6662. ecc*)
  6663. lt_prog_compiler_wl='-Wl,'
  6664. lt_prog_compiler_pic='-KPIC'
  6665. lt_prog_compiler_static='-static'
  6666. ;;
  6667. # icc used to be incompatible with GCC.
  6668. # ICC 10 doesn't accept -KPIC any more.
  6669. icc* | ifort*)
  6670. lt_prog_compiler_wl='-Wl,'
  6671. lt_prog_compiler_pic='-fPIC'
  6672. lt_prog_compiler_static='-static'
  6673. ;;
  6674. # Lahey Fortran 8.1.
  6675. lf95*)
  6676. lt_prog_compiler_wl='-Wl,'
  6677. lt_prog_compiler_pic='--shared'
  6678. lt_prog_compiler_static='--static'
  6679. ;;
  6680. pgcc* | pgf77* | pgf90* | pgf95*)
  6681. # Portland Group compilers (*not* the Pentium gcc compiler,
  6682. # which looks to be a dead project)
  6683. lt_prog_compiler_wl='-Wl,'
  6684. lt_prog_compiler_pic='-fpic'
  6685. lt_prog_compiler_static='-Bstatic'
  6686. ;;
  6687. ccc*)
  6688. lt_prog_compiler_wl='-Wl,'
  6689. # All Alpha code is PIC.
  6690. lt_prog_compiler_static='-non_shared'
  6691. ;;
  6692. xl*)
  6693. # IBM XL C 8.0/Fortran 10.1 on PPC
  6694. lt_prog_compiler_wl='-Wl,'
  6695. lt_prog_compiler_pic='-qpic'
  6696. lt_prog_compiler_static='-qstaticlink'
  6697. ;;
  6698. *)
  6699. case `$CC -V 2>&1 | sed 5q` in
  6700. *Sun\ C*)
  6701. # Sun C 5.9
  6702. lt_prog_compiler_pic='-KPIC'
  6703. lt_prog_compiler_static='-Bstatic'
  6704. lt_prog_compiler_wl='-Wl,'
  6705. ;;
  6706. *Sun\ F*)
  6707. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6708. lt_prog_compiler_pic='-KPIC'
  6709. lt_prog_compiler_static='-Bstatic'
  6710. lt_prog_compiler_wl=''
  6711. ;;
  6712. esac
  6713. ;;
  6714. esac
  6715. ;;
  6716. newsos6)
  6717. lt_prog_compiler_pic='-KPIC'
  6718. lt_prog_compiler_static='-Bstatic'
  6719. ;;
  6720. *nto* | *qnx*)
  6721. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6722. # it will coredump.
  6723. lt_prog_compiler_pic='-fPIC -shared'
  6724. ;;
  6725. osf3* | osf4* | osf5*)
  6726. lt_prog_compiler_wl='-Wl,'
  6727. # All OSF/1 code is PIC.
  6728. lt_prog_compiler_static='-non_shared'
  6729. ;;
  6730. rdos*)
  6731. lt_prog_compiler_static='-non_shared'
  6732. ;;
  6733. solaris*)
  6734. lt_prog_compiler_pic='-KPIC'
  6735. lt_prog_compiler_static='-Bstatic'
  6736. case $cc_basename in
  6737. f77* | f90* | f95*)
  6738. lt_prog_compiler_wl='-Qoption ld ';;
  6739. *)
  6740. lt_prog_compiler_wl='-Wl,';;
  6741. esac
  6742. ;;
  6743. sunos4*)
  6744. lt_prog_compiler_wl='-Qoption ld '
  6745. lt_prog_compiler_pic='-PIC'
  6746. lt_prog_compiler_static='-Bstatic'
  6747. ;;
  6748. sysv4 | sysv4.2uw2* | sysv4.3*)
  6749. lt_prog_compiler_wl='-Wl,'
  6750. lt_prog_compiler_pic='-KPIC'
  6751. lt_prog_compiler_static='-Bstatic'
  6752. ;;
  6753. sysv4*MP*)
  6754. if test -d /usr/nec ;then
  6755. lt_prog_compiler_pic='-Kconform_pic'
  6756. lt_prog_compiler_static='-Bstatic'
  6757. fi
  6758. ;;
  6759. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6760. lt_prog_compiler_wl='-Wl,'
  6761. lt_prog_compiler_pic='-KPIC'
  6762. lt_prog_compiler_static='-Bstatic'
  6763. ;;
  6764. unicos*)
  6765. lt_prog_compiler_wl='-Wl,'
  6766. lt_prog_compiler_can_build_shared=no
  6767. ;;
  6768. uts4*)
  6769. lt_prog_compiler_pic='-pic'
  6770. lt_prog_compiler_static='-Bstatic'
  6771. ;;
  6772. *)
  6773. lt_prog_compiler_can_build_shared=no
  6774. ;;
  6775. esac
  6776. fi
  6777. case $host_os in
  6778. # For platforms which do not support PIC, -DPIC is meaningless:
  6779. *djgpp*)
  6780. lt_prog_compiler_pic=
  6781. ;;
  6782. *)
  6783. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6784. ;;
  6785. esac
  6786. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6787. $as_echo "$lt_prog_compiler_pic" >&6; }
  6788. #
  6789. # Check to make sure the PIC flag actually works.
  6790. #
  6791. if test -n "$lt_prog_compiler_pic"; then
  6792. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6793. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6794. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6795. $as_echo_n "(cached) " >&6
  6796. else
  6797. lt_cv_prog_compiler_pic_works=no
  6798. ac_outfile=conftest.$ac_objext
  6799. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6800. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6801. # Insert the option either (1) after the last *FLAGS variable, or
  6802. # (2) before a word containing "conftest.", or (3) at the end.
  6803. # Note that $ac_compile itself does not contain backslashes and begins
  6804. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6805. # The option is referenced via a variable to avoid confusing sed.
  6806. lt_compile=`echo "$ac_compile" | $SED \
  6807. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6808. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6809. -e 's:$: $lt_compiler_flag:'`
  6810. (eval echo "\"\$as_me:7893: $lt_compile\"" >&5)
  6811. (eval "$lt_compile" 2>conftest.err)
  6812. ac_status=$?
  6813. cat conftest.err >&5
  6814. echo "$as_me:7897: \$? = $ac_status" >&5
  6815. if (exit $ac_status) && test -s "$ac_outfile"; then
  6816. # The compiler can only warn and ignore the option if not recognized
  6817. # So say no if there are warnings other than the usual output.
  6818. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6819. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6820. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6821. lt_cv_prog_compiler_pic_works=yes
  6822. fi
  6823. fi
  6824. $RM conftest*
  6825. fi
  6826. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6827. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6828. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6829. case $lt_prog_compiler_pic in
  6830. "" | " "*) ;;
  6831. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6832. esac
  6833. else
  6834. lt_prog_compiler_pic=
  6835. lt_prog_compiler_can_build_shared=no
  6836. fi
  6837. fi
  6838. #
  6839. # Check to make sure the static flag actually works.
  6840. #
  6841. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6842. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6843. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6844. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. lt_cv_prog_compiler_static_works=no
  6848. save_LDFLAGS="$LDFLAGS"
  6849. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6850. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6851. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6852. # The linker can only warn and ignore the option if not recognized
  6853. # So say no if there are warnings
  6854. if test -s conftest.err; then
  6855. # Append any errors to the config.log.
  6856. cat conftest.err 1>&5
  6857. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6858. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6859. if diff conftest.exp conftest.er2 >/dev/null; then
  6860. lt_cv_prog_compiler_static_works=yes
  6861. fi
  6862. else
  6863. lt_cv_prog_compiler_static_works=yes
  6864. fi
  6865. fi
  6866. $RM -r conftest*
  6867. LDFLAGS="$save_LDFLAGS"
  6868. fi
  6869. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6870. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6871. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6872. :
  6873. else
  6874. lt_prog_compiler_static=
  6875. fi
  6876. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6877. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6878. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6879. $as_echo_n "(cached) " >&6
  6880. else
  6881. lt_cv_prog_compiler_c_o=no
  6882. $RM -r conftest 2>/dev/null
  6883. mkdir conftest
  6884. cd conftest
  6885. mkdir out
  6886. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6887. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6888. # Insert the option either (1) after the last *FLAGS variable, or
  6889. # (2) before a word containing "conftest.", or (3) at the end.
  6890. # Note that $ac_compile itself does not contain backslashes and begins
  6891. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6892. lt_compile=`echo "$ac_compile" | $SED \
  6893. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6894. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6895. -e 's:$: $lt_compiler_flag:'`
  6896. (eval echo "\"\$as_me:7998: $lt_compile\"" >&5)
  6897. (eval "$lt_compile" 2>out/conftest.err)
  6898. ac_status=$?
  6899. cat out/conftest.err >&5
  6900. echo "$as_me:8002: \$? = $ac_status" >&5
  6901. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6902. then
  6903. # The compiler can only warn and ignore the option if not recognized
  6904. # So say no if there are warnings
  6905. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6906. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6907. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6908. lt_cv_prog_compiler_c_o=yes
  6909. fi
  6910. fi
  6911. chmod u+w . 2>&5
  6912. $RM conftest*
  6913. # SGI C++ compiler will create directory out/ii_files/ for
  6914. # template instantiation
  6915. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6916. $RM out/* && rmdir out
  6917. cd ..
  6918. $RM -r conftest
  6919. $RM conftest*
  6920. fi
  6921. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6922. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6923. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6924. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6925. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6926. $as_echo_n "(cached) " >&6
  6927. else
  6928. lt_cv_prog_compiler_c_o=no
  6929. $RM -r conftest 2>/dev/null
  6930. mkdir conftest
  6931. cd conftest
  6932. mkdir out
  6933. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6934. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6935. # Insert the option either (1) after the last *FLAGS variable, or
  6936. # (2) before a word containing "conftest.", or (3) at the end.
  6937. # Note that $ac_compile itself does not contain backslashes and begins
  6938. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6939. lt_compile=`echo "$ac_compile" | $SED \
  6940. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6941. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6942. -e 's:$: $lt_compiler_flag:'`
  6943. (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
  6944. (eval "$lt_compile" 2>out/conftest.err)
  6945. ac_status=$?
  6946. cat out/conftest.err >&5
  6947. echo "$as_me:8057: \$? = $ac_status" >&5
  6948. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6949. then
  6950. # The compiler can only warn and ignore the option if not recognized
  6951. # So say no if there are warnings
  6952. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6953. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6954. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6955. lt_cv_prog_compiler_c_o=yes
  6956. fi
  6957. fi
  6958. chmod u+w . 2>&5
  6959. $RM conftest*
  6960. # SGI C++ compiler will create directory out/ii_files/ for
  6961. # template instantiation
  6962. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6963. $RM out/* && rmdir out
  6964. cd ..
  6965. $RM -r conftest
  6966. $RM conftest*
  6967. fi
  6968. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6969. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6970. hard_links="nottested"
  6971. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6972. # do not overwrite the value of need_locks provided by the user
  6973. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6974. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6975. hard_links=yes
  6976. $RM conftest*
  6977. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6978. touch conftest.a
  6979. ln conftest.a conftest.b 2>&5 || hard_links=no
  6980. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6981. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  6982. $as_echo "$hard_links" >&6; }
  6983. if test "$hard_links" = no; then
  6984. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6985. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6986. need_locks=warn
  6987. fi
  6988. else
  6989. need_locks=no
  6990. fi
  6991. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6992. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6993. runpath_var=
  6994. allow_undefined_flag=
  6995. always_export_symbols=no
  6996. archive_cmds=
  6997. archive_expsym_cmds=
  6998. compiler_needs_object=no
  6999. enable_shared_with_static_runtimes=no
  7000. export_dynamic_flag_spec=
  7001. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7002. hardcode_automatic=no
  7003. hardcode_direct=no
  7004. hardcode_direct_absolute=no
  7005. hardcode_libdir_flag_spec=
  7006. hardcode_libdir_flag_spec_ld=
  7007. hardcode_libdir_separator=
  7008. hardcode_minus_L=no
  7009. hardcode_shlibpath_var=unsupported
  7010. inherit_rpath=no
  7011. link_all_deplibs=unknown
  7012. module_cmds=
  7013. module_expsym_cmds=
  7014. old_archive_from_new_cmds=
  7015. old_archive_from_expsyms_cmds=
  7016. thread_safe_flag_spec=
  7017. whole_archive_flag_spec=
  7018. # include_expsyms should be a list of space-separated symbols to be *always*
  7019. # included in the symbol list
  7020. include_expsyms=
  7021. # exclude_expsyms can be an extended regexp of symbols to exclude
  7022. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7023. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7024. # as well as any symbol that contains `d'.
  7025. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7026. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7027. # platforms (ab)use it in PIC code, but their linkers get confused if
  7028. # the symbol is explicitly referenced. Since portable code cannot
  7029. # rely on this symbol name, it's probably fine to never include it in
  7030. # preloaded symbol tables.
  7031. # Exclude shared library initialization/finalization symbols.
  7032. extract_expsyms_cmds=
  7033. case $host_os in
  7034. cygwin* | mingw* | pw32* | cegcc*)
  7035. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7036. # When not using gcc, we currently assume that we are using
  7037. # Microsoft Visual C++.
  7038. if test "$GCC" != yes; then
  7039. with_gnu_ld=no
  7040. fi
  7041. ;;
  7042. interix*)
  7043. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7044. with_gnu_ld=yes
  7045. ;;
  7046. openbsd*)
  7047. with_gnu_ld=no
  7048. ;;
  7049. linux* | k*bsd*-gnu)
  7050. link_all_deplibs=no
  7051. ;;
  7052. esac
  7053. ld_shlibs=yes
  7054. if test "$with_gnu_ld" = yes; then
  7055. # If archive_cmds runs LD, not CC, wlarc should be empty
  7056. wlarc='${wl}'
  7057. # Set some defaults for GNU ld with shared library support. These
  7058. # are reset later if shared libraries are not supported. Putting them
  7059. # here allows them to be overridden if necessary.
  7060. runpath_var=LD_RUN_PATH
  7061. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7062. export_dynamic_flag_spec='${wl}--export-dynamic'
  7063. # ancient GNU ld didn't support --whole-archive et. al.
  7064. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7065. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7066. else
  7067. whole_archive_flag_spec=
  7068. fi
  7069. supports_anon_versioning=no
  7070. case `$LD -v 2>&1` in
  7071. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7072. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7073. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7074. *\ 2.11.*) ;; # other 2.11 versions
  7075. *) supports_anon_versioning=yes ;;
  7076. esac
  7077. # See if GNU ld supports shared libraries.
  7078. case $host_os in
  7079. aix[3-9]*)
  7080. # On AIX/PPC, the GNU linker is very broken
  7081. if test "$host_cpu" != ia64; then
  7082. ld_shlibs=no
  7083. cat <<_LT_EOF 1>&2
  7084. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7085. *** to be unable to reliably create shared libraries on AIX.
  7086. *** Therefore, libtool is disabling shared libraries support. If you
  7087. *** really care for shared libraries, you may want to modify your PATH
  7088. *** so that a non-GNU linker is found, and then restart.
  7089. _LT_EOF
  7090. fi
  7091. ;;
  7092. amigaos*)
  7093. case $host_cpu in
  7094. powerpc)
  7095. # see comment about AmigaOS4 .so support
  7096. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7097. archive_expsym_cmds=''
  7098. ;;
  7099. m68k)
  7100. 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)'
  7101. hardcode_libdir_flag_spec='-L$libdir'
  7102. hardcode_minus_L=yes
  7103. ;;
  7104. esac
  7105. ;;
  7106. beos*)
  7107. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7108. allow_undefined_flag=unsupported
  7109. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7110. # support --undefined. This deserves some investigation. FIXME
  7111. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7112. else
  7113. ld_shlibs=no
  7114. fi
  7115. ;;
  7116. cygwin* | mingw* | pw32* | cegcc*)
  7117. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7118. # as there is no search path for DLLs.
  7119. hardcode_libdir_flag_spec='-L$libdir'
  7120. allow_undefined_flag=unsupported
  7121. always_export_symbols=no
  7122. enable_shared_with_static_runtimes=yes
  7123. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7124. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7125. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7126. # If the export-symbols file already is a .def file (1st line
  7127. # is EXPORTS), use it as is; otherwise, prepend...
  7128. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7129. cp $export_symbols $output_objdir/$soname.def;
  7130. else
  7131. echo EXPORTS > $output_objdir/$soname.def;
  7132. cat $export_symbols >> $output_objdir/$soname.def;
  7133. fi~
  7134. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7135. else
  7136. ld_shlibs=no
  7137. fi
  7138. ;;
  7139. interix[3-9]*)
  7140. hardcode_direct=no
  7141. hardcode_shlibpath_var=no
  7142. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7143. export_dynamic_flag_spec='${wl}-E'
  7144. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7145. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7146. # default) and relocated if they conflict, which is a slow very memory
  7147. # consuming and fragmenting process. To avoid this, we pick a random,
  7148. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7149. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7150. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7151. 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'
  7152. ;;
  7153. gnu* | linux* | tpf* | k*bsd*-gnu)
  7154. tmp_diet=no
  7155. if test "$host_os" = linux-dietlibc; then
  7156. case $cc_basename in
  7157. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7158. esac
  7159. fi
  7160. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7161. && test "$tmp_diet" = no
  7162. then
  7163. tmp_addflag=
  7164. tmp_sharedflag='-shared'
  7165. case $cc_basename,$host_cpu in
  7166. pgcc*) # Portland Group C compiler
  7167. 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'
  7168. tmp_addflag=' $pic_flag'
  7169. ;;
  7170. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7171. 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'
  7172. tmp_addflag=' $pic_flag -Mnomain' ;;
  7173. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7174. tmp_addflag=' -i_dynamic' ;;
  7175. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7176. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7177. ifc* | ifort*) # Intel Fortran compiler
  7178. tmp_addflag=' -nofor_main' ;;
  7179. lf95*) # Lahey Fortran 8.1
  7180. whole_archive_flag_spec=
  7181. tmp_sharedflag='--shared' ;;
  7182. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7183. tmp_sharedflag='-qmkshrobj'
  7184. tmp_addflag= ;;
  7185. esac
  7186. case `$CC -V 2>&1 | sed 5q` in
  7187. *Sun\ C*) # Sun C 5.9
  7188. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7189. compiler_needs_object=yes
  7190. tmp_sharedflag='-G' ;;
  7191. *Sun\ F*) # Sun Fortran 8.3
  7192. tmp_sharedflag='-G' ;;
  7193. esac
  7194. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7195. if test "x$supports_anon_versioning" = xyes; then
  7196. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7197. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7198. echo "local: *; };" >> $output_objdir/$libname.ver~
  7199. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7200. fi
  7201. case $cc_basename in
  7202. xlf*)
  7203. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7204. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7205. hardcode_libdir_flag_spec=
  7206. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7207. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7208. if test "x$supports_anon_versioning" = xyes; then
  7209. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7210. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7211. echo "local: *; };" >> $output_objdir/$libname.ver~
  7212. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7213. fi
  7214. ;;
  7215. esac
  7216. else
  7217. ld_shlibs=no
  7218. fi
  7219. ;;
  7220. netbsd* | netbsdelf*-gnu)
  7221. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7222. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7223. wlarc=
  7224. else
  7225. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7226. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7227. fi
  7228. ;;
  7229. solaris*)
  7230. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7231. ld_shlibs=no
  7232. cat <<_LT_EOF 1>&2
  7233. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7234. *** create shared libraries on Solaris systems. Therefore, libtool
  7235. *** is disabling shared libraries support. We urge you to upgrade GNU
  7236. *** binutils to release 2.9.1 or newer. Another option is to modify
  7237. *** your PATH or compiler configuration so that the native linker is
  7238. *** used, and then restart.
  7239. _LT_EOF
  7240. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7241. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7242. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7243. else
  7244. ld_shlibs=no
  7245. fi
  7246. ;;
  7247. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7248. case `$LD -v 2>&1` in
  7249. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7250. ld_shlibs=no
  7251. cat <<_LT_EOF 1>&2
  7252. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7253. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7254. *** is disabling shared libraries support. We urge you to upgrade GNU
  7255. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7256. *** your PATH or compiler configuration so that the native linker is
  7257. *** used, and then restart.
  7258. _LT_EOF
  7259. ;;
  7260. *)
  7261. # For security reasons, it is highly recommended that you always
  7262. # use absolute paths for naming shared libraries, and exclude the
  7263. # DT_RUNPATH tag from executables and libraries. But doing so
  7264. # requires that you compile everything twice, which is a pain.
  7265. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7266. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7267. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7268. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7269. else
  7270. ld_shlibs=no
  7271. fi
  7272. ;;
  7273. esac
  7274. ;;
  7275. sunos4*)
  7276. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7277. wlarc=
  7278. hardcode_direct=yes
  7279. hardcode_shlibpath_var=no
  7280. ;;
  7281. *)
  7282. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7283. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7284. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7285. else
  7286. ld_shlibs=no
  7287. fi
  7288. ;;
  7289. esac
  7290. if test "$ld_shlibs" = no; then
  7291. runpath_var=
  7292. hardcode_libdir_flag_spec=
  7293. export_dynamic_flag_spec=
  7294. whole_archive_flag_spec=
  7295. fi
  7296. else
  7297. # PORTME fill in a description of your system's linker (not GNU ld)
  7298. case $host_os in
  7299. aix3*)
  7300. allow_undefined_flag=unsupported
  7301. always_export_symbols=yes
  7302. 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'
  7303. # Note: this linker hardcodes the directories in LIBPATH if there
  7304. # are no directories specified by -L.
  7305. hardcode_minus_L=yes
  7306. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7307. # Neither direct hardcoding nor static linking is supported with a
  7308. # broken collect2.
  7309. hardcode_direct=unsupported
  7310. fi
  7311. ;;
  7312. aix[4-9]*)
  7313. if test "$host_cpu" = ia64; then
  7314. # On IA64, the linker does run time linking by default, so we don't
  7315. # have to do anything special.
  7316. aix_use_runtimelinking=no
  7317. exp_sym_flag='-Bexport'
  7318. no_entry_flag=""
  7319. else
  7320. # If we're using GNU nm, then we don't want the "-C" option.
  7321. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7322. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7323. 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'
  7324. else
  7325. 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'
  7326. fi
  7327. aix_use_runtimelinking=no
  7328. # Test if we are trying to use run time linking or normal
  7329. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7330. # need to do runtime linking.
  7331. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7332. for ld_flag in $LDFLAGS; do
  7333. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7334. aix_use_runtimelinking=yes
  7335. break
  7336. fi
  7337. done
  7338. ;;
  7339. esac
  7340. exp_sym_flag='-bexport'
  7341. no_entry_flag='-bnoentry'
  7342. fi
  7343. # When large executables or shared objects are built, AIX ld can
  7344. # have problems creating the table of contents. If linking a library
  7345. # or program results in "error TOC overflow" add -mminimal-toc to
  7346. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7347. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7348. archive_cmds=''
  7349. hardcode_direct=yes
  7350. hardcode_direct_absolute=yes
  7351. hardcode_libdir_separator=':'
  7352. link_all_deplibs=yes
  7353. file_list_spec='${wl}-f,'
  7354. if test "$GCC" = yes; then
  7355. case $host_os in aix4.[012]|aix4.[012].*)
  7356. # We only want to do this on AIX 4.2 and lower, the check
  7357. # below for broken collect2 doesn't work under 4.3+
  7358. collect2name=`${CC} -print-prog-name=collect2`
  7359. if test -f "$collect2name" &&
  7360. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7361. then
  7362. # We have reworked collect2
  7363. :
  7364. else
  7365. # We have old collect2
  7366. hardcode_direct=unsupported
  7367. # It fails to find uninstalled libraries when the uninstalled
  7368. # path is not listed in the libpath. Setting hardcode_minus_L
  7369. # to unsupported forces relinking
  7370. hardcode_minus_L=yes
  7371. hardcode_libdir_flag_spec='-L$libdir'
  7372. hardcode_libdir_separator=
  7373. fi
  7374. ;;
  7375. esac
  7376. shared_flag='-shared'
  7377. if test "$aix_use_runtimelinking" = yes; then
  7378. shared_flag="$shared_flag "'${wl}-G'
  7379. fi
  7380. link_all_deplibs=no
  7381. else
  7382. # not using gcc
  7383. if test "$host_cpu" = ia64; then
  7384. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7385. # chokes on -Wl,-G. The following line is correct:
  7386. shared_flag='-G'
  7387. else
  7388. if test "$aix_use_runtimelinking" = yes; then
  7389. shared_flag='${wl}-G'
  7390. else
  7391. shared_flag='${wl}-bM:SRE'
  7392. fi
  7393. fi
  7394. fi
  7395. export_dynamic_flag_spec='${wl}-bexpall'
  7396. # It seems that -bexpall does not export symbols beginning with
  7397. # underscore (_), so it is better to generate a list of symbols to export.
  7398. always_export_symbols=yes
  7399. if test "$aix_use_runtimelinking" = yes; then
  7400. # Warning - without using the other runtime loading flags (-brtl),
  7401. # -berok will link without error, but may produce a broken library.
  7402. allow_undefined_flag='-berok'
  7403. # Determine the default libpath from the value encoded in an
  7404. # empty executable.
  7405. cat >conftest.$ac_ext <<_ACEOF
  7406. /* confdefs.h. */
  7407. _ACEOF
  7408. cat confdefs.h >>conftest.$ac_ext
  7409. cat >>conftest.$ac_ext <<_ACEOF
  7410. /* end confdefs.h. */
  7411. int
  7412. main ()
  7413. {
  7414. ;
  7415. return 0;
  7416. }
  7417. _ACEOF
  7418. rm -f conftest.$ac_objext conftest$ac_exeext
  7419. if { (ac_try="$ac_link"
  7420. case "(($ac_try" in
  7421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7422. *) ac_try_echo=$ac_try;;
  7423. esac
  7424. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7425. $as_echo "$ac_try_echo") >&5
  7426. (eval "$ac_link") 2>conftest.er1
  7427. ac_status=$?
  7428. grep -v '^ *+' conftest.er1 >conftest.err
  7429. rm -f conftest.er1
  7430. cat conftest.err >&5
  7431. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7432. (exit $ac_status); } && {
  7433. test -z "$ac_c_werror_flag" ||
  7434. test ! -s conftest.err
  7435. } && test -s conftest$ac_exeext && {
  7436. test "$cross_compiling" = yes ||
  7437. $as_test_x conftest$ac_exeext
  7438. }; then
  7439. lt_aix_libpath_sed='
  7440. /Import File Strings/,/^$/ {
  7441. /^0/ {
  7442. s/^0 *\(.*\)$/\1/
  7443. p
  7444. }
  7445. }'
  7446. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7447. # Check for a 64-bit object if we didn't find anything.
  7448. if test -z "$aix_libpath"; then
  7449. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7450. fi
  7451. else
  7452. $as_echo "$as_me: failed program was:" >&5
  7453. sed 's/^/| /' conftest.$ac_ext >&5
  7454. fi
  7455. rm -rf conftest.dSYM
  7456. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7457. conftest$ac_exeext conftest.$ac_ext
  7458. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7459. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7460. 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7461. else
  7462. if test "$host_cpu" = ia64; then
  7463. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7464. allow_undefined_flag="-z nodefs"
  7465. 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"
  7466. else
  7467. # Determine the default libpath from the value encoded in an
  7468. # empty executable.
  7469. cat >conftest.$ac_ext <<_ACEOF
  7470. /* confdefs.h. */
  7471. _ACEOF
  7472. cat confdefs.h >>conftest.$ac_ext
  7473. cat >>conftest.$ac_ext <<_ACEOF
  7474. /* end confdefs.h. */
  7475. int
  7476. main ()
  7477. {
  7478. ;
  7479. return 0;
  7480. }
  7481. _ACEOF
  7482. rm -f conftest.$ac_objext conftest$ac_exeext
  7483. if { (ac_try="$ac_link"
  7484. case "(($ac_try" in
  7485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7486. *) ac_try_echo=$ac_try;;
  7487. esac
  7488. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7489. $as_echo "$ac_try_echo") >&5
  7490. (eval "$ac_link") 2>conftest.er1
  7491. ac_status=$?
  7492. grep -v '^ *+' conftest.er1 >conftest.err
  7493. rm -f conftest.er1
  7494. cat conftest.err >&5
  7495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. (exit $ac_status); } && {
  7497. test -z "$ac_c_werror_flag" ||
  7498. test ! -s conftest.err
  7499. } && test -s conftest$ac_exeext && {
  7500. test "$cross_compiling" = yes ||
  7501. $as_test_x conftest$ac_exeext
  7502. }; then
  7503. lt_aix_libpath_sed='
  7504. /Import File Strings/,/^$/ {
  7505. /^0/ {
  7506. s/^0 *\(.*\)$/\1/
  7507. p
  7508. }
  7509. }'
  7510. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7511. # Check for a 64-bit object if we didn't find anything.
  7512. if test -z "$aix_libpath"; then
  7513. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7514. fi
  7515. else
  7516. $as_echo "$as_me: failed program was:" >&5
  7517. sed 's/^/| /' conftest.$ac_ext >&5
  7518. fi
  7519. rm -rf conftest.dSYM
  7520. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7521. conftest$ac_exeext conftest.$ac_ext
  7522. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7523. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7524. # Warning - without using the other run time loading flags,
  7525. # -berok will link without error, but may produce a broken library.
  7526. no_undefined_flag=' ${wl}-bernotok'
  7527. allow_undefined_flag=' ${wl}-berok'
  7528. # Exported symbols can be pulled into shared objects from archives
  7529. whole_archive_flag_spec='$convenience'
  7530. archive_cmds_need_lc=yes
  7531. # This is similar to how AIX traditionally builds its shared libraries.
  7532. 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'
  7533. fi
  7534. fi
  7535. ;;
  7536. amigaos*)
  7537. case $host_cpu in
  7538. powerpc)
  7539. # see comment about AmigaOS4 .so support
  7540. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7541. archive_expsym_cmds=''
  7542. ;;
  7543. m68k)
  7544. 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)'
  7545. hardcode_libdir_flag_spec='-L$libdir'
  7546. hardcode_minus_L=yes
  7547. ;;
  7548. esac
  7549. ;;
  7550. bsdi[45]*)
  7551. export_dynamic_flag_spec=-rdynamic
  7552. ;;
  7553. cygwin* | mingw* | pw32* | cegcc*)
  7554. # When not using gcc, we currently assume that we are using
  7555. # Microsoft Visual C++.
  7556. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7557. # no search path for DLLs.
  7558. hardcode_libdir_flag_spec=' '
  7559. allow_undefined_flag=unsupported
  7560. # Tell ltmain to make .lib files, not .a files.
  7561. libext=lib
  7562. # Tell ltmain to make .dll files, not .so files.
  7563. shrext_cmds=".dll"
  7564. # FIXME: Setting linknames here is a bad hack.
  7565. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7566. # The linker will automatically build a .lib file if we build a DLL.
  7567. old_archive_from_new_cmds='true'
  7568. # FIXME: Should let the user specify the lib program.
  7569. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7570. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7571. enable_shared_with_static_runtimes=yes
  7572. ;;
  7573. darwin* | rhapsody*)
  7574. archive_cmds_need_lc=no
  7575. hardcode_direct=no
  7576. hardcode_automatic=yes
  7577. hardcode_shlibpath_var=unsupported
  7578. whole_archive_flag_spec=''
  7579. link_all_deplibs=yes
  7580. allow_undefined_flag="$_lt_dar_allow_undefined"
  7581. case $cc_basename in
  7582. ifort*) _lt_dar_can_shared=yes ;;
  7583. *) _lt_dar_can_shared=$GCC ;;
  7584. esac
  7585. if test "$_lt_dar_can_shared" = "yes"; then
  7586. output_verbose_link_cmd=echo
  7587. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7588. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7589. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7590. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7591. else
  7592. ld_shlibs=no
  7593. fi
  7594. ;;
  7595. dgux*)
  7596. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7597. hardcode_libdir_flag_spec='-L$libdir'
  7598. hardcode_shlibpath_var=no
  7599. ;;
  7600. freebsd1*)
  7601. ld_shlibs=no
  7602. ;;
  7603. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7604. # support. Future versions do this automatically, but an explicit c++rt0.o
  7605. # does not break anything, and helps significantly (at the cost of a little
  7606. # extra space).
  7607. freebsd2.2*)
  7608. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7609. hardcode_libdir_flag_spec='-R$libdir'
  7610. hardcode_direct=yes
  7611. hardcode_shlibpath_var=no
  7612. ;;
  7613. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7614. freebsd2*)
  7615. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7616. hardcode_direct=yes
  7617. hardcode_minus_L=yes
  7618. hardcode_shlibpath_var=no
  7619. ;;
  7620. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7621. freebsd* | dragonfly*)
  7622. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7623. hardcode_libdir_flag_spec='-R$libdir'
  7624. hardcode_direct=yes
  7625. hardcode_shlibpath_var=no
  7626. ;;
  7627. hpux9*)
  7628. if test "$GCC" = yes; then
  7629. 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'
  7630. else
  7631. 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'
  7632. fi
  7633. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7634. hardcode_libdir_separator=:
  7635. hardcode_direct=yes
  7636. # hardcode_minus_L: Not really in the search PATH,
  7637. # but as the default location of the library.
  7638. hardcode_minus_L=yes
  7639. export_dynamic_flag_spec='${wl}-E'
  7640. ;;
  7641. hpux10*)
  7642. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7643. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7644. else
  7645. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7646. fi
  7647. if test "$with_gnu_ld" = no; then
  7648. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7649. hardcode_libdir_flag_spec_ld='+b $libdir'
  7650. hardcode_libdir_separator=:
  7651. hardcode_direct=yes
  7652. hardcode_direct_absolute=yes
  7653. export_dynamic_flag_spec='${wl}-E'
  7654. # hardcode_minus_L: Not really in the search PATH,
  7655. # but as the default location of the library.
  7656. hardcode_minus_L=yes
  7657. fi
  7658. ;;
  7659. hpux11*)
  7660. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7661. case $host_cpu in
  7662. hppa*64*)
  7663. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7664. ;;
  7665. ia64*)
  7666. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7667. ;;
  7668. *)
  7669. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7670. ;;
  7671. esac
  7672. else
  7673. case $host_cpu in
  7674. hppa*64*)
  7675. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7676. ;;
  7677. ia64*)
  7678. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7679. ;;
  7680. *)
  7681. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7682. ;;
  7683. esac
  7684. fi
  7685. if test "$with_gnu_ld" = no; then
  7686. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7687. hardcode_libdir_separator=:
  7688. case $host_cpu in
  7689. hppa*64*|ia64*)
  7690. hardcode_direct=no
  7691. hardcode_shlibpath_var=no
  7692. ;;
  7693. *)
  7694. hardcode_direct=yes
  7695. hardcode_direct_absolute=yes
  7696. export_dynamic_flag_spec='${wl}-E'
  7697. # hardcode_minus_L: Not really in the search PATH,
  7698. # but as the default location of the library.
  7699. hardcode_minus_L=yes
  7700. ;;
  7701. esac
  7702. fi
  7703. ;;
  7704. irix5* | irix6* | nonstopux*)
  7705. if test "$GCC" = yes; then
  7706. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7707. # Try to use the -exported_symbol ld option, if it does not
  7708. # work, assume that -exports_file does not work either and
  7709. # implicitly export all symbols.
  7710. save_LDFLAGS="$LDFLAGS"
  7711. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7712. cat >conftest.$ac_ext <<_ACEOF
  7713. int foo(void) {}
  7714. _ACEOF
  7715. rm -f conftest.$ac_objext conftest$ac_exeext
  7716. if { (ac_try="$ac_link"
  7717. case "(($ac_try" in
  7718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7719. *) ac_try_echo=$ac_try;;
  7720. esac
  7721. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7722. $as_echo "$ac_try_echo") >&5
  7723. (eval "$ac_link") 2>conftest.er1
  7724. ac_status=$?
  7725. grep -v '^ *+' conftest.er1 >conftest.err
  7726. rm -f conftest.er1
  7727. cat conftest.err >&5
  7728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7729. (exit $ac_status); } && {
  7730. test -z "$ac_c_werror_flag" ||
  7731. test ! -s conftest.err
  7732. } && test -s conftest$ac_exeext && {
  7733. test "$cross_compiling" = yes ||
  7734. $as_test_x conftest$ac_exeext
  7735. }; then
  7736. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7737. else
  7738. $as_echo "$as_me: failed program was:" >&5
  7739. sed 's/^/| /' conftest.$ac_ext >&5
  7740. fi
  7741. rm -rf conftest.dSYM
  7742. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7743. conftest$ac_exeext conftest.$ac_ext
  7744. LDFLAGS="$save_LDFLAGS"
  7745. else
  7746. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7747. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7748. fi
  7749. archive_cmds_need_lc='no'
  7750. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7751. hardcode_libdir_separator=:
  7752. inherit_rpath=yes
  7753. link_all_deplibs=yes
  7754. ;;
  7755. netbsd* | netbsdelf*-gnu)
  7756. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7757. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7758. else
  7759. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7760. fi
  7761. hardcode_libdir_flag_spec='-R$libdir'
  7762. hardcode_direct=yes
  7763. hardcode_shlibpath_var=no
  7764. ;;
  7765. newsos6)
  7766. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7767. hardcode_direct=yes
  7768. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7769. hardcode_libdir_separator=:
  7770. hardcode_shlibpath_var=no
  7771. ;;
  7772. *nto* | *qnx*)
  7773. ;;
  7774. openbsd*)
  7775. if test -f /usr/libexec/ld.so; then
  7776. hardcode_direct=yes
  7777. hardcode_shlibpath_var=no
  7778. hardcode_direct_absolute=yes
  7779. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7780. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7781. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7782. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7783. export_dynamic_flag_spec='${wl}-E'
  7784. else
  7785. case $host_os in
  7786. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7787. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7788. hardcode_libdir_flag_spec='-R$libdir'
  7789. ;;
  7790. *)
  7791. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7792. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7793. ;;
  7794. esac
  7795. fi
  7796. else
  7797. ld_shlibs=no
  7798. fi
  7799. ;;
  7800. os2*)
  7801. hardcode_libdir_flag_spec='-L$libdir'
  7802. hardcode_minus_L=yes
  7803. allow_undefined_flag=unsupported
  7804. 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'
  7805. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7806. ;;
  7807. osf3*)
  7808. if test "$GCC" = yes; then
  7809. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7810. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7811. else
  7812. allow_undefined_flag=' -expect_unresolved \*'
  7813. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7814. fi
  7815. archive_cmds_need_lc='no'
  7816. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7817. hardcode_libdir_separator=:
  7818. ;;
  7819. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7820. if test "$GCC" = yes; then
  7821. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7822. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7823. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7824. else
  7825. allow_undefined_flag=' -expect_unresolved \*'
  7826. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7827. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  7828. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7829. # Both c and cxx compiler support -rpath directly
  7830. hardcode_libdir_flag_spec='-rpath $libdir'
  7831. fi
  7832. archive_cmds_need_lc='no'
  7833. hardcode_libdir_separator=:
  7834. ;;
  7835. solaris*)
  7836. no_undefined_flag=' -z defs'
  7837. if test "$GCC" = yes; then
  7838. wlarc='${wl}'
  7839. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7840. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7841. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7842. else
  7843. case `$CC -V 2>&1` in
  7844. *"Compilers 5.0"*)
  7845. wlarc=''
  7846. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7847. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7848. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7849. ;;
  7850. *)
  7851. wlarc='${wl}'
  7852. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7853. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7854. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7855. ;;
  7856. esac
  7857. fi
  7858. hardcode_libdir_flag_spec='-R$libdir'
  7859. hardcode_shlibpath_var=no
  7860. case $host_os in
  7861. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7862. *)
  7863. # The compiler driver will combine and reorder linker options,
  7864. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7865. # but is careful enough not to reorder.
  7866. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7867. if test "$GCC" = yes; then
  7868. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7869. else
  7870. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7871. fi
  7872. ;;
  7873. esac
  7874. link_all_deplibs=yes
  7875. ;;
  7876. sunos4*)
  7877. if test "x$host_vendor" = xsequent; then
  7878. # Use $CC to link under sequent, because it throws in some extra .o
  7879. # files that make .init and .fini sections work.
  7880. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7881. else
  7882. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7883. fi
  7884. hardcode_libdir_flag_spec='-L$libdir'
  7885. hardcode_direct=yes
  7886. hardcode_minus_L=yes
  7887. hardcode_shlibpath_var=no
  7888. ;;
  7889. sysv4)
  7890. case $host_vendor in
  7891. sni)
  7892. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7893. hardcode_direct=yes # is this really true???
  7894. ;;
  7895. siemens)
  7896. ## LD is ld it makes a PLAMLIB
  7897. ## CC just makes a GrossModule.
  7898. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7899. reload_cmds='$CC -r -o $output$reload_objs'
  7900. hardcode_direct=no
  7901. ;;
  7902. motorola)
  7903. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7904. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7905. ;;
  7906. esac
  7907. runpath_var='LD_RUN_PATH'
  7908. hardcode_shlibpath_var=no
  7909. ;;
  7910. sysv4.3*)
  7911. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7912. hardcode_shlibpath_var=no
  7913. export_dynamic_flag_spec='-Bexport'
  7914. ;;
  7915. sysv4*MP*)
  7916. if test -d /usr/nec; then
  7917. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7918. hardcode_shlibpath_var=no
  7919. runpath_var=LD_RUN_PATH
  7920. hardcode_runpath_var=yes
  7921. ld_shlibs=yes
  7922. fi
  7923. ;;
  7924. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7925. no_undefined_flag='${wl}-z,text'
  7926. archive_cmds_need_lc=no
  7927. hardcode_shlibpath_var=no
  7928. runpath_var='LD_RUN_PATH'
  7929. if test "$GCC" = yes; then
  7930. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7931. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7932. else
  7933. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7934. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7935. fi
  7936. ;;
  7937. sysv5* | sco3.2v5* | sco5v6*)
  7938. # Note: We can NOT use -z defs as we might desire, because we do not
  7939. # link with -lc, and that would cause any symbols used from libc to
  7940. # always be unresolved, which means just about no library would
  7941. # ever link correctly. If we're not using GNU ld we use -z text
  7942. # though, which does catch some bad symbols but isn't as heavy-handed
  7943. # as -z defs.
  7944. no_undefined_flag='${wl}-z,text'
  7945. allow_undefined_flag='${wl}-z,nodefs'
  7946. archive_cmds_need_lc=no
  7947. hardcode_shlibpath_var=no
  7948. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7949. hardcode_libdir_separator=':'
  7950. link_all_deplibs=yes
  7951. export_dynamic_flag_spec='${wl}-Bexport'
  7952. runpath_var='LD_RUN_PATH'
  7953. if test "$GCC" = yes; then
  7954. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7955. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7956. else
  7957. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7958. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7959. fi
  7960. ;;
  7961. uts4*)
  7962. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7963. hardcode_libdir_flag_spec='-L$libdir'
  7964. hardcode_shlibpath_var=no
  7965. ;;
  7966. *)
  7967. ld_shlibs=no
  7968. ;;
  7969. esac
  7970. if test x$host_vendor = xsni; then
  7971. case $host in
  7972. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7973. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7974. ;;
  7975. esac
  7976. fi
  7977. fi
  7978. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7979. $as_echo "$ld_shlibs" >&6; }
  7980. test "$ld_shlibs" = no && can_build_shared=no
  7981. with_gnu_ld=$with_gnu_ld
  7982. #
  7983. # Do we need to explicitly link libc?
  7984. #
  7985. case "x$archive_cmds_need_lc" in
  7986. x|xyes)
  7987. # Assume -lc should be added
  7988. archive_cmds_need_lc=yes
  7989. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7990. case $archive_cmds in
  7991. *'~'*)
  7992. # FIXME: we may have to deal with multi-command sequences.
  7993. ;;
  7994. '$CC '*)
  7995. # Test whether the compiler implicitly links with -lc since on some
  7996. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7997. # to ld, don't add -lc before -lgcc.
  7998. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7999. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8000. $RM conftest*
  8001. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8002. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8003. (eval $ac_compile) 2>&5
  8004. ac_status=$?
  8005. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. (exit $ac_status); } 2>conftest.err; then
  8007. soname=conftest
  8008. lib=conftest
  8009. libobjs=conftest.$ac_objext
  8010. deplibs=
  8011. wl=$lt_prog_compiler_wl
  8012. pic_flag=$lt_prog_compiler_pic
  8013. compiler_flags=-v
  8014. linker_flags=-v
  8015. verstring=
  8016. output_objdir=.
  8017. libname=conftest
  8018. lt_save_allow_undefined_flag=$allow_undefined_flag
  8019. allow_undefined_flag=
  8020. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8021. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8022. ac_status=$?
  8023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); }
  8025. then
  8026. archive_cmds_need_lc=no
  8027. else
  8028. archive_cmds_need_lc=yes
  8029. fi
  8030. allow_undefined_flag=$lt_save_allow_undefined_flag
  8031. else
  8032. cat conftest.err 1>&5
  8033. fi
  8034. $RM conftest*
  8035. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8036. $as_echo "$archive_cmds_need_lc" >&6; }
  8037. ;;
  8038. esac
  8039. fi
  8040. ;;
  8041. esac
  8042. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8043. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8044. if test "$GCC" = yes; then
  8045. case $host_os in
  8046. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8047. *) lt_awk_arg="/^libraries:/" ;;
  8048. esac
  8049. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8050. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8051. # if the path contains ";" then we assume it to be the separator
  8052. # otherwise default to the standard path separator (i.e. ":") - it is
  8053. # assumed that no part of a normal pathname contains ";" but that should
  8054. # okay in the real world where ";" in dirpaths is itself problematic.
  8055. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8056. else
  8057. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8058. fi
  8059. # Ok, now we have the path, separated by spaces, we can step through it
  8060. # and add multilib dir if necessary.
  8061. lt_tmp_lt_search_path_spec=
  8062. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8063. for lt_sys_path in $lt_search_path_spec; do
  8064. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8065. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8066. else
  8067. test -d "$lt_sys_path" && \
  8068. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8069. fi
  8070. done
  8071. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8072. BEGIN {RS=" "; FS="/|\n";} {
  8073. lt_foo="";
  8074. lt_count=0;
  8075. for (lt_i = NF; lt_i > 0; lt_i--) {
  8076. if ($lt_i != "" && $lt_i != ".") {
  8077. if ($lt_i == "..") {
  8078. lt_count++;
  8079. } else {
  8080. if (lt_count == 0) {
  8081. lt_foo="/" $lt_i lt_foo;
  8082. } else {
  8083. lt_count--;
  8084. }
  8085. }
  8086. }
  8087. }
  8088. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8089. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8090. }'`
  8091. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8092. else
  8093. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8094. fi
  8095. library_names_spec=
  8096. libname_spec='lib$name'
  8097. soname_spec=
  8098. shrext_cmds=".so"
  8099. postinstall_cmds=
  8100. postuninstall_cmds=
  8101. finish_cmds=
  8102. finish_eval=
  8103. shlibpath_var=
  8104. shlibpath_overrides_runpath=unknown
  8105. version_type=none
  8106. dynamic_linker="$host_os ld.so"
  8107. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8108. need_lib_prefix=unknown
  8109. hardcode_into_libs=no
  8110. # when you set need_version to no, make sure it does not cause -set_version
  8111. # flags to be left without arguments
  8112. need_version=unknown
  8113. case $host_os in
  8114. aix3*)
  8115. version_type=linux
  8116. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8117. shlibpath_var=LIBPATH
  8118. # AIX 3 has no versioning support, so we append a major version to the name.
  8119. soname_spec='${libname}${release}${shared_ext}$major'
  8120. ;;
  8121. aix[4-9]*)
  8122. version_type=linux
  8123. need_lib_prefix=no
  8124. need_version=no
  8125. hardcode_into_libs=yes
  8126. if test "$host_cpu" = ia64; then
  8127. # AIX 5 supports IA64
  8128. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8129. shlibpath_var=LD_LIBRARY_PATH
  8130. else
  8131. # With GCC up to 2.95.x, collect2 would create an import file
  8132. # for dependence libraries. The import file would start with
  8133. # the line `#! .'. This would cause the generated library to
  8134. # depend on `.', always an invalid library. This was fixed in
  8135. # development snapshots of GCC prior to 3.0.
  8136. case $host_os in
  8137. aix4 | aix4.[01] | aix4.[01].*)
  8138. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8139. echo ' yes '
  8140. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8141. :
  8142. else
  8143. can_build_shared=no
  8144. fi
  8145. ;;
  8146. esac
  8147. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8148. # soname into executable. Probably we can add versioning support to
  8149. # collect2, so additional links can be useful in future.
  8150. if test "$aix_use_runtimelinking" = yes; then
  8151. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8152. # instead of lib<name>.a to let people know that these are not
  8153. # typical AIX shared libraries.
  8154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8155. else
  8156. # We preserve .a as extension for shared libraries through AIX4.2
  8157. # and later when we are not doing run time linking.
  8158. library_names_spec='${libname}${release}.a $libname.a'
  8159. soname_spec='${libname}${release}${shared_ext}$major'
  8160. fi
  8161. shlibpath_var=LIBPATH
  8162. fi
  8163. ;;
  8164. amigaos*)
  8165. case $host_cpu in
  8166. powerpc)
  8167. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8168. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8170. ;;
  8171. m68k)
  8172. library_names_spec='$libname.ixlibrary $libname.a'
  8173. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8174. 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'
  8175. ;;
  8176. esac
  8177. ;;
  8178. beos*)
  8179. library_names_spec='${libname}${shared_ext}'
  8180. dynamic_linker="$host_os ld.so"
  8181. shlibpath_var=LIBRARY_PATH
  8182. ;;
  8183. bsdi[45]*)
  8184. version_type=linux
  8185. need_version=no
  8186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8187. soname_spec='${libname}${release}${shared_ext}$major'
  8188. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8189. shlibpath_var=LD_LIBRARY_PATH
  8190. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8191. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8192. # the default ld.so.conf also contains /usr/contrib/lib and
  8193. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8194. # libtool to hard-code these into programs
  8195. ;;
  8196. cygwin* | mingw* | pw32* | cegcc*)
  8197. version_type=windows
  8198. shrext_cmds=".dll"
  8199. need_version=no
  8200. need_lib_prefix=no
  8201. case $GCC,$host_os in
  8202. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8203. library_names_spec='$libname.dll.a'
  8204. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8205. postinstall_cmds='base_file=`basename \${file}`~
  8206. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8207. dldir=$destdir/`dirname \$dlpath`~
  8208. test -d \$dldir || mkdir -p \$dldir~
  8209. $install_prog $dir/$dlname \$dldir/$dlname~
  8210. chmod a+x \$dldir/$dlname~
  8211. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8212. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8213. fi'
  8214. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8215. dlpath=$dir/\$dldll~
  8216. $RM \$dlpath'
  8217. shlibpath_overrides_runpath=yes
  8218. case $host_os in
  8219. cygwin*)
  8220. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8221. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8222. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8223. ;;
  8224. mingw* | cegcc*)
  8225. # MinGW DLLs use traditional 'lib' prefix
  8226. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8227. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8228. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8229. # It is most probably a Windows format PATH printed by
  8230. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8231. # path with ; separators, and with drive letters. We can handle the
  8232. # drive letters (cygwin fileutils understands them), so leave them,
  8233. # especially as we might pass files found there to a mingw objdump,
  8234. # which wouldn't understand a cygwinified path. Ahh.
  8235. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8236. else
  8237. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8238. fi
  8239. ;;
  8240. pw32*)
  8241. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8242. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8243. ;;
  8244. esac
  8245. ;;
  8246. *)
  8247. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8248. ;;
  8249. esac
  8250. dynamic_linker='Win32 ld.exe'
  8251. # FIXME: first we should search . and the directory the executable is in
  8252. shlibpath_var=PATH
  8253. ;;
  8254. darwin* | rhapsody*)
  8255. dynamic_linker="$host_os dyld"
  8256. version_type=darwin
  8257. need_lib_prefix=no
  8258. need_version=no
  8259. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8260. soname_spec='${libname}${release}${major}$shared_ext'
  8261. shlibpath_overrides_runpath=yes
  8262. shlibpath_var=DYLD_LIBRARY_PATH
  8263. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8264. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8265. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8266. ;;
  8267. dgux*)
  8268. version_type=linux
  8269. need_lib_prefix=no
  8270. need_version=no
  8271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8272. soname_spec='${libname}${release}${shared_ext}$major'
  8273. shlibpath_var=LD_LIBRARY_PATH
  8274. ;;
  8275. freebsd1*)
  8276. dynamic_linker=no
  8277. ;;
  8278. freebsd* | dragonfly*)
  8279. # DragonFly does not have aout. When/if they implement a new
  8280. # versioning mechanism, adjust this.
  8281. if test -x /usr/bin/objformat; then
  8282. objformat=`/usr/bin/objformat`
  8283. else
  8284. case $host_os in
  8285. freebsd[123]*) objformat=aout ;;
  8286. *) objformat=elf ;;
  8287. esac
  8288. fi
  8289. version_type=freebsd-$objformat
  8290. case $version_type in
  8291. freebsd-elf*)
  8292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8293. need_version=no
  8294. need_lib_prefix=no
  8295. ;;
  8296. freebsd-*)
  8297. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8298. need_version=yes
  8299. ;;
  8300. esac
  8301. shlibpath_var=LD_LIBRARY_PATH
  8302. case $host_os in
  8303. freebsd2*)
  8304. shlibpath_overrides_runpath=yes
  8305. ;;
  8306. freebsd3.[01]* | freebsdelf3.[01]*)
  8307. shlibpath_overrides_runpath=yes
  8308. hardcode_into_libs=yes
  8309. ;;
  8310. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8311. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8312. shlibpath_overrides_runpath=no
  8313. hardcode_into_libs=yes
  8314. ;;
  8315. *) # from 4.6 on, and DragonFly
  8316. shlibpath_overrides_runpath=yes
  8317. hardcode_into_libs=yes
  8318. ;;
  8319. esac
  8320. ;;
  8321. gnu*)
  8322. version_type=linux
  8323. need_lib_prefix=no
  8324. need_version=no
  8325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8326. soname_spec='${libname}${release}${shared_ext}$major'
  8327. shlibpath_var=LD_LIBRARY_PATH
  8328. hardcode_into_libs=yes
  8329. ;;
  8330. hpux9* | hpux10* | hpux11*)
  8331. # Give a soname corresponding to the major version so that dld.sl refuses to
  8332. # link against other versions.
  8333. version_type=sunos
  8334. need_lib_prefix=no
  8335. need_version=no
  8336. case $host_cpu in
  8337. ia64*)
  8338. shrext_cmds='.so'
  8339. hardcode_into_libs=yes
  8340. dynamic_linker="$host_os dld.so"
  8341. shlibpath_var=LD_LIBRARY_PATH
  8342. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8344. soname_spec='${libname}${release}${shared_ext}$major'
  8345. if test "X$HPUX_IA64_MODE" = X32; then
  8346. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8347. else
  8348. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8349. fi
  8350. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8351. ;;
  8352. hppa*64*)
  8353. shrext_cmds='.sl'
  8354. hardcode_into_libs=yes
  8355. dynamic_linker="$host_os dld.sl"
  8356. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8357. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8359. soname_spec='${libname}${release}${shared_ext}$major'
  8360. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8361. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8362. ;;
  8363. *)
  8364. shrext_cmds='.sl'
  8365. dynamic_linker="$host_os dld.sl"
  8366. shlibpath_var=SHLIB_PATH
  8367. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8369. soname_spec='${libname}${release}${shared_ext}$major'
  8370. ;;
  8371. esac
  8372. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8373. postinstall_cmds='chmod 555 $lib'
  8374. ;;
  8375. interix[3-9]*)
  8376. version_type=linux
  8377. need_lib_prefix=no
  8378. need_version=no
  8379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8380. soname_spec='${libname}${release}${shared_ext}$major'
  8381. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8382. shlibpath_var=LD_LIBRARY_PATH
  8383. shlibpath_overrides_runpath=no
  8384. hardcode_into_libs=yes
  8385. ;;
  8386. irix5* | irix6* | nonstopux*)
  8387. case $host_os in
  8388. nonstopux*) version_type=nonstopux ;;
  8389. *)
  8390. if test "$lt_cv_prog_gnu_ld" = yes; then
  8391. version_type=linux
  8392. else
  8393. version_type=irix
  8394. fi ;;
  8395. esac
  8396. need_lib_prefix=no
  8397. need_version=no
  8398. soname_spec='${libname}${release}${shared_ext}$major'
  8399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8400. case $host_os in
  8401. irix5* | nonstopux*)
  8402. libsuff= shlibsuff=
  8403. ;;
  8404. *)
  8405. case $LD in # libtool.m4 will add one of these switches to LD
  8406. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8407. libsuff= shlibsuff= libmagic=32-bit;;
  8408. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8409. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8410. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8411. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8412. *) libsuff= shlibsuff= libmagic=never-match;;
  8413. esac
  8414. ;;
  8415. esac
  8416. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8417. shlibpath_overrides_runpath=no
  8418. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8419. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8420. hardcode_into_libs=yes
  8421. ;;
  8422. # No shared lib support for Linux oldld, aout, or coff.
  8423. linux*oldld* | linux*aout* | linux*coff*)
  8424. dynamic_linker=no
  8425. ;;
  8426. # This must be Linux ELF.
  8427. linux* | k*bsd*-gnu)
  8428. version_type=linux
  8429. need_lib_prefix=no
  8430. need_version=no
  8431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8432. soname_spec='${libname}${release}${shared_ext}$major'
  8433. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8434. shlibpath_var=LD_LIBRARY_PATH
  8435. shlibpath_overrides_runpath=no
  8436. # Some binutils ld are patched to set DT_RUNPATH
  8437. save_LDFLAGS=$LDFLAGS
  8438. save_libdir=$libdir
  8439. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8440. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8441. cat >conftest.$ac_ext <<_ACEOF
  8442. /* confdefs.h. */
  8443. _ACEOF
  8444. cat confdefs.h >>conftest.$ac_ext
  8445. cat >>conftest.$ac_ext <<_ACEOF
  8446. /* end confdefs.h. */
  8447. int
  8448. main ()
  8449. {
  8450. ;
  8451. return 0;
  8452. }
  8453. _ACEOF
  8454. rm -f conftest.$ac_objext conftest$ac_exeext
  8455. if { (ac_try="$ac_link"
  8456. case "(($ac_try" in
  8457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8458. *) ac_try_echo=$ac_try;;
  8459. esac
  8460. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8461. $as_echo "$ac_try_echo") >&5
  8462. (eval "$ac_link") 2>conftest.er1
  8463. ac_status=$?
  8464. grep -v '^ *+' conftest.er1 >conftest.err
  8465. rm -f conftest.er1
  8466. cat conftest.err >&5
  8467. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8468. (exit $ac_status); } && {
  8469. test -z "$ac_c_werror_flag" ||
  8470. test ! -s conftest.err
  8471. } && test -s conftest$ac_exeext && {
  8472. test "$cross_compiling" = yes ||
  8473. $as_test_x conftest$ac_exeext
  8474. }; then
  8475. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8476. shlibpath_overrides_runpath=yes
  8477. fi
  8478. else
  8479. $as_echo "$as_me: failed program was:" >&5
  8480. sed 's/^/| /' conftest.$ac_ext >&5
  8481. fi
  8482. rm -rf conftest.dSYM
  8483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8484. conftest$ac_exeext conftest.$ac_ext
  8485. LDFLAGS=$save_LDFLAGS
  8486. libdir=$save_libdir
  8487. # This implies no fast_install, which is unacceptable.
  8488. # Some rework will be needed to allow for fast_install
  8489. # before this can be enabled.
  8490. hardcode_into_libs=yes
  8491. # Append ld.so.conf contents to the search path
  8492. if test -f /etc/ld.so.conf; then
  8493. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8494. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8495. fi
  8496. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8497. # powerpc, because MkLinux only supported shared libraries with the
  8498. # GNU dynamic linker. Since this was broken with cross compilers,
  8499. # most powerpc-linux boxes support dynamic linking these days and
  8500. # people can always --disable-shared, the test was removed, and we
  8501. # assume the GNU/Linux dynamic linker is in use.
  8502. dynamic_linker='GNU/Linux ld.so'
  8503. ;;
  8504. netbsdelf*-gnu)
  8505. version_type=linux
  8506. need_lib_prefix=no
  8507. need_version=no
  8508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8509. soname_spec='${libname}${release}${shared_ext}$major'
  8510. shlibpath_var=LD_LIBRARY_PATH
  8511. shlibpath_overrides_runpath=no
  8512. hardcode_into_libs=yes
  8513. dynamic_linker='NetBSD ld.elf_so'
  8514. ;;
  8515. netbsd*)
  8516. version_type=sunos
  8517. need_lib_prefix=no
  8518. need_version=no
  8519. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8521. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8522. dynamic_linker='NetBSD (a.out) ld.so'
  8523. else
  8524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8525. soname_spec='${libname}${release}${shared_ext}$major'
  8526. dynamic_linker='NetBSD ld.elf_so'
  8527. fi
  8528. shlibpath_var=LD_LIBRARY_PATH
  8529. shlibpath_overrides_runpath=yes
  8530. hardcode_into_libs=yes
  8531. ;;
  8532. newsos6)
  8533. version_type=linux
  8534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8535. shlibpath_var=LD_LIBRARY_PATH
  8536. shlibpath_overrides_runpath=yes
  8537. ;;
  8538. *nto* | *qnx*)
  8539. version_type=qnx
  8540. need_lib_prefix=no
  8541. need_version=no
  8542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8543. soname_spec='${libname}${release}${shared_ext}$major'
  8544. shlibpath_var=LD_LIBRARY_PATH
  8545. shlibpath_overrides_runpath=no
  8546. hardcode_into_libs=yes
  8547. dynamic_linker='ldqnx.so'
  8548. ;;
  8549. openbsd*)
  8550. version_type=sunos
  8551. sys_lib_dlsearch_path_spec="/usr/lib"
  8552. need_lib_prefix=no
  8553. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8554. case $host_os in
  8555. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8556. *) need_version=no ;;
  8557. esac
  8558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8559. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8560. shlibpath_var=LD_LIBRARY_PATH
  8561. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8562. case $host_os in
  8563. openbsd2.[89] | openbsd2.[89].*)
  8564. shlibpath_overrides_runpath=no
  8565. ;;
  8566. *)
  8567. shlibpath_overrides_runpath=yes
  8568. ;;
  8569. esac
  8570. else
  8571. shlibpath_overrides_runpath=yes
  8572. fi
  8573. ;;
  8574. os2*)
  8575. libname_spec='$name'
  8576. shrext_cmds=".dll"
  8577. need_lib_prefix=no
  8578. library_names_spec='$libname${shared_ext} $libname.a'
  8579. dynamic_linker='OS/2 ld.exe'
  8580. shlibpath_var=LIBPATH
  8581. ;;
  8582. osf3* | osf4* | osf5*)
  8583. version_type=osf
  8584. need_lib_prefix=no
  8585. need_version=no
  8586. soname_spec='${libname}${release}${shared_ext}$major'
  8587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8588. shlibpath_var=LD_LIBRARY_PATH
  8589. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8590. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8591. ;;
  8592. rdos*)
  8593. dynamic_linker=no
  8594. ;;
  8595. solaris*)
  8596. version_type=linux
  8597. need_lib_prefix=no
  8598. need_version=no
  8599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8600. soname_spec='${libname}${release}${shared_ext}$major'
  8601. shlibpath_var=LD_LIBRARY_PATH
  8602. shlibpath_overrides_runpath=yes
  8603. hardcode_into_libs=yes
  8604. # ldd complains unless libraries are executable
  8605. postinstall_cmds='chmod +x $lib'
  8606. ;;
  8607. sunos4*)
  8608. version_type=sunos
  8609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8610. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8611. shlibpath_var=LD_LIBRARY_PATH
  8612. shlibpath_overrides_runpath=yes
  8613. if test "$with_gnu_ld" = yes; then
  8614. need_lib_prefix=no
  8615. fi
  8616. need_version=yes
  8617. ;;
  8618. sysv4 | sysv4.3*)
  8619. version_type=linux
  8620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8621. soname_spec='${libname}${release}${shared_ext}$major'
  8622. shlibpath_var=LD_LIBRARY_PATH
  8623. case $host_vendor in
  8624. sni)
  8625. shlibpath_overrides_runpath=no
  8626. need_lib_prefix=no
  8627. runpath_var=LD_RUN_PATH
  8628. ;;
  8629. siemens)
  8630. need_lib_prefix=no
  8631. ;;
  8632. motorola)
  8633. need_lib_prefix=no
  8634. need_version=no
  8635. shlibpath_overrides_runpath=no
  8636. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8637. ;;
  8638. esac
  8639. ;;
  8640. sysv4*MP*)
  8641. if test -d /usr/nec ;then
  8642. version_type=linux
  8643. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8644. soname_spec='$libname${shared_ext}.$major'
  8645. shlibpath_var=LD_LIBRARY_PATH
  8646. fi
  8647. ;;
  8648. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8649. version_type=freebsd-elf
  8650. need_lib_prefix=no
  8651. need_version=no
  8652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8653. soname_spec='${libname}${release}${shared_ext}$major'
  8654. shlibpath_var=LD_LIBRARY_PATH
  8655. shlibpath_overrides_runpath=yes
  8656. hardcode_into_libs=yes
  8657. if test "$with_gnu_ld" = yes; then
  8658. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8659. else
  8660. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8661. case $host_os in
  8662. sco3.2v5*)
  8663. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8664. ;;
  8665. esac
  8666. fi
  8667. sys_lib_dlsearch_path_spec='/usr/lib'
  8668. ;;
  8669. tpf*)
  8670. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8671. version_type=linux
  8672. need_lib_prefix=no
  8673. need_version=no
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8675. shlibpath_var=LD_LIBRARY_PATH
  8676. shlibpath_overrides_runpath=no
  8677. hardcode_into_libs=yes
  8678. ;;
  8679. uts4*)
  8680. version_type=linux
  8681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8682. soname_spec='${libname}${release}${shared_ext}$major'
  8683. shlibpath_var=LD_LIBRARY_PATH
  8684. ;;
  8685. *)
  8686. dynamic_linker=no
  8687. ;;
  8688. esac
  8689. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8690. $as_echo "$dynamic_linker" >&6; }
  8691. test "$dynamic_linker" = no && can_build_shared=no
  8692. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8693. if test "$GCC" = yes; then
  8694. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8695. fi
  8696. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8697. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8698. fi
  8699. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8700. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8701. fi
  8702. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8703. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8704. hardcode_action=
  8705. if test -n "$hardcode_libdir_flag_spec" ||
  8706. test -n "$runpath_var" ||
  8707. test "X$hardcode_automatic" = "Xyes" ; then
  8708. # We can hardcode non-existent directories.
  8709. if test "$hardcode_direct" != no &&
  8710. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8711. # have to relink, otherwise we might link with an installed library
  8712. # when we should be linking with a yet-to-be-installed one
  8713. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8714. test "$hardcode_minus_L" != no; then
  8715. # Linking always hardcodes the temporary library directory.
  8716. hardcode_action=relink
  8717. else
  8718. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8719. hardcode_action=immediate
  8720. fi
  8721. else
  8722. # We cannot hardcode anything, or else we can only hardcode existing
  8723. # directories.
  8724. hardcode_action=unsupported
  8725. fi
  8726. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8727. $as_echo "$hardcode_action" >&6; }
  8728. if test "$hardcode_action" = relink ||
  8729. test "$inherit_rpath" = yes; then
  8730. # Fast installation is not supported
  8731. enable_fast_install=no
  8732. elif test "$shlibpath_overrides_runpath" = yes ||
  8733. test "$enable_shared" = no; then
  8734. # Fast installation is not necessary
  8735. enable_fast_install=needless
  8736. fi
  8737. if test "x$enable_dlopen" != xyes; then
  8738. enable_dlopen=unknown
  8739. enable_dlopen_self=unknown
  8740. enable_dlopen_self_static=unknown
  8741. else
  8742. lt_cv_dlopen=no
  8743. lt_cv_dlopen_libs=
  8744. case $host_os in
  8745. beos*)
  8746. lt_cv_dlopen="load_add_on"
  8747. lt_cv_dlopen_libs=
  8748. lt_cv_dlopen_self=yes
  8749. ;;
  8750. mingw* | pw32* | cegcc*)
  8751. lt_cv_dlopen="LoadLibrary"
  8752. lt_cv_dlopen_libs=
  8753. ;;
  8754. cygwin*)
  8755. lt_cv_dlopen="dlopen"
  8756. lt_cv_dlopen_libs=
  8757. ;;
  8758. darwin*)
  8759. # if libdl is installed we need to link against it
  8760. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8761. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8762. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8763. $as_echo_n "(cached) " >&6
  8764. else
  8765. ac_check_lib_save_LIBS=$LIBS
  8766. LIBS="-ldl $LIBS"
  8767. cat >conftest.$ac_ext <<_ACEOF
  8768. /* confdefs.h. */
  8769. _ACEOF
  8770. cat confdefs.h >>conftest.$ac_ext
  8771. cat >>conftest.$ac_ext <<_ACEOF
  8772. /* end confdefs.h. */
  8773. /* Override any GCC internal prototype to avoid an error.
  8774. Use char because int might match the return type of a GCC
  8775. builtin and then its argument prototype would still apply. */
  8776. #ifdef __cplusplus
  8777. extern "C"
  8778. #endif
  8779. char dlopen ();
  8780. int
  8781. main ()
  8782. {
  8783. return dlopen ();
  8784. ;
  8785. return 0;
  8786. }
  8787. _ACEOF
  8788. rm -f conftest.$ac_objext conftest$ac_exeext
  8789. if { (ac_try="$ac_link"
  8790. case "(($ac_try" in
  8791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8792. *) ac_try_echo=$ac_try;;
  8793. esac
  8794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8795. $as_echo "$ac_try_echo") >&5
  8796. (eval "$ac_link") 2>conftest.er1
  8797. ac_status=$?
  8798. grep -v '^ *+' conftest.er1 >conftest.err
  8799. rm -f conftest.er1
  8800. cat conftest.err >&5
  8801. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8802. (exit $ac_status); } && {
  8803. test -z "$ac_c_werror_flag" ||
  8804. test ! -s conftest.err
  8805. } && test -s conftest$ac_exeext && {
  8806. test "$cross_compiling" = yes ||
  8807. $as_test_x conftest$ac_exeext
  8808. }; then
  8809. ac_cv_lib_dl_dlopen=yes
  8810. else
  8811. $as_echo "$as_me: failed program was:" >&5
  8812. sed 's/^/| /' conftest.$ac_ext >&5
  8813. ac_cv_lib_dl_dlopen=no
  8814. fi
  8815. rm -rf conftest.dSYM
  8816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8817. conftest$ac_exeext conftest.$ac_ext
  8818. LIBS=$ac_check_lib_save_LIBS
  8819. fi
  8820. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8821. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8822. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8823. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8824. else
  8825. lt_cv_dlopen="dyld"
  8826. lt_cv_dlopen_libs=
  8827. lt_cv_dlopen_self=yes
  8828. fi
  8829. ;;
  8830. *)
  8831. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  8832. $as_echo_n "checking for shl_load... " >&6; }
  8833. if test "${ac_cv_func_shl_load+set}" = set; then
  8834. $as_echo_n "(cached) " >&6
  8835. else
  8836. cat >conftest.$ac_ext <<_ACEOF
  8837. /* confdefs.h. */
  8838. _ACEOF
  8839. cat confdefs.h >>conftest.$ac_ext
  8840. cat >>conftest.$ac_ext <<_ACEOF
  8841. /* end confdefs.h. */
  8842. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8843. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8844. #define shl_load innocuous_shl_load
  8845. /* System header to define __stub macros and hopefully few prototypes,
  8846. which can conflict with char shl_load (); below.
  8847. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8848. <limits.h> exists even on freestanding compilers. */
  8849. #ifdef __STDC__
  8850. # include <limits.h>
  8851. #else
  8852. # include <assert.h>
  8853. #endif
  8854. #undef shl_load
  8855. /* Override any GCC internal prototype to avoid an error.
  8856. Use char because int might match the return type of a GCC
  8857. builtin and then its argument prototype would still apply. */
  8858. #ifdef __cplusplus
  8859. extern "C"
  8860. #endif
  8861. char shl_load ();
  8862. /* The GNU C library defines this for functions which it implements
  8863. to always fail with ENOSYS. Some functions are actually named
  8864. something starting with __ and the normal name is an alias. */
  8865. #if defined __stub_shl_load || defined __stub___shl_load
  8866. choke me
  8867. #endif
  8868. int
  8869. main ()
  8870. {
  8871. return shl_load ();
  8872. ;
  8873. return 0;
  8874. }
  8875. _ACEOF
  8876. rm -f conftest.$ac_objext conftest$ac_exeext
  8877. if { (ac_try="$ac_link"
  8878. case "(($ac_try" in
  8879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8880. *) ac_try_echo=$ac_try;;
  8881. esac
  8882. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8883. $as_echo "$ac_try_echo") >&5
  8884. (eval "$ac_link") 2>conftest.er1
  8885. ac_status=$?
  8886. grep -v '^ *+' conftest.er1 >conftest.err
  8887. rm -f conftest.er1
  8888. cat conftest.err >&5
  8889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8890. (exit $ac_status); } && {
  8891. test -z "$ac_c_werror_flag" ||
  8892. test ! -s conftest.err
  8893. } && test -s conftest$ac_exeext && {
  8894. test "$cross_compiling" = yes ||
  8895. $as_test_x conftest$ac_exeext
  8896. }; then
  8897. ac_cv_func_shl_load=yes
  8898. else
  8899. $as_echo "$as_me: failed program was:" >&5
  8900. sed 's/^/| /' conftest.$ac_ext >&5
  8901. ac_cv_func_shl_load=no
  8902. fi
  8903. rm -rf conftest.dSYM
  8904. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8905. conftest$ac_exeext conftest.$ac_ext
  8906. fi
  8907. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8908. $as_echo "$ac_cv_func_shl_load" >&6; }
  8909. if test "x$ac_cv_func_shl_load" = x""yes; then
  8910. lt_cv_dlopen="shl_load"
  8911. else
  8912. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8913. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8914. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8915. $as_echo_n "(cached) " >&6
  8916. else
  8917. ac_check_lib_save_LIBS=$LIBS
  8918. LIBS="-ldld $LIBS"
  8919. cat >conftest.$ac_ext <<_ACEOF
  8920. /* confdefs.h. */
  8921. _ACEOF
  8922. cat confdefs.h >>conftest.$ac_ext
  8923. cat >>conftest.$ac_ext <<_ACEOF
  8924. /* end confdefs.h. */
  8925. /* Override any GCC internal prototype to avoid an error.
  8926. Use char because int might match the return type of a GCC
  8927. builtin and then its argument prototype would still apply. */
  8928. #ifdef __cplusplus
  8929. extern "C"
  8930. #endif
  8931. char shl_load ();
  8932. int
  8933. main ()
  8934. {
  8935. return shl_load ();
  8936. ;
  8937. return 0;
  8938. }
  8939. _ACEOF
  8940. rm -f conftest.$ac_objext conftest$ac_exeext
  8941. if { (ac_try="$ac_link"
  8942. case "(($ac_try" in
  8943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8944. *) ac_try_echo=$ac_try;;
  8945. esac
  8946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8947. $as_echo "$ac_try_echo") >&5
  8948. (eval "$ac_link") 2>conftest.er1
  8949. ac_status=$?
  8950. grep -v '^ *+' conftest.er1 >conftest.err
  8951. rm -f conftest.er1
  8952. cat conftest.err >&5
  8953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8954. (exit $ac_status); } && {
  8955. test -z "$ac_c_werror_flag" ||
  8956. test ! -s conftest.err
  8957. } && test -s conftest$ac_exeext && {
  8958. test "$cross_compiling" = yes ||
  8959. $as_test_x conftest$ac_exeext
  8960. }; then
  8961. ac_cv_lib_dld_shl_load=yes
  8962. else
  8963. $as_echo "$as_me: failed program was:" >&5
  8964. sed 's/^/| /' conftest.$ac_ext >&5
  8965. ac_cv_lib_dld_shl_load=no
  8966. fi
  8967. rm -rf conftest.dSYM
  8968. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8969. conftest$ac_exeext conftest.$ac_ext
  8970. LIBS=$ac_check_lib_save_LIBS
  8971. fi
  8972. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8973. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8974. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  8975. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8976. else
  8977. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  8978. $as_echo_n "checking for dlopen... " >&6; }
  8979. if test "${ac_cv_func_dlopen+set}" = set; then
  8980. $as_echo_n "(cached) " >&6
  8981. else
  8982. cat >conftest.$ac_ext <<_ACEOF
  8983. /* confdefs.h. */
  8984. _ACEOF
  8985. cat confdefs.h >>conftest.$ac_ext
  8986. cat >>conftest.$ac_ext <<_ACEOF
  8987. /* end confdefs.h. */
  8988. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8989. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8990. #define dlopen innocuous_dlopen
  8991. /* System header to define __stub macros and hopefully few prototypes,
  8992. which can conflict with char dlopen (); below.
  8993. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8994. <limits.h> exists even on freestanding compilers. */
  8995. #ifdef __STDC__
  8996. # include <limits.h>
  8997. #else
  8998. # include <assert.h>
  8999. #endif
  9000. #undef dlopen
  9001. /* Override any GCC internal prototype to avoid an error.
  9002. Use char because int might match the return type of a GCC
  9003. builtin and then its argument prototype would still apply. */
  9004. #ifdef __cplusplus
  9005. extern "C"
  9006. #endif
  9007. char dlopen ();
  9008. /* The GNU C library defines this for functions which it implements
  9009. to always fail with ENOSYS. Some functions are actually named
  9010. something starting with __ and the normal name is an alias. */
  9011. #if defined __stub_dlopen || defined __stub___dlopen
  9012. choke me
  9013. #endif
  9014. int
  9015. main ()
  9016. {
  9017. return dlopen ();
  9018. ;
  9019. return 0;
  9020. }
  9021. _ACEOF
  9022. rm -f conftest.$ac_objext conftest$ac_exeext
  9023. if { (ac_try="$ac_link"
  9024. case "(($ac_try" in
  9025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9026. *) ac_try_echo=$ac_try;;
  9027. esac
  9028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9029. $as_echo "$ac_try_echo") >&5
  9030. (eval "$ac_link") 2>conftest.er1
  9031. ac_status=$?
  9032. grep -v '^ *+' conftest.er1 >conftest.err
  9033. rm -f conftest.er1
  9034. cat conftest.err >&5
  9035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9036. (exit $ac_status); } && {
  9037. test -z "$ac_c_werror_flag" ||
  9038. test ! -s conftest.err
  9039. } && test -s conftest$ac_exeext && {
  9040. test "$cross_compiling" = yes ||
  9041. $as_test_x conftest$ac_exeext
  9042. }; then
  9043. ac_cv_func_dlopen=yes
  9044. else
  9045. $as_echo "$as_me: failed program was:" >&5
  9046. sed 's/^/| /' conftest.$ac_ext >&5
  9047. ac_cv_func_dlopen=no
  9048. fi
  9049. rm -rf conftest.dSYM
  9050. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9051. conftest$ac_exeext conftest.$ac_ext
  9052. fi
  9053. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9054. $as_echo "$ac_cv_func_dlopen" >&6; }
  9055. if test "x$ac_cv_func_dlopen" = x""yes; then
  9056. lt_cv_dlopen="dlopen"
  9057. else
  9058. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9059. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9060. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9061. $as_echo_n "(cached) " >&6
  9062. else
  9063. ac_check_lib_save_LIBS=$LIBS
  9064. LIBS="-ldl $LIBS"
  9065. cat >conftest.$ac_ext <<_ACEOF
  9066. /* confdefs.h. */
  9067. _ACEOF
  9068. cat confdefs.h >>conftest.$ac_ext
  9069. cat >>conftest.$ac_ext <<_ACEOF
  9070. /* end confdefs.h. */
  9071. /* Override any GCC internal prototype to avoid an error.
  9072. Use char because int might match the return type of a GCC
  9073. builtin and then its argument prototype would still apply. */
  9074. #ifdef __cplusplus
  9075. extern "C"
  9076. #endif
  9077. char dlopen ();
  9078. int
  9079. main ()
  9080. {
  9081. return dlopen ();
  9082. ;
  9083. return 0;
  9084. }
  9085. _ACEOF
  9086. rm -f conftest.$ac_objext conftest$ac_exeext
  9087. if { (ac_try="$ac_link"
  9088. case "(($ac_try" in
  9089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9090. *) ac_try_echo=$ac_try;;
  9091. esac
  9092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9093. $as_echo "$ac_try_echo") >&5
  9094. (eval "$ac_link") 2>conftest.er1
  9095. ac_status=$?
  9096. grep -v '^ *+' conftest.er1 >conftest.err
  9097. rm -f conftest.er1
  9098. cat conftest.err >&5
  9099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9100. (exit $ac_status); } && {
  9101. test -z "$ac_c_werror_flag" ||
  9102. test ! -s conftest.err
  9103. } && test -s conftest$ac_exeext && {
  9104. test "$cross_compiling" = yes ||
  9105. $as_test_x conftest$ac_exeext
  9106. }; then
  9107. ac_cv_lib_dl_dlopen=yes
  9108. else
  9109. $as_echo "$as_me: failed program was:" >&5
  9110. sed 's/^/| /' conftest.$ac_ext >&5
  9111. ac_cv_lib_dl_dlopen=no
  9112. fi
  9113. rm -rf conftest.dSYM
  9114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9115. conftest$ac_exeext conftest.$ac_ext
  9116. LIBS=$ac_check_lib_save_LIBS
  9117. fi
  9118. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9119. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9120. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9121. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9122. else
  9123. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9124. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9125. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9126. $as_echo_n "(cached) " >&6
  9127. else
  9128. ac_check_lib_save_LIBS=$LIBS
  9129. LIBS="-lsvld $LIBS"
  9130. cat >conftest.$ac_ext <<_ACEOF
  9131. /* confdefs.h. */
  9132. _ACEOF
  9133. cat confdefs.h >>conftest.$ac_ext
  9134. cat >>conftest.$ac_ext <<_ACEOF
  9135. /* end confdefs.h. */
  9136. /* Override any GCC internal prototype to avoid an error.
  9137. Use char because int might match the return type of a GCC
  9138. builtin and then its argument prototype would still apply. */
  9139. #ifdef __cplusplus
  9140. extern "C"
  9141. #endif
  9142. char dlopen ();
  9143. int
  9144. main ()
  9145. {
  9146. return dlopen ();
  9147. ;
  9148. return 0;
  9149. }
  9150. _ACEOF
  9151. rm -f conftest.$ac_objext conftest$ac_exeext
  9152. if { (ac_try="$ac_link"
  9153. case "(($ac_try" in
  9154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9155. *) ac_try_echo=$ac_try;;
  9156. esac
  9157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9158. $as_echo "$ac_try_echo") >&5
  9159. (eval "$ac_link") 2>conftest.er1
  9160. ac_status=$?
  9161. grep -v '^ *+' conftest.er1 >conftest.err
  9162. rm -f conftest.er1
  9163. cat conftest.err >&5
  9164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9165. (exit $ac_status); } && {
  9166. test -z "$ac_c_werror_flag" ||
  9167. test ! -s conftest.err
  9168. } && test -s conftest$ac_exeext && {
  9169. test "$cross_compiling" = yes ||
  9170. $as_test_x conftest$ac_exeext
  9171. }; then
  9172. ac_cv_lib_svld_dlopen=yes
  9173. else
  9174. $as_echo "$as_me: failed program was:" >&5
  9175. sed 's/^/| /' conftest.$ac_ext >&5
  9176. ac_cv_lib_svld_dlopen=no
  9177. fi
  9178. rm -rf conftest.dSYM
  9179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9180. conftest$ac_exeext conftest.$ac_ext
  9181. LIBS=$ac_check_lib_save_LIBS
  9182. fi
  9183. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9184. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9185. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9186. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9187. else
  9188. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9189. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9190. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9191. $as_echo_n "(cached) " >&6
  9192. else
  9193. ac_check_lib_save_LIBS=$LIBS
  9194. LIBS="-ldld $LIBS"
  9195. cat >conftest.$ac_ext <<_ACEOF
  9196. /* confdefs.h. */
  9197. _ACEOF
  9198. cat confdefs.h >>conftest.$ac_ext
  9199. cat >>conftest.$ac_ext <<_ACEOF
  9200. /* end confdefs.h. */
  9201. /* Override any GCC internal prototype to avoid an error.
  9202. Use char because int might match the return type of a GCC
  9203. builtin and then its argument prototype would still apply. */
  9204. #ifdef __cplusplus
  9205. extern "C"
  9206. #endif
  9207. char dld_link ();
  9208. int
  9209. main ()
  9210. {
  9211. return dld_link ();
  9212. ;
  9213. return 0;
  9214. }
  9215. _ACEOF
  9216. rm -f conftest.$ac_objext conftest$ac_exeext
  9217. if { (ac_try="$ac_link"
  9218. case "(($ac_try" in
  9219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9220. *) ac_try_echo=$ac_try;;
  9221. esac
  9222. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9223. $as_echo "$ac_try_echo") >&5
  9224. (eval "$ac_link") 2>conftest.er1
  9225. ac_status=$?
  9226. grep -v '^ *+' conftest.er1 >conftest.err
  9227. rm -f conftest.er1
  9228. cat conftest.err >&5
  9229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9230. (exit $ac_status); } && {
  9231. test -z "$ac_c_werror_flag" ||
  9232. test ! -s conftest.err
  9233. } && test -s conftest$ac_exeext && {
  9234. test "$cross_compiling" = yes ||
  9235. $as_test_x conftest$ac_exeext
  9236. }; then
  9237. ac_cv_lib_dld_dld_link=yes
  9238. else
  9239. $as_echo "$as_me: failed program was:" >&5
  9240. sed 's/^/| /' conftest.$ac_ext >&5
  9241. ac_cv_lib_dld_dld_link=no
  9242. fi
  9243. rm -rf conftest.dSYM
  9244. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9245. conftest$ac_exeext conftest.$ac_ext
  9246. LIBS=$ac_check_lib_save_LIBS
  9247. fi
  9248. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9249. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9250. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9251. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9252. fi
  9253. fi
  9254. fi
  9255. fi
  9256. fi
  9257. fi
  9258. ;;
  9259. esac
  9260. if test "x$lt_cv_dlopen" != xno; then
  9261. enable_dlopen=yes
  9262. else
  9263. enable_dlopen=no
  9264. fi
  9265. case $lt_cv_dlopen in
  9266. dlopen)
  9267. save_CPPFLAGS="$CPPFLAGS"
  9268. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9269. save_LDFLAGS="$LDFLAGS"
  9270. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9271. save_LIBS="$LIBS"
  9272. LIBS="$lt_cv_dlopen_libs $LIBS"
  9273. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9274. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9275. if test "${lt_cv_dlopen_self+set}" = set; then
  9276. $as_echo_n "(cached) " >&6
  9277. else
  9278. if test "$cross_compiling" = yes; then :
  9279. lt_cv_dlopen_self=cross
  9280. else
  9281. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9282. lt_status=$lt_dlunknown
  9283. cat > conftest.$ac_ext <<_LT_EOF
  9284. #line 10869 "configure"
  9285. #include "confdefs.h"
  9286. #if HAVE_DLFCN_H
  9287. #include <dlfcn.h>
  9288. #endif
  9289. #include <stdio.h>
  9290. #ifdef RTLD_GLOBAL
  9291. # define LT_DLGLOBAL RTLD_GLOBAL
  9292. #else
  9293. # ifdef DL_GLOBAL
  9294. # define LT_DLGLOBAL DL_GLOBAL
  9295. # else
  9296. # define LT_DLGLOBAL 0
  9297. # endif
  9298. #endif
  9299. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9300. find out it does not work in some platform. */
  9301. #ifndef LT_DLLAZY_OR_NOW
  9302. # ifdef RTLD_LAZY
  9303. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9304. # else
  9305. # ifdef DL_LAZY
  9306. # define LT_DLLAZY_OR_NOW DL_LAZY
  9307. # else
  9308. # ifdef RTLD_NOW
  9309. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9310. # else
  9311. # ifdef DL_NOW
  9312. # define LT_DLLAZY_OR_NOW DL_NOW
  9313. # else
  9314. # define LT_DLLAZY_OR_NOW 0
  9315. # endif
  9316. # endif
  9317. # endif
  9318. # endif
  9319. #endif
  9320. void fnord() { int i=42;}
  9321. int main ()
  9322. {
  9323. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9324. int status = $lt_dlunknown;
  9325. if (self)
  9326. {
  9327. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9328. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9329. /* dlclose (self); */
  9330. }
  9331. else
  9332. puts (dlerror ());
  9333. return status;
  9334. }
  9335. _LT_EOF
  9336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9337. (eval $ac_link) 2>&5
  9338. ac_status=$?
  9339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9340. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9341. (./conftest; exit; ) >&5 2>/dev/null
  9342. lt_status=$?
  9343. case x$lt_status in
  9344. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9345. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9346. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9347. esac
  9348. else :
  9349. # compilation failed
  9350. lt_cv_dlopen_self=no
  9351. fi
  9352. fi
  9353. rm -fr conftest*
  9354. fi
  9355. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9356. $as_echo "$lt_cv_dlopen_self" >&6; }
  9357. if test "x$lt_cv_dlopen_self" = xyes; then
  9358. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9359. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9360. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9361. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9362. $as_echo_n "(cached) " >&6
  9363. else
  9364. if test "$cross_compiling" = yes; then :
  9365. lt_cv_dlopen_self_static=cross
  9366. else
  9367. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9368. lt_status=$lt_dlunknown
  9369. cat > conftest.$ac_ext <<_LT_EOF
  9370. #line 10965 "configure"
  9371. #include "confdefs.h"
  9372. #if HAVE_DLFCN_H
  9373. #include <dlfcn.h>
  9374. #endif
  9375. #include <stdio.h>
  9376. #ifdef RTLD_GLOBAL
  9377. # define LT_DLGLOBAL RTLD_GLOBAL
  9378. #else
  9379. # ifdef DL_GLOBAL
  9380. # define LT_DLGLOBAL DL_GLOBAL
  9381. # else
  9382. # define LT_DLGLOBAL 0
  9383. # endif
  9384. #endif
  9385. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9386. find out it does not work in some platform. */
  9387. #ifndef LT_DLLAZY_OR_NOW
  9388. # ifdef RTLD_LAZY
  9389. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9390. # else
  9391. # ifdef DL_LAZY
  9392. # define LT_DLLAZY_OR_NOW DL_LAZY
  9393. # else
  9394. # ifdef RTLD_NOW
  9395. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9396. # else
  9397. # ifdef DL_NOW
  9398. # define LT_DLLAZY_OR_NOW DL_NOW
  9399. # else
  9400. # define LT_DLLAZY_OR_NOW 0
  9401. # endif
  9402. # endif
  9403. # endif
  9404. # endif
  9405. #endif
  9406. void fnord() { int i=42;}
  9407. int main ()
  9408. {
  9409. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9410. int status = $lt_dlunknown;
  9411. if (self)
  9412. {
  9413. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9414. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9415. /* dlclose (self); */
  9416. }
  9417. else
  9418. puts (dlerror ());
  9419. return status;
  9420. }
  9421. _LT_EOF
  9422. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9423. (eval $ac_link) 2>&5
  9424. ac_status=$?
  9425. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9426. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9427. (./conftest; exit; ) >&5 2>/dev/null
  9428. lt_status=$?
  9429. case x$lt_status in
  9430. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9431. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9432. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9433. esac
  9434. else :
  9435. # compilation failed
  9436. lt_cv_dlopen_self_static=no
  9437. fi
  9438. fi
  9439. rm -fr conftest*
  9440. fi
  9441. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9442. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9443. fi
  9444. CPPFLAGS="$save_CPPFLAGS"
  9445. LDFLAGS="$save_LDFLAGS"
  9446. LIBS="$save_LIBS"
  9447. ;;
  9448. esac
  9449. case $lt_cv_dlopen_self in
  9450. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9451. *) enable_dlopen_self=unknown ;;
  9452. esac
  9453. case $lt_cv_dlopen_self_static in
  9454. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9455. *) enable_dlopen_self_static=unknown ;;
  9456. esac
  9457. fi
  9458. striplib=
  9459. old_striplib=
  9460. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9461. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9462. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9463. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9464. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9465. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9466. $as_echo "yes" >&6; }
  9467. else
  9468. # FIXME - insert some real tests, host_os isn't really good enough
  9469. case $host_os in
  9470. darwin*)
  9471. if test -n "$STRIP" ; then
  9472. striplib="$STRIP -x"
  9473. old_striplib="$STRIP -S"
  9474. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9475. $as_echo "yes" >&6; }
  9476. else
  9477. { $as_echo "$as_me:$LINENO: result: no" >&5
  9478. $as_echo "no" >&6; }
  9479. fi
  9480. ;;
  9481. *)
  9482. { $as_echo "$as_me:$LINENO: result: no" >&5
  9483. $as_echo "no" >&6; }
  9484. ;;
  9485. esac
  9486. fi
  9487. # Report which library types will actually be built
  9488. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9489. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9490. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9491. $as_echo "$can_build_shared" >&6; }
  9492. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9493. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9494. test "$can_build_shared" = "no" && enable_shared=no
  9495. # On AIX, shared libraries and static libraries use the same namespace, and
  9496. # are all built from PIC.
  9497. case $host_os in
  9498. aix3*)
  9499. test "$enable_shared" = yes && enable_static=no
  9500. if test -n "$RANLIB"; then
  9501. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9502. postinstall_cmds='$RANLIB $lib'
  9503. fi
  9504. ;;
  9505. aix[4-9]*)
  9506. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9507. test "$enable_shared" = yes && enable_static=no
  9508. fi
  9509. ;;
  9510. esac
  9511. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9512. $as_echo "$enable_shared" >&6; }
  9513. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9514. $as_echo_n "checking whether to build static libraries... " >&6; }
  9515. # Make sure either enable_shared or enable_static is yes.
  9516. test "$enable_shared" = yes || enable_static=yes
  9517. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9518. $as_echo "$enable_static" >&6; }
  9519. fi
  9520. ac_ext=c
  9521. ac_cpp='$CPP $CPPFLAGS'
  9522. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9523. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9524. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9525. CC="$lt_save_CC"
  9526. ac_config_commands="$ac_config_commands libtool"
  9527. # Only expand once:
  9528. arch=""
  9529. debug=""
  9530. optimize=""
  9531. profile=""
  9532. set -- $CFLAGS
  9533. CFLAGS=""
  9534. if test "$GCC" = yes
  9535. then
  9536. CFLAGS="-Wall"
  9537. fi
  9538. while test $# -gt 0
  9539. do
  9540. case "$1" in
  9541. -Wall)
  9542. if test "$GCC" = yes
  9543. then
  9544. :
  9545. else
  9546. CFLAGS="$CFLAGS $1"
  9547. fi
  9548. shift
  9549. ;;
  9550. -g)
  9551. debug="-g"
  9552. shift
  9553. ;;
  9554. -mno-cygwin)
  9555. shift
  9556. ;;
  9557. -m*)
  9558. arch="$arch $1"
  9559. shift
  9560. ;;
  9561. -O2)
  9562. optimize="-O"
  9563. shift
  9564. ;;
  9565. -fomit-frame-pointer)
  9566. shift
  9567. ;;
  9568. -O*|-f*)
  9569. optimize="$optimize $1"
  9570. shift
  9571. ;;
  9572. *)
  9573. CFLAGS="$CFLAGS $1"
  9574. shift
  9575. ;;
  9576. esac
  9577. done
  9578. if test "$GCC" = yes
  9579. then
  9580. if test -z "$arch"
  9581. then
  9582. case "$host" in
  9583. i386-*) ;;
  9584. i?86-*) arch="-march=i486" ;;
  9585. arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
  9586. armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
  9587. powerpc-*) ;;
  9588. mips*-agenda-*) arch="-mcpu=vr4100" ;;
  9589. mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
  9590. esac
  9591. fi
  9592. case "$optimize" in
  9593. -O|"-O "*)
  9594. optimize="-O"
  9595. #optimize="$optimize -fforce-mem"
  9596. optimize="$optimize -fforce-addr"
  9597. : #x optimize="$optimize -finline-functions"
  9598. : #- optimize="$optimize -fstrength-reduce"
  9599. optimize="$optimize -fthread-jumps"
  9600. optimize="$optimize -fcse-follow-jumps"
  9601. optimize="$optimize -fcse-skip-blocks"
  9602. : #x optimize="$optimize -frerun-cse-after-loop"
  9603. : #x optimize="$optimize -frerun-loop-opt"
  9604. : #x optimize="$optimize -fgcse"
  9605. optimize="$optimize -fexpensive-optimizations"
  9606. optimize="$optimize -fregmove"
  9607. : #* optimize="$optimize -fdelayed-branch"
  9608. : #x optimize="$optimize -fschedule-insns"
  9609. optimize="$optimize -fschedule-insns2"
  9610. : #? optimize="$optimize -ffunction-sections"
  9611. : #? optimize="$optimize -fcaller-saves"
  9612. : #> optimize="$optimize -funroll-loops"
  9613. : #> optimize="$optimize -funroll-all-loops"
  9614. : #x optimize="$optimize -fmove-all-movables"
  9615. : #x optimize="$optimize -freduce-all-givs"
  9616. : #? optimize="$optimize -fstrict-aliasing"
  9617. : #* optimize="$optimize -fstructure-noalias"
  9618. case "$host" in
  9619. arm*-*)
  9620. optimize="$optimize -fstrength-reduce"
  9621. ;;
  9622. mips*-*)
  9623. optimize="$optimize -fstrength-reduce"
  9624. optimize="$optimize -finline-functions"
  9625. ;;
  9626. i?86-*)
  9627. optimize="$optimize -fstrength-reduce"
  9628. ;;
  9629. powerpc-apple-*)
  9630. # this triggers an internal compiler error with gcc2
  9631. : #optimize="$optimize -fstrength-reduce"
  9632. # this is really only beneficial with gcc3
  9633. : #optimize="$optimize -finline-functions"
  9634. ;;
  9635. *)
  9636. # this sometimes provokes bugs in gcc 2.95.2
  9637. : #optimize="$optimize -fstrength-reduce"
  9638. ;;
  9639. esac
  9640. ;;
  9641. esac
  9642. fi
  9643. case "$host" in
  9644. mips*-agenda-*)
  9645. cat >>confdefs.h <<\_ACEOF
  9646. #define HAVE_MADD16_ASM 1
  9647. _ACEOF
  9648. ;;
  9649. mips*-luxsonor-*)
  9650. cat >>confdefs.h <<\_ACEOF
  9651. #define HAVE_MADD_ASM 1
  9652. _ACEOF
  9653. ;;
  9654. esac
  9655. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  9656. $as_echo_n "checking for ANSI C header files... " >&6; }
  9657. if test "${ac_cv_header_stdc+set}" = set; then
  9658. $as_echo_n "(cached) " >&6
  9659. else
  9660. cat >conftest.$ac_ext <<_ACEOF
  9661. /* confdefs.h. */
  9662. _ACEOF
  9663. cat confdefs.h >>conftest.$ac_ext
  9664. cat >>conftest.$ac_ext <<_ACEOF
  9665. /* end confdefs.h. */
  9666. #include <stdlib.h>
  9667. #include <stdarg.h>
  9668. #include <string.h>
  9669. #include <float.h>
  9670. int
  9671. main ()
  9672. {
  9673. ;
  9674. return 0;
  9675. }
  9676. _ACEOF
  9677. rm -f conftest.$ac_objext
  9678. if { (ac_try="$ac_compile"
  9679. case "(($ac_try" in
  9680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9681. *) ac_try_echo=$ac_try;;
  9682. esac
  9683. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9684. $as_echo "$ac_try_echo") >&5
  9685. (eval "$ac_compile") 2>conftest.er1
  9686. ac_status=$?
  9687. grep -v '^ *+' conftest.er1 >conftest.err
  9688. rm -f conftest.er1
  9689. cat conftest.err >&5
  9690. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9691. (exit $ac_status); } && {
  9692. test -z "$ac_c_werror_flag" ||
  9693. test ! -s conftest.err
  9694. } && test -s conftest.$ac_objext; then
  9695. ac_cv_header_stdc=yes
  9696. else
  9697. $as_echo "$as_me: failed program was:" >&5
  9698. sed 's/^/| /' conftest.$ac_ext >&5
  9699. ac_cv_header_stdc=no
  9700. fi
  9701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9702. if test $ac_cv_header_stdc = yes; then
  9703. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9704. cat >conftest.$ac_ext <<_ACEOF
  9705. /* confdefs.h. */
  9706. _ACEOF
  9707. cat confdefs.h >>conftest.$ac_ext
  9708. cat >>conftest.$ac_ext <<_ACEOF
  9709. /* end confdefs.h. */
  9710. #include <string.h>
  9711. _ACEOF
  9712. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9713. $EGREP "memchr" >/dev/null 2>&1; then
  9714. :
  9715. else
  9716. ac_cv_header_stdc=no
  9717. fi
  9718. rm -f conftest*
  9719. fi
  9720. if test $ac_cv_header_stdc = yes; then
  9721. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9722. cat >conftest.$ac_ext <<_ACEOF
  9723. /* confdefs.h. */
  9724. _ACEOF
  9725. cat confdefs.h >>conftest.$ac_ext
  9726. cat >>conftest.$ac_ext <<_ACEOF
  9727. /* end confdefs.h. */
  9728. #include <stdlib.h>
  9729. _ACEOF
  9730. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9731. $EGREP "free" >/dev/null 2>&1; then
  9732. :
  9733. else
  9734. ac_cv_header_stdc=no
  9735. fi
  9736. rm -f conftest*
  9737. fi
  9738. if test $ac_cv_header_stdc = yes; then
  9739. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9740. if test "$cross_compiling" = yes; then
  9741. :
  9742. else
  9743. cat >conftest.$ac_ext <<_ACEOF
  9744. /* confdefs.h. */
  9745. _ACEOF
  9746. cat confdefs.h >>conftest.$ac_ext
  9747. cat >>conftest.$ac_ext <<_ACEOF
  9748. /* end confdefs.h. */
  9749. #include <ctype.h>
  9750. #include <stdlib.h>
  9751. #if ((' ' & 0x0FF) == 0x020)
  9752. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9753. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9754. #else
  9755. # define ISLOWER(c) \
  9756. (('a' <= (c) && (c) <= 'i') \
  9757. || ('j' <= (c) && (c) <= 'r') \
  9758. || ('s' <= (c) && (c) <= 'z'))
  9759. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9760. #endif
  9761. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9762. int
  9763. main ()
  9764. {
  9765. int i;
  9766. for (i = 0; i < 256; i++)
  9767. if (XOR (islower (i), ISLOWER (i))
  9768. || toupper (i) != TOUPPER (i))
  9769. return 2;
  9770. return 0;
  9771. }
  9772. _ACEOF
  9773. rm -f conftest$ac_exeext
  9774. if { (ac_try="$ac_link"
  9775. case "(($ac_try" in
  9776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9777. *) ac_try_echo=$ac_try;;
  9778. esac
  9779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9780. $as_echo "$ac_try_echo") >&5
  9781. (eval "$ac_link") 2>&5
  9782. ac_status=$?
  9783. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9784. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9785. { (case "(($ac_try" in
  9786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9787. *) ac_try_echo=$ac_try;;
  9788. esac
  9789. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9790. $as_echo "$ac_try_echo") >&5
  9791. (eval "$ac_try") 2>&5
  9792. ac_status=$?
  9793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9794. (exit $ac_status); }; }; then
  9795. :
  9796. else
  9797. $as_echo "$as_me: program exited with status $ac_status" >&5
  9798. $as_echo "$as_me: failed program was:" >&5
  9799. sed 's/^/| /' conftest.$ac_ext >&5
  9800. ( exit $ac_status )
  9801. ac_cv_header_stdc=no
  9802. fi
  9803. rm -rf conftest.dSYM
  9804. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9805. fi
  9806. fi
  9807. fi
  9808. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  9809. $as_echo "$ac_cv_header_stdc" >&6; }
  9810. if test $ac_cv_header_stdc = yes; then
  9811. cat >>confdefs.h <<\_ACEOF
  9812. #define STDC_HEADERS 1
  9813. _ACEOF
  9814. fi
  9815. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  9816. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  9817. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  9818. $as_echo_n "(cached) " >&6
  9819. else
  9820. cat >conftest.$ac_ext <<_ACEOF
  9821. /* confdefs.h. */
  9822. _ACEOF
  9823. cat confdefs.h >>conftest.$ac_ext
  9824. cat >>conftest.$ac_ext <<_ACEOF
  9825. /* end confdefs.h. */
  9826. #include <sys/types.h>
  9827. #include <sys/wait.h>
  9828. #ifndef WEXITSTATUS
  9829. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  9830. #endif
  9831. #ifndef WIFEXITED
  9832. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  9833. #endif
  9834. int
  9835. main ()
  9836. {
  9837. int s;
  9838. wait (&s);
  9839. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  9840. ;
  9841. return 0;
  9842. }
  9843. _ACEOF
  9844. rm -f conftest.$ac_objext
  9845. if { (ac_try="$ac_compile"
  9846. case "(($ac_try" in
  9847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9848. *) ac_try_echo=$ac_try;;
  9849. esac
  9850. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9851. $as_echo "$ac_try_echo") >&5
  9852. (eval "$ac_compile") 2>conftest.er1
  9853. ac_status=$?
  9854. grep -v '^ *+' conftest.er1 >conftest.err
  9855. rm -f conftest.er1
  9856. cat conftest.err >&5
  9857. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9858. (exit $ac_status); } && {
  9859. test -z "$ac_c_werror_flag" ||
  9860. test ! -s conftest.err
  9861. } && test -s conftest.$ac_objext; then
  9862. ac_cv_header_sys_wait_h=yes
  9863. else
  9864. $as_echo "$as_me: failed program was:" >&5
  9865. sed 's/^/| /' conftest.$ac_ext >&5
  9866. ac_cv_header_sys_wait_h=no
  9867. fi
  9868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9869. fi
  9870. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  9871. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  9872. if test $ac_cv_header_sys_wait_h = yes; then
  9873. cat >>confdefs.h <<\_ACEOF
  9874. #define HAVE_SYS_WAIT_H 1
  9875. _ACEOF
  9876. fi
  9877. for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h
  9878. do
  9879. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9880. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9881. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9882. $as_echo_n "checking for $ac_header... " >&6; }
  9883. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9884. $as_echo_n "(cached) " >&6
  9885. fi
  9886. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9887. $as_echo "$as_val"'`
  9888. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9889. $as_echo "$ac_res" >&6; }
  9890. else
  9891. # Is the header compilable?
  9892. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9893. $as_echo_n "checking $ac_header usability... " >&6; }
  9894. cat >conftest.$ac_ext <<_ACEOF
  9895. /* confdefs.h. */
  9896. _ACEOF
  9897. cat confdefs.h >>conftest.$ac_ext
  9898. cat >>conftest.$ac_ext <<_ACEOF
  9899. /* end confdefs.h. */
  9900. $ac_includes_default
  9901. #include <$ac_header>
  9902. _ACEOF
  9903. rm -f conftest.$ac_objext
  9904. if { (ac_try="$ac_compile"
  9905. case "(($ac_try" in
  9906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9907. *) ac_try_echo=$ac_try;;
  9908. esac
  9909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9910. $as_echo "$ac_try_echo") >&5
  9911. (eval "$ac_compile") 2>conftest.er1
  9912. ac_status=$?
  9913. grep -v '^ *+' conftest.er1 >conftest.err
  9914. rm -f conftest.er1
  9915. cat conftest.err >&5
  9916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9917. (exit $ac_status); } && {
  9918. test -z "$ac_c_werror_flag" ||
  9919. test ! -s conftest.err
  9920. } && test -s conftest.$ac_objext; then
  9921. ac_header_compiler=yes
  9922. else
  9923. $as_echo "$as_me: failed program was:" >&5
  9924. sed 's/^/| /' conftest.$ac_ext >&5
  9925. ac_header_compiler=no
  9926. fi
  9927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9928. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9929. $as_echo "$ac_header_compiler" >&6; }
  9930. # Is the header present?
  9931. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9932. $as_echo_n "checking $ac_header presence... " >&6; }
  9933. cat >conftest.$ac_ext <<_ACEOF
  9934. /* confdefs.h. */
  9935. _ACEOF
  9936. cat confdefs.h >>conftest.$ac_ext
  9937. cat >>conftest.$ac_ext <<_ACEOF
  9938. /* end confdefs.h. */
  9939. #include <$ac_header>
  9940. _ACEOF
  9941. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9942. case "(($ac_try" in
  9943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9944. *) ac_try_echo=$ac_try;;
  9945. esac
  9946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9947. $as_echo "$ac_try_echo") >&5
  9948. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9949. ac_status=$?
  9950. grep -v '^ *+' conftest.er1 >conftest.err
  9951. rm -f conftest.er1
  9952. cat conftest.err >&5
  9953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9954. (exit $ac_status); } >/dev/null && {
  9955. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9956. test ! -s conftest.err
  9957. }; then
  9958. ac_header_preproc=yes
  9959. else
  9960. $as_echo "$as_me: failed program was:" >&5
  9961. sed 's/^/| /' conftest.$ac_ext >&5
  9962. ac_header_preproc=no
  9963. fi
  9964. rm -f conftest.err conftest.$ac_ext
  9965. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9966. $as_echo "$ac_header_preproc" >&6; }
  9967. # So? What about this header?
  9968. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9969. yes:no: )
  9970. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9971. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9972. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9973. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9974. ac_header_preproc=yes
  9975. ;;
  9976. no:yes:* )
  9977. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9978. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9979. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9980. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9981. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9982. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9983. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9984. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9985. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9986. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9987. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9988. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9989. ( cat <<\_ASBOX
  9990. ## ----------------------------------- ##
  9991. ## Report this to support@underbit.com ##
  9992. ## ----------------------------------- ##
  9993. _ASBOX
  9994. ) | sed "s/^/$as_me: WARNING: /" >&2
  9995. ;;
  9996. esac
  9997. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9998. $as_echo_n "checking for $ac_header... " >&6; }
  9999. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10000. $as_echo_n "(cached) " >&6
  10001. else
  10002. eval "$as_ac_Header=\$ac_header_preproc"
  10003. fi
  10004. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10005. $as_echo "$as_val"'`
  10006. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10007. $as_echo "$ac_res" >&6; }
  10008. fi
  10009. as_val=`eval 'as_val=${'$as_ac_Header'}
  10010. $as_echo "$as_val"'`
  10011. if test "x$as_val" = x""yes; then
  10012. cat >>confdefs.h <<_ACEOF
  10013. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10014. _ACEOF
  10015. fi
  10016. done
  10017. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  10018. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10019. if test "${ac_cv_c_const+set}" = set; then
  10020. $as_echo_n "(cached) " >&6
  10021. else
  10022. cat >conftest.$ac_ext <<_ACEOF
  10023. /* confdefs.h. */
  10024. _ACEOF
  10025. cat confdefs.h >>conftest.$ac_ext
  10026. cat >>conftest.$ac_ext <<_ACEOF
  10027. /* end confdefs.h. */
  10028. int
  10029. main ()
  10030. {
  10031. /* FIXME: Include the comments suggested by Paul. */
  10032. #ifndef __cplusplus
  10033. /* Ultrix mips cc rejects this. */
  10034. typedef int charset[2];
  10035. const charset cs;
  10036. /* SunOS 4.1.1 cc rejects this. */
  10037. char const *const *pcpcc;
  10038. char **ppc;
  10039. /* NEC SVR4.0.2 mips cc rejects this. */
  10040. struct point {int x, y;};
  10041. static struct point const zero = {0,0};
  10042. /* AIX XL C 1.02.0.0 rejects this.
  10043. It does not let you subtract one const X* pointer from another in
  10044. an arm of an if-expression whose if-part is not a constant
  10045. expression */
  10046. const char *g = "string";
  10047. pcpcc = &g + (g ? g-g : 0);
  10048. /* HPUX 7.0 cc rejects these. */
  10049. ++pcpcc;
  10050. ppc = (char**) pcpcc;
  10051. pcpcc = (char const *const *) ppc;
  10052. { /* SCO 3.2v4 cc rejects this. */
  10053. char *t;
  10054. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10055. *t++ = 0;
  10056. if (s) return 0;
  10057. }
  10058. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10059. int x[] = {25, 17};
  10060. const int *foo = &x[0];
  10061. ++foo;
  10062. }
  10063. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10064. typedef const int *iptr;
  10065. iptr p = 0;
  10066. ++p;
  10067. }
  10068. { /* AIX XL C 1.02.0.0 rejects this saying
  10069. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10070. struct s { int j; const int *ap[3]; };
  10071. struct s *b; b->j = 5;
  10072. }
  10073. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10074. const int foo = 10;
  10075. if (!foo) return 0;
  10076. }
  10077. return !cs[0] && !zero.x;
  10078. #endif
  10079. ;
  10080. return 0;
  10081. }
  10082. _ACEOF
  10083. rm -f conftest.$ac_objext
  10084. if { (ac_try="$ac_compile"
  10085. case "(($ac_try" in
  10086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10087. *) ac_try_echo=$ac_try;;
  10088. esac
  10089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10090. $as_echo "$ac_try_echo") >&5
  10091. (eval "$ac_compile") 2>conftest.er1
  10092. ac_status=$?
  10093. grep -v '^ *+' conftest.er1 >conftest.err
  10094. rm -f conftest.er1
  10095. cat conftest.err >&5
  10096. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10097. (exit $ac_status); } && {
  10098. test -z "$ac_c_werror_flag" ||
  10099. test ! -s conftest.err
  10100. } && test -s conftest.$ac_objext; then
  10101. ac_cv_c_const=yes
  10102. else
  10103. $as_echo "$as_me: failed program was:" >&5
  10104. sed 's/^/| /' conftest.$ac_ext >&5
  10105. ac_cv_c_const=no
  10106. fi
  10107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10108. fi
  10109. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  10110. $as_echo "$ac_cv_c_const" >&6; }
  10111. if test $ac_cv_c_const = no; then
  10112. cat >>confdefs.h <<\_ACEOF
  10113. #define const /**/
  10114. _ACEOF
  10115. fi
  10116. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  10117. $as_echo_n "checking for inline... " >&6; }
  10118. if test "${ac_cv_c_inline+set}" = set; then
  10119. $as_echo_n "(cached) " >&6
  10120. else
  10121. ac_cv_c_inline=no
  10122. for ac_kw in inline __inline__ __inline; do
  10123. cat >conftest.$ac_ext <<_ACEOF
  10124. /* confdefs.h. */
  10125. _ACEOF
  10126. cat confdefs.h >>conftest.$ac_ext
  10127. cat >>conftest.$ac_ext <<_ACEOF
  10128. /* end confdefs.h. */
  10129. #ifndef __cplusplus
  10130. typedef int foo_t;
  10131. static $ac_kw foo_t static_foo () {return 0; }
  10132. $ac_kw foo_t foo () {return 0; }
  10133. #endif
  10134. _ACEOF
  10135. rm -f conftest.$ac_objext
  10136. if { (ac_try="$ac_compile"
  10137. case "(($ac_try" in
  10138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10139. *) ac_try_echo=$ac_try;;
  10140. esac
  10141. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10142. $as_echo "$ac_try_echo") >&5
  10143. (eval "$ac_compile") 2>conftest.er1
  10144. ac_status=$?
  10145. grep -v '^ *+' conftest.er1 >conftest.err
  10146. rm -f conftest.er1
  10147. cat conftest.err >&5
  10148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10149. (exit $ac_status); } && {
  10150. test -z "$ac_c_werror_flag" ||
  10151. test ! -s conftest.err
  10152. } && test -s conftest.$ac_objext; then
  10153. ac_cv_c_inline=$ac_kw
  10154. else
  10155. $as_echo "$as_me: failed program was:" >&5
  10156. sed 's/^/| /' conftest.$ac_ext >&5
  10157. fi
  10158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10159. test "$ac_cv_c_inline" != no && break
  10160. done
  10161. fi
  10162. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  10163. $as_echo "$ac_cv_c_inline" >&6; }
  10164. case $ac_cv_c_inline in
  10165. inline | yes) ;;
  10166. *)
  10167. case $ac_cv_c_inline in
  10168. no) ac_val=;;
  10169. *) ac_val=$ac_cv_c_inline;;
  10170. esac
  10171. cat >>confdefs.h <<_ACEOF
  10172. #ifndef __cplusplus
  10173. #define inline $ac_val
  10174. #endif
  10175. _ACEOF
  10176. ;;
  10177. esac
  10178. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  10179. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10180. if test "${ac_cv_c_bigendian+set}" = set; then
  10181. $as_echo_n "(cached) " >&6
  10182. else
  10183. ac_cv_c_bigendian=unknown
  10184. # See if we're dealing with a universal compiler.
  10185. cat >conftest.$ac_ext <<_ACEOF
  10186. /* confdefs.h. */
  10187. _ACEOF
  10188. cat confdefs.h >>conftest.$ac_ext
  10189. cat >>conftest.$ac_ext <<_ACEOF
  10190. /* end confdefs.h. */
  10191. #ifndef __APPLE_CC__
  10192. not a universal capable compiler
  10193. #endif
  10194. typedef int dummy;
  10195. _ACEOF
  10196. rm -f conftest.$ac_objext
  10197. if { (ac_try="$ac_compile"
  10198. case "(($ac_try" in
  10199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10200. *) ac_try_echo=$ac_try;;
  10201. esac
  10202. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10203. $as_echo "$ac_try_echo") >&5
  10204. (eval "$ac_compile") 2>conftest.er1
  10205. ac_status=$?
  10206. grep -v '^ *+' conftest.er1 >conftest.err
  10207. rm -f conftest.er1
  10208. cat conftest.err >&5
  10209. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10210. (exit $ac_status); } && {
  10211. test -z "$ac_c_werror_flag" ||
  10212. test ! -s conftest.err
  10213. } && test -s conftest.$ac_objext; then
  10214. # Check for potential -arch flags. It is not universal unless
  10215. # there are some -arch flags. Note that *ppc* also matches
  10216. # ppc64. This check is also rather less than ideal.
  10217. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  10218. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  10219. esac
  10220. else
  10221. $as_echo "$as_me: failed program was:" >&5
  10222. sed 's/^/| /' conftest.$ac_ext >&5
  10223. fi
  10224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10225. if test $ac_cv_c_bigendian = unknown; then
  10226. # See if sys/param.h defines the BYTE_ORDER macro.
  10227. cat >conftest.$ac_ext <<_ACEOF
  10228. /* confdefs.h. */
  10229. _ACEOF
  10230. cat confdefs.h >>conftest.$ac_ext
  10231. cat >>conftest.$ac_ext <<_ACEOF
  10232. /* end confdefs.h. */
  10233. #include <sys/types.h>
  10234. #include <sys/param.h>
  10235. int
  10236. main ()
  10237. {
  10238. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10239. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10240. && LITTLE_ENDIAN)
  10241. bogus endian macros
  10242. #endif
  10243. ;
  10244. return 0;
  10245. }
  10246. _ACEOF
  10247. rm -f conftest.$ac_objext
  10248. if { (ac_try="$ac_compile"
  10249. case "(($ac_try" in
  10250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10251. *) ac_try_echo=$ac_try;;
  10252. esac
  10253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10254. $as_echo "$ac_try_echo") >&5
  10255. (eval "$ac_compile") 2>conftest.er1
  10256. ac_status=$?
  10257. grep -v '^ *+' conftest.er1 >conftest.err
  10258. rm -f conftest.er1
  10259. cat conftest.err >&5
  10260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10261. (exit $ac_status); } && {
  10262. test -z "$ac_c_werror_flag" ||
  10263. test ! -s conftest.err
  10264. } && test -s conftest.$ac_objext; then
  10265. # It does; now see whether it defined to BIG_ENDIAN or not.
  10266. cat >conftest.$ac_ext <<_ACEOF
  10267. /* confdefs.h. */
  10268. _ACEOF
  10269. cat confdefs.h >>conftest.$ac_ext
  10270. cat >>conftest.$ac_ext <<_ACEOF
  10271. /* end confdefs.h. */
  10272. #include <sys/types.h>
  10273. #include <sys/param.h>
  10274. int
  10275. main ()
  10276. {
  10277. #if BYTE_ORDER != BIG_ENDIAN
  10278. not big endian
  10279. #endif
  10280. ;
  10281. return 0;
  10282. }
  10283. _ACEOF
  10284. rm -f conftest.$ac_objext
  10285. if { (ac_try="$ac_compile"
  10286. case "(($ac_try" in
  10287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10288. *) ac_try_echo=$ac_try;;
  10289. esac
  10290. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10291. $as_echo "$ac_try_echo") >&5
  10292. (eval "$ac_compile") 2>conftest.er1
  10293. ac_status=$?
  10294. grep -v '^ *+' conftest.er1 >conftest.err
  10295. rm -f conftest.er1
  10296. cat conftest.err >&5
  10297. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10298. (exit $ac_status); } && {
  10299. test -z "$ac_c_werror_flag" ||
  10300. test ! -s conftest.err
  10301. } && test -s conftest.$ac_objext; then
  10302. ac_cv_c_bigendian=yes
  10303. else
  10304. $as_echo "$as_me: failed program was:" >&5
  10305. sed 's/^/| /' conftest.$ac_ext >&5
  10306. ac_cv_c_bigendian=no
  10307. fi
  10308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10309. else
  10310. $as_echo "$as_me: failed program was:" >&5
  10311. sed 's/^/| /' conftest.$ac_ext >&5
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10314. fi
  10315. if test $ac_cv_c_bigendian = unknown; then
  10316. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10317. cat >conftest.$ac_ext <<_ACEOF
  10318. /* confdefs.h. */
  10319. _ACEOF
  10320. cat confdefs.h >>conftest.$ac_ext
  10321. cat >>conftest.$ac_ext <<_ACEOF
  10322. /* end confdefs.h. */
  10323. #include <limits.h>
  10324. int
  10325. main ()
  10326. {
  10327. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10328. bogus endian macros
  10329. #endif
  10330. ;
  10331. return 0;
  10332. }
  10333. _ACEOF
  10334. rm -f conftest.$ac_objext
  10335. if { (ac_try="$ac_compile"
  10336. case "(($ac_try" in
  10337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10338. *) ac_try_echo=$ac_try;;
  10339. esac
  10340. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10341. $as_echo "$ac_try_echo") >&5
  10342. (eval "$ac_compile") 2>conftest.er1
  10343. ac_status=$?
  10344. grep -v '^ *+' conftest.er1 >conftest.err
  10345. rm -f conftest.er1
  10346. cat conftest.err >&5
  10347. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10348. (exit $ac_status); } && {
  10349. test -z "$ac_c_werror_flag" ||
  10350. test ! -s conftest.err
  10351. } && test -s conftest.$ac_objext; then
  10352. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10353. cat >conftest.$ac_ext <<_ACEOF
  10354. /* confdefs.h. */
  10355. _ACEOF
  10356. cat confdefs.h >>conftest.$ac_ext
  10357. cat >>conftest.$ac_ext <<_ACEOF
  10358. /* end confdefs.h. */
  10359. #include <limits.h>
  10360. int
  10361. main ()
  10362. {
  10363. #ifndef _BIG_ENDIAN
  10364. not big endian
  10365. #endif
  10366. ;
  10367. return 0;
  10368. }
  10369. _ACEOF
  10370. rm -f conftest.$ac_objext
  10371. if { (ac_try="$ac_compile"
  10372. case "(($ac_try" in
  10373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10374. *) ac_try_echo=$ac_try;;
  10375. esac
  10376. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10377. $as_echo "$ac_try_echo") >&5
  10378. (eval "$ac_compile") 2>conftest.er1
  10379. ac_status=$?
  10380. grep -v '^ *+' conftest.er1 >conftest.err
  10381. rm -f conftest.er1
  10382. cat conftest.err >&5
  10383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10384. (exit $ac_status); } && {
  10385. test -z "$ac_c_werror_flag" ||
  10386. test ! -s conftest.err
  10387. } && test -s conftest.$ac_objext; then
  10388. ac_cv_c_bigendian=yes
  10389. else
  10390. $as_echo "$as_me: failed program was:" >&5
  10391. sed 's/^/| /' conftest.$ac_ext >&5
  10392. ac_cv_c_bigendian=no
  10393. fi
  10394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10395. else
  10396. $as_echo "$as_me: failed program was:" >&5
  10397. sed 's/^/| /' conftest.$ac_ext >&5
  10398. fi
  10399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10400. fi
  10401. if test $ac_cv_c_bigendian = unknown; then
  10402. # Compile a test program.
  10403. if test "$cross_compiling" = yes; then
  10404. # Try to guess by grepping values from an object file.
  10405. cat >conftest.$ac_ext <<_ACEOF
  10406. /* confdefs.h. */
  10407. _ACEOF
  10408. cat confdefs.h >>conftest.$ac_ext
  10409. cat >>conftest.$ac_ext <<_ACEOF
  10410. /* end confdefs.h. */
  10411. short int ascii_mm[] =
  10412. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10413. short int ascii_ii[] =
  10414. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10415. int use_ascii (int i) {
  10416. return ascii_mm[i] + ascii_ii[i];
  10417. }
  10418. short int ebcdic_ii[] =
  10419. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10420. short int ebcdic_mm[] =
  10421. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10422. int use_ebcdic (int i) {
  10423. return ebcdic_mm[i] + ebcdic_ii[i];
  10424. }
  10425. extern int foo;
  10426. int
  10427. main ()
  10428. {
  10429. return use_ascii (foo) == use_ebcdic (foo);
  10430. ;
  10431. return 0;
  10432. }
  10433. _ACEOF
  10434. rm -f conftest.$ac_objext
  10435. if { (ac_try="$ac_compile"
  10436. case "(($ac_try" in
  10437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10438. *) ac_try_echo=$ac_try;;
  10439. esac
  10440. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10441. $as_echo "$ac_try_echo") >&5
  10442. (eval "$ac_compile") 2>conftest.er1
  10443. ac_status=$?
  10444. grep -v '^ *+' conftest.er1 >conftest.err
  10445. rm -f conftest.er1
  10446. cat conftest.err >&5
  10447. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10448. (exit $ac_status); } && {
  10449. test -z "$ac_c_werror_flag" ||
  10450. test ! -s conftest.err
  10451. } && test -s conftest.$ac_objext; then
  10452. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10453. ac_cv_c_bigendian=yes
  10454. fi
  10455. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10456. if test "$ac_cv_c_bigendian" = unknown; then
  10457. ac_cv_c_bigendian=no
  10458. else
  10459. # finding both strings is unlikely to happen, but who knows?
  10460. ac_cv_c_bigendian=unknown
  10461. fi
  10462. fi
  10463. else
  10464. $as_echo "$as_me: failed program was:" >&5
  10465. sed 's/^/| /' conftest.$ac_ext >&5
  10466. fi
  10467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10468. else
  10469. cat >conftest.$ac_ext <<_ACEOF
  10470. /* confdefs.h. */
  10471. _ACEOF
  10472. cat confdefs.h >>conftest.$ac_ext
  10473. cat >>conftest.$ac_ext <<_ACEOF
  10474. /* end confdefs.h. */
  10475. $ac_includes_default
  10476. int
  10477. main ()
  10478. {
  10479. /* Are we little or big endian? From Harbison&Steele. */
  10480. union
  10481. {
  10482. long int l;
  10483. char c[sizeof (long int)];
  10484. } u;
  10485. u.l = 1;
  10486. return u.c[sizeof (long int) - 1] == 1;
  10487. ;
  10488. return 0;
  10489. }
  10490. _ACEOF
  10491. rm -f conftest$ac_exeext
  10492. if { (ac_try="$ac_link"
  10493. case "(($ac_try" in
  10494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10495. *) ac_try_echo=$ac_try;;
  10496. esac
  10497. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10498. $as_echo "$ac_try_echo") >&5
  10499. (eval "$ac_link") 2>&5
  10500. ac_status=$?
  10501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10502. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10503. { (case "(($ac_try" in
  10504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10505. *) ac_try_echo=$ac_try;;
  10506. esac
  10507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10508. $as_echo "$ac_try_echo") >&5
  10509. (eval "$ac_try") 2>&5
  10510. ac_status=$?
  10511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10512. (exit $ac_status); }; }; then
  10513. ac_cv_c_bigendian=no
  10514. else
  10515. $as_echo "$as_me: program exited with status $ac_status" >&5
  10516. $as_echo "$as_me: failed program was:" >&5
  10517. sed 's/^/| /' conftest.$ac_ext >&5
  10518. ( exit $ac_status )
  10519. ac_cv_c_bigendian=yes
  10520. fi
  10521. rm -rf conftest.dSYM
  10522. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10523. fi
  10524. fi
  10525. fi
  10526. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  10527. $as_echo "$ac_cv_c_bigendian" >&6; }
  10528. case $ac_cv_c_bigendian in #(
  10529. yes)
  10530. cat >>confdefs.h <<\_ACEOF
  10531. #define WORDS_BIGENDIAN 1
  10532. _ACEOF
  10533. ;; #(
  10534. no)
  10535. ;; #(
  10536. universal)
  10537. cat >>confdefs.h <<\_ACEOF
  10538. #define AC_APPLE_UNIVERSAL_BUILD 1
  10539. _ACEOF
  10540. ;; #(
  10541. *)
  10542. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  10543. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  10544. $as_echo "$as_me: error: unknown endianness
  10545. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  10546. { (exit 1); exit 1; }; } ;;
  10547. esac
  10548. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  10549. $as_echo_n "checking for pid_t... " >&6; }
  10550. if test "${ac_cv_type_pid_t+set}" = set; then
  10551. $as_echo_n "(cached) " >&6
  10552. else
  10553. ac_cv_type_pid_t=no
  10554. cat >conftest.$ac_ext <<_ACEOF
  10555. /* confdefs.h. */
  10556. _ACEOF
  10557. cat confdefs.h >>conftest.$ac_ext
  10558. cat >>conftest.$ac_ext <<_ACEOF
  10559. /* end confdefs.h. */
  10560. $ac_includes_default
  10561. int
  10562. main ()
  10563. {
  10564. if (sizeof (pid_t))
  10565. return 0;
  10566. ;
  10567. return 0;
  10568. }
  10569. _ACEOF
  10570. rm -f conftest.$ac_objext
  10571. if { (ac_try="$ac_compile"
  10572. case "(($ac_try" in
  10573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10574. *) ac_try_echo=$ac_try;;
  10575. esac
  10576. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10577. $as_echo "$ac_try_echo") >&5
  10578. (eval "$ac_compile") 2>conftest.er1
  10579. ac_status=$?
  10580. grep -v '^ *+' conftest.er1 >conftest.err
  10581. rm -f conftest.er1
  10582. cat conftest.err >&5
  10583. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10584. (exit $ac_status); } && {
  10585. test -z "$ac_c_werror_flag" ||
  10586. test ! -s conftest.err
  10587. } && test -s conftest.$ac_objext; then
  10588. cat >conftest.$ac_ext <<_ACEOF
  10589. /* confdefs.h. */
  10590. _ACEOF
  10591. cat confdefs.h >>conftest.$ac_ext
  10592. cat >>conftest.$ac_ext <<_ACEOF
  10593. /* end confdefs.h. */
  10594. $ac_includes_default
  10595. int
  10596. main ()
  10597. {
  10598. if (sizeof ((pid_t)))
  10599. return 0;
  10600. ;
  10601. return 0;
  10602. }
  10603. _ACEOF
  10604. rm -f conftest.$ac_objext
  10605. if { (ac_try="$ac_compile"
  10606. case "(($ac_try" in
  10607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10608. *) ac_try_echo=$ac_try;;
  10609. esac
  10610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10611. $as_echo "$ac_try_echo") >&5
  10612. (eval "$ac_compile") 2>conftest.er1
  10613. ac_status=$?
  10614. grep -v '^ *+' conftest.er1 >conftest.err
  10615. rm -f conftest.er1
  10616. cat conftest.err >&5
  10617. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10618. (exit $ac_status); } && {
  10619. test -z "$ac_c_werror_flag" ||
  10620. test ! -s conftest.err
  10621. } && test -s conftest.$ac_objext; then
  10622. :
  10623. else
  10624. $as_echo "$as_me: failed program was:" >&5
  10625. sed 's/^/| /' conftest.$ac_ext >&5
  10626. ac_cv_type_pid_t=yes
  10627. fi
  10628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10629. else
  10630. $as_echo "$as_me: failed program was:" >&5
  10631. sed 's/^/| /' conftest.$ac_ext >&5
  10632. fi
  10633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10634. fi
  10635. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  10636. $as_echo "$ac_cv_type_pid_t" >&6; }
  10637. if test "x$ac_cv_type_pid_t" = x""yes; then
  10638. :
  10639. else
  10640. cat >>confdefs.h <<_ACEOF
  10641. #define pid_t int
  10642. _ACEOF
  10643. fi
  10644. # The cast to long int works around a bug in the HP C Compiler
  10645. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10646. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10647. # This bug is HP SR number 8606223364.
  10648. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  10649. $as_echo_n "checking size of int... " >&6; }
  10650. if test "${ac_cv_sizeof_int+set}" = set; then
  10651. $as_echo_n "(cached) " >&6
  10652. else
  10653. if test "$cross_compiling" = yes; then
  10654. # Depending upon the size, compute the lo and hi bounds.
  10655. cat >conftest.$ac_ext <<_ACEOF
  10656. /* confdefs.h. */
  10657. _ACEOF
  10658. cat confdefs.h >>conftest.$ac_ext
  10659. cat >>conftest.$ac_ext <<_ACEOF
  10660. /* end confdefs.h. */
  10661. $ac_includes_default
  10662. int
  10663. main ()
  10664. {
  10665. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  10666. test_array [0] = 0
  10667. ;
  10668. return 0;
  10669. }
  10670. _ACEOF
  10671. rm -f conftest.$ac_objext
  10672. if { (ac_try="$ac_compile"
  10673. case "(($ac_try" in
  10674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10675. *) ac_try_echo=$ac_try;;
  10676. esac
  10677. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10678. $as_echo "$ac_try_echo") >&5
  10679. (eval "$ac_compile") 2>conftest.er1
  10680. ac_status=$?
  10681. grep -v '^ *+' conftest.er1 >conftest.err
  10682. rm -f conftest.er1
  10683. cat conftest.err >&5
  10684. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10685. (exit $ac_status); } && {
  10686. test -z "$ac_c_werror_flag" ||
  10687. test ! -s conftest.err
  10688. } && test -s conftest.$ac_objext; then
  10689. ac_lo=0 ac_mid=0
  10690. while :; do
  10691. cat >conftest.$ac_ext <<_ACEOF
  10692. /* confdefs.h. */
  10693. _ACEOF
  10694. cat confdefs.h >>conftest.$ac_ext
  10695. cat >>conftest.$ac_ext <<_ACEOF
  10696. /* end confdefs.h. */
  10697. $ac_includes_default
  10698. int
  10699. main ()
  10700. {
  10701. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  10702. test_array [0] = 0
  10703. ;
  10704. return 0;
  10705. }
  10706. _ACEOF
  10707. rm -f conftest.$ac_objext
  10708. if { (ac_try="$ac_compile"
  10709. case "(($ac_try" in
  10710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10711. *) ac_try_echo=$ac_try;;
  10712. esac
  10713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10714. $as_echo "$ac_try_echo") >&5
  10715. (eval "$ac_compile") 2>conftest.er1
  10716. ac_status=$?
  10717. grep -v '^ *+' conftest.er1 >conftest.err
  10718. rm -f conftest.er1
  10719. cat conftest.err >&5
  10720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10721. (exit $ac_status); } && {
  10722. test -z "$ac_c_werror_flag" ||
  10723. test ! -s conftest.err
  10724. } && test -s conftest.$ac_objext; then
  10725. ac_hi=$ac_mid; break
  10726. else
  10727. $as_echo "$as_me: failed program was:" >&5
  10728. sed 's/^/| /' conftest.$ac_ext >&5
  10729. ac_lo=`expr $ac_mid + 1`
  10730. if test $ac_lo -le $ac_mid; then
  10731. ac_lo= ac_hi=
  10732. break
  10733. fi
  10734. ac_mid=`expr 2 '*' $ac_mid + 1`
  10735. fi
  10736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10737. done
  10738. else
  10739. $as_echo "$as_me: failed program was:" >&5
  10740. sed 's/^/| /' conftest.$ac_ext >&5
  10741. cat >conftest.$ac_ext <<_ACEOF
  10742. /* confdefs.h. */
  10743. _ACEOF
  10744. cat confdefs.h >>conftest.$ac_ext
  10745. cat >>conftest.$ac_ext <<_ACEOF
  10746. /* end confdefs.h. */
  10747. $ac_includes_default
  10748. int
  10749. main ()
  10750. {
  10751. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  10752. test_array [0] = 0
  10753. ;
  10754. return 0;
  10755. }
  10756. _ACEOF
  10757. rm -f conftest.$ac_objext
  10758. if { (ac_try="$ac_compile"
  10759. case "(($ac_try" in
  10760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10761. *) ac_try_echo=$ac_try;;
  10762. esac
  10763. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10764. $as_echo "$ac_try_echo") >&5
  10765. (eval "$ac_compile") 2>conftest.er1
  10766. ac_status=$?
  10767. grep -v '^ *+' conftest.er1 >conftest.err
  10768. rm -f conftest.er1
  10769. cat conftest.err >&5
  10770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10771. (exit $ac_status); } && {
  10772. test -z "$ac_c_werror_flag" ||
  10773. test ! -s conftest.err
  10774. } && test -s conftest.$ac_objext; then
  10775. ac_hi=-1 ac_mid=-1
  10776. while :; do
  10777. cat >conftest.$ac_ext <<_ACEOF
  10778. /* confdefs.h. */
  10779. _ACEOF
  10780. cat confdefs.h >>conftest.$ac_ext
  10781. cat >>conftest.$ac_ext <<_ACEOF
  10782. /* end confdefs.h. */
  10783. $ac_includes_default
  10784. int
  10785. main ()
  10786. {
  10787. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  10788. test_array [0] = 0
  10789. ;
  10790. return 0;
  10791. }
  10792. _ACEOF
  10793. rm -f conftest.$ac_objext
  10794. if { (ac_try="$ac_compile"
  10795. case "(($ac_try" in
  10796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10797. *) ac_try_echo=$ac_try;;
  10798. esac
  10799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10800. $as_echo "$ac_try_echo") >&5
  10801. (eval "$ac_compile") 2>conftest.er1
  10802. ac_status=$?
  10803. grep -v '^ *+' conftest.er1 >conftest.err
  10804. rm -f conftest.er1
  10805. cat conftest.err >&5
  10806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10807. (exit $ac_status); } && {
  10808. test -z "$ac_c_werror_flag" ||
  10809. test ! -s conftest.err
  10810. } && test -s conftest.$ac_objext; then
  10811. ac_lo=$ac_mid; break
  10812. else
  10813. $as_echo "$as_me: failed program was:" >&5
  10814. sed 's/^/| /' conftest.$ac_ext >&5
  10815. ac_hi=`expr '(' $ac_mid ')' - 1`
  10816. if test $ac_mid -le $ac_hi; then
  10817. ac_lo= ac_hi=
  10818. break
  10819. fi
  10820. ac_mid=`expr 2 '*' $ac_mid`
  10821. fi
  10822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10823. done
  10824. else
  10825. $as_echo "$as_me: failed program was:" >&5
  10826. sed 's/^/| /' conftest.$ac_ext >&5
  10827. ac_lo= ac_hi=
  10828. fi
  10829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10830. fi
  10831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10832. # Binary search between lo and hi bounds.
  10833. while test "x$ac_lo" != "x$ac_hi"; do
  10834. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  10835. cat >conftest.$ac_ext <<_ACEOF
  10836. /* confdefs.h. */
  10837. _ACEOF
  10838. cat confdefs.h >>conftest.$ac_ext
  10839. cat >>conftest.$ac_ext <<_ACEOF
  10840. /* end confdefs.h. */
  10841. $ac_includes_default
  10842. int
  10843. main ()
  10844. {
  10845. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  10846. test_array [0] = 0
  10847. ;
  10848. return 0;
  10849. }
  10850. _ACEOF
  10851. rm -f conftest.$ac_objext
  10852. if { (ac_try="$ac_compile"
  10853. case "(($ac_try" in
  10854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10855. *) ac_try_echo=$ac_try;;
  10856. esac
  10857. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10858. $as_echo "$ac_try_echo") >&5
  10859. (eval "$ac_compile") 2>conftest.er1
  10860. ac_status=$?
  10861. grep -v '^ *+' conftest.er1 >conftest.err
  10862. rm -f conftest.er1
  10863. cat conftest.err >&5
  10864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10865. (exit $ac_status); } && {
  10866. test -z "$ac_c_werror_flag" ||
  10867. test ! -s conftest.err
  10868. } && test -s conftest.$ac_objext; then
  10869. ac_hi=$ac_mid
  10870. else
  10871. $as_echo "$as_me: failed program was:" >&5
  10872. sed 's/^/| /' conftest.$ac_ext >&5
  10873. ac_lo=`expr '(' $ac_mid ')' + 1`
  10874. fi
  10875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10876. done
  10877. case $ac_lo in
  10878. ?*) ac_cv_sizeof_int=$ac_lo;;
  10879. '') if test "$ac_cv_type_int" = yes; then
  10880. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  10881. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10882. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  10883. See \`config.log' for more details." >&5
  10884. $as_echo "$as_me: error: cannot compute sizeof (int)
  10885. See \`config.log' for more details." >&2;}
  10886. { (exit 77); exit 77; }; }; }
  10887. else
  10888. ac_cv_sizeof_int=0
  10889. fi ;;
  10890. esac
  10891. else
  10892. cat >conftest.$ac_ext <<_ACEOF
  10893. /* confdefs.h. */
  10894. _ACEOF
  10895. cat confdefs.h >>conftest.$ac_ext
  10896. cat >>conftest.$ac_ext <<_ACEOF
  10897. /* end confdefs.h. */
  10898. $ac_includes_default
  10899. static long int longval () { return (long int) (sizeof (int)); }
  10900. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  10901. #include <stdio.h>
  10902. #include <stdlib.h>
  10903. int
  10904. main ()
  10905. {
  10906. FILE *f = fopen ("conftest.val", "w");
  10907. if (! f)
  10908. return 1;
  10909. if (((long int) (sizeof (int))) < 0)
  10910. {
  10911. long int i = longval ();
  10912. if (i != ((long int) (sizeof (int))))
  10913. return 1;
  10914. fprintf (f, "%ld", i);
  10915. }
  10916. else
  10917. {
  10918. unsigned long int i = ulongval ();
  10919. if (i != ((long int) (sizeof (int))))
  10920. return 1;
  10921. fprintf (f, "%lu", i);
  10922. }
  10923. /* Do not output a trailing newline, as this causes \r\n confusion
  10924. on some platforms. */
  10925. return ferror (f) || fclose (f) != 0;
  10926. ;
  10927. return 0;
  10928. }
  10929. _ACEOF
  10930. rm -f conftest$ac_exeext
  10931. if { (ac_try="$ac_link"
  10932. case "(($ac_try" in
  10933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10934. *) ac_try_echo=$ac_try;;
  10935. esac
  10936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10937. $as_echo "$ac_try_echo") >&5
  10938. (eval "$ac_link") 2>&5
  10939. ac_status=$?
  10940. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10941. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10942. { (case "(($ac_try" in
  10943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10944. *) ac_try_echo=$ac_try;;
  10945. esac
  10946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10947. $as_echo "$ac_try_echo") >&5
  10948. (eval "$ac_try") 2>&5
  10949. ac_status=$?
  10950. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10951. (exit $ac_status); }; }; then
  10952. ac_cv_sizeof_int=`cat conftest.val`
  10953. else
  10954. $as_echo "$as_me: program exited with status $ac_status" >&5
  10955. $as_echo "$as_me: failed program was:" >&5
  10956. sed 's/^/| /' conftest.$ac_ext >&5
  10957. ( exit $ac_status )
  10958. if test "$ac_cv_type_int" = yes; then
  10959. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  10960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10961. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  10962. See \`config.log' for more details." >&5
  10963. $as_echo "$as_me: error: cannot compute sizeof (int)
  10964. See \`config.log' for more details." >&2;}
  10965. { (exit 77); exit 77; }; }; }
  10966. else
  10967. ac_cv_sizeof_int=0
  10968. fi
  10969. fi
  10970. rm -rf conftest.dSYM
  10971. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10972. fi
  10973. rm -f conftest.val
  10974. fi
  10975. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  10976. $as_echo "$ac_cv_sizeof_int" >&6; }
  10977. cat >>confdefs.h <<_ACEOF
  10978. #define SIZEOF_INT $ac_cv_sizeof_int
  10979. _ACEOF
  10980. # The cast to long int works around a bug in the HP C Compiler
  10981. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10982. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10983. # This bug is HP SR number 8606223364.
  10984. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  10985. $as_echo_n "checking size of long... " >&6; }
  10986. if test "${ac_cv_sizeof_long+set}" = set; then
  10987. $as_echo_n "(cached) " >&6
  10988. else
  10989. if test "$cross_compiling" = yes; then
  10990. # Depending upon the size, compute the lo and hi bounds.
  10991. cat >conftest.$ac_ext <<_ACEOF
  10992. /* confdefs.h. */
  10993. _ACEOF
  10994. cat confdefs.h >>conftest.$ac_ext
  10995. cat >>conftest.$ac_ext <<_ACEOF
  10996. /* end confdefs.h. */
  10997. $ac_includes_default
  10998. int
  10999. main ()
  11000. {
  11001. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  11002. test_array [0] = 0
  11003. ;
  11004. return 0;
  11005. }
  11006. _ACEOF
  11007. rm -f conftest.$ac_objext
  11008. if { (ac_try="$ac_compile"
  11009. case "(($ac_try" in
  11010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11011. *) ac_try_echo=$ac_try;;
  11012. esac
  11013. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11014. $as_echo "$ac_try_echo") >&5
  11015. (eval "$ac_compile") 2>conftest.er1
  11016. ac_status=$?
  11017. grep -v '^ *+' conftest.er1 >conftest.err
  11018. rm -f conftest.er1
  11019. cat conftest.err >&5
  11020. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11021. (exit $ac_status); } && {
  11022. test -z "$ac_c_werror_flag" ||
  11023. test ! -s conftest.err
  11024. } && test -s conftest.$ac_objext; then
  11025. ac_lo=0 ac_mid=0
  11026. while :; do
  11027. cat >conftest.$ac_ext <<_ACEOF
  11028. /* confdefs.h. */
  11029. _ACEOF
  11030. cat confdefs.h >>conftest.$ac_ext
  11031. cat >>conftest.$ac_ext <<_ACEOF
  11032. /* end confdefs.h. */
  11033. $ac_includes_default
  11034. int
  11035. main ()
  11036. {
  11037. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  11038. test_array [0] = 0
  11039. ;
  11040. return 0;
  11041. }
  11042. _ACEOF
  11043. rm -f conftest.$ac_objext
  11044. if { (ac_try="$ac_compile"
  11045. case "(($ac_try" in
  11046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11047. *) ac_try_echo=$ac_try;;
  11048. esac
  11049. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11050. $as_echo "$ac_try_echo") >&5
  11051. (eval "$ac_compile") 2>conftest.er1
  11052. ac_status=$?
  11053. grep -v '^ *+' conftest.er1 >conftest.err
  11054. rm -f conftest.er1
  11055. cat conftest.err >&5
  11056. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11057. (exit $ac_status); } && {
  11058. test -z "$ac_c_werror_flag" ||
  11059. test ! -s conftest.err
  11060. } && test -s conftest.$ac_objext; then
  11061. ac_hi=$ac_mid; break
  11062. else
  11063. $as_echo "$as_me: failed program was:" >&5
  11064. sed 's/^/| /' conftest.$ac_ext >&5
  11065. ac_lo=`expr $ac_mid + 1`
  11066. if test $ac_lo -le $ac_mid; then
  11067. ac_lo= ac_hi=
  11068. break
  11069. fi
  11070. ac_mid=`expr 2 '*' $ac_mid + 1`
  11071. fi
  11072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11073. done
  11074. else
  11075. $as_echo "$as_me: failed program was:" >&5
  11076. sed 's/^/| /' conftest.$ac_ext >&5
  11077. cat >conftest.$ac_ext <<_ACEOF
  11078. /* confdefs.h. */
  11079. _ACEOF
  11080. cat confdefs.h >>conftest.$ac_ext
  11081. cat >>conftest.$ac_ext <<_ACEOF
  11082. /* end confdefs.h. */
  11083. $ac_includes_default
  11084. int
  11085. main ()
  11086. {
  11087. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  11088. test_array [0] = 0
  11089. ;
  11090. return 0;
  11091. }
  11092. _ACEOF
  11093. rm -f conftest.$ac_objext
  11094. if { (ac_try="$ac_compile"
  11095. case "(($ac_try" in
  11096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11097. *) ac_try_echo=$ac_try;;
  11098. esac
  11099. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11100. $as_echo "$ac_try_echo") >&5
  11101. (eval "$ac_compile") 2>conftest.er1
  11102. ac_status=$?
  11103. grep -v '^ *+' conftest.er1 >conftest.err
  11104. rm -f conftest.er1
  11105. cat conftest.err >&5
  11106. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11107. (exit $ac_status); } && {
  11108. test -z "$ac_c_werror_flag" ||
  11109. test ! -s conftest.err
  11110. } && test -s conftest.$ac_objext; then
  11111. ac_hi=-1 ac_mid=-1
  11112. while :; do
  11113. cat >conftest.$ac_ext <<_ACEOF
  11114. /* confdefs.h. */
  11115. _ACEOF
  11116. cat confdefs.h >>conftest.$ac_ext
  11117. cat >>conftest.$ac_ext <<_ACEOF
  11118. /* end confdefs.h. */
  11119. $ac_includes_default
  11120. int
  11121. main ()
  11122. {
  11123. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  11124. test_array [0] = 0
  11125. ;
  11126. return 0;
  11127. }
  11128. _ACEOF
  11129. rm -f conftest.$ac_objext
  11130. if { (ac_try="$ac_compile"
  11131. case "(($ac_try" in
  11132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11133. *) ac_try_echo=$ac_try;;
  11134. esac
  11135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11136. $as_echo "$ac_try_echo") >&5
  11137. (eval "$ac_compile") 2>conftest.er1
  11138. ac_status=$?
  11139. grep -v '^ *+' conftest.er1 >conftest.err
  11140. rm -f conftest.er1
  11141. cat conftest.err >&5
  11142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11143. (exit $ac_status); } && {
  11144. test -z "$ac_c_werror_flag" ||
  11145. test ! -s conftest.err
  11146. } && test -s conftest.$ac_objext; then
  11147. ac_lo=$ac_mid; break
  11148. else
  11149. $as_echo "$as_me: failed program was:" >&5
  11150. sed 's/^/| /' conftest.$ac_ext >&5
  11151. ac_hi=`expr '(' $ac_mid ')' - 1`
  11152. if test $ac_mid -le $ac_hi; then
  11153. ac_lo= ac_hi=
  11154. break
  11155. fi
  11156. ac_mid=`expr 2 '*' $ac_mid`
  11157. fi
  11158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11159. done
  11160. else
  11161. $as_echo "$as_me: failed program was:" >&5
  11162. sed 's/^/| /' conftest.$ac_ext >&5
  11163. ac_lo= ac_hi=
  11164. fi
  11165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11166. fi
  11167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11168. # Binary search between lo and hi bounds.
  11169. while test "x$ac_lo" != "x$ac_hi"; do
  11170. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  11171. cat >conftest.$ac_ext <<_ACEOF
  11172. /* confdefs.h. */
  11173. _ACEOF
  11174. cat confdefs.h >>conftest.$ac_ext
  11175. cat >>conftest.$ac_ext <<_ACEOF
  11176. /* end confdefs.h. */
  11177. $ac_includes_default
  11178. int
  11179. main ()
  11180. {
  11181. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  11182. test_array [0] = 0
  11183. ;
  11184. return 0;
  11185. }
  11186. _ACEOF
  11187. rm -f conftest.$ac_objext
  11188. if { (ac_try="$ac_compile"
  11189. case "(($ac_try" in
  11190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11191. *) ac_try_echo=$ac_try;;
  11192. esac
  11193. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11194. $as_echo "$ac_try_echo") >&5
  11195. (eval "$ac_compile") 2>conftest.er1
  11196. ac_status=$?
  11197. grep -v '^ *+' conftest.er1 >conftest.err
  11198. rm -f conftest.er1
  11199. cat conftest.err >&5
  11200. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11201. (exit $ac_status); } && {
  11202. test -z "$ac_c_werror_flag" ||
  11203. test ! -s conftest.err
  11204. } && test -s conftest.$ac_objext; then
  11205. ac_hi=$ac_mid
  11206. else
  11207. $as_echo "$as_me: failed program was:" >&5
  11208. sed 's/^/| /' conftest.$ac_ext >&5
  11209. ac_lo=`expr '(' $ac_mid ')' + 1`
  11210. fi
  11211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11212. done
  11213. case $ac_lo in
  11214. ?*) ac_cv_sizeof_long=$ac_lo;;
  11215. '') if test "$ac_cv_type_long" = yes; then
  11216. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  11217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11218. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  11219. See \`config.log' for more details." >&5
  11220. $as_echo "$as_me: error: cannot compute sizeof (long)
  11221. See \`config.log' for more details." >&2;}
  11222. { (exit 77); exit 77; }; }; }
  11223. else
  11224. ac_cv_sizeof_long=0
  11225. fi ;;
  11226. esac
  11227. else
  11228. cat >conftest.$ac_ext <<_ACEOF
  11229. /* confdefs.h. */
  11230. _ACEOF
  11231. cat confdefs.h >>conftest.$ac_ext
  11232. cat >>conftest.$ac_ext <<_ACEOF
  11233. /* end confdefs.h. */
  11234. $ac_includes_default
  11235. static long int longval () { return (long int) (sizeof (long)); }
  11236. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  11237. #include <stdio.h>
  11238. #include <stdlib.h>
  11239. int
  11240. main ()
  11241. {
  11242. FILE *f = fopen ("conftest.val", "w");
  11243. if (! f)
  11244. return 1;
  11245. if (((long int) (sizeof (long))) < 0)
  11246. {
  11247. long int i = longval ();
  11248. if (i != ((long int) (sizeof (long))))
  11249. return 1;
  11250. fprintf (f, "%ld", i);
  11251. }
  11252. else
  11253. {
  11254. unsigned long int i = ulongval ();
  11255. if (i != ((long int) (sizeof (long))))
  11256. return 1;
  11257. fprintf (f, "%lu", i);
  11258. }
  11259. /* Do not output a trailing newline, as this causes \r\n confusion
  11260. on some platforms. */
  11261. return ferror (f) || fclose (f) != 0;
  11262. ;
  11263. return 0;
  11264. }
  11265. _ACEOF
  11266. rm -f conftest$ac_exeext
  11267. if { (ac_try="$ac_link"
  11268. case "(($ac_try" in
  11269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11270. *) ac_try_echo=$ac_try;;
  11271. esac
  11272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11273. $as_echo "$ac_try_echo") >&5
  11274. (eval "$ac_link") 2>&5
  11275. ac_status=$?
  11276. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11277. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11278. { (case "(($ac_try" in
  11279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11280. *) ac_try_echo=$ac_try;;
  11281. esac
  11282. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11283. $as_echo "$ac_try_echo") >&5
  11284. (eval "$ac_try") 2>&5
  11285. ac_status=$?
  11286. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11287. (exit $ac_status); }; }; then
  11288. ac_cv_sizeof_long=`cat conftest.val`
  11289. else
  11290. $as_echo "$as_me: program exited with status $ac_status" >&5
  11291. $as_echo "$as_me: failed program was:" >&5
  11292. sed 's/^/| /' conftest.$ac_ext >&5
  11293. ( exit $ac_status )
  11294. if test "$ac_cv_type_long" = yes; then
  11295. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  11296. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11297. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  11298. See \`config.log' for more details." >&5
  11299. $as_echo "$as_me: error: cannot compute sizeof (long)
  11300. See \`config.log' for more details." >&2;}
  11301. { (exit 77); exit 77; }; }; }
  11302. else
  11303. ac_cv_sizeof_long=0
  11304. fi
  11305. fi
  11306. rm -rf conftest.dSYM
  11307. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11308. fi
  11309. rm -f conftest.val
  11310. fi
  11311. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  11312. $as_echo "$ac_cv_sizeof_long" >&6; }
  11313. cat >>confdefs.h <<_ACEOF
  11314. #define SIZEOF_LONG $ac_cv_sizeof_long
  11315. _ACEOF
  11316. # The cast to long int works around a bug in the HP C Compiler
  11317. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11318. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11319. # This bug is HP SR number 8606223364.
  11320. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  11321. $as_echo_n "checking size of long long... " >&6; }
  11322. if test "${ac_cv_sizeof_long_long+set}" = set; then
  11323. $as_echo_n "(cached) " >&6
  11324. else
  11325. if test "$cross_compiling" = yes; then
  11326. # Depending upon the size, compute the lo and hi bounds.
  11327. cat >conftest.$ac_ext <<_ACEOF
  11328. /* confdefs.h. */
  11329. _ACEOF
  11330. cat confdefs.h >>conftest.$ac_ext
  11331. cat >>conftest.$ac_ext <<_ACEOF
  11332. /* end confdefs.h. */
  11333. $ac_includes_default
  11334. int
  11335. main ()
  11336. {
  11337. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  11338. test_array [0] = 0
  11339. ;
  11340. return 0;
  11341. }
  11342. _ACEOF
  11343. rm -f conftest.$ac_objext
  11344. if { (ac_try="$ac_compile"
  11345. case "(($ac_try" in
  11346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11347. *) ac_try_echo=$ac_try;;
  11348. esac
  11349. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11350. $as_echo "$ac_try_echo") >&5
  11351. (eval "$ac_compile") 2>conftest.er1
  11352. ac_status=$?
  11353. grep -v '^ *+' conftest.er1 >conftest.err
  11354. rm -f conftest.er1
  11355. cat conftest.err >&5
  11356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11357. (exit $ac_status); } && {
  11358. test -z "$ac_c_werror_flag" ||
  11359. test ! -s conftest.err
  11360. } && test -s conftest.$ac_objext; then
  11361. ac_lo=0 ac_mid=0
  11362. while :; do
  11363. cat >conftest.$ac_ext <<_ACEOF
  11364. /* confdefs.h. */
  11365. _ACEOF
  11366. cat confdefs.h >>conftest.$ac_ext
  11367. cat >>conftest.$ac_ext <<_ACEOF
  11368. /* end confdefs.h. */
  11369. $ac_includes_default
  11370. int
  11371. main ()
  11372. {
  11373. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  11374. test_array [0] = 0
  11375. ;
  11376. return 0;
  11377. }
  11378. _ACEOF
  11379. rm -f conftest.$ac_objext
  11380. if { (ac_try="$ac_compile"
  11381. case "(($ac_try" in
  11382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11383. *) ac_try_echo=$ac_try;;
  11384. esac
  11385. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11386. $as_echo "$ac_try_echo") >&5
  11387. (eval "$ac_compile") 2>conftest.er1
  11388. ac_status=$?
  11389. grep -v '^ *+' conftest.er1 >conftest.err
  11390. rm -f conftest.er1
  11391. cat conftest.err >&5
  11392. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11393. (exit $ac_status); } && {
  11394. test -z "$ac_c_werror_flag" ||
  11395. test ! -s conftest.err
  11396. } && test -s conftest.$ac_objext; then
  11397. ac_hi=$ac_mid; break
  11398. else
  11399. $as_echo "$as_me: failed program was:" >&5
  11400. sed 's/^/| /' conftest.$ac_ext >&5
  11401. ac_lo=`expr $ac_mid + 1`
  11402. if test $ac_lo -le $ac_mid; then
  11403. ac_lo= ac_hi=
  11404. break
  11405. fi
  11406. ac_mid=`expr 2 '*' $ac_mid + 1`
  11407. fi
  11408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11409. done
  11410. else
  11411. $as_echo "$as_me: failed program was:" >&5
  11412. sed 's/^/| /' conftest.$ac_ext >&5
  11413. cat >conftest.$ac_ext <<_ACEOF
  11414. /* confdefs.h. */
  11415. _ACEOF
  11416. cat confdefs.h >>conftest.$ac_ext
  11417. cat >>conftest.$ac_ext <<_ACEOF
  11418. /* end confdefs.h. */
  11419. $ac_includes_default
  11420. int
  11421. main ()
  11422. {
  11423. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  11424. test_array [0] = 0
  11425. ;
  11426. return 0;
  11427. }
  11428. _ACEOF
  11429. rm -f conftest.$ac_objext
  11430. if { (ac_try="$ac_compile"
  11431. case "(($ac_try" in
  11432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11433. *) ac_try_echo=$ac_try;;
  11434. esac
  11435. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11436. $as_echo "$ac_try_echo") >&5
  11437. (eval "$ac_compile") 2>conftest.er1
  11438. ac_status=$?
  11439. grep -v '^ *+' conftest.er1 >conftest.err
  11440. rm -f conftest.er1
  11441. cat conftest.err >&5
  11442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11443. (exit $ac_status); } && {
  11444. test -z "$ac_c_werror_flag" ||
  11445. test ! -s conftest.err
  11446. } && test -s conftest.$ac_objext; then
  11447. ac_hi=-1 ac_mid=-1
  11448. while :; do
  11449. cat >conftest.$ac_ext <<_ACEOF
  11450. /* confdefs.h. */
  11451. _ACEOF
  11452. cat confdefs.h >>conftest.$ac_ext
  11453. cat >>conftest.$ac_ext <<_ACEOF
  11454. /* end confdefs.h. */
  11455. $ac_includes_default
  11456. int
  11457. main ()
  11458. {
  11459. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  11460. test_array [0] = 0
  11461. ;
  11462. return 0;
  11463. }
  11464. _ACEOF
  11465. rm -f conftest.$ac_objext
  11466. if { (ac_try="$ac_compile"
  11467. case "(($ac_try" in
  11468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11469. *) ac_try_echo=$ac_try;;
  11470. esac
  11471. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11472. $as_echo "$ac_try_echo") >&5
  11473. (eval "$ac_compile") 2>conftest.er1
  11474. ac_status=$?
  11475. grep -v '^ *+' conftest.er1 >conftest.err
  11476. rm -f conftest.er1
  11477. cat conftest.err >&5
  11478. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11479. (exit $ac_status); } && {
  11480. test -z "$ac_c_werror_flag" ||
  11481. test ! -s conftest.err
  11482. } && test -s conftest.$ac_objext; then
  11483. ac_lo=$ac_mid; break
  11484. else
  11485. $as_echo "$as_me: failed program was:" >&5
  11486. sed 's/^/| /' conftest.$ac_ext >&5
  11487. ac_hi=`expr '(' $ac_mid ')' - 1`
  11488. if test $ac_mid -le $ac_hi; then
  11489. ac_lo= ac_hi=
  11490. break
  11491. fi
  11492. ac_mid=`expr 2 '*' $ac_mid`
  11493. fi
  11494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11495. done
  11496. else
  11497. $as_echo "$as_me: failed program was:" >&5
  11498. sed 's/^/| /' conftest.$ac_ext >&5
  11499. ac_lo= ac_hi=
  11500. fi
  11501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11502. fi
  11503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11504. # Binary search between lo and hi bounds.
  11505. while test "x$ac_lo" != "x$ac_hi"; do
  11506. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  11507. cat >conftest.$ac_ext <<_ACEOF
  11508. /* confdefs.h. */
  11509. _ACEOF
  11510. cat confdefs.h >>conftest.$ac_ext
  11511. cat >>conftest.$ac_ext <<_ACEOF
  11512. /* end confdefs.h. */
  11513. $ac_includes_default
  11514. int
  11515. main ()
  11516. {
  11517. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  11518. test_array [0] = 0
  11519. ;
  11520. return 0;
  11521. }
  11522. _ACEOF
  11523. rm -f conftest.$ac_objext
  11524. if { (ac_try="$ac_compile"
  11525. case "(($ac_try" in
  11526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11527. *) ac_try_echo=$ac_try;;
  11528. esac
  11529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11530. $as_echo "$ac_try_echo") >&5
  11531. (eval "$ac_compile") 2>conftest.er1
  11532. ac_status=$?
  11533. grep -v '^ *+' conftest.er1 >conftest.err
  11534. rm -f conftest.er1
  11535. cat conftest.err >&5
  11536. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11537. (exit $ac_status); } && {
  11538. test -z "$ac_c_werror_flag" ||
  11539. test ! -s conftest.err
  11540. } && test -s conftest.$ac_objext; then
  11541. ac_hi=$ac_mid
  11542. else
  11543. $as_echo "$as_me: failed program was:" >&5
  11544. sed 's/^/| /' conftest.$ac_ext >&5
  11545. ac_lo=`expr '(' $ac_mid ')' + 1`
  11546. fi
  11547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11548. done
  11549. case $ac_lo in
  11550. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  11551. '') if test "$ac_cv_type_long_long" = yes; then
  11552. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  11553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11554. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  11555. See \`config.log' for more details." >&5
  11556. $as_echo "$as_me: error: cannot compute sizeof (long long)
  11557. See \`config.log' for more details." >&2;}
  11558. { (exit 77); exit 77; }; }; }
  11559. else
  11560. ac_cv_sizeof_long_long=0
  11561. fi ;;
  11562. esac
  11563. else
  11564. cat >conftest.$ac_ext <<_ACEOF
  11565. /* confdefs.h. */
  11566. _ACEOF
  11567. cat confdefs.h >>conftest.$ac_ext
  11568. cat >>conftest.$ac_ext <<_ACEOF
  11569. /* end confdefs.h. */
  11570. $ac_includes_default
  11571. static long int longval () { return (long int) (sizeof (long long)); }
  11572. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  11573. #include <stdio.h>
  11574. #include <stdlib.h>
  11575. int
  11576. main ()
  11577. {
  11578. FILE *f = fopen ("conftest.val", "w");
  11579. if (! f)
  11580. return 1;
  11581. if (((long int) (sizeof (long long))) < 0)
  11582. {
  11583. long int i = longval ();
  11584. if (i != ((long int) (sizeof (long long))))
  11585. return 1;
  11586. fprintf (f, "%ld", i);
  11587. }
  11588. else
  11589. {
  11590. unsigned long int i = ulongval ();
  11591. if (i != ((long int) (sizeof (long long))))
  11592. return 1;
  11593. fprintf (f, "%lu", i);
  11594. }
  11595. /* Do not output a trailing newline, as this causes \r\n confusion
  11596. on some platforms. */
  11597. return ferror (f) || fclose (f) != 0;
  11598. ;
  11599. return 0;
  11600. }
  11601. _ACEOF
  11602. rm -f conftest$ac_exeext
  11603. if { (ac_try="$ac_link"
  11604. case "(($ac_try" in
  11605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11606. *) ac_try_echo=$ac_try;;
  11607. esac
  11608. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11609. $as_echo "$ac_try_echo") >&5
  11610. (eval "$ac_link") 2>&5
  11611. ac_status=$?
  11612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11613. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11614. { (case "(($ac_try" in
  11615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11616. *) ac_try_echo=$ac_try;;
  11617. esac
  11618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11619. $as_echo "$ac_try_echo") >&5
  11620. (eval "$ac_try") 2>&5
  11621. ac_status=$?
  11622. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11623. (exit $ac_status); }; }; then
  11624. ac_cv_sizeof_long_long=`cat conftest.val`
  11625. else
  11626. $as_echo "$as_me: program exited with status $ac_status" >&5
  11627. $as_echo "$as_me: failed program was:" >&5
  11628. sed 's/^/| /' conftest.$ac_ext >&5
  11629. ( exit $ac_status )
  11630. if test "$ac_cv_type_long_long" = yes; then
  11631. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  11632. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11633. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  11634. See \`config.log' for more details." >&5
  11635. $as_echo "$as_me: error: cannot compute sizeof (long long)
  11636. See \`config.log' for more details." >&2;}
  11637. { (exit 77); exit 77; }; }; }
  11638. else
  11639. ac_cv_sizeof_long_long=0
  11640. fi
  11641. fi
  11642. rm -rf conftest.dSYM
  11643. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11644. fi
  11645. rm -f conftest.val
  11646. fi
  11647. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  11648. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11649. cat >>confdefs.h <<_ACEOF
  11650. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11651. _ACEOF
  11652. for ac_func in waitpid fcntl pipe fork
  11653. do
  11654. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11655. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11656. $as_echo_n "checking for $ac_func... " >&6; }
  11657. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11658. $as_echo_n "(cached) " >&6
  11659. else
  11660. cat >conftest.$ac_ext <<_ACEOF
  11661. /* confdefs.h. */
  11662. _ACEOF
  11663. cat confdefs.h >>conftest.$ac_ext
  11664. cat >>conftest.$ac_ext <<_ACEOF
  11665. /* end confdefs.h. */
  11666. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11667. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11668. #define $ac_func innocuous_$ac_func
  11669. /* System header to define __stub macros and hopefully few prototypes,
  11670. which can conflict with char $ac_func (); below.
  11671. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11672. <limits.h> exists even on freestanding compilers. */
  11673. #ifdef __STDC__
  11674. # include <limits.h>
  11675. #else
  11676. # include <assert.h>
  11677. #endif
  11678. #undef $ac_func
  11679. /* Override any GCC internal prototype to avoid an error.
  11680. Use char because int might match the return type of a GCC
  11681. builtin and then its argument prototype would still apply. */
  11682. #ifdef __cplusplus
  11683. extern "C"
  11684. #endif
  11685. char $ac_func ();
  11686. /* The GNU C library defines this for functions which it implements
  11687. to always fail with ENOSYS. Some functions are actually named
  11688. something starting with __ and the normal name is an alias. */
  11689. #if defined __stub_$ac_func || defined __stub___$ac_func
  11690. choke me
  11691. #endif
  11692. int
  11693. main ()
  11694. {
  11695. return $ac_func ();
  11696. ;
  11697. return 0;
  11698. }
  11699. _ACEOF
  11700. rm -f conftest.$ac_objext conftest$ac_exeext
  11701. if { (ac_try="$ac_link"
  11702. case "(($ac_try" in
  11703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11704. *) ac_try_echo=$ac_try;;
  11705. esac
  11706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11707. $as_echo "$ac_try_echo") >&5
  11708. (eval "$ac_link") 2>conftest.er1
  11709. ac_status=$?
  11710. grep -v '^ *+' conftest.er1 >conftest.err
  11711. rm -f conftest.er1
  11712. cat conftest.err >&5
  11713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11714. (exit $ac_status); } && {
  11715. test -z "$ac_c_werror_flag" ||
  11716. test ! -s conftest.err
  11717. } && test -s conftest$ac_exeext && {
  11718. test "$cross_compiling" = yes ||
  11719. $as_test_x conftest$ac_exeext
  11720. }; then
  11721. eval "$as_ac_var=yes"
  11722. else
  11723. $as_echo "$as_me: failed program was:" >&5
  11724. sed 's/^/| /' conftest.$ac_ext >&5
  11725. eval "$as_ac_var=no"
  11726. fi
  11727. rm -rf conftest.dSYM
  11728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11729. conftest$ac_exeext conftest.$ac_ext
  11730. fi
  11731. ac_res=`eval 'as_val=${'$as_ac_var'}
  11732. $as_echo "$as_val"'`
  11733. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11734. $as_echo "$ac_res" >&6; }
  11735. as_val=`eval 'as_val=${'$as_ac_var'}
  11736. $as_echo "$as_val"'`
  11737. if test "x$as_val" = x""yes; then
  11738. cat >>confdefs.h <<_ACEOF
  11739. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11740. _ACEOF
  11741. fi
  11742. done
  11743. cat >confcache <<\_ACEOF
  11744. # This file is a shell script that caches the results of configure
  11745. # tests run on this system so they can be shared between configure
  11746. # scripts and configure runs, see configure's option --config-cache.
  11747. # It is not useful on other systems. If it contains results you don't
  11748. # want to keep, you may remove or edit it.
  11749. #
  11750. # config.status only pays attention to the cache file if you give it
  11751. # the --recheck option to rerun configure.
  11752. #
  11753. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11754. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11755. # following values.
  11756. _ACEOF
  11757. # The following way of writing the cache mishandles newlines in values,
  11758. # but we know of no workaround that is simple, portable, and efficient.
  11759. # So, we kill variables containing newlines.
  11760. # Ultrix sh set writes to stderr and can't be redirected directly,
  11761. # and sets the high bit in the cache file unless we assign to the vars.
  11762. (
  11763. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11764. eval ac_val=\$$ac_var
  11765. case $ac_val in #(
  11766. *${as_nl}*)
  11767. case $ac_var in #(
  11768. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11769. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11770. esac
  11771. case $ac_var in #(
  11772. _ | IFS | as_nl) ;; #(
  11773. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11774. *) $as_unset $ac_var ;;
  11775. esac ;;
  11776. esac
  11777. done
  11778. (set) 2>&1 |
  11779. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11780. *${as_nl}ac_space=\ *)
  11781. # `set' does not quote correctly, so add quotes (double-quote
  11782. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11783. sed -n \
  11784. "s/'/'\\\\''/g;
  11785. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11786. ;; #(
  11787. *)
  11788. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11789. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11790. ;;
  11791. esac |
  11792. sort
  11793. ) |
  11794. sed '
  11795. /^ac_cv_env_/b end
  11796. t clear
  11797. :clear
  11798. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11799. t end
  11800. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11801. :end' >>confcache
  11802. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11803. if test -w "$cache_file"; then
  11804. test "x$cache_file" != "x/dev/null" &&
  11805. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11806. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11807. cat confcache >$cache_file
  11808. else
  11809. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11810. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11811. fi
  11812. fi
  11813. rm -f confcache
  11814. { $as_echo "$as_me:$LINENO: checking whether to optimize for speed or for accuracy" >&5
  11815. $as_echo_n "checking whether to optimize for speed or for accuracy... " >&6; }
  11816. # Check whether --enable-speed was given.
  11817. if test "${enable_speed+set}" = set; then
  11818. enableval=$enable_speed;
  11819. case "$enableval" in
  11820. yes)
  11821. optimize_for="speed"
  11822. cat >>confdefs.h <<\_ACEOF
  11823. #define OPT_SPEED 1
  11824. _ACEOF
  11825. ;;
  11826. esac
  11827. fi
  11828. # Check whether --enable-accuracy was given.
  11829. if test "${enable_accuracy+set}" = set; then
  11830. enableval=$enable_accuracy;
  11831. case "$enableval" in
  11832. yes)
  11833. if test "$optimize_for" = "speed"
  11834. then
  11835. optimize_for="both"
  11836. else
  11837. optimize_for="accuracy"
  11838. fi
  11839. cat >>confdefs.h <<\_ACEOF
  11840. #define OPT_ACCURACY 1
  11841. _ACEOF
  11842. ;;
  11843. esac
  11844. fi
  11845. { $as_echo "$as_me:$LINENO: result: ${optimize_for-default}" >&5
  11846. $as_echo "${optimize_for-default}" >&6; }
  11847. if test "$optimize_for" = "both"
  11848. then
  11849. { { $as_echo "$as_me:$LINENO: error: cannot optimize for both speed and accuracy" >&5
  11850. $as_echo "$as_me: error: cannot optimize for both speed and accuracy" >&2;}
  11851. { (exit 1); exit 1; }; }
  11852. fi
  11853. { $as_echo "$as_me:$LINENO: checking for architecture-specific fixed-point math routines" >&5
  11854. $as_echo_n "checking for architecture-specific fixed-point math routines... " >&6; }
  11855. # Check whether --enable-fpm was given.
  11856. if test "${enable_fpm+set}" = set; then
  11857. enableval=$enable_fpm;
  11858. case "$enableval" in
  11859. yes) ;;
  11860. no|default|approx) FPM="DEFAULT" ;;
  11861. intel|i?86) FPM="INTEL" ;;
  11862. arm) FPM="ARM" ;;
  11863. mips) FPM="MIPS" ;;
  11864. sparc) FPM="SPARC" ;;
  11865. ppc|powerpc) FPM="PPC" ;;
  11866. 64bit) FPM="64BIT" ;;
  11867. float) FPM="FLOAT" ;;
  11868. *)
  11869. { $as_echo "$as_me:$LINENO: result: failed" >&5
  11870. $as_echo "failed" >&6; }
  11871. { { $as_echo "$as_me:$LINENO: error: bad --enable-fpm option" >&5
  11872. $as_echo "$as_me: error: bad --enable-fpm option" >&2;}
  11873. { (exit 1); exit 1; }; }
  11874. ;;
  11875. esac
  11876. fi
  11877. if test -z "$FPM" && test "$GCC" = yes
  11878. then
  11879. case "$host" in
  11880. i?86-*) FPM="INTEL" ;;
  11881. arm*-*) FPM="ARM" ;;
  11882. mips*-*) FPM="MIPS" ;;
  11883. sparc*-*) FPM="SPARC" ;;
  11884. powerpc*-*) FPM="PPC" ;;
  11885. # FIXME: need to test for 64-bit long long...
  11886. esac
  11887. fi
  11888. { $as_echo "$as_me:$LINENO: result: ${FPM=DEFAULT}" >&5
  11889. $as_echo "${FPM=DEFAULT}" >&6; }
  11890. if test "$FPM" = "DEFAULT"
  11891. then
  11892. { $as_echo "$as_me:$LINENO: WARNING: default fixed-point math will yield limited accuracy" >&5
  11893. $as_echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;}
  11894. fi
  11895. FPM="-DFPM_$FPM"
  11896. # Check whether --enable-sso was given.
  11897. if test "${enable_sso+set}" = set; then
  11898. enableval=$enable_sso;
  11899. case "$enableval" in
  11900. yes)
  11901. cat >>confdefs.h <<\_ACEOF
  11902. #define OPT_SSO 1
  11903. _ACEOF
  11904. ;;
  11905. esac
  11906. fi
  11907. # Check whether --enable-aso was given.
  11908. if test "${enable_aso+set}" = set; then
  11909. enableval=$enable_aso;
  11910. else
  11911. enable_aso=yes
  11912. fi
  11913. if test "$enable_aso" = yes
  11914. then
  11915. case "$host" in
  11916. i?86-*)
  11917. : #ASO="$ASO -DASO_INTERLEAVE1"
  11918. ASO="$ASO -DASO_ZEROCHECK"
  11919. : #not yet #ASO="$ASO -DASO_SYNTH"
  11920. : #not yet #ASO_OBJS="synth_mmx.lo"
  11921. ;;
  11922. arm*-*)
  11923. ASO="$ASO -DASO_INTERLEAVE1"
  11924. ASO="$ASO -DASO_IMDCT"
  11925. ASO_OBJS="imdct_l_arm.lo"
  11926. ;;
  11927. mips*-*)
  11928. ASO="$ASO -DASO_INTERLEAVE2"
  11929. ASO="$ASO -DASO_ZEROCHECK"
  11930. ;;
  11931. esac
  11932. fi
  11933. { $as_echo "$as_me:$LINENO: checking for ISO/IEC interpretation" >&5
  11934. $as_echo_n "checking for ISO/IEC interpretation... " >&6; }
  11935. # Check whether --enable-strict-iso was given.
  11936. if test "${enable_strict_iso+set}" = set; then
  11937. enableval=$enable_strict_iso;
  11938. case "$enableval" in
  11939. yes)
  11940. cat >>confdefs.h <<\_ACEOF
  11941. #define OPT_STRICT 1
  11942. _ACEOF
  11943. interpretation="strict"
  11944. ;;
  11945. esac
  11946. fi
  11947. { $as_echo "$as_me:$LINENO: result: ${interpretation-best accepted practices}" >&5
  11948. $as_echo "${interpretation-best accepted practices}" >&6; }
  11949. { $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
  11950. $as_echo_n "checking whether to enable profiling... " >&6; }
  11951. # Check whether --enable-profiling was given.
  11952. if test "${enable_profiling+set}" = set; then
  11953. enableval=$enable_profiling;
  11954. case "$enableval" in
  11955. yes) profile="-pg" ;;
  11956. esac
  11957. fi
  11958. { $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
  11959. $as_echo "${enable_profiling-no}" >&6; }
  11960. { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
  11961. $as_echo_n "checking whether to enable debugging... " >&6; }
  11962. # Check whether --enable-debugging was given.
  11963. if test "${enable_debugging+set}" = set; then
  11964. enableval=$enable_debugging;
  11965. case "$enableval" in
  11966. yes)
  11967. cat >>confdefs.h <<\_ACEOF
  11968. #define DEBUG 1
  11969. _ACEOF
  11970. optimize=""
  11971. ;;
  11972. no)
  11973. if test -n "$profile"
  11974. then
  11975. { { $as_echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
  11976. $as_echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
  11977. { (exit 1); exit 1; }; }
  11978. fi
  11979. cat >>confdefs.h <<\_ACEOF
  11980. #define NDEBUG 1
  11981. _ACEOF
  11982. debug=""
  11983. if test "$GCC" = yes
  11984. then
  11985. optimize="$optimize -fomit-frame-pointer"
  11986. fi
  11987. ;;
  11988. esac
  11989. fi
  11990. { $as_echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
  11991. $as_echo "${enable_debugging-default}" >&6; }
  11992. { $as_echo "$as_me:$LINENO: checking whether to enable experimental code" >&5
  11993. $as_echo_n "checking whether to enable experimental code... " >&6; }
  11994. # Check whether --enable-experimental was given.
  11995. if test "${enable_experimental+set}" = set; then
  11996. enableval=$enable_experimental;
  11997. case "$enableval" in
  11998. yes)
  11999. cat >>confdefs.h <<\_ACEOF
  12000. #define EXPERIMENTAL 1
  12001. _ACEOF
  12002. ;;
  12003. esac
  12004. fi
  12005. { $as_echo "$as_me:$LINENO: result: ${enable_experimental-no}" >&5
  12006. $as_echo "${enable_experimental-no}" >&6; }
  12007. test -n "$arch" && CFLAGS="$CFLAGS $arch"
  12008. test -n "$debug" && CFLAGS="$CFLAGS $debug"
  12009. test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
  12010. test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
  12011. ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list"
  12012. cat >confcache <<\_ACEOF
  12013. # This file is a shell script that caches the results of configure
  12014. # tests run on this system so they can be shared between configure
  12015. # scripts and configure runs, see configure's option --config-cache.
  12016. # It is not useful on other systems. If it contains results you don't
  12017. # want to keep, you may remove or edit it.
  12018. #
  12019. # config.status only pays attention to the cache file if you give it
  12020. # the --recheck option to rerun configure.
  12021. #
  12022. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12023. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12024. # following values.
  12025. _ACEOF
  12026. # The following way of writing the cache mishandles newlines in values,
  12027. # but we know of no workaround that is simple, portable, and efficient.
  12028. # So, we kill variables containing newlines.
  12029. # Ultrix sh set writes to stderr and can't be redirected directly,
  12030. # and sets the high bit in the cache file unless we assign to the vars.
  12031. (
  12032. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12033. eval ac_val=\$$ac_var
  12034. case $ac_val in #(
  12035. *${as_nl}*)
  12036. case $ac_var in #(
  12037. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12038. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12039. esac
  12040. case $ac_var in #(
  12041. _ | IFS | as_nl) ;; #(
  12042. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12043. *) $as_unset $ac_var ;;
  12044. esac ;;
  12045. esac
  12046. done
  12047. (set) 2>&1 |
  12048. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12049. *${as_nl}ac_space=\ *)
  12050. # `set' does not quote correctly, so add quotes (double-quote
  12051. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12052. sed -n \
  12053. "s/'/'\\\\''/g;
  12054. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12055. ;; #(
  12056. *)
  12057. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12058. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12059. ;;
  12060. esac |
  12061. sort
  12062. ) |
  12063. sed '
  12064. /^ac_cv_env_/b end
  12065. t clear
  12066. :clear
  12067. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12068. t end
  12069. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12070. :end' >>confcache
  12071. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12072. if test -w "$cache_file"; then
  12073. test "x$cache_file" != "x/dev/null" &&
  12074. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12075. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12076. cat confcache >$cache_file
  12077. else
  12078. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12079. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12080. fi
  12081. fi
  12082. rm -f confcache
  12083. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12084. # Let make expand exec_prefix.
  12085. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12086. DEFS=-DHAVE_CONFIG_H
  12087. ac_libobjs=
  12088. ac_ltlibobjs=
  12089. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12090. # 1. Remove the extension, and $U if already installed.
  12091. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12092. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12093. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12094. # will be set to the directory where LIBOBJS objects are built.
  12095. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12096. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12097. done
  12098. LIBOBJS=$ac_libobjs
  12099. LTLIBOBJS=$ac_ltlibobjs
  12100. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12101. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12102. Usually this means the macro was only invoked conditionally." >&5
  12103. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12104. Usually this means the macro was only invoked conditionally." >&2;}
  12105. { (exit 1); exit 1; }; }
  12106. fi
  12107. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12108. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12109. Usually this means the macro was only invoked conditionally." >&5
  12110. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12111. Usually this means the macro was only invoked conditionally." >&2;}
  12112. { (exit 1); exit 1; }; }
  12113. fi
  12114. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  12115. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  12116. Usually this means the macro was only invoked conditionally." >&5
  12117. $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  12118. Usually this means the macro was only invoked conditionally." >&2;}
  12119. { (exit 1); exit 1; }; }
  12120. fi
  12121. : ${CONFIG_STATUS=./config.status}
  12122. ac_write_fail=0
  12123. ac_clean_files_save=$ac_clean_files
  12124. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12125. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12126. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12127. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12128. #! $SHELL
  12129. # Generated by $as_me.
  12130. # Run this file to recreate the current configuration.
  12131. # Compiler output produced by configure, useful for debugging
  12132. # configure, is in config.log if it exists.
  12133. debug=false
  12134. ac_cs_recheck=false
  12135. ac_cs_silent=false
  12136. SHELL=\${CONFIG_SHELL-$SHELL}
  12137. _ACEOF
  12138. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12139. ## --------------------- ##
  12140. ## M4sh Initialization. ##
  12141. ## --------------------- ##
  12142. # Be more Bourne compatible
  12143. DUALCASE=1; export DUALCASE # for MKS sh
  12144. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12145. emulate sh
  12146. NULLCMD=:
  12147. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12148. # is contrary to our usage. Disable this feature.
  12149. alias -g '${1+"$@"}'='"$@"'
  12150. setopt NO_GLOB_SUBST
  12151. else
  12152. case `(set -o) 2>/dev/null` in
  12153. *posix*) set -o posix ;;
  12154. esac
  12155. fi
  12156. # PATH needs CR
  12157. # Avoid depending upon Character Ranges.
  12158. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12159. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12160. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12161. as_cr_digits='0123456789'
  12162. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12163. as_nl='
  12164. '
  12165. export as_nl
  12166. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12167. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12168. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12169. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12170. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12171. as_echo='printf %s\n'
  12172. as_echo_n='printf %s'
  12173. else
  12174. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12175. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12176. as_echo_n='/usr/ucb/echo -n'
  12177. else
  12178. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12179. as_echo_n_body='eval
  12180. arg=$1;
  12181. case $arg in
  12182. *"$as_nl"*)
  12183. expr "X$arg" : "X\\(.*\\)$as_nl";
  12184. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12185. esac;
  12186. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12187. '
  12188. export as_echo_n_body
  12189. as_echo_n='sh -c $as_echo_n_body as_echo'
  12190. fi
  12191. export as_echo_body
  12192. as_echo='sh -c $as_echo_body as_echo'
  12193. fi
  12194. # The user is always right.
  12195. if test "${PATH_SEPARATOR+set}" != set; then
  12196. PATH_SEPARATOR=:
  12197. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12198. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12199. PATH_SEPARATOR=';'
  12200. }
  12201. fi
  12202. # Support unset when possible.
  12203. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12204. as_unset=unset
  12205. else
  12206. as_unset=false
  12207. fi
  12208. # IFS
  12209. # We need space, tab and new line, in precisely that order. Quoting is
  12210. # there to prevent editors from complaining about space-tab.
  12211. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12212. # splitting by setting IFS to empty value.)
  12213. IFS=" "" $as_nl"
  12214. # Find who we are. Look in the path if we contain no directory separator.
  12215. case $0 in
  12216. *[\\/]* ) as_myself=$0 ;;
  12217. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12218. for as_dir in $PATH
  12219. do
  12220. IFS=$as_save_IFS
  12221. test -z "$as_dir" && as_dir=.
  12222. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12223. done
  12224. IFS=$as_save_IFS
  12225. ;;
  12226. esac
  12227. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12228. # in which case we are not to be found in the path.
  12229. if test "x$as_myself" = x; then
  12230. as_myself=$0
  12231. fi
  12232. if test ! -f "$as_myself"; then
  12233. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12234. { (exit 1); exit 1; }
  12235. fi
  12236. # Work around bugs in pre-3.0 UWIN ksh.
  12237. for as_var in ENV MAIL MAILPATH
  12238. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12239. done
  12240. PS1='$ '
  12241. PS2='> '
  12242. PS4='+ '
  12243. # NLS nuisances.
  12244. LC_ALL=C
  12245. export LC_ALL
  12246. LANGUAGE=C
  12247. export LANGUAGE
  12248. # Required to use basename.
  12249. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12250. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12251. as_expr=expr
  12252. else
  12253. as_expr=false
  12254. fi
  12255. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12256. as_basename=basename
  12257. else
  12258. as_basename=false
  12259. fi
  12260. # Name of the executable.
  12261. as_me=`$as_basename -- "$0" ||
  12262. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12263. X"$0" : 'X\(//\)$' \| \
  12264. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12265. $as_echo X/"$0" |
  12266. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12267. s//\1/
  12268. q
  12269. }
  12270. /^X\/\(\/\/\)$/{
  12271. s//\1/
  12272. q
  12273. }
  12274. /^X\/\(\/\).*/{
  12275. s//\1/
  12276. q
  12277. }
  12278. s/.*/./; q'`
  12279. # CDPATH.
  12280. $as_unset CDPATH
  12281. as_lineno_1=$LINENO
  12282. as_lineno_2=$LINENO
  12283. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12284. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12285. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12286. # uniformly replaced by the line number. The first 'sed' inserts a
  12287. # line-number line after each line using $LINENO; the second 'sed'
  12288. # does the real work. The second script uses 'N' to pair each
  12289. # line-number line with the line containing $LINENO, and appends
  12290. # trailing '-' during substitution so that $LINENO is not a special
  12291. # case at line end.
  12292. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12293. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12294. # E. McMahon (1931-1989) for sed's syntax. :-)
  12295. sed -n '
  12296. p
  12297. /[$]LINENO/=
  12298. ' <$as_myself |
  12299. sed '
  12300. s/[$]LINENO.*/&-/
  12301. t lineno
  12302. b
  12303. :lineno
  12304. N
  12305. :loop
  12306. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12307. t loop
  12308. s/-\n.*//
  12309. ' >$as_me.lineno &&
  12310. chmod +x "$as_me.lineno" ||
  12311. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12312. { (exit 1); exit 1; }; }
  12313. # Don't try to exec as it changes $[0], causing all sort of problems
  12314. # (the dirname of $[0] is not the place where we might find the
  12315. # original and so on. Autoconf is especially sensitive to this).
  12316. . "./$as_me.lineno"
  12317. # Exit status is that of the last command.
  12318. exit
  12319. }
  12320. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12321. as_dirname=dirname
  12322. else
  12323. as_dirname=false
  12324. fi
  12325. ECHO_C= ECHO_N= ECHO_T=
  12326. case `echo -n x` in
  12327. -n*)
  12328. case `echo 'x\c'` in
  12329. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12330. *) ECHO_C='\c';;
  12331. esac;;
  12332. *)
  12333. ECHO_N='-n';;
  12334. esac
  12335. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12336. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12337. as_expr=expr
  12338. else
  12339. as_expr=false
  12340. fi
  12341. rm -f conf$$ conf$$.exe conf$$.file
  12342. if test -d conf$$.dir; then
  12343. rm -f conf$$.dir/conf$$.file
  12344. else
  12345. rm -f conf$$.dir
  12346. mkdir conf$$.dir 2>/dev/null
  12347. fi
  12348. if (echo >conf$$.file) 2>/dev/null; then
  12349. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12350. as_ln_s='ln -s'
  12351. # ... but there are two gotchas:
  12352. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12353. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12354. # In both cases, we have to default to `cp -p'.
  12355. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12356. as_ln_s='cp -p'
  12357. elif ln conf$$.file conf$$ 2>/dev/null; then
  12358. as_ln_s=ln
  12359. else
  12360. as_ln_s='cp -p'
  12361. fi
  12362. else
  12363. as_ln_s='cp -p'
  12364. fi
  12365. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12366. rmdir conf$$.dir 2>/dev/null
  12367. if mkdir -p . 2>/dev/null; then
  12368. as_mkdir_p=:
  12369. else
  12370. test -d ./-p && rmdir ./-p
  12371. as_mkdir_p=false
  12372. fi
  12373. if test -x / >/dev/null 2>&1; then
  12374. as_test_x='test -x'
  12375. else
  12376. if ls -dL / >/dev/null 2>&1; then
  12377. as_ls_L_option=L
  12378. else
  12379. as_ls_L_option=
  12380. fi
  12381. as_test_x='
  12382. eval sh -c '\''
  12383. if test -d "$1"; then
  12384. test -d "$1/.";
  12385. else
  12386. case $1 in
  12387. -*)set "./$1";;
  12388. esac;
  12389. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12390. ???[sx]*):;;*)false;;esac;fi
  12391. '\'' sh
  12392. '
  12393. fi
  12394. as_executable_p=$as_test_x
  12395. # Sed expression to map a string onto a valid CPP name.
  12396. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12397. # Sed expression to map a string onto a valid variable name.
  12398. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12399. exec 6>&1
  12400. # Save the log message, to keep $[0] and so on meaningful, and to
  12401. # report actual input values of CONFIG_FILES etc. instead of their
  12402. # values after options handling.
  12403. ac_log="
  12404. This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was
  12405. generated by GNU Autoconf 2.63. Invocation command line was
  12406. CONFIG_FILES = $CONFIG_FILES
  12407. CONFIG_HEADERS = $CONFIG_HEADERS
  12408. CONFIG_LINKS = $CONFIG_LINKS
  12409. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12410. $ $0 $@
  12411. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12412. "
  12413. _ACEOF
  12414. case $ac_config_files in *"
  12415. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12416. esac
  12417. case $ac_config_headers in *"
  12418. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12419. esac
  12420. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12421. # Files that config.status was made for.
  12422. config_files="$ac_config_files"
  12423. config_headers="$ac_config_headers"
  12424. config_commands="$ac_config_commands"
  12425. _ACEOF
  12426. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12427. ac_cs_usage="\
  12428. \`$as_me' instantiates files from templates according to the
  12429. current configuration.
  12430. Usage: $0 [OPTION]... [FILE]...
  12431. -h, --help print this help, then exit
  12432. -V, --version print version number and configuration settings, then exit
  12433. -q, --quiet, --silent
  12434. do not print progress messages
  12435. -d, --debug don't remove temporary files
  12436. --recheck update $as_me by reconfiguring in the same conditions
  12437. --file=FILE[:TEMPLATE]
  12438. instantiate the configuration file FILE
  12439. --header=FILE[:TEMPLATE]
  12440. instantiate the configuration header FILE
  12441. Configuration files:
  12442. $config_files
  12443. Configuration headers:
  12444. $config_headers
  12445. Configuration commands:
  12446. $config_commands
  12447. Report bugs to <bug-autoconf@gnu.org>."
  12448. _ACEOF
  12449. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12450. ac_cs_version="\\
  12451. MPEG Audio Decoder config.status 0.15.1b
  12452. configured by $0, generated by GNU Autoconf 2.63,
  12453. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12454. Copyright (C) 2008 Free Software Foundation, Inc.
  12455. This config.status script is free software; the Free Software Foundation
  12456. gives unlimited permission to copy, distribute and modify it."
  12457. ac_pwd='$ac_pwd'
  12458. srcdir='$srcdir'
  12459. INSTALL='$INSTALL'
  12460. MKDIR_P='$MKDIR_P'
  12461. AWK='$AWK'
  12462. test -n "\$AWK" || AWK=awk
  12463. _ACEOF
  12464. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12465. # The default lists apply if the user does not specify any file.
  12466. ac_need_defaults=:
  12467. while test $# != 0
  12468. do
  12469. case $1 in
  12470. --*=*)
  12471. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12472. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12473. ac_shift=:
  12474. ;;
  12475. *)
  12476. ac_option=$1
  12477. ac_optarg=$2
  12478. ac_shift=shift
  12479. ;;
  12480. esac
  12481. case $ac_option in
  12482. # Handling of the options.
  12483. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12484. ac_cs_recheck=: ;;
  12485. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12486. $as_echo "$ac_cs_version"; exit ;;
  12487. --debug | --debu | --deb | --de | --d | -d )
  12488. debug=: ;;
  12489. --file | --fil | --fi | --f )
  12490. $ac_shift
  12491. case $ac_optarg in
  12492. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12493. esac
  12494. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12495. ac_need_defaults=false;;
  12496. --header | --heade | --head | --hea )
  12497. $ac_shift
  12498. case $ac_optarg in
  12499. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12500. esac
  12501. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12502. ac_need_defaults=false;;
  12503. --he | --h)
  12504. # Conflict between --help and --header
  12505. { $as_echo "$as_me: error: ambiguous option: $1
  12506. Try \`$0 --help' for more information." >&2
  12507. { (exit 1); exit 1; }; };;
  12508. --help | --hel | -h )
  12509. $as_echo "$ac_cs_usage"; exit ;;
  12510. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12511. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12512. ac_cs_silent=: ;;
  12513. # This is an error.
  12514. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12515. Try \`$0 --help' for more information." >&2
  12516. { (exit 1); exit 1; }; } ;;
  12517. *) ac_config_targets="$ac_config_targets $1"
  12518. ac_need_defaults=false ;;
  12519. esac
  12520. shift
  12521. done
  12522. ac_configure_extra_args=
  12523. if $ac_cs_silent; then
  12524. exec 6>/dev/null
  12525. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12526. fi
  12527. _ACEOF
  12528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12529. if \$ac_cs_recheck; then
  12530. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12531. shift
  12532. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12533. CONFIG_SHELL='$SHELL'
  12534. export CONFIG_SHELL
  12535. exec "\$@"
  12536. fi
  12537. _ACEOF
  12538. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12539. exec 5>>config.log
  12540. {
  12541. echo
  12542. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12543. ## Running $as_me. ##
  12544. _ASBOX
  12545. $as_echo "$ac_log"
  12546. } >&5
  12547. _ACEOF
  12548. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12549. #
  12550. # INIT-COMMANDS
  12551. #
  12552. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12553. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12554. # if CDPATH is set.
  12555. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12556. sed_quote_subst='$sed_quote_subst'
  12557. double_quote_subst='$double_quote_subst'
  12558. delay_variable_subst='$delay_variable_subst'
  12559. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  12560. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  12561. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  12562. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  12563. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  12564. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  12565. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12566. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  12567. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  12568. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12569. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  12570. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  12571. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  12572. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  12573. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  12574. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12575. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12576. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  12577. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  12578. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  12579. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  12580. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  12581. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  12582. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  12583. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  12584. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  12585. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12586. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12587. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  12588. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  12589. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  12590. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  12591. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12592. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  12593. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  12594. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12595. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12596. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12597. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  12598. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12599. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  12600. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  12601. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  12602. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  12603. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  12604. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12605. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  12606. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  12607. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  12608. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  12609. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12610. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  12611. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  12612. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  12613. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  12614. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  12615. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  12616. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  12617. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  12618. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12619. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  12620. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  12621. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12622. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12623. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  12624. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  12625. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12626. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12627. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  12628. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12629. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12630. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12631. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12632. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12633. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12634. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12635. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12636. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12637. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12638. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12639. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  12640. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  12641. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  12642. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  12643. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12644. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  12645. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  12646. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  12647. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  12648. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  12649. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12650. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12651. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12652. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12653. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12654. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  12655. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12656. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  12657. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  12658. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12659. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12660. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  12661. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12662. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12663. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12664. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12665. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12666. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12667. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  12668. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  12669. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12670. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12671. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  12672. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  12673. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  12674. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  12675. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12676. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12677. LTCC='$LTCC'
  12678. LTCFLAGS='$LTCFLAGS'
  12679. compiler='$compiler_DEFAULT'
  12680. # Quote evaled strings.
  12681. for var in SED \
  12682. GREP \
  12683. EGREP \
  12684. FGREP \
  12685. LD \
  12686. NM \
  12687. LN_S \
  12688. lt_SP2NL \
  12689. lt_NL2SP \
  12690. reload_flag \
  12691. OBJDUMP \
  12692. deplibs_check_method \
  12693. file_magic_cmd \
  12694. AR \
  12695. AR_FLAGS \
  12696. STRIP \
  12697. RANLIB \
  12698. CC \
  12699. CFLAGS \
  12700. compiler \
  12701. lt_cv_sys_global_symbol_pipe \
  12702. lt_cv_sys_global_symbol_to_cdecl \
  12703. lt_cv_sys_global_symbol_to_c_name_address \
  12704. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12705. SHELL \
  12706. ECHO \
  12707. lt_prog_compiler_no_builtin_flag \
  12708. lt_prog_compiler_wl \
  12709. lt_prog_compiler_pic \
  12710. lt_prog_compiler_static \
  12711. lt_cv_prog_compiler_c_o \
  12712. need_locks \
  12713. DSYMUTIL \
  12714. NMEDIT \
  12715. LIPO \
  12716. OTOOL \
  12717. OTOOL64 \
  12718. shrext_cmds \
  12719. export_dynamic_flag_spec \
  12720. whole_archive_flag_spec \
  12721. compiler_needs_object \
  12722. with_gnu_ld \
  12723. allow_undefined_flag \
  12724. no_undefined_flag \
  12725. hardcode_libdir_flag_spec \
  12726. hardcode_libdir_flag_spec_ld \
  12727. hardcode_libdir_separator \
  12728. fix_srcfile_path \
  12729. exclude_expsyms \
  12730. include_expsyms \
  12731. file_list_spec \
  12732. variables_saved_for_relink \
  12733. libname_spec \
  12734. library_names_spec \
  12735. soname_spec \
  12736. finish_eval \
  12737. old_striplib \
  12738. striplib; do
  12739. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12740. *[\\\\\\\`\\"\\\$]*)
  12741. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12742. ;;
  12743. *)
  12744. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12745. ;;
  12746. esac
  12747. done
  12748. # Double-quote double-evaled strings.
  12749. for var in reload_cmds \
  12750. old_postinstall_cmds \
  12751. old_postuninstall_cmds \
  12752. old_archive_cmds \
  12753. extract_expsyms_cmds \
  12754. old_archive_from_new_cmds \
  12755. old_archive_from_expsyms_cmds \
  12756. archive_cmds \
  12757. archive_expsym_cmds \
  12758. module_cmds \
  12759. module_expsym_cmds \
  12760. export_symbols_cmds \
  12761. prelink_cmds \
  12762. postinstall_cmds \
  12763. postuninstall_cmds \
  12764. finish_cmds \
  12765. sys_lib_search_path_spec \
  12766. sys_lib_dlsearch_path_spec; do
  12767. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12768. *[\\\\\\\`\\"\\\$]*)
  12769. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12770. ;;
  12771. *)
  12772. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12773. ;;
  12774. esac
  12775. done
  12776. # Fix-up fallback echo if it was mangled by the above quoting rules.
  12777. case \$lt_ECHO in
  12778. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  12779. ;;
  12780. esac
  12781. ac_aux_dir='$ac_aux_dir'
  12782. xsi_shell='$xsi_shell'
  12783. lt_shell_append='$lt_shell_append'
  12784. # See if we are running on zsh, and set the options which allow our
  12785. # commands through without removal of \ escapes INIT.
  12786. if test -n "\${ZSH_VERSION+set}" ; then
  12787. setopt NO_GLOB_SUBST
  12788. fi
  12789. PACKAGE='$PACKAGE'
  12790. VERSION='$VERSION'
  12791. TIMESTAMP='$TIMESTAMP'
  12792. RM='$RM'
  12793. ofile='$ofile'
  12794. _ACEOF
  12795. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12796. # Handling of arguments.
  12797. for ac_config_target in $ac_config_targets
  12798. do
  12799. case $ac_config_target in
  12800. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12801. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12802. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12803. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12804. "msvc++/Makefile") CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
  12805. "libmad.list") CONFIG_FILES="$CONFIG_FILES libmad.list" ;;
  12806. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12807. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12808. { (exit 1); exit 1; }; };;
  12809. esac
  12810. done
  12811. # If the user did not use the arguments to specify the items to instantiate,
  12812. # then the envvar interface is used. Set only those that are not.
  12813. # We use the long form for the default assignment because of an extremely
  12814. # bizarre bug on SunOS 4.1.3.
  12815. if $ac_need_defaults; then
  12816. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12817. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12818. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12819. fi
  12820. # Have a temporary directory for convenience. Make it in the build tree
  12821. # simply because there is no reason against having it here, and in addition,
  12822. # creating and moving files from /tmp can sometimes cause problems.
  12823. # Hook for its removal unless debugging.
  12824. # Note that there is a small window in which the directory will not be cleaned:
  12825. # after its creation but before its name has been assigned to `$tmp'.
  12826. $debug ||
  12827. {
  12828. tmp=
  12829. trap 'exit_status=$?
  12830. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12831. ' 0
  12832. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12833. }
  12834. # Create a (secure) tmp directory for tmp files.
  12835. {
  12836. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12837. test -n "$tmp" && test -d "$tmp"
  12838. } ||
  12839. {
  12840. tmp=./conf$$-$RANDOM
  12841. (umask 077 && mkdir "$tmp")
  12842. } ||
  12843. {
  12844. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12845. { (exit 1); exit 1; }
  12846. }
  12847. # Set up the scripts for CONFIG_FILES section.
  12848. # No need to generate them if there are no CONFIG_FILES.
  12849. # This happens for instance with `./config.status config.h'.
  12850. if test -n "$CONFIG_FILES"; then
  12851. ac_cr=' '
  12852. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12853. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12854. ac_cs_awk_cr='\\r'
  12855. else
  12856. ac_cs_awk_cr=$ac_cr
  12857. fi
  12858. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12859. _ACEOF
  12860. {
  12861. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12862. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12863. echo "_ACEOF"
  12864. } >conf$$subs.sh ||
  12865. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12866. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12867. { (exit 1); exit 1; }; }
  12868. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12869. ac_delim='%!_!# '
  12870. for ac_last_try in false false false false false :; do
  12871. . ./conf$$subs.sh ||
  12872. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12873. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12874. { (exit 1); exit 1; }; }
  12875. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12876. if test $ac_delim_n = $ac_delim_num; then
  12877. break
  12878. elif $ac_last_try; then
  12879. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12880. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12881. { (exit 1); exit 1; }; }
  12882. else
  12883. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12884. fi
  12885. done
  12886. rm -f conf$$subs.sh
  12887. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12888. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12889. _ACEOF
  12890. sed -n '
  12891. h
  12892. s/^/S["/; s/!.*/"]=/
  12893. p
  12894. g
  12895. s/^[^!]*!//
  12896. :repl
  12897. t repl
  12898. s/'"$ac_delim"'$//
  12899. t delim
  12900. :nl
  12901. h
  12902. s/\(.\{148\}\).*/\1/
  12903. t more1
  12904. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12905. p
  12906. n
  12907. b repl
  12908. :more1
  12909. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12910. p
  12911. g
  12912. s/.\{148\}//
  12913. t nl
  12914. :delim
  12915. h
  12916. s/\(.\{148\}\).*/\1/
  12917. t more2
  12918. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12919. p
  12920. b
  12921. :more2
  12922. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12923. p
  12924. g
  12925. s/.\{148\}//
  12926. t delim
  12927. ' <conf$$subs.awk | sed '
  12928. /^[^""]/{
  12929. N
  12930. s/\n//
  12931. }
  12932. ' >>$CONFIG_STATUS || ac_write_fail=1
  12933. rm -f conf$$subs.awk
  12934. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12935. _ACAWK
  12936. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12937. for (key in S) S_is_set[key] = 1
  12938. FS = ""
  12939. }
  12940. {
  12941. line = $ 0
  12942. nfields = split(line, field, "@")
  12943. substed = 0
  12944. len = length(field[1])
  12945. for (i = 2; i < nfields; i++) {
  12946. key = field[i]
  12947. keylen = length(key)
  12948. if (S_is_set[key]) {
  12949. value = S[key]
  12950. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12951. len += length(value) + length(field[++i])
  12952. substed = 1
  12953. } else
  12954. len += 1 + keylen
  12955. }
  12956. print line
  12957. }
  12958. _ACAWK
  12959. _ACEOF
  12960. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12961. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12962. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12963. else
  12964. cat
  12965. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12966. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  12967. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  12968. { (exit 1); exit 1; }; }
  12969. _ACEOF
  12970. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12971. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12972. # trailing colons and then remove the whole line if VPATH becomes empty
  12973. # (actually we leave an empty line to preserve line numbers).
  12974. if test "x$srcdir" = x.; then
  12975. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12976. s/:*\$(srcdir):*/:/
  12977. s/:*\${srcdir}:*/:/
  12978. s/:*@srcdir@:*/:/
  12979. s/^\([^=]*=[ ]*\):*/\1/
  12980. s/:*$//
  12981. s/^[^=]*=[ ]*$//
  12982. }'
  12983. fi
  12984. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12985. fi # test -n "$CONFIG_FILES"
  12986. # Set up the scripts for CONFIG_HEADERS section.
  12987. # No need to generate them if there are no CONFIG_HEADERS.
  12988. # This happens for instance with `./config.status Makefile'.
  12989. if test -n "$CONFIG_HEADERS"; then
  12990. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12991. BEGIN {
  12992. _ACEOF
  12993. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12994. # here-document in config.status, that substitutes the proper values into
  12995. # config.h.in to produce config.h.
  12996. # Create a delimiter string that does not exist in confdefs.h, to ease
  12997. # handling of long lines.
  12998. ac_delim='%!_!# '
  12999. for ac_last_try in false false :; do
  13000. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13001. if test -z "$ac_t"; then
  13002. break
  13003. elif $ac_last_try; then
  13004. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  13005. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  13006. { (exit 1); exit 1; }; }
  13007. else
  13008. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13009. fi
  13010. done
  13011. # For the awk script, D is an array of macro values keyed by name,
  13012. # likewise P contains macro parameters if any. Preserve backslash
  13013. # newline sequences.
  13014. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13015. sed -n '
  13016. s/.\{148\}/&'"$ac_delim"'/g
  13017. t rset
  13018. :rset
  13019. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13020. t def
  13021. d
  13022. :def
  13023. s/\\$//
  13024. t bsnl
  13025. s/["\\]/\\&/g
  13026. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13027. D["\1"]=" \3"/p
  13028. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13029. d
  13030. :bsnl
  13031. s/["\\]/\\&/g
  13032. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13033. D["\1"]=" \3\\\\\\n"\\/p
  13034. t cont
  13035. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13036. t cont
  13037. d
  13038. :cont
  13039. n
  13040. s/.\{148\}/&'"$ac_delim"'/g
  13041. t clear
  13042. :clear
  13043. s/\\$//
  13044. t bsnlc
  13045. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13046. d
  13047. :bsnlc
  13048. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13049. b cont
  13050. ' <confdefs.h | sed '
  13051. s/'"$ac_delim"'/"\\\
  13052. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13053. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13054. for (key in D) D_is_set[key] = 1
  13055. FS = ""
  13056. }
  13057. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13058. line = \$ 0
  13059. split(line, arg, " ")
  13060. if (arg[1] == "#") {
  13061. defundef = arg[2]
  13062. mac1 = arg[3]
  13063. } else {
  13064. defundef = substr(arg[1], 2)
  13065. mac1 = arg[2]
  13066. }
  13067. split(mac1, mac2, "(") #)
  13068. macro = mac2[1]
  13069. prefix = substr(line, 1, index(line, defundef) - 1)
  13070. if (D_is_set[macro]) {
  13071. # Preserve the white space surrounding the "#".
  13072. print prefix "define", macro P[macro] D[macro]
  13073. next
  13074. } else {
  13075. # Replace #undef with comments. This is necessary, for example,
  13076. # in the case of _POSIX_SOURCE, which is predefined and required
  13077. # on some systems where configure will not decide to define it.
  13078. if (defundef == "undef") {
  13079. print "/*", prefix defundef, macro, "*/"
  13080. next
  13081. }
  13082. }
  13083. }
  13084. { print }
  13085. _ACAWK
  13086. _ACEOF
  13087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13088. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13089. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13090. { (exit 1); exit 1; }; }
  13091. fi # test -n "$CONFIG_HEADERS"
  13092. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13093. shift
  13094. for ac_tag
  13095. do
  13096. case $ac_tag in
  13097. :[FHLC]) ac_mode=$ac_tag; continue;;
  13098. esac
  13099. case $ac_mode$ac_tag in
  13100. :[FHL]*:*);;
  13101. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13102. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13103. { (exit 1); exit 1; }; };;
  13104. :[FH]-) ac_tag=-:-;;
  13105. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13106. esac
  13107. ac_save_IFS=$IFS
  13108. IFS=:
  13109. set x $ac_tag
  13110. IFS=$ac_save_IFS
  13111. shift
  13112. ac_file=$1
  13113. shift
  13114. case $ac_mode in
  13115. :L) ac_source=$1;;
  13116. :[FH])
  13117. ac_file_inputs=
  13118. for ac_f
  13119. do
  13120. case $ac_f in
  13121. -) ac_f="$tmp/stdin";;
  13122. *) # Look for the file first in the build tree, then in the source tree
  13123. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13124. # because $ac_f cannot contain `:'.
  13125. test -f "$ac_f" ||
  13126. case $ac_f in
  13127. [\\/$]*) false;;
  13128. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13129. esac ||
  13130. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13131. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13132. { (exit 1); exit 1; }; };;
  13133. esac
  13134. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13135. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13136. done
  13137. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13138. # use $as_me), people would be surprised to read:
  13139. # /* config.h. Generated by config.status. */
  13140. configure_input='Generated from '`
  13141. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13142. `' by configure.'
  13143. if test x"$ac_file" != x-; then
  13144. configure_input="$ac_file. $configure_input"
  13145. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13146. $as_echo "$as_me: creating $ac_file" >&6;}
  13147. fi
  13148. # Neutralize special characters interpreted by sed in replacement strings.
  13149. case $configure_input in #(
  13150. *\&* | *\|* | *\\* )
  13151. ac_sed_conf_input=`$as_echo "$configure_input" |
  13152. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13153. *) ac_sed_conf_input=$configure_input;;
  13154. esac
  13155. case $ac_tag in
  13156. *:-:* | *:-) cat >"$tmp/stdin" \
  13157. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13158. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13159. { (exit 1); exit 1; }; } ;;
  13160. esac
  13161. ;;
  13162. esac
  13163. ac_dir=`$as_dirname -- "$ac_file" ||
  13164. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13165. X"$ac_file" : 'X\(//\)[^/]' \| \
  13166. X"$ac_file" : 'X\(//\)$' \| \
  13167. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13168. $as_echo X"$ac_file" |
  13169. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13170. s//\1/
  13171. q
  13172. }
  13173. /^X\(\/\/\)[^/].*/{
  13174. s//\1/
  13175. q
  13176. }
  13177. /^X\(\/\/\)$/{
  13178. s//\1/
  13179. q
  13180. }
  13181. /^X\(\/\).*/{
  13182. s//\1/
  13183. q
  13184. }
  13185. s/.*/./; q'`
  13186. { as_dir="$ac_dir"
  13187. case $as_dir in #(
  13188. -*) as_dir=./$as_dir;;
  13189. esac
  13190. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13191. as_dirs=
  13192. while :; do
  13193. case $as_dir in #(
  13194. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13195. *) as_qdir=$as_dir;;
  13196. esac
  13197. as_dirs="'$as_qdir' $as_dirs"
  13198. as_dir=`$as_dirname -- "$as_dir" ||
  13199. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13200. X"$as_dir" : 'X\(//\)[^/]' \| \
  13201. X"$as_dir" : 'X\(//\)$' \| \
  13202. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13203. $as_echo X"$as_dir" |
  13204. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13205. s//\1/
  13206. q
  13207. }
  13208. /^X\(\/\/\)[^/].*/{
  13209. s//\1/
  13210. q
  13211. }
  13212. /^X\(\/\/\)$/{
  13213. s//\1/
  13214. q
  13215. }
  13216. /^X\(\/\).*/{
  13217. s//\1/
  13218. q
  13219. }
  13220. s/.*/./; q'`
  13221. test -d "$as_dir" && break
  13222. done
  13223. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13224. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13225. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13226. { (exit 1); exit 1; }; }; }
  13227. ac_builddir=.
  13228. case "$ac_dir" in
  13229. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13230. *)
  13231. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13232. # A ".." for each directory in $ac_dir_suffix.
  13233. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13234. case $ac_top_builddir_sub in
  13235. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13236. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13237. esac ;;
  13238. esac
  13239. ac_abs_top_builddir=$ac_pwd
  13240. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13241. # for backward compatibility:
  13242. ac_top_builddir=$ac_top_build_prefix
  13243. case $srcdir in
  13244. .) # We are building in place.
  13245. ac_srcdir=.
  13246. ac_top_srcdir=$ac_top_builddir_sub
  13247. ac_abs_top_srcdir=$ac_pwd ;;
  13248. [\\/]* | ?:[\\/]* ) # Absolute name.
  13249. ac_srcdir=$srcdir$ac_dir_suffix;
  13250. ac_top_srcdir=$srcdir
  13251. ac_abs_top_srcdir=$srcdir ;;
  13252. *) # Relative name.
  13253. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13254. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13255. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13256. esac
  13257. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13258. case $ac_mode in
  13259. :F)
  13260. #
  13261. # CONFIG_FILE
  13262. #
  13263. case $INSTALL in
  13264. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13265. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13266. esac
  13267. ac_MKDIR_P=$MKDIR_P
  13268. case $MKDIR_P in
  13269. [\\/$]* | ?:[\\/]* ) ;;
  13270. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13271. esac
  13272. _ACEOF
  13273. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13274. # If the template does not know about datarootdir, expand it.
  13275. # FIXME: This hack should be removed a few years after 2.60.
  13276. ac_datarootdir_hack=; ac_datarootdir_seen=
  13277. ac_sed_dataroot='
  13278. /datarootdir/ {
  13279. p
  13280. q
  13281. }
  13282. /@datadir@/p
  13283. /@docdir@/p
  13284. /@infodir@/p
  13285. /@localedir@/p
  13286. /@mandir@/p
  13287. '
  13288. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13289. *datarootdir*) ac_datarootdir_seen=yes;;
  13290. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13291. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13292. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13293. _ACEOF
  13294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13295. ac_datarootdir_hack='
  13296. s&@datadir@&$datadir&g
  13297. s&@docdir@&$docdir&g
  13298. s&@infodir@&$infodir&g
  13299. s&@localedir@&$localedir&g
  13300. s&@mandir@&$mandir&g
  13301. s&\\\${datarootdir}&$datarootdir&g' ;;
  13302. esac
  13303. _ACEOF
  13304. # Neutralize VPATH when `$srcdir' = `.'.
  13305. # Shell code in configure.ac might set extrasub.
  13306. # FIXME: do we really want to maintain this feature?
  13307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13308. ac_sed_extra="$ac_vpsub
  13309. $extrasub
  13310. _ACEOF
  13311. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13312. :t
  13313. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13314. s|@configure_input@|$ac_sed_conf_input|;t t
  13315. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13316. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13317. s&@srcdir@&$ac_srcdir&;t t
  13318. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13319. s&@top_srcdir@&$ac_top_srcdir&;t t
  13320. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13321. s&@builddir@&$ac_builddir&;t t
  13322. s&@abs_builddir@&$ac_abs_builddir&;t t
  13323. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13324. s&@INSTALL@&$ac_INSTALL&;t t
  13325. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13326. $ac_datarootdir_hack
  13327. "
  13328. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13329. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13330. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13331. { (exit 1); exit 1; }; }
  13332. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13333. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13334. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13335. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13336. which seems to be undefined. Please make sure it is defined." >&5
  13337. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13338. which seems to be undefined. Please make sure it is defined." >&2;}
  13339. rm -f "$tmp/stdin"
  13340. case $ac_file in
  13341. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13342. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13343. esac \
  13344. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13345. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13346. { (exit 1); exit 1; }; }
  13347. ;;
  13348. :H)
  13349. #
  13350. # CONFIG_HEADER
  13351. #
  13352. if test x"$ac_file" != x-; then
  13353. {
  13354. $as_echo "/* $configure_input */" \
  13355. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13356. } >"$tmp/config.h" \
  13357. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13358. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13359. { (exit 1); exit 1; }; }
  13360. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13361. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13362. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13363. else
  13364. rm -f "$ac_file"
  13365. mv "$tmp/config.h" "$ac_file" \
  13366. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13367. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13368. { (exit 1); exit 1; }; }
  13369. fi
  13370. else
  13371. $as_echo "/* $configure_input */" \
  13372. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13373. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13374. $as_echo "$as_me: error: could not create -" >&2;}
  13375. { (exit 1); exit 1; }; }
  13376. fi
  13377. # Compute "$ac_file"'s index in $config_headers.
  13378. _am_arg="$ac_file"
  13379. _am_stamp_count=1
  13380. for _am_header in $config_headers :; do
  13381. case $_am_header in
  13382. $_am_arg | $_am_arg:* )
  13383. break ;;
  13384. * )
  13385. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13386. esac
  13387. done
  13388. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13389. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13390. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13391. X"$_am_arg" : 'X\(//\)$' \| \
  13392. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13393. $as_echo X"$_am_arg" |
  13394. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13395. s//\1/
  13396. q
  13397. }
  13398. /^X\(\/\/\)[^/].*/{
  13399. s//\1/
  13400. q
  13401. }
  13402. /^X\(\/\/\)$/{
  13403. s//\1/
  13404. q
  13405. }
  13406. /^X\(\/\).*/{
  13407. s//\1/
  13408. q
  13409. }
  13410. s/.*/./; q'`/stamp-h$_am_stamp_count
  13411. ;;
  13412. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13413. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13414. ;;
  13415. esac
  13416. case $ac_file$ac_mode in
  13417. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13418. # are listed without --file. Let's play safe and only enable the eval
  13419. # if we detect the quoting.
  13420. case $CONFIG_FILES in
  13421. *\'*) eval set x "$CONFIG_FILES" ;;
  13422. *) set x $CONFIG_FILES ;;
  13423. esac
  13424. shift
  13425. for mf
  13426. do
  13427. # Strip MF so we end up with the name of the file.
  13428. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13429. # Check whether this is an Automake generated Makefile or not.
  13430. # We used to match only the files named `Makefile.in', but
  13431. # some people rename them; so instead we look at the file content.
  13432. # Grep'ing the first line is not enough: some people post-process
  13433. # each Makefile.in and add a new line on top of each file to say so.
  13434. # Grep'ing the whole file is not good either: AIX grep has a line
  13435. # limit of 2048, but all sed's we know have understand at least 4000.
  13436. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13437. dirpart=`$as_dirname -- "$mf" ||
  13438. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13439. X"$mf" : 'X\(//\)[^/]' \| \
  13440. X"$mf" : 'X\(//\)$' \| \
  13441. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13442. $as_echo X"$mf" |
  13443. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13444. s//\1/
  13445. q
  13446. }
  13447. /^X\(\/\/\)[^/].*/{
  13448. s//\1/
  13449. q
  13450. }
  13451. /^X\(\/\/\)$/{
  13452. s//\1/
  13453. q
  13454. }
  13455. /^X\(\/\).*/{
  13456. s//\1/
  13457. q
  13458. }
  13459. s/.*/./; q'`
  13460. else
  13461. continue
  13462. fi
  13463. # Extract the definition of DEPDIR, am__include, and am__quote
  13464. # from the Makefile without running `make'.
  13465. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13466. test -z "$DEPDIR" && continue
  13467. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13468. test -z "am__include" && continue
  13469. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13470. # When using ansi2knr, U may be empty or an underscore; expand it
  13471. U=`sed -n 's/^U = //p' < "$mf"`
  13472. # Find all dependency output files, they are included files with
  13473. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13474. # simplest approach to changing $(DEPDIR) to its actual value in the
  13475. # expansion.
  13476. for file in `sed -n "
  13477. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13478. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13479. # Make sure the directory exists.
  13480. test -f "$dirpart/$file" && continue
  13481. fdir=`$as_dirname -- "$file" ||
  13482. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13483. X"$file" : 'X\(//\)[^/]' \| \
  13484. X"$file" : 'X\(//\)$' \| \
  13485. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13486. $as_echo X"$file" |
  13487. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13488. s//\1/
  13489. q
  13490. }
  13491. /^X\(\/\/\)[^/].*/{
  13492. s//\1/
  13493. q
  13494. }
  13495. /^X\(\/\/\)$/{
  13496. s//\1/
  13497. q
  13498. }
  13499. /^X\(\/\).*/{
  13500. s//\1/
  13501. q
  13502. }
  13503. s/.*/./; q'`
  13504. { as_dir=$dirpart/$fdir
  13505. case $as_dir in #(
  13506. -*) as_dir=./$as_dir;;
  13507. esac
  13508. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13509. as_dirs=
  13510. while :; do
  13511. case $as_dir in #(
  13512. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13513. *) as_qdir=$as_dir;;
  13514. esac
  13515. as_dirs="'$as_qdir' $as_dirs"
  13516. as_dir=`$as_dirname -- "$as_dir" ||
  13517. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13518. X"$as_dir" : 'X\(//\)[^/]' \| \
  13519. X"$as_dir" : 'X\(//\)$' \| \
  13520. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13521. $as_echo X"$as_dir" |
  13522. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13523. s//\1/
  13524. q
  13525. }
  13526. /^X\(\/\/\)[^/].*/{
  13527. s//\1/
  13528. q
  13529. }
  13530. /^X\(\/\/\)$/{
  13531. s//\1/
  13532. q
  13533. }
  13534. /^X\(\/\).*/{
  13535. s//\1/
  13536. q
  13537. }
  13538. s/.*/./; q'`
  13539. test -d "$as_dir" && break
  13540. done
  13541. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13542. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13543. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13544. { (exit 1); exit 1; }; }; }
  13545. # echo "creating $dirpart/$file"
  13546. echo '# dummy' > "$dirpart/$file"
  13547. done
  13548. done
  13549. ;;
  13550. "libtool":C)
  13551. # See if we are running on zsh, and set the options which allow our
  13552. # commands through without removal of \ escapes.
  13553. if test -n "${ZSH_VERSION+set}" ; then
  13554. setopt NO_GLOB_SUBST
  13555. fi
  13556. cfgfile="${ofile}T"
  13557. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13558. $RM "$cfgfile"
  13559. cat <<_LT_EOF >> "$cfgfile"
  13560. #! $SHELL
  13561. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13562. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13563. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13564. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13565. #
  13566. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13567. # 2006, 2007, 2008 Free Software Foundation, Inc.
  13568. # Written by Gordon Matzigkeit, 1996
  13569. #
  13570. # This file is part of GNU Libtool.
  13571. #
  13572. # GNU Libtool is free software; you can redistribute it and/or
  13573. # modify it under the terms of the GNU General Public License as
  13574. # published by the Free Software Foundation; either version 2 of
  13575. # the License, or (at your option) any later version.
  13576. #
  13577. # As a special exception to the GNU General Public License,
  13578. # if you distribute this file as part of a program or library that
  13579. # is built using GNU Libtool, you may include this file under the
  13580. # same distribution terms that you use for the rest of that program.
  13581. #
  13582. # GNU Libtool is distributed in the hope that it will be useful,
  13583. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13584. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13585. # GNU General Public License for more details.
  13586. #
  13587. # You should have received a copy of the GNU General Public License
  13588. # along with GNU Libtool; see the file COPYING. If not, a copy
  13589. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13590. # obtained by writing to the Free Software Foundation, Inc.,
  13591. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13592. # The names of the tagged configurations supported by this script.
  13593. available_tags=""
  13594. # ### BEGIN LIBTOOL CONFIG
  13595. # Which release of libtool.m4 was used?
  13596. macro_version=$macro_version
  13597. macro_revision=$macro_revision
  13598. # Whether or not to build shared libraries.
  13599. build_libtool_libs=$enable_shared
  13600. # Whether or not to build static libraries.
  13601. build_old_libs=$enable_static
  13602. # What type of objects to build.
  13603. pic_mode=$pic_mode
  13604. # Whether or not to optimize for fast installation.
  13605. fast_install=$enable_fast_install
  13606. # The host system.
  13607. host_alias=$host_alias
  13608. host=$host
  13609. host_os=$host_os
  13610. # The build system.
  13611. build_alias=$build_alias
  13612. build=$build
  13613. build_os=$build_os
  13614. # A sed program that does not truncate output.
  13615. SED=$lt_SED
  13616. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13617. Xsed="\$SED -e 1s/^X//"
  13618. # A grep program that handles long lines.
  13619. GREP=$lt_GREP
  13620. # An ERE matcher.
  13621. EGREP=$lt_EGREP
  13622. # A literal string matcher.
  13623. FGREP=$lt_FGREP
  13624. # A BSD- or MS-compatible name lister.
  13625. NM=$lt_NM
  13626. # Whether we need soft or hard links.
  13627. LN_S=$lt_LN_S
  13628. # What is the maximum length of a command?
  13629. max_cmd_len=$max_cmd_len
  13630. # Object file suffix (normally "o").
  13631. objext=$ac_objext
  13632. # Executable file suffix (normally "").
  13633. exeext=$exeext
  13634. # whether the shell understands "unset".
  13635. lt_unset=$lt_unset
  13636. # turn spaces into newlines.
  13637. SP2NL=$lt_lt_SP2NL
  13638. # turn newlines into spaces.
  13639. NL2SP=$lt_lt_NL2SP
  13640. # How to create reloadable object files.
  13641. reload_flag=$lt_reload_flag
  13642. reload_cmds=$lt_reload_cmds
  13643. # An object symbol dumper.
  13644. OBJDUMP=$lt_OBJDUMP
  13645. # Method to check whether dependent libraries are shared objects.
  13646. deplibs_check_method=$lt_deplibs_check_method
  13647. # Command to use when deplibs_check_method == "file_magic".
  13648. file_magic_cmd=$lt_file_magic_cmd
  13649. # The archiver.
  13650. AR=$lt_AR
  13651. AR_FLAGS=$lt_AR_FLAGS
  13652. # A symbol stripping program.
  13653. STRIP=$lt_STRIP
  13654. # Commands used to install an old-style archive.
  13655. RANLIB=$lt_RANLIB
  13656. old_postinstall_cmds=$lt_old_postinstall_cmds
  13657. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13658. # A C compiler.
  13659. LTCC=$lt_CC
  13660. # LTCC compiler flags.
  13661. LTCFLAGS=$lt_CFLAGS
  13662. # Take the output of nm and produce a listing of raw symbols and C names.
  13663. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13664. # Transform the output of nm in a proper C declaration.
  13665. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13666. # Transform the output of nm in a C name address pair.
  13667. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13668. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13669. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13670. # The name of the directory that contains temporary libtool files.
  13671. objdir=$objdir
  13672. # Shell to use when invoking shell scripts.
  13673. SHELL=$lt_SHELL
  13674. # An echo program that does not interpret backslashes.
  13675. ECHO=$lt_ECHO
  13676. # Used to examine libraries when file_magic_cmd begins with "file".
  13677. MAGIC_CMD=$MAGIC_CMD
  13678. # Must we lock files when doing compilation?
  13679. need_locks=$lt_need_locks
  13680. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13681. DSYMUTIL=$lt_DSYMUTIL
  13682. # Tool to change global to local symbols on Mac OS X.
  13683. NMEDIT=$lt_NMEDIT
  13684. # Tool to manipulate fat objects and archives on Mac OS X.
  13685. LIPO=$lt_LIPO
  13686. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13687. OTOOL=$lt_OTOOL
  13688. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13689. OTOOL64=$lt_OTOOL64
  13690. # Old archive suffix (normally "a").
  13691. libext=$libext
  13692. # Shared library suffix (normally ".so").
  13693. shrext_cmds=$lt_shrext_cmds
  13694. # The commands to extract the exported symbol list from a shared archive.
  13695. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13696. # Variables whose values should be saved in libtool wrapper scripts and
  13697. # restored at link time.
  13698. variables_saved_for_relink=$lt_variables_saved_for_relink
  13699. # Do we need the "lib" prefix for modules?
  13700. need_lib_prefix=$need_lib_prefix
  13701. # Do we need a version for libraries?
  13702. need_version=$need_version
  13703. # Library versioning type.
  13704. version_type=$version_type
  13705. # Shared library runtime path variable.
  13706. runpath_var=$runpath_var
  13707. # Shared library path variable.
  13708. shlibpath_var=$shlibpath_var
  13709. # Is shlibpath searched before the hard-coded library search path?
  13710. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13711. # Format of library name prefix.
  13712. libname_spec=$lt_libname_spec
  13713. # List of archive names. First name is the real one, the rest are links.
  13714. # The last name is the one that the linker finds with -lNAME
  13715. library_names_spec=$lt_library_names_spec
  13716. # The coded name of the library, if different from the real name.
  13717. soname_spec=$lt_soname_spec
  13718. # Command to use after installation of a shared archive.
  13719. postinstall_cmds=$lt_postinstall_cmds
  13720. # Command to use after uninstallation of a shared archive.
  13721. postuninstall_cmds=$lt_postuninstall_cmds
  13722. # Commands used to finish a libtool library installation in a directory.
  13723. finish_cmds=$lt_finish_cmds
  13724. # As "finish_cmds", except a single script fragment to be evaled but
  13725. # not shown.
  13726. finish_eval=$lt_finish_eval
  13727. # Whether we should hardcode library paths into libraries.
  13728. hardcode_into_libs=$hardcode_into_libs
  13729. # Compile-time system search path for libraries.
  13730. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13731. # Run-time system search path for libraries.
  13732. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13733. # Whether dlopen is supported.
  13734. dlopen_support=$enable_dlopen
  13735. # Whether dlopen of programs is supported.
  13736. dlopen_self=$enable_dlopen_self
  13737. # Whether dlopen of statically linked programs is supported.
  13738. dlopen_self_static=$enable_dlopen_self_static
  13739. # Commands to strip libraries.
  13740. old_striplib=$lt_old_striplib
  13741. striplib=$lt_striplib
  13742. # The linker used to build libraries.
  13743. LD=$lt_LD
  13744. # Commands used to build an old-style archive.
  13745. old_archive_cmds=$lt_old_archive_cmds
  13746. # A language specific compiler.
  13747. CC=$lt_compiler
  13748. # Is the compiler the GNU compiler?
  13749. with_gcc=$GCC
  13750. # Compiler flag to turn off builtin functions.
  13751. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13752. # How to pass a linker flag through the compiler.
  13753. wl=$lt_lt_prog_compiler_wl
  13754. # Additional compiler flags for building library objects.
  13755. pic_flag=$lt_lt_prog_compiler_pic
  13756. # Compiler flag to prevent dynamic linking.
  13757. link_static_flag=$lt_lt_prog_compiler_static
  13758. # Does compiler simultaneously support -c and -o options?
  13759. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13760. # Whether or not to add -lc for building shared libraries.
  13761. build_libtool_need_lc=$archive_cmds_need_lc
  13762. # Whether or not to disallow shared libs when runtime libs are static.
  13763. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13764. # Compiler flag to allow reflexive dlopens.
  13765. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13766. # Compiler flag to generate shared objects directly from archives.
  13767. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13768. # Whether the compiler copes with passing no objects directly.
  13769. compiler_needs_object=$lt_compiler_needs_object
  13770. # Create an old-style archive from a shared archive.
  13771. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13772. # Create a temporary old-style archive to link instead of a shared archive.
  13773. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13774. # Commands used to build a shared archive.
  13775. archive_cmds=$lt_archive_cmds
  13776. archive_expsym_cmds=$lt_archive_expsym_cmds
  13777. # Commands used to build a loadable module if different from building
  13778. # a shared archive.
  13779. module_cmds=$lt_module_cmds
  13780. module_expsym_cmds=$lt_module_expsym_cmds
  13781. # Whether we are building with GNU ld or not.
  13782. with_gnu_ld=$lt_with_gnu_ld
  13783. # Flag that allows shared libraries with undefined symbols to be built.
  13784. allow_undefined_flag=$lt_allow_undefined_flag
  13785. # Flag that enforces no undefined symbols.
  13786. no_undefined_flag=$lt_no_undefined_flag
  13787. # Flag to hardcode \$libdir into a binary during linking.
  13788. # This must work even if \$libdir does not exist
  13789. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13790. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13791. # during linking. This must work even if \$libdir does not exist.
  13792. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13793. # Whether we need a single "-rpath" flag with a separated argument.
  13794. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13795. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13796. # DIR into the resulting binary.
  13797. hardcode_direct=$hardcode_direct
  13798. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13799. # DIR into the resulting binary and the resulting library dependency is
  13800. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13801. # library is relocated.
  13802. hardcode_direct_absolute=$hardcode_direct_absolute
  13803. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13804. # into the resulting binary.
  13805. hardcode_minus_L=$hardcode_minus_L
  13806. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13807. # into the resulting binary.
  13808. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13809. # Set to "yes" if building a shared library automatically hardcodes DIR
  13810. # into the library and all subsequent libraries and executables linked
  13811. # against it.
  13812. hardcode_automatic=$hardcode_automatic
  13813. # Set to yes if linker adds runtime paths of dependent libraries
  13814. # to runtime path list.
  13815. inherit_rpath=$inherit_rpath
  13816. # Whether libtool must link a program against all its dependency libraries.
  13817. link_all_deplibs=$link_all_deplibs
  13818. # Fix the shell variable \$srcfile for the compiler.
  13819. fix_srcfile_path=$lt_fix_srcfile_path
  13820. # Set to "yes" if exported symbols are required.
  13821. always_export_symbols=$always_export_symbols
  13822. # The commands to list exported symbols.
  13823. export_symbols_cmds=$lt_export_symbols_cmds
  13824. # Symbols that should not be listed in the preloaded symbols.
  13825. exclude_expsyms=$lt_exclude_expsyms
  13826. # Symbols that must always be exported.
  13827. include_expsyms=$lt_include_expsyms
  13828. # Commands necessary for linking programs (against libraries) with templates.
  13829. prelink_cmds=$lt_prelink_cmds
  13830. # Specify filename containing input files.
  13831. file_list_spec=$lt_file_list_spec
  13832. # How to hardcode a shared library path into an executable.
  13833. hardcode_action=$hardcode_action
  13834. # ### END LIBTOOL CONFIG
  13835. _LT_EOF
  13836. case $host_os in
  13837. aix3*)
  13838. cat <<\_LT_EOF >> "$cfgfile"
  13839. # AIX sometimes has problems with the GCC collect2 program. For some
  13840. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13841. # vanish in a puff of smoke.
  13842. if test "X${COLLECT_NAMES+set}" != Xset; then
  13843. COLLECT_NAMES=
  13844. export COLLECT_NAMES
  13845. fi
  13846. _LT_EOF
  13847. ;;
  13848. esac
  13849. ltmain="$ac_aux_dir/ltmain.sh"
  13850. # We use sed instead of cat because bash on DJGPP gets confused if
  13851. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13852. # text mode, it properly converts lines to CR/LF. This bash problem
  13853. # is reportedly fixed, but why not run on old versions too?
  13854. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13855. || (rm -f "$cfgfile"; exit 1)
  13856. case $xsi_shell in
  13857. yes)
  13858. cat << \_LT_EOF >> "$cfgfile"
  13859. # func_dirname file append nondir_replacement
  13860. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13861. # otherwise set result to NONDIR_REPLACEMENT.
  13862. func_dirname ()
  13863. {
  13864. case ${1} in
  13865. */*) func_dirname_result="${1%/*}${2}" ;;
  13866. * ) func_dirname_result="${3}" ;;
  13867. esac
  13868. }
  13869. # func_basename file
  13870. func_basename ()
  13871. {
  13872. func_basename_result="${1##*/}"
  13873. }
  13874. # func_dirname_and_basename file append nondir_replacement
  13875. # perform func_basename and func_dirname in a single function
  13876. # call:
  13877. # dirname: Compute the dirname of FILE. If nonempty,
  13878. # add APPEND to the result, otherwise set result
  13879. # to NONDIR_REPLACEMENT.
  13880. # value returned in "$func_dirname_result"
  13881. # basename: Compute filename of FILE.
  13882. # value retuned in "$func_basename_result"
  13883. # Implementation must be kept synchronized with func_dirname
  13884. # and func_basename. For efficiency, we do not delegate to
  13885. # those functions but instead duplicate the functionality here.
  13886. func_dirname_and_basename ()
  13887. {
  13888. case ${1} in
  13889. */*) func_dirname_result="${1%/*}${2}" ;;
  13890. * ) func_dirname_result="${3}" ;;
  13891. esac
  13892. func_basename_result="${1##*/}"
  13893. }
  13894. # func_stripname prefix suffix name
  13895. # strip PREFIX and SUFFIX off of NAME.
  13896. # PREFIX and SUFFIX must not contain globbing or regex special
  13897. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13898. # dot (in which case that matches only a dot).
  13899. func_stripname ()
  13900. {
  13901. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13902. # positional parameters, so assign one to ordinary parameter first.
  13903. func_stripname_result=${3}
  13904. func_stripname_result=${func_stripname_result#"${1}"}
  13905. func_stripname_result=${func_stripname_result%"${2}"}
  13906. }
  13907. # func_opt_split
  13908. func_opt_split ()
  13909. {
  13910. func_opt_split_opt=${1%%=*}
  13911. func_opt_split_arg=${1#*=}
  13912. }
  13913. # func_lo2o object
  13914. func_lo2o ()
  13915. {
  13916. case ${1} in
  13917. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13918. *) func_lo2o_result=${1} ;;
  13919. esac
  13920. }
  13921. # func_xform libobj-or-source
  13922. func_xform ()
  13923. {
  13924. func_xform_result=${1%.*}.lo
  13925. }
  13926. # func_arith arithmetic-term...
  13927. func_arith ()
  13928. {
  13929. func_arith_result=$(( $* ))
  13930. }
  13931. # func_len string
  13932. # STRING may not start with a hyphen.
  13933. func_len ()
  13934. {
  13935. func_len_result=${#1}
  13936. }
  13937. _LT_EOF
  13938. ;;
  13939. *) # Bourne compatible functions.
  13940. cat << \_LT_EOF >> "$cfgfile"
  13941. # func_dirname file append nondir_replacement
  13942. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13943. # otherwise set result to NONDIR_REPLACEMENT.
  13944. func_dirname ()
  13945. {
  13946. # Extract subdirectory from the argument.
  13947. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13948. if test "X$func_dirname_result" = "X${1}"; then
  13949. func_dirname_result="${3}"
  13950. else
  13951. func_dirname_result="$func_dirname_result${2}"
  13952. fi
  13953. }
  13954. # func_basename file
  13955. func_basename ()
  13956. {
  13957. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13958. }
  13959. # func_stripname prefix suffix name
  13960. # strip PREFIX and SUFFIX off of NAME.
  13961. # PREFIX and SUFFIX must not contain globbing or regex special
  13962. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13963. # dot (in which case that matches only a dot).
  13964. # func_strip_suffix prefix name
  13965. func_stripname ()
  13966. {
  13967. case ${2} in
  13968. .*) func_stripname_result=`$ECHO "X${3}" \
  13969. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13970. *) func_stripname_result=`$ECHO "X${3}" \
  13971. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13972. esac
  13973. }
  13974. # sed scripts:
  13975. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13976. my_sed_long_arg='1s/^-[^=]*=//'
  13977. # func_opt_split
  13978. func_opt_split ()
  13979. {
  13980. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13981. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13982. }
  13983. # func_lo2o object
  13984. func_lo2o ()
  13985. {
  13986. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13987. }
  13988. # func_xform libobj-or-source
  13989. func_xform ()
  13990. {
  13991. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13992. }
  13993. # func_arith arithmetic-term...
  13994. func_arith ()
  13995. {
  13996. func_arith_result=`expr "$@"`
  13997. }
  13998. # func_len string
  13999. # STRING may not start with a hyphen.
  14000. func_len ()
  14001. {
  14002. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14003. }
  14004. _LT_EOF
  14005. esac
  14006. case $lt_shell_append in
  14007. yes)
  14008. cat << \_LT_EOF >> "$cfgfile"
  14009. # func_append var value
  14010. # Append VALUE to the end of shell variable VAR.
  14011. func_append ()
  14012. {
  14013. eval "$1+=\$2"
  14014. }
  14015. _LT_EOF
  14016. ;;
  14017. *)
  14018. cat << \_LT_EOF >> "$cfgfile"
  14019. # func_append var value
  14020. # Append VALUE to the end of shell variable VAR.
  14021. func_append ()
  14022. {
  14023. eval "$1=\$$1\$2"
  14024. }
  14025. _LT_EOF
  14026. ;;
  14027. esac
  14028. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14029. || (rm -f "$cfgfile"; exit 1)
  14030. mv -f "$cfgfile" "$ofile" ||
  14031. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14032. chmod +x "$ofile"
  14033. ;;
  14034. esac
  14035. done # for ac_tag
  14036. { (exit 0); exit 0; }
  14037. _ACEOF
  14038. chmod +x $CONFIG_STATUS
  14039. ac_clean_files=$ac_clean_files_save
  14040. test $ac_write_fail = 0 ||
  14041. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  14042. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  14043. { (exit 1); exit 1; }; }
  14044. # configure is writing to config.log, and then calls config.status.
  14045. # config.status does its own redirection, appending to config.log.
  14046. # Unfortunately, on DOS this fails, as config.log is still kept open
  14047. # by configure, so config.status won't be able to write to it; its
  14048. # output is simply discarded. So we exec the FD to /dev/null,
  14049. # effectively closing config.log, so it can be properly (re)opened and
  14050. # appended to by config.status. When coming back to configure, we
  14051. # need to make the FD available again.
  14052. if test "$no_create" != yes; then
  14053. ac_cs_success=:
  14054. ac_config_status_args=
  14055. test "$silent" = yes &&
  14056. ac_config_status_args="$ac_config_status_args --quiet"
  14057. exec 5>/dev/null
  14058. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14059. exec 5>>config.log
  14060. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14061. # would make configure fail if this is the last instruction.
  14062. $ac_cs_success || { (exit 1); exit 1; }
  14063. fi
  14064. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14065. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14066. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14067. fi