PageRenderTime 58ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 1ms

/configure

https://bitbucket.org/libusbandroid/libusb-android
Shell | 13740 lines | 11636 code | 1144 blank | 960 comment | 862 complexity | 8bd3e58d27b79d89f7bbf7636950f678 MD5 | raw file
Possible License(s): LGPL-2.1
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for libusb 1.0.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='libusb'
  647. PACKAGE_TARNAME='libusb'
  648. PACKAGE_VERSION='1.0.0'
  649. PACKAGE_STRING='libusb 1.0.0'
  650. PACKAGE_BUGREPORT=''
  651. ac_unique_file="libusb/core.c"
  652. # Factoring default headers for most tests.
  653. ac_includes_default="\
  654. #include <stdio.h>
  655. #ifdef HAVE_SYS_TYPES_H
  656. # include <sys/types.h>
  657. #endif
  658. #ifdef HAVE_SYS_STAT_H
  659. # include <sys/stat.h>
  660. #endif
  661. #ifdef STDC_HEADERS
  662. # include <stdlib.h>
  663. # include <stddef.h>
  664. #else
  665. # ifdef HAVE_STDLIB_H
  666. # include <stdlib.h>
  667. # endif
  668. #endif
  669. #ifdef HAVE_STRING_H
  670. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  671. # include <memory.h>
  672. # endif
  673. # include <string.h>
  674. #endif
  675. #ifdef HAVE_STRINGS_H
  676. # include <strings.h>
  677. #endif
  678. #ifdef HAVE_INTTYPES_H
  679. # include <inttypes.h>
  680. #endif
  681. #ifdef HAVE_STDINT_H
  682. # include <stdint.h>
  683. #endif
  684. #ifdef HAVE_UNISTD_H
  685. # include <unistd.h>
  686. #endif"
  687. ac_subst_vars='LTLIBOBJS
  688. LIBOBJS
  689. AM_CFLAGS
  690. BUILD_EXAMPLES_FALSE
  691. BUILD_EXAMPLES_TRUE
  692. lt_age
  693. lt_revision
  694. lt_major
  695. OS_LINUX_FALSE
  696. OS_LINUX_TRUE
  697. OS_LINUX
  698. CPP
  699. OTOOL64
  700. OTOOL
  701. LIPO
  702. NMEDIT
  703. DSYMUTIL
  704. lt_ECHO
  705. RANLIB
  706. AR
  707. OBJDUMP
  708. LN_S
  709. NM
  710. ac_ct_DUMPBIN
  711. DUMPBIN
  712. LD
  713. FGREP
  714. EGREP
  715. GREP
  716. SED
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. LIBTOOL
  726. am__fastdepCC_FALSE
  727. am__fastdepCC_TRUE
  728. CCDEPMODE
  729. AMDEPBACKSLASH
  730. AMDEP_FALSE
  731. AMDEP_TRUE
  732. am__quote
  733. am__include
  734. DEPDIR
  735. OBJEXT
  736. EXEEXT
  737. ac_ct_CC
  738. CPPFLAGS
  739. LDFLAGS
  740. CFLAGS
  741. CC
  742. am__untar
  743. am__tar
  744. AMTAR
  745. am__leading_dot
  746. SET_MAKE
  747. AWK
  748. mkdir_p
  749. MKDIR_P
  750. INSTALL_STRIP_PROGRAM
  751. STRIP
  752. install_sh
  753. MAKEINFO
  754. AUTOHEADER
  755. AUTOMAKE
  756. AUTOCONF
  757. ACLOCAL
  758. VERSION
  759. PACKAGE
  760. CYGPATH_W
  761. am__isrc
  762. INSTALL_DATA
  763. INSTALL_SCRIPT
  764. INSTALL_PROGRAM
  765. target_alias
  766. host_alias
  767. build_alias
  768. LIBS
  769. ECHO_T
  770. ECHO_N
  771. ECHO_C
  772. DEFS
  773. mandir
  774. localedir
  775. libdir
  776. psdir
  777. pdfdir
  778. dvidir
  779. htmldir
  780. infodir
  781. docdir
  782. oldincludedir
  783. includedir
  784. localstatedir
  785. sharedstatedir
  786. sysconfdir
  787. datadir
  788. datarootdir
  789. libexecdir
  790. sbindir
  791. bindir
  792. program_transform_name
  793. prefix
  794. exec_prefix
  795. PACKAGE_BUGREPORT
  796. PACKAGE_STRING
  797. PACKAGE_VERSION
  798. PACKAGE_TARNAME
  799. PACKAGE_NAME
  800. PATH_SEPARATOR
  801. SHELL'
  802. ac_subst_files=''
  803. ac_user_opts='
  804. enable_option_checking
  805. enable_dependency_tracking
  806. enable_shared
  807. enable_static
  808. with_pic
  809. enable_fast_install
  810. with_gnu_ld
  811. enable_libtool_lock
  812. enable_log
  813. enable_debug_log
  814. enable_examples_build
  815. '
  816. ac_precious_vars='build_alias
  817. host_alias
  818. target_alias
  819. CC
  820. CFLAGS
  821. LDFLAGS
  822. LIBS
  823. CPPFLAGS
  824. CPP'
  825. # Initialize some variables set by options.
  826. ac_init_help=
  827. ac_init_version=false
  828. ac_unrecognized_opts=
  829. ac_unrecognized_sep=
  830. # The variables have the same names as the options, with
  831. # dashes changed to underlines.
  832. cache_file=/dev/null
  833. exec_prefix=NONE
  834. no_create=
  835. no_recursion=
  836. prefix=NONE
  837. program_prefix=NONE
  838. program_suffix=NONE
  839. program_transform_name=s,x,x,
  840. silent=
  841. site=
  842. srcdir=
  843. verbose=
  844. x_includes=NONE
  845. x_libraries=NONE
  846. # Installation directory options.
  847. # These are left unexpanded so users can "make install exec_prefix=/foo"
  848. # and all the variables that are supposed to be based on exec_prefix
  849. # by default will actually change.
  850. # Use braces instead of parens because sh, perl, etc. also accept them.
  851. # (The list follows the same order as the GNU Coding Standards.)
  852. bindir='${exec_prefix}/bin'
  853. sbindir='${exec_prefix}/sbin'
  854. libexecdir='${exec_prefix}/libexec'
  855. datarootdir='${prefix}/share'
  856. datadir='${datarootdir}'
  857. sysconfdir='${prefix}/etc'
  858. sharedstatedir='${prefix}/com'
  859. localstatedir='${prefix}/var'
  860. includedir='${prefix}/include'
  861. oldincludedir='/usr/include'
  862. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  863. infodir='${datarootdir}/info'
  864. htmldir='${docdir}'
  865. dvidir='${docdir}'
  866. pdfdir='${docdir}'
  867. psdir='${docdir}'
  868. libdir='${exec_prefix}/lib'
  869. localedir='${datarootdir}/locale'
  870. mandir='${datarootdir}/man'
  871. ac_prev=
  872. ac_dashdash=
  873. for ac_option
  874. do
  875. # If the previous option needs an argument, assign it.
  876. if test -n "$ac_prev"; then
  877. eval $ac_prev=\$ac_option
  878. ac_prev=
  879. continue
  880. fi
  881. case $ac_option in
  882. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  883. *) ac_optarg=yes ;;
  884. esac
  885. # Accept the important Cygnus configure options, so we can diagnose typos.
  886. case $ac_dashdash$ac_option in
  887. --)
  888. ac_dashdash=yes ;;
  889. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  890. ac_prev=bindir ;;
  891. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  892. bindir=$ac_optarg ;;
  893. -build | --build | --buil | --bui | --bu)
  894. ac_prev=build_alias ;;
  895. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  896. build_alias=$ac_optarg ;;
  897. -cache-file | --cache-file | --cache-fil | --cache-fi \
  898. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  899. ac_prev=cache_file ;;
  900. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  901. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  902. cache_file=$ac_optarg ;;
  903. --config-cache | -C)
  904. cache_file=config.cache ;;
  905. -datadir | --datadir | --datadi | --datad)
  906. ac_prev=datadir ;;
  907. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  908. datadir=$ac_optarg ;;
  909. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  910. | --dataroo | --dataro | --datar)
  911. ac_prev=datarootdir ;;
  912. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  913. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  914. datarootdir=$ac_optarg ;;
  915. -disable-* | --disable-*)
  916. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  919. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  920. { (exit 1); exit 1; }; }
  921. ac_useropt_orig=$ac_useropt
  922. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  923. case $ac_user_opts in
  924. *"
  925. "enable_$ac_useropt"
  926. "*) ;;
  927. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  928. ac_unrecognized_sep=', ';;
  929. esac
  930. eval enable_$ac_useropt=no ;;
  931. -docdir | --docdir | --docdi | --doc | --do)
  932. ac_prev=docdir ;;
  933. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  934. docdir=$ac_optarg ;;
  935. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  936. ac_prev=dvidir ;;
  937. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  938. dvidir=$ac_optarg ;;
  939. -enable-* | --enable-*)
  940. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  941. # Reject names that are not valid shell variable names.
  942. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  943. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  944. { (exit 1); exit 1; }; }
  945. ac_useropt_orig=$ac_useropt
  946. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  947. case $ac_user_opts in
  948. *"
  949. "enable_$ac_useropt"
  950. "*) ;;
  951. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  952. ac_unrecognized_sep=', ';;
  953. esac
  954. eval enable_$ac_useropt=\$ac_optarg ;;
  955. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  956. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  957. | --exec | --exe | --ex)
  958. ac_prev=exec_prefix ;;
  959. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  960. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  961. | --exec=* | --exe=* | --ex=*)
  962. exec_prefix=$ac_optarg ;;
  963. -gas | --gas | --ga | --g)
  964. # Obsolete; use --with-gas.
  965. with_gas=yes ;;
  966. -help | --help | --hel | --he | -h)
  967. ac_init_help=long ;;
  968. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  969. ac_init_help=recursive ;;
  970. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  971. ac_init_help=short ;;
  972. -host | --host | --hos | --ho)
  973. ac_prev=host_alias ;;
  974. -host=* | --host=* | --hos=* | --ho=*)
  975. host_alias=$ac_optarg ;;
  976. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  977. ac_prev=htmldir ;;
  978. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  979. | --ht=*)
  980. htmldir=$ac_optarg ;;
  981. -includedir | --includedir | --includedi | --included | --include \
  982. | --includ | --inclu | --incl | --inc)
  983. ac_prev=includedir ;;
  984. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  985. | --includ=* | --inclu=* | --incl=* | --inc=*)
  986. includedir=$ac_optarg ;;
  987. -infodir | --infodir | --infodi | --infod | --info | --inf)
  988. ac_prev=infodir ;;
  989. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  990. infodir=$ac_optarg ;;
  991. -libdir | --libdir | --libdi | --libd)
  992. ac_prev=libdir ;;
  993. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  994. libdir=$ac_optarg ;;
  995. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  996. | --libexe | --libex | --libe)
  997. ac_prev=libexecdir ;;
  998. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  999. | --libexe=* | --libex=* | --libe=*)
  1000. libexecdir=$ac_optarg ;;
  1001. -localedir | --localedir | --localedi | --localed | --locale)
  1002. ac_prev=localedir ;;
  1003. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1004. localedir=$ac_optarg ;;
  1005. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1006. | --localstate | --localstat | --localsta | --localst | --locals)
  1007. ac_prev=localstatedir ;;
  1008. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1009. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1010. localstatedir=$ac_optarg ;;
  1011. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1012. ac_prev=mandir ;;
  1013. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1014. mandir=$ac_optarg ;;
  1015. -nfp | --nfp | --nf)
  1016. # Obsolete; use --without-fp.
  1017. with_fp=no ;;
  1018. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1019. | --no-cr | --no-c | -n)
  1020. no_create=yes ;;
  1021. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1022. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1023. no_recursion=yes ;;
  1024. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1025. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1026. | --oldin | --oldi | --old | --ol | --o)
  1027. ac_prev=oldincludedir ;;
  1028. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1029. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1030. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1031. oldincludedir=$ac_optarg ;;
  1032. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1033. ac_prev=prefix ;;
  1034. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1035. prefix=$ac_optarg ;;
  1036. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1037. | --program-pre | --program-pr | --program-p)
  1038. ac_prev=program_prefix ;;
  1039. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1040. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1041. program_prefix=$ac_optarg ;;
  1042. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1043. | --program-suf | --program-su | --program-s)
  1044. ac_prev=program_suffix ;;
  1045. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1046. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1047. program_suffix=$ac_optarg ;;
  1048. -program-transform-name | --program-transform-name \
  1049. | --program-transform-nam | --program-transform-na \
  1050. | --program-transform-n | --program-transform- \
  1051. | --program-transform | --program-transfor \
  1052. | --program-transfo | --program-transf \
  1053. | --program-trans | --program-tran \
  1054. | --progr-tra | --program-tr | --program-t)
  1055. ac_prev=program_transform_name ;;
  1056. -program-transform-name=* | --program-transform-name=* \
  1057. | --program-transform-nam=* | --program-transform-na=* \
  1058. | --program-transform-n=* | --program-transform-=* \
  1059. | --program-transform=* | --program-transfor=* \
  1060. | --program-transfo=* | --program-transf=* \
  1061. | --program-trans=* | --program-tran=* \
  1062. | --progr-tra=* | --program-tr=* | --program-t=*)
  1063. program_transform_name=$ac_optarg ;;
  1064. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1065. ac_prev=pdfdir ;;
  1066. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1067. pdfdir=$ac_optarg ;;
  1068. -psdir | --psdir | --psdi | --psd | --ps)
  1069. ac_prev=psdir ;;
  1070. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1071. psdir=$ac_optarg ;;
  1072. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1073. | -silent | --silent | --silen | --sile | --sil)
  1074. silent=yes ;;
  1075. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1076. ac_prev=sbindir ;;
  1077. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1078. | --sbi=* | --sb=*)
  1079. sbindir=$ac_optarg ;;
  1080. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1081. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1082. | --sharedst | --shareds | --shared | --share | --shar \
  1083. | --sha | --sh)
  1084. ac_prev=sharedstatedir ;;
  1085. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1086. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1087. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1088. | --sha=* | --sh=*)
  1089. sharedstatedir=$ac_optarg ;;
  1090. -site | --site | --sit)
  1091. ac_prev=site ;;
  1092. -site=* | --site=* | --sit=*)
  1093. site=$ac_optarg ;;
  1094. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1095. ac_prev=srcdir ;;
  1096. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1097. srcdir=$ac_optarg ;;
  1098. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1099. | --syscon | --sysco | --sysc | --sys | --sy)
  1100. ac_prev=sysconfdir ;;
  1101. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1102. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1103. sysconfdir=$ac_optarg ;;
  1104. -target | --target | --targe | --targ | --tar | --ta | --t)
  1105. ac_prev=target_alias ;;
  1106. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1107. target_alias=$ac_optarg ;;
  1108. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1109. verbose=yes ;;
  1110. -version | --version | --versio | --versi | --vers | -V)
  1111. ac_init_version=: ;;
  1112. -with-* | --with-*)
  1113. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1114. # Reject names that are not valid shell variable names.
  1115. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1116. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1117. { (exit 1); exit 1; }; }
  1118. ac_useropt_orig=$ac_useropt
  1119. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1120. case $ac_user_opts in
  1121. *"
  1122. "with_$ac_useropt"
  1123. "*) ;;
  1124. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1125. ac_unrecognized_sep=', ';;
  1126. esac
  1127. eval with_$ac_useropt=\$ac_optarg ;;
  1128. -without-* | --without-*)
  1129. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1130. # Reject names that are not valid shell variable names.
  1131. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1132. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1133. { (exit 1); exit 1; }; }
  1134. ac_useropt_orig=$ac_useropt
  1135. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1136. case $ac_user_opts in
  1137. *"
  1138. "with_$ac_useropt"
  1139. "*) ;;
  1140. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1141. ac_unrecognized_sep=', ';;
  1142. esac
  1143. eval with_$ac_useropt=no ;;
  1144. --x)
  1145. # Obsolete; use --with-x.
  1146. with_x=yes ;;
  1147. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1148. | --x-incl | --x-inc | --x-in | --x-i)
  1149. ac_prev=x_includes ;;
  1150. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1151. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1152. x_includes=$ac_optarg ;;
  1153. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1154. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1155. ac_prev=x_libraries ;;
  1156. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1157. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1158. x_libraries=$ac_optarg ;;
  1159. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1160. Try \`$0 --help' for more information." >&2
  1161. { (exit 1); exit 1; }; }
  1162. ;;
  1163. *=*)
  1164. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1165. # Reject names that are not valid shell variable names.
  1166. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1167. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1168. { (exit 1); exit 1; }; }
  1169. eval $ac_envvar=\$ac_optarg
  1170. export $ac_envvar ;;
  1171. *)
  1172. # FIXME: should be removed in autoconf 3.0.
  1173. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1174. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1175. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1176. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1177. ;;
  1178. esac
  1179. done
  1180. if test -n "$ac_prev"; then
  1181. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1182. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1183. { (exit 1); exit 1; }; }
  1184. fi
  1185. if test -n "$ac_unrecognized_opts"; then
  1186. case $enable_option_checking in
  1187. no) ;;
  1188. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1189. { (exit 1); exit 1; }; } ;;
  1190. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1191. esac
  1192. fi
  1193. # Check all directory arguments for consistency.
  1194. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1195. datadir sysconfdir sharedstatedir localstatedir includedir \
  1196. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1197. libdir localedir mandir
  1198. do
  1199. eval ac_val=\$$ac_var
  1200. # Remove trailing slashes.
  1201. case $ac_val in
  1202. */ )
  1203. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1204. eval $ac_var=\$ac_val;;
  1205. esac
  1206. # Be sure to have absolute directory names.
  1207. case $ac_val in
  1208. [\\/$]* | ?:[\\/]* ) continue;;
  1209. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1210. esac
  1211. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1212. { (exit 1); exit 1; }; }
  1213. done
  1214. # There might be people who depend on the old broken behavior: `$host'
  1215. # used to hold the argument of --host etc.
  1216. # FIXME: To remove some day.
  1217. build=$build_alias
  1218. host=$host_alias
  1219. target=$target_alias
  1220. # FIXME: To remove some day.
  1221. if test "x$host_alias" != x; then
  1222. if test "x$build_alias" = x; then
  1223. cross_compiling=maybe
  1224. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1225. If a cross compiler is detected then cross compile mode will be used." >&2
  1226. elif test "x$build_alias" != "x$host_alias"; then
  1227. cross_compiling=yes
  1228. fi
  1229. fi
  1230. ac_tool_prefix=
  1231. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1232. test "$silent" = yes && exec 6>/dev/null
  1233. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1234. ac_ls_di=`ls -di .` &&
  1235. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1236. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1237. { (exit 1); exit 1; }; }
  1238. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1239. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1240. { (exit 1); exit 1; }; }
  1241. # Find the source files, if location was not specified.
  1242. if test -z "$srcdir"; then
  1243. ac_srcdir_defaulted=yes
  1244. # Try the directory containing this script, then the parent directory.
  1245. ac_confdir=`$as_dirname -- "$as_myself" ||
  1246. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1247. X"$as_myself" : 'X\(//\)[^/]' \| \
  1248. X"$as_myself" : 'X\(//\)$' \| \
  1249. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1250. $as_echo X"$as_myself" |
  1251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\/\)[^/].*/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)$/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\).*/{
  1264. s//\1/
  1265. q
  1266. }
  1267. s/.*/./; q'`
  1268. srcdir=$ac_confdir
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. srcdir=..
  1271. fi
  1272. else
  1273. ac_srcdir_defaulted=no
  1274. fi
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1277. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1278. { (exit 1); exit 1; }; }
  1279. fi
  1280. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1281. ac_abs_confdir=`(
  1282. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1283. { (exit 1); exit 1; }; }
  1284. pwd)`
  1285. # When building in place, set srcdir=.
  1286. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1287. srcdir=.
  1288. fi
  1289. # Remove unnecessary trailing slashes from srcdir.
  1290. # Double slashes in file names in object file debugging info
  1291. # mess up M-x gdb in Emacs.
  1292. case $srcdir in
  1293. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1294. esac
  1295. for ac_var in $ac_precious_vars; do
  1296. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_env_${ac_var}_value=\$${ac_var}
  1298. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1300. done
  1301. #
  1302. # Report the --help message.
  1303. #
  1304. if test "$ac_init_help" = "long"; then
  1305. # Omit some internal or obsolete options to make the list less imposing.
  1306. # This message is too long to be a string in the A/UX 3.1 sh.
  1307. cat <<_ACEOF
  1308. \`configure' configures libusb 1.0.0 to adapt to many kinds of systems.
  1309. Usage: $0 [OPTION]... [VAR=VALUE]...
  1310. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1311. VAR=VALUE. See below for descriptions of some of the useful variables.
  1312. Defaults for the options are specified in brackets.
  1313. Configuration:
  1314. -h, --help display this help and exit
  1315. --help=short display options specific to this package
  1316. --help=recursive display the short help of all the included packages
  1317. -V, --version display version information and exit
  1318. -q, --quiet, --silent do not print \`checking...' messages
  1319. --cache-file=FILE cache test results in FILE [disabled]
  1320. -C, --config-cache alias for \`--cache-file=config.cache'
  1321. -n, --no-create do not create output files
  1322. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1323. Installation directories:
  1324. --prefix=PREFIX install architecture-independent files in PREFIX
  1325. [$ac_default_prefix]
  1326. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1327. [PREFIX]
  1328. By default, \`make install' will install all the files in
  1329. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1330. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1331. for instance \`--prefix=\$HOME'.
  1332. For better control, use the options below.
  1333. Fine tuning of the installation directories:
  1334. --bindir=DIR user executables [EPREFIX/bin]
  1335. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1336. --libexecdir=DIR program executables [EPREFIX/libexec]
  1337. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1338. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1339. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1340. --libdir=DIR object code libraries [EPREFIX/lib]
  1341. --includedir=DIR C header files [PREFIX/include]
  1342. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1343. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1344. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1345. --infodir=DIR info documentation [DATAROOTDIR/info]
  1346. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1347. --mandir=DIR man documentation [DATAROOTDIR/man]
  1348. --docdir=DIR documentation root [DATAROOTDIR/doc/libusb]
  1349. --htmldir=DIR html documentation [DOCDIR]
  1350. --dvidir=DIR dvi documentation [DOCDIR]
  1351. --pdfdir=DIR pdf documentation [DOCDIR]
  1352. --psdir=DIR ps documentation [DOCDIR]
  1353. _ACEOF
  1354. cat <<\_ACEOF
  1355. Program names:
  1356. --program-prefix=PREFIX prepend PREFIX to installed program names
  1357. --program-suffix=SUFFIX append SUFFIX to installed program names
  1358. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1359. System types:
  1360. --build=BUILD configure for building on BUILD [guessed]
  1361. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1362. _ACEOF
  1363. fi
  1364. if test -n "$ac_init_help"; then
  1365. case $ac_init_help in
  1366. short | recursive ) echo "Configuration of libusb 1.0.0:";;
  1367. esac
  1368. cat <<\_ACEOF
  1369. Optional Features:
  1370. --disable-option-checking ignore unrecognized --enable/--with options
  1371. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1372. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1373. --disable-dependency-tracking speeds up one-time build
  1374. --enable-dependency-tracking do not reject slow dependency extractors
  1375. --enable-shared[=PKGS] build shared libraries [default=yes]
  1376. --enable-static[=PKGS] build static libraries [default=yes]
  1377. --enable-fast-install[=PKGS]
  1378. optimize for fast installation [default=yes]
  1379. --disable-libtool-lock avoid locking (might break parallel builds)
  1380. --disable-log disable all logging
  1381. --enable-debug-log enable debug logging (default n)
  1382. --enable-examples-build build example applications (default n)
  1383. Optional Packages:
  1384. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1385. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1386. --with-pic try to use only PIC/non-PIC objects [default=use
  1387. both]
  1388. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1389. Some influential environment variables:
  1390. CC C compiler command
  1391. CFLAGS C compiler flags
  1392. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1393. nonstandard directory <lib dir>
  1394. LIBS libraries to pass to the linker, e.g. -l<library>
  1395. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1396. you have headers in a nonstandard directory <include dir>
  1397. CPP C preprocessor
  1398. Use these variables to override the choices made by `configure' or to help
  1399. it to find libraries and programs with nonstandard names/locations.
  1400. _ACEOF
  1401. ac_status=$?
  1402. fi
  1403. if test "$ac_init_help" = "recursive"; then
  1404. # If there are subdirs, report their specific --help.
  1405. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1406. test -d "$ac_dir" ||
  1407. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1408. continue
  1409. ac_builddir=.
  1410. case "$ac_dir" in
  1411. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1412. *)
  1413. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1414. # A ".." for each directory in $ac_dir_suffix.
  1415. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1416. case $ac_top_builddir_sub in
  1417. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1418. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1419. esac ;;
  1420. esac
  1421. ac_abs_top_builddir=$ac_pwd
  1422. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1423. # for backward compatibility:
  1424. ac_top_builddir=$ac_top_build_prefix
  1425. case $srcdir in
  1426. .) # We are building in place.
  1427. ac_srcdir=.
  1428. ac_top_srcdir=$ac_top_builddir_sub
  1429. ac_abs_top_srcdir=$ac_pwd ;;
  1430. [\\/]* | ?:[\\/]* ) # Absolute name.
  1431. ac_srcdir=$srcdir$ac_dir_suffix;
  1432. ac_top_srcdir=$srcdir
  1433. ac_abs_top_srcdir=$srcdir ;;
  1434. *) # Relative name.
  1435. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1436. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1437. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1438. esac
  1439. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1440. cd "$ac_dir" || { ac_status=$?; continue; }
  1441. # Check for guested configure.
  1442. if test -f "$ac_srcdir/configure.gnu"; then
  1443. echo &&
  1444. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1445. elif test -f "$ac_srcdir/configure"; then
  1446. echo &&
  1447. $SHELL "$ac_srcdir/configure" --help=recursive
  1448. else
  1449. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1450. fi || ac_status=$?
  1451. cd "$ac_pwd" || { ac_status=$?; break; }
  1452. done
  1453. fi
  1454. test -n "$ac_init_help" && exit $ac_status
  1455. if $ac_init_version; then
  1456. cat <<\_ACEOF
  1457. libusb configure 1.0.0
  1458. generated by GNU Autoconf 2.63
  1459. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1460. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1461. This configure script is free software; the Free Software Foundation
  1462. gives unlimited permission to copy, distribute and modify it.
  1463. _ACEOF
  1464. exit
  1465. fi
  1466. cat >config.log <<_ACEOF
  1467. This file contains any messages produced by compilers while
  1468. running configure, to aid debugging if configure makes a mistake.
  1469. It was created by libusb $as_me 1.0.0, which was
  1470. generated by GNU Autoconf 2.63. Invocation command line was
  1471. $ $0 $@
  1472. _ACEOF
  1473. exec 5>>config.log
  1474. {
  1475. cat <<_ASUNAME
  1476. ## --------- ##
  1477. ## Platform. ##
  1478. ## --------- ##
  1479. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1480. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1481. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1482. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1483. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1484. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1485. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1486. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1487. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1488. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1489. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1490. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1491. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1492. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1493. _ASUNAME
  1494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1495. for as_dir in $PATH
  1496. do
  1497. IFS=$as_save_IFS
  1498. test -z "$as_dir" && as_dir=.
  1499. $as_echo "PATH: $as_dir"
  1500. done
  1501. IFS=$as_save_IFS
  1502. } >&5
  1503. cat >&5 <<_ACEOF
  1504. ## ----------- ##
  1505. ## Core tests. ##
  1506. ## ----------- ##
  1507. _ACEOF
  1508. # Keep a trace of the command line.
  1509. # Strip out --no-create and --no-recursion so they do not pile up.
  1510. # Strip out --silent because we don't want to record it for future runs.
  1511. # Also quote any args containing shell meta-characters.
  1512. # Make two passes to allow for proper duplicate-argument suppression.
  1513. ac_configure_args=
  1514. ac_configure_args0=
  1515. ac_configure_args1=
  1516. ac_must_keep_next=false
  1517. for ac_pass in 1 2
  1518. do
  1519. for ac_arg
  1520. do
  1521. case $ac_arg in
  1522. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1523. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1524. | -silent | --silent | --silen | --sile | --sil)
  1525. continue ;;
  1526. *\'*)
  1527. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1528. esac
  1529. case $ac_pass in
  1530. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1531. 2)
  1532. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1533. if test $ac_must_keep_next = true; then
  1534. ac_must_keep_next=false # Got value, back to normal.
  1535. else
  1536. case $ac_arg in
  1537. *=* | --config-cache | -C | -disable-* | --disable-* \
  1538. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1539. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1540. | -with-* | --with-* | -without-* | --without-* | --x)
  1541. case "$ac_configure_args0 " in
  1542. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1543. esac
  1544. ;;
  1545. -* ) ac_must_keep_next=true ;;
  1546. esac
  1547. fi
  1548. ac_configure_args="$ac_configure_args '$ac_arg'"
  1549. ;;
  1550. esac
  1551. done
  1552. done
  1553. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1554. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1555. # When interrupted or exit'd, cleanup temporary files, and complete
  1556. # config.log. We remove comments because anyway the quotes in there
  1557. # would cause problems or look ugly.
  1558. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1559. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1560. trap 'exit_status=$?
  1561. # Save into config.log some information that might help in debugging.
  1562. {
  1563. echo
  1564. cat <<\_ASBOX
  1565. ## ---------------- ##
  1566. ## Cache variables. ##
  1567. ## ---------------- ##
  1568. _ASBOX
  1569. echo
  1570. # The following way of writing the cache mishandles newlines in values,
  1571. (
  1572. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1573. eval ac_val=\$$ac_var
  1574. case $ac_val in #(
  1575. *${as_nl}*)
  1576. case $ac_var in #(
  1577. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1578. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1579. esac
  1580. case $ac_var in #(
  1581. _ | IFS | as_nl) ;; #(
  1582. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1583. *) $as_unset $ac_var ;;
  1584. esac ;;
  1585. esac
  1586. done
  1587. (set) 2>&1 |
  1588. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1589. *${as_nl}ac_space=\ *)
  1590. sed -n \
  1591. "s/'\''/'\''\\\\'\'''\''/g;
  1592. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1593. ;; #(
  1594. *)
  1595. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1596. ;;
  1597. esac |
  1598. sort
  1599. )
  1600. echo
  1601. cat <<\_ASBOX
  1602. ## ----------------- ##
  1603. ## Output variables. ##
  1604. ## ----------------- ##
  1605. _ASBOX
  1606. echo
  1607. for ac_var in $ac_subst_vars
  1608. do
  1609. eval ac_val=\$$ac_var
  1610. case $ac_val in
  1611. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1612. esac
  1613. $as_echo "$ac_var='\''$ac_val'\''"
  1614. done | sort
  1615. echo
  1616. if test -n "$ac_subst_files"; then
  1617. cat <<\_ASBOX
  1618. ## ------------------- ##
  1619. ## File substitutions. ##
  1620. ## ------------------- ##
  1621. _ASBOX
  1622. echo
  1623. for ac_var in $ac_subst_files
  1624. do
  1625. eval ac_val=\$$ac_var
  1626. case $ac_val in
  1627. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1628. esac
  1629. $as_echo "$ac_var='\''$ac_val'\''"
  1630. done | sort
  1631. echo
  1632. fi
  1633. if test -s confdefs.h; then
  1634. cat <<\_ASBOX
  1635. ## ----------- ##
  1636. ## confdefs.h. ##
  1637. ## ----------- ##
  1638. _ASBOX
  1639. echo
  1640. cat confdefs.h
  1641. echo
  1642. fi
  1643. test "$ac_signal" != 0 &&
  1644. $as_echo "$as_me: caught signal $ac_signal"
  1645. $as_echo "$as_me: exit $exit_status"
  1646. } >&5
  1647. rm -f core *.core core.conftest.* &&
  1648. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1649. exit $exit_status
  1650. ' 0
  1651. for ac_signal in 1 2 13 15; do
  1652. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1653. done
  1654. ac_signal=0
  1655. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1656. rm -f -r conftest* confdefs.h
  1657. # Predefined preprocessor variables.
  1658. cat >>confdefs.h <<_ACEOF
  1659. #define PACKAGE_NAME "$PACKAGE_NAME"
  1660. _ACEOF
  1661. cat >>confdefs.h <<_ACEOF
  1662. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1663. _ACEOF
  1664. cat >>confdefs.h <<_ACEOF
  1665. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1666. _ACEOF
  1667. cat >>confdefs.h <<_ACEOF
  1668. #define PACKAGE_STRING "$PACKAGE_STRING"
  1669. _ACEOF
  1670. cat >>confdefs.h <<_ACEOF
  1671. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1672. _ACEOF
  1673. # Let the site file select an alternate cache file if it wants to.
  1674. # Prefer an explicitly selected file to automatically selected ones.
  1675. ac_site_file1=NONE
  1676. ac_site_file2=NONE
  1677. if test -n "$CONFIG_SITE"; then
  1678. ac_site_file1=$CONFIG_SITE
  1679. elif test "x$prefix" != xNONE; then
  1680. ac_site_file1=$prefix/share/config.site
  1681. ac_site_file2=$prefix/etc/config.site
  1682. else
  1683. ac_site_file1=$ac_default_prefix/share/config.site
  1684. ac_site_file2=$ac_default_prefix/etc/config.site
  1685. fi
  1686. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1687. do
  1688. test "x$ac_site_file" = xNONE && continue
  1689. if test -r "$ac_site_file"; then
  1690. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1691. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1692. sed 's/^/| /' "$ac_site_file" >&5
  1693. . "$ac_site_file"
  1694. fi
  1695. done
  1696. if test -r "$cache_file"; then
  1697. # Some versions of bash will fail to source /dev/null (special
  1698. # files actually), so we avoid doing that.
  1699. if test -f "$cache_file"; then
  1700. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1701. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1702. case $cache_file in
  1703. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1704. *) . "./$cache_file";;
  1705. esac
  1706. fi
  1707. else
  1708. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1709. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1710. >$cache_file
  1711. fi
  1712. # Check that the precious variables saved in the cache have kept the same
  1713. # value.
  1714. ac_cache_corrupted=false
  1715. for ac_var in $ac_precious_vars; do
  1716. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1717. eval ac_new_set=\$ac_env_${ac_var}_set
  1718. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1719. eval ac_new_val=\$ac_env_${ac_var}_value
  1720. case $ac_old_set,$ac_new_set in
  1721. set,)
  1722. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1723. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1724. ac_cache_corrupted=: ;;
  1725. ,set)
  1726. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1727. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1728. ac_cache_corrupted=: ;;
  1729. ,);;
  1730. *)
  1731. if test "x$ac_old_val" != "x$ac_new_val"; then
  1732. # differences in whitespace do not lead to failure.
  1733. ac_old_val_w=`echo x $ac_old_val`
  1734. ac_new_val_w=`echo x $ac_new_val`
  1735. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1736. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1737. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1738. ac_cache_corrupted=:
  1739. else
  1740. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1741. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1742. eval $ac_var=\$ac_old_val
  1743. fi
  1744. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1745. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1746. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1747. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1748. fi;;
  1749. esac
  1750. # Pass precious variables to config.status.
  1751. if test "$ac_new_set" = set; then
  1752. case $ac_new_val in
  1753. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1754. *) ac_arg=$ac_var=$ac_new_val ;;
  1755. esac
  1756. case " $ac_configure_args " in
  1757. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1758. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1759. esac
  1760. fi
  1761. done
  1762. if $ac_cache_corrupted; then
  1763. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1764. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1765. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1766. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1767. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1768. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1769. { (exit 1); exit 1; }; }
  1770. fi
  1771. ac_ext=c
  1772. ac_cpp='$CPP $CPPFLAGS'
  1773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1776. am__api_version='1.10'
  1777. ac_aux_dir=
  1778. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1779. if test -f "$ac_dir/install-sh"; then
  1780. ac_aux_dir=$ac_dir
  1781. ac_install_sh="$ac_aux_dir/install-sh -c"
  1782. break
  1783. elif test -f "$ac_dir/install.sh"; then
  1784. ac_aux_dir=$ac_dir
  1785. ac_install_sh="$ac_aux_dir/install.sh -c"
  1786. break
  1787. elif test -f "$ac_dir/shtool"; then
  1788. ac_aux_dir=$ac_dir
  1789. ac_install_sh="$ac_aux_dir/shtool install -c"
  1790. break
  1791. fi
  1792. done
  1793. if test -z "$ac_aux_dir"; then
  1794. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1795. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1796. { (exit 1); exit 1; }; }
  1797. fi
  1798. # These three variables are undocumented and unsupported,
  1799. # and are intended to be withdrawn in a future Autoconf release.
  1800. # They can cause serious problems if a builder's source tree is in a directory
  1801. # whose full name contains unusual characters.
  1802. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1803. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1804. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1805. # Find a good install program. We prefer a C program (faster),
  1806. # so one script is as good as another. But avoid the broken or
  1807. # incompatible versions:
  1808. # SysV /etc/install, /usr/sbin/install
  1809. # SunOS /usr/etc/install
  1810. # IRIX /sbin/install
  1811. # AIX /bin/install
  1812. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1813. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1814. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1815. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1816. # OS/2's system install, which has a completely different semantic
  1817. # ./install, which can be erroneously created by make from ./install.sh.
  1818. # Reject install programs that cannot install multiple files.
  1819. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1820. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1821. if test -z "$INSTALL"; then
  1822. if test "${ac_cv_path_install+set}" = set; then
  1823. $as_echo_n "(cached) " >&6
  1824. else
  1825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1826. for as_dir in $PATH
  1827. do
  1828. IFS=$as_save_IFS
  1829. test -z "$as_dir" && as_dir=.
  1830. # Account for people who put trailing slashes in PATH elements.
  1831. case $as_dir/ in
  1832. ./ | .// | /cC/* | \
  1833. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1834. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1835. /usr/ucb/* ) ;;
  1836. *)
  1837. # OSF1 and SCO ODT 3.0 have their own names for install.
  1838. # Don't use installbsd from OSF since it installs stuff as root
  1839. # by default.
  1840. for ac_prog in ginstall scoinst install; do
  1841. for ac_exec_ext in '' $ac_executable_extensions; do
  1842. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1843. if test $ac_prog = install &&
  1844. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1845. # AIX install. It has an incompatible calling convention.
  1846. :
  1847. elif test $ac_prog = install &&
  1848. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1849. # program-specific install script used by HP pwplus--don't use.
  1850. :
  1851. else
  1852. rm -rf conftest.one conftest.two conftest.dir
  1853. echo one > conftest.one
  1854. echo two > conftest.two
  1855. mkdir conftest.dir
  1856. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1857. test -s conftest.one && test -s conftest.two &&
  1858. test -s conftest.dir/conftest.one &&
  1859. test -s conftest.dir/conftest.two
  1860. then
  1861. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1862. break 3
  1863. fi
  1864. fi
  1865. fi
  1866. done
  1867. done
  1868. ;;
  1869. esac
  1870. done
  1871. IFS=$as_save_IFS
  1872. rm -rf conftest.one conftest.two conftest.dir
  1873. fi
  1874. if test "${ac_cv_path_install+set}" = set; then
  1875. INSTALL=$ac_cv_path_install
  1876. else
  1877. # As a last resort, use the slow shell script. Don't cache a
  1878. # value for INSTALL within a source directory, because that will
  1879. # break other packages using the cache if that directory is
  1880. # removed, or if the value is a relative name.
  1881. INSTALL=$ac_install_sh
  1882. fi
  1883. fi
  1884. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1885. $as_echo "$INSTALL" >&6; }
  1886. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1887. # It thinks the first close brace ends the variable substitution.
  1888. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1889. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1890. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1891. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1892. $as_echo_n "checking whether build environment is sane... " >&6; }
  1893. # Just in case
  1894. sleep 1
  1895. echo timestamp > conftest.file
  1896. # Do `set' in a subshell so we don't clobber the current shell's
  1897. # arguments. Must try -L first in case configure is actually a
  1898. # symlink; some systems play weird games with the mod time of symlinks
  1899. # (eg FreeBSD returns the mod time of the symlink's containing
  1900. # directory).
  1901. if (
  1902. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1903. if test "$*" = "X"; then
  1904. # -L didn't work.
  1905. set X `ls -t $srcdir/configure conftest.file`
  1906. fi
  1907. rm -f conftest.file
  1908. if test "$*" != "X $srcdir/configure conftest.file" \
  1909. && test "$*" != "X conftest.file $srcdir/configure"; then
  1910. # If neither matched, then we have a broken ls. This can happen
  1911. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1912. # broken ls alias from the environment. This has actually
  1913. # happened. Such a system could not be considered "sane".
  1914. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1915. alias in your environment" >&5
  1916. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1917. alias in your environment" >&2;}
  1918. { (exit 1); exit 1; }; }
  1919. fi
  1920. test "$2" = conftest.file
  1921. )
  1922. then
  1923. # Ok.
  1924. :
  1925. else
  1926. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1927. Check your system clock" >&5
  1928. $as_echo "$as_me: error: newly created file is older than distributed files!
  1929. Check your system clock" >&2;}
  1930. { (exit 1); exit 1; }; }
  1931. fi
  1932. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1933. $as_echo "yes" >&6; }
  1934. test "$program_prefix" != NONE &&
  1935. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1936. # Use a double $ so make ignores it.
  1937. test "$program_suffix" != NONE &&
  1938. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1939. # Double any \ or $.
  1940. # By default was `s,x,x', remove it if useless.
  1941. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1942. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1943. # expand $ac_aux_dir to an absolute path
  1944. am_aux_dir=`cd $ac_aux_dir && pwd`
  1945. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1946. # Use eval to expand $SHELL
  1947. if eval "$MISSING --run true"; then
  1948. am_missing_run="$MISSING --run "
  1949. else
  1950. am_missing_run=
  1951. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1952. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1953. fi
  1954. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1955. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1956. if test -z "$MKDIR_P"; then
  1957. if test "${ac_cv_path_mkdir+set}" = set; then
  1958. $as_echo_n "(cached) " >&6
  1959. else
  1960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1961. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1962. do
  1963. IFS=$as_save_IFS
  1964. test -z "$as_dir" && as_dir=.
  1965. for ac_prog in mkdir gmkdir; do
  1966. for ac_exec_ext in '' $ac_executable_extensions; do
  1967. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1968. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1969. 'mkdir (GNU coreutils) '* | \
  1970. 'mkdir (coreutils) '* | \
  1971. 'mkdir (fileutils) '4.1*)
  1972. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1973. break 3;;
  1974. esac
  1975. done
  1976. done
  1977. done
  1978. IFS=$as_save_IFS
  1979. fi
  1980. if test "${ac_cv_path_mkdir+set}" = set; then
  1981. MKDIR_P="$ac_cv_path_mkdir -p"
  1982. else
  1983. # As a last resort, use the slow shell script. Don't cache a
  1984. # value for MKDIR_P within a source directory, because that will
  1985. # break other packages using the cache if that directory is
  1986. # removed, or if the value is a relative name.
  1987. test -d ./--version && rmdir ./--version
  1988. MKDIR_P="$ac_install_sh -d"
  1989. fi
  1990. fi
  1991. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1992. $as_echo "$MKDIR_P" >&6; }
  1993. mkdir_p="$MKDIR_P"
  1994. case $mkdir_p in
  1995. [\\/$]* | ?:[\\/]*) ;;
  1996. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1997. esac
  1998. for ac_prog in gawk mawk nawk awk
  1999. do
  2000. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2001. set dummy $ac_prog; ac_word=$2
  2002. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2003. $as_echo_n "checking for $ac_word... " >&6; }
  2004. if test "${ac_cv_prog_AWK+set}" = set; then
  2005. $as_echo_n "(cached) " >&6
  2006. else
  2007. if test -n "$AWK"; then
  2008. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2009. else
  2010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2011. for as_dir in $PATH
  2012. do
  2013. IFS=$as_save_IFS
  2014. test -z "$as_dir" && as_dir=.
  2015. for ac_exec_ext in '' $ac_executable_extensions; do
  2016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2017. ac_cv_prog_AWK="$ac_prog"
  2018. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2019. break 2
  2020. fi
  2021. done
  2022. done
  2023. IFS=$as_save_IFS
  2024. fi
  2025. fi
  2026. AWK=$ac_cv_prog_AWK
  2027. if test -n "$AWK"; then
  2028. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2029. $as_echo "$AWK" >&6; }
  2030. else
  2031. { $as_echo "$as_me:$LINENO: result: no" >&5
  2032. $as_echo "no" >&6; }
  2033. fi
  2034. test -n "$AWK" && break
  2035. done
  2036. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2037. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2038. set x ${MAKE-make}
  2039. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2040. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2041. $as_echo_n "(cached) " >&6
  2042. else
  2043. cat >conftest.make <<\_ACEOF
  2044. SHELL = /bin/sh
  2045. all:
  2046. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2047. _ACEOF
  2048. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2049. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2050. *@@@%%%=?*=@@@%%%*)
  2051. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2052. *)
  2053. eval ac_cv_prog_make_${ac_make}_set=no;;
  2054. esac
  2055. rm -f conftest.make
  2056. fi
  2057. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2058. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2059. $as_echo "yes" >&6; }
  2060. SET_MAKE=
  2061. else
  2062. { $as_echo "$as_me:$LINENO: result: no" >&5
  2063. $as_echo "no" >&6; }
  2064. SET_MAKE="MAKE=${MAKE-make}"
  2065. fi
  2066. rm -rf .tst 2>/dev/null
  2067. mkdir .tst 2>/dev/null
  2068. if test -d .tst; then
  2069. am__leading_dot=.
  2070. else
  2071. am__leading_dot=_
  2072. fi
  2073. rmdir .tst 2>/dev/null
  2074. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2075. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2076. # is not polluted with repeated "-I."
  2077. am__isrc=' -I$(srcdir)'
  2078. # test to see if srcdir already configured
  2079. if test -f $srcdir/config.status; then
  2080. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2081. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2082. { (exit 1); exit 1; }; }
  2083. fi
  2084. fi
  2085. # test whether we have cygpath
  2086. if test -z "$CYGPATH_W"; then
  2087. if (cygpath --version) >/dev/null 2>/dev/null; then
  2088. CYGPATH_W='cygpath -w'
  2089. else
  2090. CYGPATH_W=echo
  2091. fi
  2092. fi
  2093. # Define the identity of the package.
  2094. PACKAGE='libusb'
  2095. VERSION='1.0.0'
  2096. cat >>confdefs.h <<_ACEOF
  2097. #define PACKAGE "$PACKAGE"
  2098. _ACEOF
  2099. cat >>confdefs.h <<_ACEOF
  2100. #define VERSION "$VERSION"
  2101. _ACEOF
  2102. # Some tools Automake needs.
  2103. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2104. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2105. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2106. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2107. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2108. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2109. # Installed binaries are usually stripped using `strip' when the user
  2110. # run `make install-strip'. However `strip' might not be the right
  2111. # tool to use in cross-compilation environments, therefore Automake
  2112. # will honor the `STRIP' environment variable to overrule this program.
  2113. if test "$cross_compiling" != no; then
  2114. if test -n "$ac_tool_prefix"; then
  2115. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2116. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2117. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2118. $as_echo_n "checking for $ac_word... " >&6; }
  2119. if test "${ac_cv_prog_STRIP+set}" = set; then
  2120. $as_echo_n "(cached) " >&6
  2121. else
  2122. if test -n "$STRIP"; then
  2123. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2124. else
  2125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2126. for as_dir in $PATH
  2127. do
  2128. IFS=$as_save_IFS
  2129. test -z "$as_dir" && as_dir=.
  2130. for ac_exec_ext in '' $ac_executable_extensions; do
  2131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2132. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2133. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2134. break 2
  2135. fi
  2136. done
  2137. done
  2138. IFS=$as_save_IFS
  2139. fi
  2140. fi
  2141. STRIP=$ac_cv_prog_STRIP
  2142. if test -n "$STRIP"; then
  2143. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2144. $as_echo "$STRIP" >&6; }
  2145. else
  2146. { $as_echo "$as_me:$LINENO: result: no" >&5
  2147. $as_echo "no" >&6; }
  2148. fi
  2149. fi
  2150. if test -z "$ac_cv_prog_STRIP"; then
  2151. ac_ct_STRIP=$STRIP
  2152. # Extract the first word of "strip", so it can be a program name with args.
  2153. set dummy strip; ac_word=$2
  2154. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2155. $as_echo_n "checking for $ac_word... " >&6; }
  2156. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2157. $as_echo_n "(cached) " >&6
  2158. else
  2159. if test -n "$ac_ct_STRIP"; then
  2160. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2161. else
  2162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2163. for as_dir in $PATH
  2164. do
  2165. IFS=$as_save_IFS
  2166. test -z "$as_dir" && as_dir=.
  2167. for ac_exec_ext in '' $ac_executable_extensions; do
  2168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2169. ac_cv_prog_ac_ct_STRIP="strip"
  2170. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2171. break 2
  2172. fi
  2173. done
  2174. done
  2175. IFS=$as_save_IFS
  2176. fi
  2177. fi
  2178. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2179. if test -n "$ac_ct_STRIP"; then
  2180. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2181. $as_echo "$ac_ct_STRIP" >&6; }
  2182. else
  2183. { $as_echo "$as_me:$LINENO: result: no" >&5
  2184. $as_echo "no" >&6; }
  2185. fi
  2186. if test "x$ac_ct_STRIP" = x; then
  2187. STRIP=":"
  2188. else
  2189. case $cross_compiling:$ac_tool_warned in
  2190. yes:)
  2191. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2193. ac_tool_warned=yes ;;
  2194. esac
  2195. STRIP=$ac_ct_STRIP
  2196. fi
  2197. else
  2198. STRIP="$ac_cv_prog_STRIP"
  2199. fi
  2200. fi
  2201. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2202. # We need awk for the "check" target. The system "awk" is bad on
  2203. # some platforms.
  2204. # Always define AMTAR for backward compatibility.
  2205. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2206. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2207. ac_config_headers="$ac_config_headers config.h"
  2208. ac_ext=c
  2209. ac_cpp='$CPP $CPPFLAGS'
  2210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2213. if test -n "$ac_tool_prefix"; then
  2214. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2215. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2216. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2217. $as_echo_n "checking for $ac_word... " >&6; }
  2218. if test "${ac_cv_prog_CC+set}" = set; then
  2219. $as_echo_n "(cached) " >&6
  2220. else
  2221. if test -n "$CC"; then
  2222. ac_cv_prog_CC="$CC" # Let the user override the test.
  2223. else
  2224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2225. for as_dir in $PATH
  2226. do
  2227. IFS=$as_save_IFS
  2228. test -z "$as_dir" && as_dir=.
  2229. for ac_exec_ext in '' $ac_executable_extensions; do
  2230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2231. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2232. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2233. break 2
  2234. fi
  2235. done
  2236. done
  2237. IFS=$as_save_IFS
  2238. fi
  2239. fi
  2240. CC=$ac_cv_prog_CC
  2241. if test -n "$CC"; then
  2242. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2243. $as_echo "$CC" >&6; }
  2244. else
  2245. { $as_echo "$as_me:$LINENO: result: no" >&5
  2246. $as_echo "no" >&6; }
  2247. fi
  2248. fi
  2249. if test -z "$ac_cv_prog_CC"; then
  2250. ac_ct_CC=$CC
  2251. # Extract the first word of "gcc", so it can be a program name with args.
  2252. set dummy gcc; ac_word=$2
  2253. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2254. $as_echo_n "checking for $ac_word... " >&6; }
  2255. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2256. $as_echo_n "(cached) " >&6
  2257. else
  2258. if test -n "$ac_ct_CC"; then
  2259. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2260. else
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. test -z "$as_dir" && as_dir=.
  2266. for ac_exec_ext in '' $ac_executable_extensions; do
  2267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2268. ac_cv_prog_ac_ct_CC="gcc"
  2269. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2270. break 2
  2271. fi
  2272. done
  2273. done
  2274. IFS=$as_save_IFS
  2275. fi
  2276. fi
  2277. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2278. if test -n "$ac_ct_CC"; then
  2279. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2280. $as_echo "$ac_ct_CC" >&6; }
  2281. else
  2282. { $as_echo "$as_me:$LINENO: result: no" >&5
  2283. $as_echo "no" >&6; }
  2284. fi
  2285. if test "x$ac_ct_CC" = x; then
  2286. CC=""
  2287. else
  2288. case $cross_compiling:$ac_tool_warned in
  2289. yes:)
  2290. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2291. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2292. ac_tool_warned=yes ;;
  2293. esac
  2294. CC=$ac_ct_CC
  2295. fi
  2296. else
  2297. CC="$ac_cv_prog_CC"
  2298. fi
  2299. if test -z "$CC"; then
  2300. if test -n "$ac_tool_prefix"; then
  2301. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2302. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2303. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2304. $as_echo_n "checking for $ac_word... " >&6; }
  2305. if test "${ac_cv_prog_CC+set}" = set; then
  2306. $as_echo_n "(cached) " >&6
  2307. else
  2308. if test -n "$CC"; then
  2309. ac_cv_prog_CC="$CC" # Let the user override the test.
  2310. else
  2311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312. for as_dir in $PATH
  2313. do
  2314. IFS=$as_save_IFS
  2315. test -z "$as_dir" && as_dir=.
  2316. for ac_exec_ext in '' $ac_executable_extensions; do
  2317. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2318. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2319. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2320. break 2
  2321. fi
  2322. done
  2323. done
  2324. IFS=$as_save_IFS
  2325. fi
  2326. fi
  2327. CC=$ac_cv_prog_CC
  2328. if test -n "$CC"; then
  2329. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2330. $as_echo "$CC" >&6; }
  2331. else
  2332. { $as_echo "$as_me:$LINENO: result: no" >&5
  2333. $as_echo "no" >&6; }
  2334. fi
  2335. fi
  2336. fi
  2337. if test -z "$CC"; then
  2338. # Extract the first word of "cc", so it can be a program name with args.
  2339. set dummy cc; ac_word=$2
  2340. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2341. $as_echo_n "checking for $ac_word... " >&6; }
  2342. if test "${ac_cv_prog_CC+set}" = set; then
  2343. $as_echo_n "(cached) " >&6
  2344. else
  2345. if test -n "$CC"; then
  2346. ac_cv_prog_CC="$CC" # Let the user override the test.
  2347. else
  2348. ac_prog_rejected=no
  2349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2350. for as_dir in $PATH
  2351. do
  2352. IFS=$as_save_IFS
  2353. test -z "$as_dir" && as_dir=.
  2354. for ac_exec_ext in '' $ac_executable_extensions; do
  2355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2356. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2357. ac_prog_rejected=yes
  2358. continue
  2359. fi
  2360. ac_cv_prog_CC="cc"
  2361. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2362. break 2
  2363. fi
  2364. done
  2365. done
  2366. IFS=$as_save_IFS
  2367. if test $ac_prog_rejected = yes; then
  2368. # We found a bogon in the path, so make sure we never use it.
  2369. set dummy $ac_cv_prog_CC
  2370. shift
  2371. if test $# != 0; then
  2372. # We chose a different compiler from the bogus one.
  2373. # However, it has the same basename, so the bogon will be chosen
  2374. # first if we set CC to just the basename; use the full file name.
  2375. shift
  2376. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2377. fi
  2378. fi
  2379. fi
  2380. fi
  2381. CC=$ac_cv_prog_CC
  2382. if test -n "$CC"; then
  2383. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2384. $as_echo "$CC" >&6; }
  2385. else
  2386. { $as_echo "$as_me:$LINENO: result: no" >&5
  2387. $as_echo "no" >&6; }
  2388. fi
  2389. fi
  2390. if test -z "$CC"; then
  2391. if test -n "$ac_tool_prefix"; then
  2392. for ac_prog in cl.exe
  2393. do
  2394. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2395. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2396. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2397. $as_echo_n "checking for $ac_word... " >&6; }
  2398. if test "${ac_cv_prog_CC+set}" = set; then
  2399. $as_echo_n "(cached) " >&6
  2400. else
  2401. if test -n "$CC"; then
  2402. ac_cv_prog_CC="$CC" # Let the user override the test.
  2403. else
  2404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2405. for as_dir in $PATH
  2406. do
  2407. IFS=$as_save_IFS
  2408. test -z "$as_dir" && as_dir=.
  2409. for ac_exec_ext in '' $ac_executable_extensions; do
  2410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2411. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2412. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2413. break 2
  2414. fi
  2415. done
  2416. done
  2417. IFS=$as_save_IFS
  2418. fi
  2419. fi
  2420. CC=$ac_cv_prog_CC
  2421. if test -n "$CC"; then
  2422. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2423. $as_echo "$CC" >&6; }
  2424. else
  2425. { $as_echo "$as_me:$LINENO: result: no" >&5
  2426. $as_echo "no" >&6; }
  2427. fi
  2428. test -n "$CC" && break
  2429. done
  2430. fi
  2431. if test -z "$CC"; then
  2432. ac_ct_CC=$CC
  2433. for ac_prog in cl.exe
  2434. do
  2435. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2436. set dummy $ac_prog; ac_word=$2
  2437. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2438. $as_echo_n "checking for $ac_word... " >&6; }
  2439. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2440. $as_echo_n "(cached) " >&6
  2441. else
  2442. if test -n "$ac_ct_CC"; then
  2443. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2444. else
  2445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2446. for as_dir in $PATH
  2447. do
  2448. IFS=$as_save_IFS
  2449. test -z "$as_dir" && as_dir=.
  2450. for ac_exec_ext in '' $ac_executable_extensions; do
  2451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2452. ac_cv_prog_ac_ct_CC="$ac_prog"
  2453. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2454. break 2
  2455. fi
  2456. done
  2457. done
  2458. IFS=$as_save_IFS
  2459. fi
  2460. fi
  2461. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2462. if test -n "$ac_ct_CC"; then
  2463. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2464. $as_echo "$ac_ct_CC" >&6; }
  2465. else
  2466. { $as_echo "$as_me:$LINENO: result: no" >&5
  2467. $as_echo "no" >&6; }
  2468. fi
  2469. test -n "$ac_ct_CC" && break
  2470. done
  2471. if test "x$ac_ct_CC" = x; then
  2472. CC=""
  2473. else
  2474. case $cross_compiling:$ac_tool_warned in
  2475. yes:)
  2476. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2478. ac_tool_warned=yes ;;
  2479. esac
  2480. CC=$ac_ct_CC
  2481. fi
  2482. fi
  2483. fi
  2484. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2485. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2486. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2487. See \`config.log' for more details." >&5
  2488. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2489. See \`config.log' for more details." >&2;}
  2490. { (exit 1); exit 1; }; }; }
  2491. # Provide some information about the compiler.
  2492. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2493. set X $ac_compile
  2494. ac_compiler=$2
  2495. { (ac_try="$ac_compiler --version >&5"
  2496. case "(($ac_try" in
  2497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2498. *) ac_try_echo=$ac_try;;
  2499. esac
  2500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2501. $as_echo "$ac_try_echo") >&5
  2502. (eval "$ac_compiler --version >&5") 2>&5
  2503. ac_status=$?
  2504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2505. (exit $ac_status); }
  2506. { (ac_try="$ac_compiler -v >&5"
  2507. case "(($ac_try" in
  2508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2509. *) ac_try_echo=$ac_try;;
  2510. esac
  2511. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2512. $as_echo "$ac_try_echo") >&5
  2513. (eval "$ac_compiler -v >&5") 2>&5
  2514. ac_status=$?
  2515. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2516. (exit $ac_status); }
  2517. { (ac_try="$ac_compiler -V >&5"
  2518. case "(($ac_try" in
  2519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2520. *) ac_try_echo=$ac_try;;
  2521. esac
  2522. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2523. $as_echo "$ac_try_echo") >&5
  2524. (eval "$ac_compiler -V >&5") 2>&5
  2525. ac_status=$?
  2526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2527. (exit $ac_status); }
  2528. cat >conftest.$ac_ext <<_ACEOF
  2529. /* confdefs.h. */
  2530. _ACEOF
  2531. cat confdefs.h >>conftest.$ac_ext
  2532. cat >>conftest.$ac_ext <<_ACEOF
  2533. /* end confdefs.h. */
  2534. int
  2535. main ()
  2536. {
  2537. ;
  2538. return 0;
  2539. }
  2540. _ACEOF
  2541. ac_clean_files_save=$ac_clean_files
  2542. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2543. # Try to create an executable without -o first, disregard a.out.
  2544. # It will help us diagnose broken compilers, and finding out an intuition
  2545. # of exeext.
  2546. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2547. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2548. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2549. # The possible output files:
  2550. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2551. ac_rmfiles=
  2552. for ac_file in $ac_files
  2553. do
  2554. case $ac_file in
  2555. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2556. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2557. esac
  2558. done
  2559. rm -f $ac_rmfiles
  2560. if { (ac_try="$ac_link_default"
  2561. case "(($ac_try" in
  2562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2563. *) ac_try_echo=$ac_try;;
  2564. esac
  2565. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2566. $as_echo "$ac_try_echo") >&5
  2567. (eval "$ac_link_default") 2>&5
  2568. ac_status=$?
  2569. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2570. (exit $ac_status); }; then
  2571. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2572. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2573. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2574. # so that the user can short-circuit this test for compilers unknown to
  2575. # Autoconf.
  2576. for ac_file in $ac_files ''
  2577. do
  2578. test -f "$ac_file" || continue
  2579. case $ac_file in
  2580. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2581. ;;
  2582. [ab].out )
  2583. # We found the default executable, but exeext='' is most
  2584. # certainly right.
  2585. break;;
  2586. *.* )
  2587. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2588. then :; else
  2589. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2590. fi
  2591. # We set ac_cv_exeext here because the later test for it is not
  2592. # safe: cross compilers may not add the suffix if given an `-o'
  2593. # argument, so we may need to know it at that point already.
  2594. # Even if this section looks crufty: it has the advantage of
  2595. # actually working.
  2596. break;;
  2597. * )
  2598. break;;
  2599. esac
  2600. done
  2601. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2602. else
  2603. ac_file=''
  2604. fi
  2605. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2606. $as_echo "$ac_file" >&6; }
  2607. if test -z "$ac_file"; then
  2608. $as_echo "$as_me: failed program was:" >&5
  2609. sed 's/^/| /' conftest.$ac_ext >&5
  2610. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2611. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2612. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2613. See \`config.log' for more details." >&5
  2614. $as_echo "$as_me: error: C compiler cannot create executables
  2615. See \`config.log' for more details." >&2;}
  2616. { (exit 77); exit 77; }; }; }
  2617. fi
  2618. ac_exeext=$ac_cv_exeext
  2619. # Check that the compiler produces executables we can run. If not, either
  2620. # the compiler is broken, or we cross compile.
  2621. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2622. $as_echo_n "checking whether the C compiler works... " >&6; }
  2623. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2624. # If not cross compiling, check that we can run a simple program.
  2625. if test "$cross_compiling" != yes; then
  2626. if { ac_try='./$ac_file'
  2627. { (case "(($ac_try" in
  2628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2629. *) ac_try_echo=$ac_try;;
  2630. esac
  2631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2632. $as_echo "$ac_try_echo") >&5
  2633. (eval "$ac_try") 2>&5
  2634. ac_status=$?
  2635. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2636. (exit $ac_status); }; }; then
  2637. cross_compiling=no
  2638. else
  2639. if test "$cross_compiling" = maybe; then
  2640. cross_compiling=yes
  2641. else
  2642. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2644. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2645. If you meant to cross compile, use \`--host'.
  2646. See \`config.log' for more details." >&5
  2647. $as_echo "$as_me: error: cannot run C compiled programs.
  2648. If you meant to cross compile, use \`--host'.
  2649. See \`config.log' for more details." >&2;}
  2650. { (exit 1); exit 1; }; }; }
  2651. fi
  2652. fi
  2653. fi
  2654. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2655. $as_echo "yes" >&6; }
  2656. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2657. ac_clean_files=$ac_clean_files_save
  2658. # Check that the compiler produces executables we can run. If not, either
  2659. # the compiler is broken, or we cross compile.
  2660. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2661. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2662. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2663. $as_echo "$cross_compiling" >&6; }
  2664. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2665. $as_echo_n "checking for suffix of executables... " >&6; }
  2666. if { (ac_try="$ac_link"
  2667. case "(($ac_try" in
  2668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2669. *) ac_try_echo=$ac_try;;
  2670. esac
  2671. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2672. $as_echo "$ac_try_echo") >&5
  2673. (eval "$ac_link") 2>&5
  2674. ac_status=$?
  2675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2676. (exit $ac_status); }; then
  2677. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2678. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2679. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2680. # `rm'.
  2681. for ac_file in conftest.exe conftest conftest.*; do
  2682. test -f "$ac_file" || continue
  2683. case $ac_file in
  2684. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2685. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2686. break;;
  2687. * ) break;;
  2688. esac
  2689. done
  2690. else
  2691. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2692. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2693. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2694. See \`config.log' for more details." >&5
  2695. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2696. See \`config.log' for more details." >&2;}
  2697. { (exit 1); exit 1; }; }; }
  2698. fi
  2699. rm -f conftest$ac_cv_exeext
  2700. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2701. $as_echo "$ac_cv_exeext" >&6; }
  2702. rm -f conftest.$ac_ext
  2703. EXEEXT=$ac_cv_exeext
  2704. ac_exeext=$EXEEXT
  2705. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2706. $as_echo_n "checking for suffix of object files... " >&6; }
  2707. if test "${ac_cv_objext+set}" = set; then
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. cat >conftest.$ac_ext <<_ACEOF
  2711. /* confdefs.h. */
  2712. _ACEOF
  2713. cat confdefs.h >>conftest.$ac_ext
  2714. cat >>conftest.$ac_ext <<_ACEOF
  2715. /* end confdefs.h. */
  2716. int
  2717. main ()
  2718. {
  2719. ;
  2720. return 0;
  2721. }
  2722. _ACEOF
  2723. rm -f conftest.o conftest.obj
  2724. if { (ac_try="$ac_compile"
  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_compile") 2>&5
  2732. ac_status=$?
  2733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2734. (exit $ac_status); }; then
  2735. for ac_file in conftest.o conftest.obj conftest.*; do
  2736. test -f "$ac_file" || continue;
  2737. case $ac_file in
  2738. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2739. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2740. break;;
  2741. esac
  2742. done
  2743. else
  2744. $as_echo "$as_me: failed program was:" >&5
  2745. sed 's/^/| /' conftest.$ac_ext >&5
  2746. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2747. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2748. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2749. See \`config.log' for more details." >&5
  2750. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2751. See \`config.log' for more details." >&2;}
  2752. { (exit 1); exit 1; }; }; }
  2753. fi
  2754. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2755. fi
  2756. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2757. $as_echo "$ac_cv_objext" >&6; }
  2758. OBJEXT=$ac_cv_objext
  2759. ac_objext=$OBJEXT
  2760. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2761. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2762. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. cat >conftest.$ac_ext <<_ACEOF
  2766. /* confdefs.h. */
  2767. _ACEOF
  2768. cat confdefs.h >>conftest.$ac_ext
  2769. cat >>conftest.$ac_ext <<_ACEOF
  2770. /* end confdefs.h. */
  2771. int
  2772. main ()
  2773. {
  2774. #ifndef __GNUC__
  2775. choke me
  2776. #endif
  2777. ;
  2778. return 0;
  2779. }
  2780. _ACEOF
  2781. rm -f conftest.$ac_objext
  2782. if { (ac_try="$ac_compile"
  2783. case "(($ac_try" in
  2784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2785. *) ac_try_echo=$ac_try;;
  2786. esac
  2787. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2788. $as_echo "$ac_try_echo") >&5
  2789. (eval "$ac_compile") 2>conftest.er1
  2790. ac_status=$?
  2791. grep -v '^ *+' conftest.er1 >conftest.err
  2792. rm -f conftest.er1
  2793. cat conftest.err >&5
  2794. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2795. (exit $ac_status); } && {
  2796. test -z "$ac_c_werror_flag" ||
  2797. test ! -s conftest.err
  2798. } && test -s conftest.$ac_objext; then
  2799. ac_compiler_gnu=yes
  2800. else
  2801. $as_echo "$as_me: failed program was:" >&5
  2802. sed 's/^/| /' conftest.$ac_ext >&5
  2803. ac_compiler_gnu=no
  2804. fi
  2805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2806. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2807. fi
  2808. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2809. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2810. if test $ac_compiler_gnu = yes; then
  2811. GCC=yes
  2812. else
  2813. GCC=
  2814. fi
  2815. ac_test_CFLAGS=${CFLAGS+set}
  2816. ac_save_CFLAGS=$CFLAGS
  2817. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2818. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2819. if test "${ac_cv_prog_cc_g+set}" = set; then
  2820. $as_echo_n "(cached) " >&6
  2821. else
  2822. ac_save_c_werror_flag=$ac_c_werror_flag
  2823. ac_c_werror_flag=yes
  2824. ac_cv_prog_cc_g=no
  2825. CFLAGS="-g"
  2826. cat >conftest.$ac_ext <<_ACEOF
  2827. /* confdefs.h. */
  2828. _ACEOF
  2829. cat confdefs.h >>conftest.$ac_ext
  2830. cat >>conftest.$ac_ext <<_ACEOF
  2831. /* end confdefs.h. */
  2832. int
  2833. main ()
  2834. {
  2835. ;
  2836. return 0;
  2837. }
  2838. _ACEOF
  2839. rm -f conftest.$ac_objext
  2840. if { (ac_try="$ac_compile"
  2841. case "(($ac_try" in
  2842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843. *) ac_try_echo=$ac_try;;
  2844. esac
  2845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2846. $as_echo "$ac_try_echo") >&5
  2847. (eval "$ac_compile") 2>conftest.er1
  2848. ac_status=$?
  2849. grep -v '^ *+' conftest.er1 >conftest.err
  2850. rm -f conftest.er1
  2851. cat conftest.err >&5
  2852. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2853. (exit $ac_status); } && {
  2854. test -z "$ac_c_werror_flag" ||
  2855. test ! -s conftest.err
  2856. } && test -s conftest.$ac_objext; then
  2857. ac_cv_prog_cc_g=yes
  2858. else
  2859. $as_echo "$as_me: failed program was:" >&5
  2860. sed 's/^/| /' conftest.$ac_ext >&5
  2861. CFLAGS=""
  2862. cat >conftest.$ac_ext <<_ACEOF
  2863. /* confdefs.h. */
  2864. _ACEOF
  2865. cat confdefs.h >>conftest.$ac_ext
  2866. cat >>conftest.$ac_ext <<_ACEOF
  2867. /* end confdefs.h. */
  2868. int
  2869. main ()
  2870. {
  2871. ;
  2872. return 0;
  2873. }
  2874. _ACEOF
  2875. rm -f conftest.$ac_objext
  2876. if { (ac_try="$ac_compile"
  2877. case "(($ac_try" in
  2878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2879. *) ac_try_echo=$ac_try;;
  2880. esac
  2881. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2882. $as_echo "$ac_try_echo") >&5
  2883. (eval "$ac_compile") 2>conftest.er1
  2884. ac_status=$?
  2885. grep -v '^ *+' conftest.er1 >conftest.err
  2886. rm -f conftest.er1
  2887. cat conftest.err >&5
  2888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2889. (exit $ac_status); } && {
  2890. test -z "$ac_c_werror_flag" ||
  2891. test ! -s conftest.err
  2892. } && test -s conftest.$ac_objext; then
  2893. :
  2894. else
  2895. $as_echo "$as_me: failed program was:" >&5
  2896. sed 's/^/| /' conftest.$ac_ext >&5
  2897. ac_c_werror_flag=$ac_save_c_werror_flag
  2898. CFLAGS="-g"
  2899. cat >conftest.$ac_ext <<_ACEOF
  2900. /* confdefs.h. */
  2901. _ACEOF
  2902. cat confdefs.h >>conftest.$ac_ext
  2903. cat >>conftest.$ac_ext <<_ACEOF
  2904. /* end confdefs.h. */
  2905. int
  2906. main ()
  2907. {
  2908. ;
  2909. return 0;
  2910. }
  2911. _ACEOF
  2912. rm -f conftest.$ac_objext
  2913. if { (ac_try="$ac_compile"
  2914. case "(($ac_try" in
  2915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2916. *) ac_try_echo=$ac_try;;
  2917. esac
  2918. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2919. $as_echo "$ac_try_echo") >&5
  2920. (eval "$ac_compile") 2>conftest.er1
  2921. ac_status=$?
  2922. grep -v '^ *+' conftest.er1 >conftest.err
  2923. rm -f conftest.er1
  2924. cat conftest.err >&5
  2925. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2926. (exit $ac_status); } && {
  2927. test -z "$ac_c_werror_flag" ||
  2928. test ! -s conftest.err
  2929. } && test -s conftest.$ac_objext; then
  2930. ac_cv_prog_cc_g=yes
  2931. else
  2932. $as_echo "$as_me: failed program was:" >&5
  2933. sed 's/^/| /' conftest.$ac_ext >&5
  2934. fi
  2935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2936. fi
  2937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2938. fi
  2939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2940. ac_c_werror_flag=$ac_save_c_werror_flag
  2941. fi
  2942. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2943. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2944. if test "$ac_test_CFLAGS" = set; then
  2945. CFLAGS=$ac_save_CFLAGS
  2946. elif test $ac_cv_prog_cc_g = yes; then
  2947. if test "$GCC" = yes; then
  2948. CFLAGS="-g -O2"
  2949. else
  2950. CFLAGS="-g"
  2951. fi
  2952. else
  2953. if test "$GCC" = yes; then
  2954. CFLAGS="-O2"
  2955. else
  2956. CFLAGS=
  2957. fi
  2958. fi
  2959. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2960. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2961. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2962. $as_echo_n "(cached) " >&6
  2963. else
  2964. ac_cv_prog_cc_c89=no
  2965. ac_save_CC=$CC
  2966. cat >conftest.$ac_ext <<_ACEOF
  2967. /* confdefs.h. */
  2968. _ACEOF
  2969. cat confdefs.h >>conftest.$ac_ext
  2970. cat >>conftest.$ac_ext <<_ACEOF
  2971. /* end confdefs.h. */
  2972. #include <stdarg.h>
  2973. #include <stdio.h>
  2974. #include <sys/types.h>
  2975. #include <sys/stat.h>
  2976. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2977. struct buf { int x; };
  2978. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2979. static char *e (p, i)
  2980. char **p;
  2981. int i;
  2982. {
  2983. return p[i];
  2984. }
  2985. static char *f (char * (*g) (char **, int), char **p, ...)
  2986. {
  2987. char *s;
  2988. va_list v;
  2989. va_start (v,p);
  2990. s = g (p, va_arg (v,int));
  2991. va_end (v);
  2992. return s;
  2993. }
  2994. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2995. function prototypes and stuff, but not '\xHH' hex character constants.
  2996. These don't provoke an error unfortunately, instead are silently treated
  2997. as 'x'. The following induces an error, until -std is added to get
  2998. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2999. array size at least. It's necessary to write '\x00'==0 to get something
  3000. that's true only with -std. */
  3001. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3002. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3003. inside strings and character constants. */
  3004. #define FOO(x) 'x'
  3005. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3006. int test (int i, double x);
  3007. struct s1 {int (*f) (int a);};
  3008. struct s2 {int (*f) (double a);};
  3009. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3010. int argc;
  3011. char **argv;
  3012. int
  3013. main ()
  3014. {
  3015. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3016. ;
  3017. return 0;
  3018. }
  3019. _ACEOF
  3020. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3021. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3022. do
  3023. CC="$ac_save_CC $ac_arg"
  3024. rm -f conftest.$ac_objext
  3025. if { (ac_try="$ac_compile"
  3026. case "(($ac_try" in
  3027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3028. *) ac_try_echo=$ac_try;;
  3029. esac
  3030. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3031. $as_echo "$ac_try_echo") >&5
  3032. (eval "$ac_compile") 2>conftest.er1
  3033. ac_status=$?
  3034. grep -v '^ *+' conftest.er1 >conftest.err
  3035. rm -f conftest.er1
  3036. cat conftest.err >&5
  3037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3038. (exit $ac_status); } && {
  3039. test -z "$ac_c_werror_flag" ||
  3040. test ! -s conftest.err
  3041. } && test -s conftest.$ac_objext; then
  3042. ac_cv_prog_cc_c89=$ac_arg
  3043. else
  3044. $as_echo "$as_me: failed program was:" >&5
  3045. sed 's/^/| /' conftest.$ac_ext >&5
  3046. fi
  3047. rm -f core conftest.err conftest.$ac_objext
  3048. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3049. done
  3050. rm -f conftest.$ac_ext
  3051. CC=$ac_save_CC
  3052. fi
  3053. # AC_CACHE_VAL
  3054. case "x$ac_cv_prog_cc_c89" in
  3055. x)
  3056. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3057. $as_echo "none needed" >&6; } ;;
  3058. xno)
  3059. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3060. $as_echo "unsupported" >&6; } ;;
  3061. *)
  3062. CC="$CC $ac_cv_prog_cc_c89"
  3063. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3064. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3065. esac
  3066. ac_ext=c
  3067. ac_cpp='$CPP $CPPFLAGS'
  3068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3071. DEPDIR="${am__leading_dot}deps"
  3072. ac_config_commands="$ac_config_commands depfiles"
  3073. am_make=${MAKE-make}
  3074. cat > confinc << 'END'
  3075. am__doit:
  3076. @echo done
  3077. .PHONY: am__doit
  3078. END
  3079. # If we don't find an include directive, just comment out the code.
  3080. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3081. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3082. am__include="#"
  3083. am__quote=
  3084. _am_result=none
  3085. # First try GNU make style include.
  3086. echo "include confinc" > confmf
  3087. # We grep out `Entering directory' and `Leaving directory'
  3088. # messages which can occur if `w' ends up in MAKEFLAGS.
  3089. # In particular we don't look at `^make:' because GNU make might
  3090. # be invoked under some other name (usually "gmake"), in which
  3091. # case it prints its new name instead of `make'.
  3092. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3093. am__include=include
  3094. am__quote=
  3095. _am_result=GNU
  3096. fi
  3097. # Now try BSD make style include.
  3098. if test "$am__include" = "#"; then
  3099. echo '.include "confinc"' > confmf
  3100. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3101. am__include=.include
  3102. am__quote="\""
  3103. _am_result=BSD
  3104. fi
  3105. fi
  3106. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3107. $as_echo "$_am_result" >&6; }
  3108. rm -f confinc confmf
  3109. # Check whether --enable-dependency-tracking was given.
  3110. if test "${enable_dependency_tracking+set}" = set; then
  3111. enableval=$enable_dependency_tracking;
  3112. fi
  3113. if test "x$enable_dependency_tracking" != xno; then
  3114. am_depcomp="$ac_aux_dir/depcomp"
  3115. AMDEPBACKSLASH='\'
  3116. fi
  3117. if test "x$enable_dependency_tracking" != xno; then
  3118. AMDEP_TRUE=
  3119. AMDEP_FALSE='#'
  3120. else
  3121. AMDEP_TRUE='#'
  3122. AMDEP_FALSE=
  3123. fi
  3124. depcc="$CC" am_compiler_list=
  3125. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3126. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3127. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3128. $as_echo_n "(cached) " >&6
  3129. else
  3130. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3131. # We make a subdir and do the tests there. Otherwise we can end up
  3132. # making bogus files that we don't know about and never remove. For
  3133. # instance it was reported that on HP-UX the gcc test will end up
  3134. # making a dummy file named `D' -- because `-MD' means `put the output
  3135. # in D'.
  3136. mkdir conftest.dir
  3137. # Copy depcomp to subdir because otherwise we won't find it if we're
  3138. # using a relative directory.
  3139. cp "$am_depcomp" conftest.dir
  3140. cd conftest.dir
  3141. # We will build objects and dependencies in a subdirectory because
  3142. # it helps to detect inapplicable dependency modes. For instance
  3143. # both Tru64's cc and ICC support -MD to output dependencies as a
  3144. # side effect of compilation, but ICC will put the dependencies in
  3145. # the current directory while Tru64 will put them in the object
  3146. # directory.
  3147. mkdir sub
  3148. am_cv_CC_dependencies_compiler_type=none
  3149. if test "$am_compiler_list" = ""; then
  3150. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3151. fi
  3152. for depmode in $am_compiler_list; do
  3153. # Setup a source with many dependencies, because some compilers
  3154. # like to wrap large dependency lists on column 80 (with \), and
  3155. # we should not choose a depcomp mode which is confused by this.
  3156. #
  3157. # We need to recreate these files for each test, as the compiler may
  3158. # overwrite some of them when testing with obscure command lines.
  3159. # This happens at least with the AIX C compiler.
  3160. : > sub/conftest.c
  3161. for i in 1 2 3 4 5 6; do
  3162. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3163. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3164. # Solaris 8's {/usr,}/bin/sh.
  3165. touch sub/conftst$i.h
  3166. done
  3167. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3168. case $depmode in
  3169. nosideeffect)
  3170. # after this tag, mechanisms are not by side-effect, so they'll
  3171. # only be used when explicitly requested
  3172. if test "x$enable_dependency_tracking" = xyes; then
  3173. continue
  3174. else
  3175. break
  3176. fi
  3177. ;;
  3178. none) break ;;
  3179. esac
  3180. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3181. # mode. It turns out that the SunPro C++ compiler does not properly
  3182. # handle `-M -o', and we need to detect this.
  3183. if depmode=$depmode \
  3184. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3185. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3186. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3187. >/dev/null 2>conftest.err &&
  3188. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3189. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3190. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3191. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3192. # icc doesn't choke on unknown options, it will just issue warnings
  3193. # or remarks (even with -Werror). So we grep stderr for any message
  3194. # that says an option was ignored or not supported.
  3195. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3196. # icc: Command line warning: ignoring option '-M'; no argument required
  3197. # The diagnosis changed in icc 8.0:
  3198. # icc: Command line remark: option '-MP' not supported
  3199. if (grep 'ignoring option' conftest.err ||
  3200. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3201. am_cv_CC_dependencies_compiler_type=$depmode
  3202. break
  3203. fi
  3204. fi
  3205. done
  3206. cd ..
  3207. rm -rf conftest.dir
  3208. else
  3209. am_cv_CC_dependencies_compiler_type=none
  3210. fi
  3211. fi
  3212. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3213. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3214. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3215. if
  3216. test "x$enable_dependency_tracking" != xno \
  3217. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3218. am__fastdepCC_TRUE=
  3219. am__fastdepCC_FALSE='#'
  3220. else
  3221. am__fastdepCC_TRUE='#'
  3222. am__fastdepCC_FALSE=
  3223. fi
  3224. case `pwd` in
  3225. *\ * | *\ *)
  3226. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3227. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3228. esac
  3229. macro_version='2.2.6'
  3230. macro_revision='1.3012'
  3231. ltmain="$ac_aux_dir/ltmain.sh"
  3232. # Make sure we can run config.sub.
  3233. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3234. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3235. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3236. { (exit 1); exit 1; }; }
  3237. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  3238. $as_echo_n "checking build system type... " >&6; }
  3239. if test "${ac_cv_build+set}" = set; then
  3240. $as_echo_n "(cached) " >&6
  3241. else
  3242. ac_build_alias=$build_alias
  3243. test "x$ac_build_alias" = x &&
  3244. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3245. test "x$ac_build_alias" = x &&
  3246. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3247. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3248. { (exit 1); exit 1; }; }
  3249. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3250. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3251. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3252. { (exit 1); exit 1; }; }
  3253. fi
  3254. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3255. $as_echo "$ac_cv_build" >&6; }
  3256. case $ac_cv_build in
  3257. *-*-*) ;;
  3258. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3259. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  3260. { (exit 1); exit 1; }; };;
  3261. esac
  3262. build=$ac_cv_build
  3263. ac_save_IFS=$IFS; IFS='-'
  3264. set x $ac_cv_build
  3265. shift
  3266. build_cpu=$1
  3267. build_vendor=$2
  3268. shift; shift
  3269. # Remember, the first character of IFS is used to create $*,
  3270. # except with old shells:
  3271. build_os=$*
  3272. IFS=$ac_save_IFS
  3273. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3274. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3275. $as_echo_n "checking host system type... " >&6; }
  3276. if test "${ac_cv_host+set}" = set; then
  3277. $as_echo_n "(cached) " >&6
  3278. else
  3279. if test "x$host_alias" = x; then
  3280. ac_cv_host=$ac_cv_build
  3281. else
  3282. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3283. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3284. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3285. { (exit 1); exit 1; }; }
  3286. fi
  3287. fi
  3288. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3289. $as_echo "$ac_cv_host" >&6; }
  3290. case $ac_cv_host in
  3291. *-*-*) ;;
  3292. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3293. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3294. { (exit 1); exit 1; }; };;
  3295. esac
  3296. host=$ac_cv_host
  3297. ac_save_IFS=$IFS; IFS='-'
  3298. set x $ac_cv_host
  3299. shift
  3300. host_cpu=$1
  3301. host_vendor=$2
  3302. shift; shift
  3303. # Remember, the first character of IFS is used to create $*,
  3304. # except with old shells:
  3305. host_os=$*
  3306. IFS=$ac_save_IFS
  3307. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3308. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3309. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3310. if test "${ac_cv_path_SED+set}" = set; then
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3314. for ac_i in 1 2 3 4 5 6 7; do
  3315. ac_script="$ac_script$as_nl$ac_script"
  3316. done
  3317. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3318. $as_unset ac_script || ac_script=
  3319. if test -z "$SED"; then
  3320. ac_path_SED_found=false
  3321. # Loop through the user's path and test for each of PROGNAME-LIST
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH
  3324. do
  3325. IFS=$as_save_IFS
  3326. test -z "$as_dir" && as_dir=.
  3327. for ac_prog in sed gsed; do
  3328. for ac_exec_ext in '' $ac_executable_extensions; do
  3329. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3330. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3331. # Check for GNU ac_path_SED and select it if it is found.
  3332. # Check for GNU $ac_path_SED
  3333. case `"$ac_path_SED" --version 2>&1` in
  3334. *GNU*)
  3335. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3336. *)
  3337. ac_count=0
  3338. $as_echo_n 0123456789 >"conftest.in"
  3339. while :
  3340. do
  3341. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3342. mv "conftest.tmp" "conftest.in"
  3343. cp "conftest.in" "conftest.nl"
  3344. $as_echo '' >> "conftest.nl"
  3345. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3346. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3347. ac_count=`expr $ac_count + 1`
  3348. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3349. # Best one so far, save it but keep looking for a better one
  3350. ac_cv_path_SED="$ac_path_SED"
  3351. ac_path_SED_max=$ac_count
  3352. fi
  3353. # 10*(2^10) chars as input seems more than enough
  3354. test $ac_count -gt 10 && break
  3355. done
  3356. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3357. esac
  3358. $ac_path_SED_found && break 3
  3359. done
  3360. done
  3361. done
  3362. IFS=$as_save_IFS
  3363. if test -z "$ac_cv_path_SED"; then
  3364. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3365. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3366. { (exit 1); exit 1; }; }
  3367. fi
  3368. else
  3369. ac_cv_path_SED=$SED
  3370. fi
  3371. fi
  3372. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3373. $as_echo "$ac_cv_path_SED" >&6; }
  3374. SED="$ac_cv_path_SED"
  3375. rm -f conftest.sed
  3376. test -z "$SED" && SED=sed
  3377. Xsed="$SED -e 1s/^X//"
  3378. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3379. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3380. if test "${ac_cv_path_GREP+set}" = set; then
  3381. $as_echo_n "(cached) " >&6
  3382. else
  3383. if test -z "$GREP"; then
  3384. ac_path_GREP_found=false
  3385. # Loop through the user's path and test for each of PROGNAME-LIST
  3386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3387. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3388. do
  3389. IFS=$as_save_IFS
  3390. test -z "$as_dir" && as_dir=.
  3391. for ac_prog in grep ggrep; do
  3392. for ac_exec_ext in '' $ac_executable_extensions; do
  3393. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3394. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3395. # Check for GNU ac_path_GREP and select it if it is found.
  3396. # Check for GNU $ac_path_GREP
  3397. case `"$ac_path_GREP" --version 2>&1` in
  3398. *GNU*)
  3399. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3400. *)
  3401. ac_count=0
  3402. $as_echo_n 0123456789 >"conftest.in"
  3403. while :
  3404. do
  3405. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3406. mv "conftest.tmp" "conftest.in"
  3407. cp "conftest.in" "conftest.nl"
  3408. $as_echo 'GREP' >> "conftest.nl"
  3409. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3410. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3411. ac_count=`expr $ac_count + 1`
  3412. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3413. # Best one so far, save it but keep looking for a better one
  3414. ac_cv_path_GREP="$ac_path_GREP"
  3415. ac_path_GREP_max=$ac_count
  3416. fi
  3417. # 10*(2^10) chars as input seems more than enough
  3418. test $ac_count -gt 10 && break
  3419. done
  3420. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3421. esac
  3422. $ac_path_GREP_found && break 3
  3423. done
  3424. done
  3425. done
  3426. IFS=$as_save_IFS
  3427. if test -z "$ac_cv_path_GREP"; then
  3428. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3429. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3430. { (exit 1); exit 1; }; }
  3431. fi
  3432. else
  3433. ac_cv_path_GREP=$GREP
  3434. fi
  3435. fi
  3436. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3437. $as_echo "$ac_cv_path_GREP" >&6; }
  3438. GREP="$ac_cv_path_GREP"
  3439. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3440. $as_echo_n "checking for egrep... " >&6; }
  3441. if test "${ac_cv_path_EGREP+set}" = set; then
  3442. $as_echo_n "(cached) " >&6
  3443. else
  3444. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3445. then ac_cv_path_EGREP="$GREP -E"
  3446. else
  3447. if test -z "$EGREP"; then
  3448. ac_path_EGREP_found=false
  3449. # Loop through the user's path and test for each of PROGNAME-LIST
  3450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3451. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3452. do
  3453. IFS=$as_save_IFS
  3454. test -z "$as_dir" && as_dir=.
  3455. for ac_prog in egrep; do
  3456. for ac_exec_ext in '' $ac_executable_extensions; do
  3457. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3458. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3459. # Check for GNU ac_path_EGREP and select it if it is found.
  3460. # Check for GNU $ac_path_EGREP
  3461. case `"$ac_path_EGREP" --version 2>&1` in
  3462. *GNU*)
  3463. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3464. *)
  3465. ac_count=0
  3466. $as_echo_n 0123456789 >"conftest.in"
  3467. while :
  3468. do
  3469. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3470. mv "conftest.tmp" "conftest.in"
  3471. cp "conftest.in" "conftest.nl"
  3472. $as_echo 'EGREP' >> "conftest.nl"
  3473. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3474. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3475. ac_count=`expr $ac_count + 1`
  3476. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3477. # Best one so far, save it but keep looking for a better one
  3478. ac_cv_path_EGREP="$ac_path_EGREP"
  3479. ac_path_EGREP_max=$ac_count
  3480. fi
  3481. # 10*(2^10) chars as input seems more than enough
  3482. test $ac_count -gt 10 && break
  3483. done
  3484. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3485. esac
  3486. $ac_path_EGREP_found && break 3
  3487. done
  3488. done
  3489. done
  3490. IFS=$as_save_IFS
  3491. if test -z "$ac_cv_path_EGREP"; then
  3492. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3493. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3494. { (exit 1); exit 1; }; }
  3495. fi
  3496. else
  3497. ac_cv_path_EGREP=$EGREP
  3498. fi
  3499. fi
  3500. fi
  3501. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3502. $as_echo "$ac_cv_path_EGREP" >&6; }
  3503. EGREP="$ac_cv_path_EGREP"
  3504. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  3505. $as_echo_n "checking for fgrep... " >&6; }
  3506. if test "${ac_cv_path_FGREP+set}" = set; then
  3507. $as_echo_n "(cached) " >&6
  3508. else
  3509. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3510. then ac_cv_path_FGREP="$GREP -F"
  3511. else
  3512. if test -z "$FGREP"; then
  3513. ac_path_FGREP_found=false
  3514. # Loop through the user's path and test for each of PROGNAME-LIST
  3515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3516. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3517. do
  3518. IFS=$as_save_IFS
  3519. test -z "$as_dir" && as_dir=.
  3520. for ac_prog in fgrep; do
  3521. for ac_exec_ext in '' $ac_executable_extensions; do
  3522. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3523. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3524. # Check for GNU ac_path_FGREP and select it if it is found.
  3525. # Check for GNU $ac_path_FGREP
  3526. case `"$ac_path_FGREP" --version 2>&1` in
  3527. *GNU*)
  3528. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3529. *)
  3530. ac_count=0
  3531. $as_echo_n 0123456789 >"conftest.in"
  3532. while :
  3533. do
  3534. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3535. mv "conftest.tmp" "conftest.in"
  3536. cp "conftest.in" "conftest.nl"
  3537. $as_echo 'FGREP' >> "conftest.nl"
  3538. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3539. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3540. ac_count=`expr $ac_count + 1`
  3541. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3542. # Best one so far, save it but keep looking for a better one
  3543. ac_cv_path_FGREP="$ac_path_FGREP"
  3544. ac_path_FGREP_max=$ac_count
  3545. fi
  3546. # 10*(2^10) chars as input seems more than enough
  3547. test $ac_count -gt 10 && break
  3548. done
  3549. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3550. esac
  3551. $ac_path_FGREP_found && break 3
  3552. done
  3553. done
  3554. done
  3555. IFS=$as_save_IFS
  3556. if test -z "$ac_cv_path_FGREP"; then
  3557. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3558. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3559. { (exit 1); exit 1; }; }
  3560. fi
  3561. else
  3562. ac_cv_path_FGREP=$FGREP
  3563. fi
  3564. fi
  3565. fi
  3566. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3567. $as_echo "$ac_cv_path_FGREP" >&6; }
  3568. FGREP="$ac_cv_path_FGREP"
  3569. test -z "$GREP" && GREP=grep
  3570. # Check whether --with-gnu-ld was given.
  3571. if test "${with_gnu_ld+set}" = set; then
  3572. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3573. else
  3574. with_gnu_ld=no
  3575. fi
  3576. ac_prog=ld
  3577. if test "$GCC" = yes; then
  3578. # Check if gcc -print-prog-name=ld gives a path.
  3579. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3580. $as_echo_n "checking for ld used by $CC... " >&6; }
  3581. case $host in
  3582. *-*-mingw*)
  3583. # gcc leaves a trailing carriage return which upsets mingw
  3584. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3585. *)
  3586. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3587. esac
  3588. case $ac_prog in
  3589. # Accept absolute paths.
  3590. [\\/]* | ?:[\\/]*)
  3591. re_direlt='/[^/][^/]*/\.\./'
  3592. # Canonicalize the pathname of ld
  3593. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3594. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3595. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3596. done
  3597. test -z "$LD" && LD="$ac_prog"
  3598. ;;
  3599. "")
  3600. # If it fails, then pretend we aren't using GCC.
  3601. ac_prog=ld
  3602. ;;
  3603. *)
  3604. # If it is relative, then search for the first ld in PATH.
  3605. with_gnu_ld=unknown
  3606. ;;
  3607. esac
  3608. elif test "$with_gnu_ld" = yes; then
  3609. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3610. $as_echo_n "checking for GNU ld... " >&6; }
  3611. else
  3612. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3613. $as_echo_n "checking for non-GNU ld... " >&6; }
  3614. fi
  3615. if test "${lt_cv_path_LD+set}" = set; then
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. if test -z "$LD"; then
  3619. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3620. for ac_dir in $PATH; do
  3621. IFS="$lt_save_ifs"
  3622. test -z "$ac_dir" && ac_dir=.
  3623. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3624. lt_cv_path_LD="$ac_dir/$ac_prog"
  3625. # Check to see if the program is GNU ld. I'd rather use --version,
  3626. # but apparently some variants of GNU ld only accept -v.
  3627. # Break only if it was the GNU/non-GNU ld that we prefer.
  3628. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3629. *GNU* | *'with BFD'*)
  3630. test "$with_gnu_ld" != no && break
  3631. ;;
  3632. *)
  3633. test "$with_gnu_ld" != yes && break
  3634. ;;
  3635. esac
  3636. fi
  3637. done
  3638. IFS="$lt_save_ifs"
  3639. else
  3640. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3641. fi
  3642. fi
  3643. LD="$lt_cv_path_LD"
  3644. if test -n "$LD"; then
  3645. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3646. $as_echo "$LD" >&6; }
  3647. else
  3648. { $as_echo "$as_me:$LINENO: result: no" >&5
  3649. $as_echo "no" >&6; }
  3650. fi
  3651. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3652. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3653. { (exit 1); exit 1; }; }
  3654. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3655. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3656. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3660. case `$LD -v 2>&1 </dev/null` in
  3661. *GNU* | *'with BFD'*)
  3662. lt_cv_prog_gnu_ld=yes
  3663. ;;
  3664. *)
  3665. lt_cv_prog_gnu_ld=no
  3666. ;;
  3667. esac
  3668. fi
  3669. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3670. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3671. with_gnu_ld=$lt_cv_prog_gnu_ld
  3672. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3673. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3674. if test "${lt_cv_path_NM+set}" = set; then
  3675. $as_echo_n "(cached) " >&6
  3676. else
  3677. if test -n "$NM"; then
  3678. # Let the user override the test.
  3679. lt_cv_path_NM="$NM"
  3680. else
  3681. lt_nm_to_check="${ac_tool_prefix}nm"
  3682. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3683. lt_nm_to_check="$lt_nm_to_check nm"
  3684. fi
  3685. for lt_tmp_nm in $lt_nm_to_check; do
  3686. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3687. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3688. IFS="$lt_save_ifs"
  3689. test -z "$ac_dir" && ac_dir=.
  3690. tmp_nm="$ac_dir/$lt_tmp_nm"
  3691. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3692. # Check to see if the nm accepts a BSD-compat flag.
  3693. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3694. # nm: unknown option "B" ignored
  3695. # Tru64's nm complains that /dev/null is an invalid object file
  3696. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3697. */dev/null* | *'Invalid file or object type'*)
  3698. lt_cv_path_NM="$tmp_nm -B"
  3699. break
  3700. ;;
  3701. *)
  3702. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3703. */dev/null*)
  3704. lt_cv_path_NM="$tmp_nm -p"
  3705. break
  3706. ;;
  3707. *)
  3708. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3709. continue # so that we can try to find one that supports BSD flags
  3710. ;;
  3711. esac
  3712. ;;
  3713. esac
  3714. fi
  3715. done
  3716. IFS="$lt_save_ifs"
  3717. done
  3718. : ${lt_cv_path_NM=no}
  3719. fi
  3720. fi
  3721. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3722. $as_echo "$lt_cv_path_NM" >&6; }
  3723. if test "$lt_cv_path_NM" != "no"; then
  3724. NM="$lt_cv_path_NM"
  3725. else
  3726. # Didn't find any BSD compatible name lister, look for dumpbin.
  3727. if test -n "$ac_tool_prefix"; then
  3728. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3729. do
  3730. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3731. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3732. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3733. $as_echo_n "checking for $ac_word... " >&6; }
  3734. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  3735. $as_echo_n "(cached) " >&6
  3736. else
  3737. if test -n "$DUMPBIN"; then
  3738. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3739. else
  3740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3741. for as_dir in $PATH
  3742. do
  3743. IFS=$as_save_IFS
  3744. test -z "$as_dir" && as_dir=.
  3745. for ac_exec_ext in '' $ac_executable_extensions; do
  3746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3747. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3748. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3749. break 2
  3750. fi
  3751. done
  3752. done
  3753. IFS=$as_save_IFS
  3754. fi
  3755. fi
  3756. DUMPBIN=$ac_cv_prog_DUMPBIN
  3757. if test -n "$DUMPBIN"; then
  3758. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  3759. $as_echo "$DUMPBIN" >&6; }
  3760. else
  3761. { $as_echo "$as_me:$LINENO: result: no" >&5
  3762. $as_echo "no" >&6; }
  3763. fi
  3764. test -n "$DUMPBIN" && break
  3765. done
  3766. fi
  3767. if test -z "$DUMPBIN"; then
  3768. ac_ct_DUMPBIN=$DUMPBIN
  3769. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3770. do
  3771. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3772. set dummy $ac_prog; ac_word=$2
  3773. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3774. $as_echo_n "checking for $ac_word... " >&6; }
  3775. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  3776. $as_echo_n "(cached) " >&6
  3777. else
  3778. if test -n "$ac_ct_DUMPBIN"; then
  3779. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3780. else
  3781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3782. for as_dir in $PATH
  3783. do
  3784. IFS=$as_save_IFS
  3785. test -z "$as_dir" && as_dir=.
  3786. for ac_exec_ext in '' $ac_executable_extensions; do
  3787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3788. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3789. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3790. break 2
  3791. fi
  3792. done
  3793. done
  3794. IFS=$as_save_IFS
  3795. fi
  3796. fi
  3797. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3798. if test -n "$ac_ct_DUMPBIN"; then
  3799. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  3800. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3801. else
  3802. { $as_echo "$as_me:$LINENO: result: no" >&5
  3803. $as_echo "no" >&6; }
  3804. fi
  3805. test -n "$ac_ct_DUMPBIN" && break
  3806. done
  3807. if test "x$ac_ct_DUMPBIN" = x; then
  3808. DUMPBIN=":"
  3809. else
  3810. case $cross_compiling:$ac_tool_warned in
  3811. yes:)
  3812. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3814. ac_tool_warned=yes ;;
  3815. esac
  3816. DUMPBIN=$ac_ct_DUMPBIN
  3817. fi
  3818. fi
  3819. if test "$DUMPBIN" != ":"; then
  3820. NM="$DUMPBIN"
  3821. fi
  3822. fi
  3823. test -z "$NM" && NM=nm
  3824. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  3825. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3826. if test "${lt_cv_nm_interface+set}" = set; then
  3827. $as_echo_n "(cached) " >&6
  3828. else
  3829. lt_cv_nm_interface="BSD nm"
  3830. echo "int some_variable = 0;" > conftest.$ac_ext
  3831. (eval echo "\"\$as_me:4330: $ac_compile\"" >&5)
  3832. (eval "$ac_compile" 2>conftest.err)
  3833. cat conftest.err >&5
  3834. (eval echo "\"\$as_me:4333: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3835. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3836. cat conftest.err >&5
  3837. (eval echo "\"\$as_me:4336: output\"" >&5)
  3838. cat conftest.out >&5
  3839. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3840. lt_cv_nm_interface="MS dumpbin"
  3841. fi
  3842. rm -f conftest*
  3843. fi
  3844. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  3845. $as_echo "$lt_cv_nm_interface" >&6; }
  3846. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3847. $as_echo_n "checking whether ln -s works... " >&6; }
  3848. LN_S=$as_ln_s
  3849. if test "$LN_S" = "ln -s"; then
  3850. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3851. $as_echo "yes" >&6; }
  3852. else
  3853. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3854. $as_echo "no, using $LN_S" >&6; }
  3855. fi
  3856. # find the maximum length of command line arguments
  3857. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  3858. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3859. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. i=0
  3863. teststring="ABCD"
  3864. case $build_os in
  3865. msdosdjgpp*)
  3866. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3867. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3868. # during glob expansion). Even if it were fixed, the result of this
  3869. # check would be larger than it should be.
  3870. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3871. ;;
  3872. gnu*)
  3873. # Under GNU Hurd, this test is not required because there is
  3874. # no limit to the length of command line arguments.
  3875. # Libtool will interpret -1 as no limit whatsoever
  3876. lt_cv_sys_max_cmd_len=-1;
  3877. ;;
  3878. cygwin* | mingw* | cegcc*)
  3879. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3880. # about 5 minutes as the teststring grows exponentially.
  3881. # Worse, since 9x/ME are not pre-emptively multitasking,
  3882. # you end up with a "frozen" computer, even though with patience
  3883. # the test eventually succeeds (with a max line length of 256k).
  3884. # Instead, let's just punt: use the minimum linelength reported by
  3885. # all of the supported platforms: 8192 (on NT/2K/XP).
  3886. lt_cv_sys_max_cmd_len=8192;
  3887. ;;
  3888. amigaos*)
  3889. # On AmigaOS with pdksh, this test takes hours, literally.
  3890. # So we just punt and use a minimum line length of 8192.
  3891. lt_cv_sys_max_cmd_len=8192;
  3892. ;;
  3893. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3894. # This has been around since 386BSD, at least. Likely further.
  3895. if test -x /sbin/sysctl; then
  3896. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3897. elif test -x /usr/sbin/sysctl; then
  3898. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3899. else
  3900. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3901. fi
  3902. # And add a safety zone
  3903. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3904. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3905. ;;
  3906. interix*)
  3907. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3908. lt_cv_sys_max_cmd_len=196608
  3909. ;;
  3910. osf*)
  3911. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3912. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3913. # nice to cause kernel panics so lets avoid the loop below.
  3914. # First set a reasonable default.
  3915. lt_cv_sys_max_cmd_len=16384
  3916. #
  3917. if test -x /sbin/sysconfig; then
  3918. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3919. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3920. esac
  3921. fi
  3922. ;;
  3923. sco3.2v5*)
  3924. lt_cv_sys_max_cmd_len=102400
  3925. ;;
  3926. sysv5* | sco5v6* | sysv4.2uw2*)
  3927. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3928. if test -n "$kargmax"; then
  3929. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3930. else
  3931. lt_cv_sys_max_cmd_len=32768
  3932. fi
  3933. ;;
  3934. *)
  3935. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3936. if test -n "$lt_cv_sys_max_cmd_len"; then
  3937. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3938. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3939. else
  3940. # Make teststring a little bigger before we do anything with it.
  3941. # a 1K string should be a reasonable start.
  3942. for i in 1 2 3 4 5 6 7 8 ; do
  3943. teststring=$teststring$teststring
  3944. done
  3945. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3946. # If test is not a shell built-in, we'll probably end up computing a
  3947. # maximum length that is only half of the actual maximum length, but
  3948. # we can't tell.
  3949. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3950. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3951. test $i != 17 # 1/2 MB should be enough
  3952. do
  3953. i=`expr $i + 1`
  3954. teststring=$teststring$teststring
  3955. done
  3956. # Only check the string length outside the loop.
  3957. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3958. teststring=
  3959. # Add a significant safety factor because C++ compilers can tack on
  3960. # massive amounts of additional arguments before passing them to the
  3961. # linker. It appears as though 1/2 is a usable value.
  3962. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3963. fi
  3964. ;;
  3965. esac
  3966. fi
  3967. if test -n $lt_cv_sys_max_cmd_len ; then
  3968. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  3969. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3970. else
  3971. { $as_echo "$as_me:$LINENO: result: none" >&5
  3972. $as_echo "none" >&6; }
  3973. fi
  3974. max_cmd_len=$lt_cv_sys_max_cmd_len
  3975. : ${CP="cp -f"}
  3976. : ${MV="mv -f"}
  3977. : ${RM="rm -f"}
  3978. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  3979. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3980. # Try some XSI features
  3981. xsi_shell=no
  3982. ( _lt_dummy="a/b/c"
  3983. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  3984. = c,a/b,, \
  3985. && eval 'test $(( 1 + 1 )) -eq 2 \
  3986. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3987. && xsi_shell=yes
  3988. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  3989. $as_echo "$xsi_shell" >&6; }
  3990. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  3991. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3992. lt_shell_append=no
  3993. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3994. >/dev/null 2>&1 \
  3995. && lt_shell_append=yes
  3996. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  3997. $as_echo "$lt_shell_append" >&6; }
  3998. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3999. lt_unset=unset
  4000. else
  4001. lt_unset=false
  4002. fi
  4003. # test EBCDIC or ASCII
  4004. case `echo X|tr X '\101'` in
  4005. A) # ASCII based system
  4006. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4007. lt_SP2NL='tr \040 \012'
  4008. lt_NL2SP='tr \015\012 \040\040'
  4009. ;;
  4010. *) # EBCDIC based system
  4011. lt_SP2NL='tr \100 \n'
  4012. lt_NL2SP='tr \r\n \100\100'
  4013. ;;
  4014. esac
  4015. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4016. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4017. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. lt_cv_ld_reload_flag='-r'
  4021. fi
  4022. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4023. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4024. reload_flag=$lt_cv_ld_reload_flag
  4025. case $reload_flag in
  4026. "" | " "*) ;;
  4027. *) reload_flag=" $reload_flag" ;;
  4028. esac
  4029. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4030. case $host_os in
  4031. darwin*)
  4032. if test "$GCC" = yes; then
  4033. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4034. else
  4035. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4036. fi
  4037. ;;
  4038. esac
  4039. if test -n "$ac_tool_prefix"; then
  4040. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4041. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4042. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4043. $as_echo_n "checking for $ac_word... " >&6; }
  4044. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4045. $as_echo_n "(cached) " >&6
  4046. else
  4047. if test -n "$OBJDUMP"; then
  4048. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4049. else
  4050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4051. for as_dir in $PATH
  4052. do
  4053. IFS=$as_save_IFS
  4054. test -z "$as_dir" && as_dir=.
  4055. for ac_exec_ext in '' $ac_executable_extensions; do
  4056. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4057. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4058. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4059. break 2
  4060. fi
  4061. done
  4062. done
  4063. IFS=$as_save_IFS
  4064. fi
  4065. fi
  4066. OBJDUMP=$ac_cv_prog_OBJDUMP
  4067. if test -n "$OBJDUMP"; then
  4068. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4069. $as_echo "$OBJDUMP" >&6; }
  4070. else
  4071. { $as_echo "$as_me:$LINENO: result: no" >&5
  4072. $as_echo "no" >&6; }
  4073. fi
  4074. fi
  4075. if test -z "$ac_cv_prog_OBJDUMP"; then
  4076. ac_ct_OBJDUMP=$OBJDUMP
  4077. # Extract the first word of "objdump", so it can be a program name with args.
  4078. set dummy objdump; ac_word=$2
  4079. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4080. $as_echo_n "checking for $ac_word... " >&6; }
  4081. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4082. $as_echo_n "(cached) " >&6
  4083. else
  4084. if test -n "$ac_ct_OBJDUMP"; then
  4085. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4086. else
  4087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4088. for as_dir in $PATH
  4089. do
  4090. IFS=$as_save_IFS
  4091. test -z "$as_dir" && as_dir=.
  4092. for ac_exec_ext in '' $ac_executable_extensions; do
  4093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4094. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4095. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4096. break 2
  4097. fi
  4098. done
  4099. done
  4100. IFS=$as_save_IFS
  4101. fi
  4102. fi
  4103. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4104. if test -n "$ac_ct_OBJDUMP"; then
  4105. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4106. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4107. else
  4108. { $as_echo "$as_me:$LINENO: result: no" >&5
  4109. $as_echo "no" >&6; }
  4110. fi
  4111. if test "x$ac_ct_OBJDUMP" = x; then
  4112. OBJDUMP="false"
  4113. else
  4114. case $cross_compiling:$ac_tool_warned in
  4115. yes:)
  4116. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4117. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4118. ac_tool_warned=yes ;;
  4119. esac
  4120. OBJDUMP=$ac_ct_OBJDUMP
  4121. fi
  4122. else
  4123. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4124. fi
  4125. test -z "$OBJDUMP" && OBJDUMP=objdump
  4126. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4127. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4128. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4129. $as_echo_n "(cached) " >&6
  4130. else
  4131. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4132. lt_cv_file_magic_test_file=
  4133. lt_cv_deplibs_check_method='unknown'
  4134. # Need to set the preceding variable on all platforms that support
  4135. # interlibrary dependencies.
  4136. # 'none' -- dependencies not supported.
  4137. # `unknown' -- same as none, but documents that we really don't know.
  4138. # 'pass_all' -- all dependencies passed with no checks.
  4139. # 'test_compile' -- check by making test program.
  4140. # 'file_magic [[regex]]' -- check by looking for files in library path
  4141. # which responds to the $file_magic_cmd with a given extended regex.
  4142. # If you have `file' or equivalent on your system and you're not sure
  4143. # whether `pass_all' will *always* work, you probably want this one.
  4144. case $host_os in
  4145. aix[4-9]*)
  4146. lt_cv_deplibs_check_method=pass_all
  4147. ;;
  4148. beos*)
  4149. lt_cv_deplibs_check_method=pass_all
  4150. ;;
  4151. bsdi[45]*)
  4152. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4153. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4154. lt_cv_file_magic_test_file=/shlib/libc.so
  4155. ;;
  4156. cygwin*)
  4157. # func_win32_libid is a shell function defined in ltmain.sh
  4158. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4159. lt_cv_file_magic_cmd='func_win32_libid'
  4160. ;;
  4161. mingw* | pw32*)
  4162. # Base MSYS/MinGW do not provide the 'file' command needed by
  4163. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4164. # unless we find 'file', for example because we are cross-compiling.
  4165. if ( file / ) >/dev/null 2>&1; then
  4166. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4167. lt_cv_file_magic_cmd='func_win32_libid'
  4168. else
  4169. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4170. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4171. fi
  4172. ;;
  4173. cegcc)
  4174. # use the weaker test based on 'objdump'. See mingw*.
  4175. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4176. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4177. ;;
  4178. darwin* | rhapsody*)
  4179. lt_cv_deplibs_check_method=pass_all
  4180. ;;
  4181. freebsd* | dragonfly*)
  4182. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4183. case $host_cpu in
  4184. i*86 )
  4185. # Not sure whether the presence of OpenBSD here was a mistake.
  4186. # Let's accept both of them until this is cleared up.
  4187. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4188. lt_cv_file_magic_cmd=/usr/bin/file
  4189. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4190. ;;
  4191. esac
  4192. else
  4193. lt_cv_deplibs_check_method=pass_all
  4194. fi
  4195. ;;
  4196. gnu*)
  4197. lt_cv_deplibs_check_method=pass_all
  4198. ;;
  4199. hpux10.20* | hpux11*)
  4200. lt_cv_file_magic_cmd=/usr/bin/file
  4201. case $host_cpu in
  4202. ia64*)
  4203. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4204. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4205. ;;
  4206. hppa*64*)
  4207. 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]'
  4208. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4209. ;;
  4210. *)
  4211. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4212. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4213. ;;
  4214. esac
  4215. ;;
  4216. interix[3-9]*)
  4217. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4218. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4219. ;;
  4220. irix5* | irix6* | nonstopux*)
  4221. case $LD in
  4222. *-32|*"-32 ") libmagic=32-bit;;
  4223. *-n32|*"-n32 ") libmagic=N32;;
  4224. *-64|*"-64 ") libmagic=64-bit;;
  4225. *) libmagic=never-match;;
  4226. esac
  4227. lt_cv_deplibs_check_method=pass_all
  4228. ;;
  4229. # This must be Linux ELF.
  4230. linux* | k*bsd*-gnu)
  4231. lt_cv_deplibs_check_method=pass_all
  4232. ;;
  4233. netbsd*)
  4234. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4235. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4236. else
  4237. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4238. fi
  4239. ;;
  4240. newos6*)
  4241. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4242. lt_cv_file_magic_cmd=/usr/bin/file
  4243. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4244. ;;
  4245. *nto* | *qnx*)
  4246. lt_cv_deplibs_check_method=pass_all
  4247. ;;
  4248. openbsd*)
  4249. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4250. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4251. else
  4252. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4253. fi
  4254. ;;
  4255. osf3* | osf4* | osf5*)
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. rdos*)
  4259. lt_cv_deplibs_check_method=pass_all
  4260. ;;
  4261. solaris*)
  4262. lt_cv_deplibs_check_method=pass_all
  4263. ;;
  4264. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4265. lt_cv_deplibs_check_method=pass_all
  4266. ;;
  4267. sysv4 | sysv4.3*)
  4268. case $host_vendor in
  4269. motorola)
  4270. 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]'
  4271. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4272. ;;
  4273. ncr)
  4274. lt_cv_deplibs_check_method=pass_all
  4275. ;;
  4276. sequent)
  4277. lt_cv_file_magic_cmd='/bin/file'
  4278. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4279. ;;
  4280. sni)
  4281. lt_cv_file_magic_cmd='/bin/file'
  4282. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4283. lt_cv_file_magic_test_file=/lib/libc.so
  4284. ;;
  4285. siemens)
  4286. lt_cv_deplibs_check_method=pass_all
  4287. ;;
  4288. pc)
  4289. lt_cv_deplibs_check_method=pass_all
  4290. ;;
  4291. esac
  4292. ;;
  4293. tpf*)
  4294. lt_cv_deplibs_check_method=pass_all
  4295. ;;
  4296. esac
  4297. fi
  4298. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4299. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4300. file_magic_cmd=$lt_cv_file_magic_cmd
  4301. deplibs_check_method=$lt_cv_deplibs_check_method
  4302. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4303. if test -n "$ac_tool_prefix"; then
  4304. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4305. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4306. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4307. $as_echo_n "checking for $ac_word... " >&6; }
  4308. if test "${ac_cv_prog_AR+set}" = set; then
  4309. $as_echo_n "(cached) " >&6
  4310. else
  4311. if test -n "$AR"; then
  4312. ac_cv_prog_AR="$AR" # Let the user override the test.
  4313. else
  4314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4315. for as_dir in $PATH
  4316. do
  4317. IFS=$as_save_IFS
  4318. test -z "$as_dir" && as_dir=.
  4319. for ac_exec_ext in '' $ac_executable_extensions; do
  4320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4321. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4322. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4323. break 2
  4324. fi
  4325. done
  4326. done
  4327. IFS=$as_save_IFS
  4328. fi
  4329. fi
  4330. AR=$ac_cv_prog_AR
  4331. if test -n "$AR"; then
  4332. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4333. $as_echo "$AR" >&6; }
  4334. else
  4335. { $as_echo "$as_me:$LINENO: result: no" >&5
  4336. $as_echo "no" >&6; }
  4337. fi
  4338. fi
  4339. if test -z "$ac_cv_prog_AR"; then
  4340. ac_ct_AR=$AR
  4341. # Extract the first word of "ar", so it can be a program name with args.
  4342. set dummy ar; ac_word=$2
  4343. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4344. $as_echo_n "checking for $ac_word... " >&6; }
  4345. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. if test -n "$ac_ct_AR"; then
  4349. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4350. else
  4351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4352. for as_dir in $PATH
  4353. do
  4354. IFS=$as_save_IFS
  4355. test -z "$as_dir" && as_dir=.
  4356. for ac_exec_ext in '' $ac_executable_extensions; do
  4357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4358. ac_cv_prog_ac_ct_AR="ar"
  4359. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4360. break 2
  4361. fi
  4362. done
  4363. done
  4364. IFS=$as_save_IFS
  4365. fi
  4366. fi
  4367. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4368. if test -n "$ac_ct_AR"; then
  4369. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4370. $as_echo "$ac_ct_AR" >&6; }
  4371. else
  4372. { $as_echo "$as_me:$LINENO: result: no" >&5
  4373. $as_echo "no" >&6; }
  4374. fi
  4375. if test "x$ac_ct_AR" = x; then
  4376. AR="false"
  4377. else
  4378. case $cross_compiling:$ac_tool_warned in
  4379. yes:)
  4380. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4382. ac_tool_warned=yes ;;
  4383. esac
  4384. AR=$ac_ct_AR
  4385. fi
  4386. else
  4387. AR="$ac_cv_prog_AR"
  4388. fi
  4389. test -z "$AR" && AR=ar
  4390. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4391. if test -n "$ac_tool_prefix"; then
  4392. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4393. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4394. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if test "${ac_cv_prog_STRIP+set}" = set; then
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$STRIP"; then
  4400. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4409. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4410. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. STRIP=$ac_cv_prog_STRIP
  4419. if test -n "$STRIP"; then
  4420. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4421. $as_echo "$STRIP" >&6; }
  4422. else
  4423. { $as_echo "$as_me:$LINENO: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. fi
  4427. if test -z "$ac_cv_prog_STRIP"; then
  4428. ac_ct_STRIP=$STRIP
  4429. # Extract the first word of "strip", so it can be a program name with args.
  4430. set dummy strip; ac_word=$2
  4431. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4432. $as_echo_n "checking for $ac_word... " >&6; }
  4433. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4434. $as_echo_n "(cached) " >&6
  4435. else
  4436. if test -n "$ac_ct_STRIP"; then
  4437. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4438. else
  4439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4440. for as_dir in $PATH
  4441. do
  4442. IFS=$as_save_IFS
  4443. test -z "$as_dir" && as_dir=.
  4444. for ac_exec_ext in '' $ac_executable_extensions; do
  4445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4446. ac_cv_prog_ac_ct_STRIP="strip"
  4447. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4448. break 2
  4449. fi
  4450. done
  4451. done
  4452. IFS=$as_save_IFS
  4453. fi
  4454. fi
  4455. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4456. if test -n "$ac_ct_STRIP"; then
  4457. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4458. $as_echo "$ac_ct_STRIP" >&6; }
  4459. else
  4460. { $as_echo "$as_me:$LINENO: result: no" >&5
  4461. $as_echo "no" >&6; }
  4462. fi
  4463. if test "x$ac_ct_STRIP" = x; then
  4464. STRIP=":"
  4465. else
  4466. case $cross_compiling:$ac_tool_warned in
  4467. yes:)
  4468. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4470. ac_tool_warned=yes ;;
  4471. esac
  4472. STRIP=$ac_ct_STRIP
  4473. fi
  4474. else
  4475. STRIP="$ac_cv_prog_STRIP"
  4476. fi
  4477. test -z "$STRIP" && STRIP=:
  4478. if test -n "$ac_tool_prefix"; then
  4479. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4480. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4481. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4482. $as_echo_n "checking for $ac_word... " >&6; }
  4483. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4484. $as_echo_n "(cached) " >&6
  4485. else
  4486. if test -n "$RANLIB"; then
  4487. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4488. else
  4489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4490. for as_dir in $PATH
  4491. do
  4492. IFS=$as_save_IFS
  4493. test -z "$as_dir" && as_dir=.
  4494. for ac_exec_ext in '' $ac_executable_extensions; do
  4495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4496. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4497. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4498. break 2
  4499. fi
  4500. done
  4501. done
  4502. IFS=$as_save_IFS
  4503. fi
  4504. fi
  4505. RANLIB=$ac_cv_prog_RANLIB
  4506. if test -n "$RANLIB"; then
  4507. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4508. $as_echo "$RANLIB" >&6; }
  4509. else
  4510. { $as_echo "$as_me:$LINENO: result: no" >&5
  4511. $as_echo "no" >&6; }
  4512. fi
  4513. fi
  4514. if test -z "$ac_cv_prog_RANLIB"; then
  4515. ac_ct_RANLIB=$RANLIB
  4516. # Extract the first word of "ranlib", so it can be a program name with args.
  4517. set dummy ranlib; ac_word=$2
  4518. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4519. $as_echo_n "checking for $ac_word... " >&6; }
  4520. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4521. $as_echo_n "(cached) " >&6
  4522. else
  4523. if test -n "$ac_ct_RANLIB"; then
  4524. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4525. else
  4526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4527. for as_dir in $PATH
  4528. do
  4529. IFS=$as_save_IFS
  4530. test -z "$as_dir" && as_dir=.
  4531. for ac_exec_ext in '' $ac_executable_extensions; do
  4532. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4533. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4534. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4535. break 2
  4536. fi
  4537. done
  4538. done
  4539. IFS=$as_save_IFS
  4540. fi
  4541. fi
  4542. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4543. if test -n "$ac_ct_RANLIB"; then
  4544. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4545. $as_echo "$ac_ct_RANLIB" >&6; }
  4546. else
  4547. { $as_echo "$as_me:$LINENO: result: no" >&5
  4548. $as_echo "no" >&6; }
  4549. fi
  4550. if test "x$ac_ct_RANLIB" = x; then
  4551. RANLIB=":"
  4552. else
  4553. case $cross_compiling:$ac_tool_warned in
  4554. yes:)
  4555. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4556. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4557. ac_tool_warned=yes ;;
  4558. esac
  4559. RANLIB=$ac_ct_RANLIB
  4560. fi
  4561. else
  4562. RANLIB="$ac_cv_prog_RANLIB"
  4563. fi
  4564. test -z "$RANLIB" && RANLIB=:
  4565. # Determine commands to create old-style static archives.
  4566. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4567. old_postinstall_cmds='chmod 644 $oldlib'
  4568. old_postuninstall_cmds=
  4569. if test -n "$RANLIB"; then
  4570. case $host_os in
  4571. openbsd*)
  4572. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4573. ;;
  4574. *)
  4575. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4576. ;;
  4577. esac
  4578. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4579. fi
  4580. # If no C compiler was specified, use CC.
  4581. LTCC=${LTCC-"$CC"}
  4582. # If no C compiler flags were specified, use CFLAGS.
  4583. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4584. # Allow CC to be a program name with arguments.
  4585. compiler=$CC
  4586. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4587. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4588. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4589. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. # These are sane defaults that work on at least a few old systems.
  4593. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4594. # Character class describing NM global symbol codes.
  4595. symcode='[BCDEGRST]'
  4596. # Regexp to match symbols that can be accessed directly from C.
  4597. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4598. # Define system-specific variables.
  4599. case $host_os in
  4600. aix*)
  4601. symcode='[BCDT]'
  4602. ;;
  4603. cygwin* | mingw* | pw32* | cegcc*)
  4604. symcode='[ABCDGISTW]'
  4605. ;;
  4606. hpux*)
  4607. if test "$host_cpu" = ia64; then
  4608. symcode='[ABCDEGRST]'
  4609. fi
  4610. ;;
  4611. irix* | nonstopux*)
  4612. symcode='[BCDEGRST]'
  4613. ;;
  4614. osf*)
  4615. symcode='[BCDEGQRST]'
  4616. ;;
  4617. solaris*)
  4618. symcode='[BDRT]'
  4619. ;;
  4620. sco3.2v5*)
  4621. symcode='[DT]'
  4622. ;;
  4623. sysv4.2uw2*)
  4624. symcode='[DT]'
  4625. ;;
  4626. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4627. symcode='[ABDT]'
  4628. ;;
  4629. sysv4)
  4630. symcode='[DFNSTU]'
  4631. ;;
  4632. esac
  4633. # If we're using GNU nm, then use its standard symbol codes.
  4634. case `$NM -V 2>&1` in
  4635. *GNU* | *'with BFD'*)
  4636. symcode='[ABCDGIRSTW]' ;;
  4637. esac
  4638. # Transform an extracted symbol line into a proper C declaration.
  4639. # Some systems (esp. on ia64) link data and code symbols differently,
  4640. # so use this general approach.
  4641. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4642. # Transform an extracted symbol line into symbol name and symbol address
  4643. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4644. 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'"
  4645. # Handle CRLF in mingw tool chain
  4646. opt_cr=
  4647. case $build_os in
  4648. mingw*)
  4649. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4650. ;;
  4651. esac
  4652. # Try without a prefix underscore, then with it.
  4653. for ac_symprfx in "" "_"; do
  4654. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4655. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4656. # Write the raw and C identifiers.
  4657. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4658. # Fake it for dumpbin and say T for any non-static function
  4659. # and D for any global variable.
  4660. # Also find C++ and __fastcall symbols from MSVC++,
  4661. # which start with @ or ?.
  4662. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4663. " {last_section=section; section=\$ 3};"\
  4664. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4665. " \$ 0!~/External *\|/{next};"\
  4666. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4667. " {if(hide[section]) next};"\
  4668. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4669. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4670. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4671. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4672. " ' prfx=^$ac_symprfx"
  4673. else
  4674. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4675. fi
  4676. # Check to see that the pipe works correctly.
  4677. pipe_works=no
  4678. rm -f conftest*
  4679. cat > conftest.$ac_ext <<_LT_EOF
  4680. #ifdef __cplusplus
  4681. extern "C" {
  4682. #endif
  4683. char nm_test_var;
  4684. void nm_test_func(void);
  4685. void nm_test_func(void){}
  4686. #ifdef __cplusplus
  4687. }
  4688. #endif
  4689. int main(){nm_test_var='a';nm_test_func();return(0);}
  4690. _LT_EOF
  4691. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4692. (eval $ac_compile) 2>&5
  4693. ac_status=$?
  4694. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4695. (exit $ac_status); }; then
  4696. # Now try to grab the symbols.
  4697. nlist=conftest.nm
  4698. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4699. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4700. ac_status=$?
  4701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4702. (exit $ac_status); } && test -s "$nlist"; then
  4703. # Try sorting and uniquifying the output.
  4704. if sort "$nlist" | uniq > "$nlist"T; then
  4705. mv -f "$nlist"T "$nlist"
  4706. else
  4707. rm -f "$nlist"T
  4708. fi
  4709. # Make sure that we snagged all the symbols we need.
  4710. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4711. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4712. cat <<_LT_EOF > conftest.$ac_ext
  4713. #ifdef __cplusplus
  4714. extern "C" {
  4715. #endif
  4716. _LT_EOF
  4717. # Now generate the symbol file.
  4718. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4719. cat <<_LT_EOF >> conftest.$ac_ext
  4720. /* The mapping between symbol names and symbols. */
  4721. const struct {
  4722. const char *name;
  4723. void *address;
  4724. }
  4725. lt__PROGRAM__LTX_preloaded_symbols[] =
  4726. {
  4727. { "@PROGRAM@", (void *) 0 },
  4728. _LT_EOF
  4729. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4730. cat <<\_LT_EOF >> conftest.$ac_ext
  4731. {0, (void *) 0}
  4732. };
  4733. /* This works around a problem in FreeBSD linker */
  4734. #ifdef FREEBSD_WORKAROUND
  4735. static const void *lt_preloaded_setup() {
  4736. return lt__PROGRAM__LTX_preloaded_symbols;
  4737. }
  4738. #endif
  4739. #ifdef __cplusplus
  4740. }
  4741. #endif
  4742. _LT_EOF
  4743. # Now try linking the two files.
  4744. mv conftest.$ac_objext conftstm.$ac_objext
  4745. lt_save_LIBS="$LIBS"
  4746. lt_save_CFLAGS="$CFLAGS"
  4747. LIBS="conftstm.$ac_objext"
  4748. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4749. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4750. (eval $ac_link) 2>&5
  4751. ac_status=$?
  4752. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4754. pipe_works=yes
  4755. fi
  4756. LIBS="$lt_save_LIBS"
  4757. CFLAGS="$lt_save_CFLAGS"
  4758. else
  4759. echo "cannot find nm_test_func in $nlist" >&5
  4760. fi
  4761. else
  4762. echo "cannot find nm_test_var in $nlist" >&5
  4763. fi
  4764. else
  4765. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4766. fi
  4767. else
  4768. echo "$progname: failed program was:" >&5
  4769. cat conftest.$ac_ext >&5
  4770. fi
  4771. rm -rf conftest* conftst*
  4772. # Do not use the global_symbol_pipe unless it works.
  4773. if test "$pipe_works" = yes; then
  4774. break
  4775. else
  4776. lt_cv_sys_global_symbol_pipe=
  4777. fi
  4778. done
  4779. fi
  4780. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4781. lt_cv_sys_global_symbol_to_cdecl=
  4782. fi
  4783. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4784. { $as_echo "$as_me:$LINENO: result: failed" >&5
  4785. $as_echo "failed" >&6; }
  4786. else
  4787. { $as_echo "$as_me:$LINENO: result: ok" >&5
  4788. $as_echo "ok" >&6; }
  4789. fi
  4790. # Check whether --enable-libtool-lock was given.
  4791. if test "${enable_libtool_lock+set}" = set; then
  4792. enableval=$enable_libtool_lock;
  4793. fi
  4794. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4795. # Some flags need to be propagated to the compiler or linker for good
  4796. # libtool support.
  4797. case $host in
  4798. ia64-*-hpux*)
  4799. # Find out which ABI we are using.
  4800. echo 'int i;' > conftest.$ac_ext
  4801. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4802. (eval $ac_compile) 2>&5
  4803. ac_status=$?
  4804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4805. (exit $ac_status); }; then
  4806. case `/usr/bin/file conftest.$ac_objext` in
  4807. *ELF-32*)
  4808. HPUX_IA64_MODE="32"
  4809. ;;
  4810. *ELF-64*)
  4811. HPUX_IA64_MODE="64"
  4812. ;;
  4813. esac
  4814. fi
  4815. rm -rf conftest*
  4816. ;;
  4817. *-*-irix6*)
  4818. # Find out which ABI we are using.
  4819. echo '#line 5542 "configure"' > conftest.$ac_ext
  4820. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4821. (eval $ac_compile) 2>&5
  4822. ac_status=$?
  4823. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4824. (exit $ac_status); }; then
  4825. if test "$lt_cv_prog_gnu_ld" = yes; then
  4826. case `/usr/bin/file conftest.$ac_objext` in
  4827. *32-bit*)
  4828. LD="${LD-ld} -melf32bsmip"
  4829. ;;
  4830. *N32*)
  4831. LD="${LD-ld} -melf32bmipn32"
  4832. ;;
  4833. *64-bit*)
  4834. LD="${LD-ld} -melf64bmip"
  4835. ;;
  4836. esac
  4837. else
  4838. case `/usr/bin/file conftest.$ac_objext` in
  4839. *32-bit*)
  4840. LD="${LD-ld} -32"
  4841. ;;
  4842. *N32*)
  4843. LD="${LD-ld} -n32"
  4844. ;;
  4845. *64-bit*)
  4846. LD="${LD-ld} -64"
  4847. ;;
  4848. esac
  4849. fi
  4850. fi
  4851. rm -rf conftest*
  4852. ;;
  4853. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4854. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4855. # Find out which ABI we are using.
  4856. echo 'int i;' > conftest.$ac_ext
  4857. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4858. (eval $ac_compile) 2>&5
  4859. ac_status=$?
  4860. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4861. (exit $ac_status); }; then
  4862. case `/usr/bin/file conftest.o` in
  4863. *32-bit*)
  4864. case $host in
  4865. x86_64-*kfreebsd*-gnu)
  4866. LD="${LD-ld} -m elf_i386_fbsd"
  4867. ;;
  4868. x86_64-*linux*)
  4869. LD="${LD-ld} -m elf_i386"
  4870. ;;
  4871. ppc64-*linux*|powerpc64-*linux*)
  4872. LD="${LD-ld} -m elf32ppclinux"
  4873. ;;
  4874. s390x-*linux*)
  4875. LD="${LD-ld} -m elf_s390"
  4876. ;;
  4877. sparc64-*linux*)
  4878. LD="${LD-ld} -m elf32_sparc"
  4879. ;;
  4880. esac
  4881. ;;
  4882. *64-bit*)
  4883. case $host in
  4884. x86_64-*kfreebsd*-gnu)
  4885. LD="${LD-ld} -m elf_x86_64_fbsd"
  4886. ;;
  4887. x86_64-*linux*)
  4888. LD="${LD-ld} -m elf_x86_64"
  4889. ;;
  4890. ppc*-*linux*|powerpc*-*linux*)
  4891. LD="${LD-ld} -m elf64ppc"
  4892. ;;
  4893. s390*-*linux*|s390*-*tpf*)
  4894. LD="${LD-ld} -m elf64_s390"
  4895. ;;
  4896. sparc*-*linux*)
  4897. LD="${LD-ld} -m elf64_sparc"
  4898. ;;
  4899. esac
  4900. ;;
  4901. esac
  4902. fi
  4903. rm -rf conftest*
  4904. ;;
  4905. *-*-sco3.2v5*)
  4906. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4907. SAVE_CFLAGS="$CFLAGS"
  4908. CFLAGS="$CFLAGS -belf"
  4909. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4910. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4911. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. ac_ext=c
  4915. ac_cpp='$CPP $CPPFLAGS'
  4916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4919. cat >conftest.$ac_ext <<_ACEOF
  4920. /* confdefs.h. */
  4921. _ACEOF
  4922. cat confdefs.h >>conftest.$ac_ext
  4923. cat >>conftest.$ac_ext <<_ACEOF
  4924. /* end confdefs.h. */
  4925. int
  4926. main ()
  4927. {
  4928. ;
  4929. return 0;
  4930. }
  4931. _ACEOF
  4932. rm -f conftest.$ac_objext conftest$ac_exeext
  4933. if { (ac_try="$ac_link"
  4934. case "(($ac_try" in
  4935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4936. *) ac_try_echo=$ac_try;;
  4937. esac
  4938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4939. $as_echo "$ac_try_echo") >&5
  4940. (eval "$ac_link") 2>conftest.er1
  4941. ac_status=$?
  4942. grep -v '^ *+' conftest.er1 >conftest.err
  4943. rm -f conftest.er1
  4944. cat conftest.err >&5
  4945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); } && {
  4947. test -z "$ac_c_werror_flag" ||
  4948. test ! -s conftest.err
  4949. } && test -s conftest$ac_exeext && {
  4950. test "$cross_compiling" = yes ||
  4951. $as_test_x conftest$ac_exeext
  4952. }; then
  4953. lt_cv_cc_needs_belf=yes
  4954. else
  4955. $as_echo "$as_me: failed program was:" >&5
  4956. sed 's/^/| /' conftest.$ac_ext >&5
  4957. lt_cv_cc_needs_belf=no
  4958. fi
  4959. rm -rf conftest.dSYM
  4960. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4961. conftest$ac_exeext conftest.$ac_ext
  4962. ac_ext=c
  4963. ac_cpp='$CPP $CPPFLAGS'
  4964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4967. fi
  4968. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4969. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  4970. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4971. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4972. CFLAGS="$SAVE_CFLAGS"
  4973. fi
  4974. ;;
  4975. sparc*-*solaris*)
  4976. # Find out which ABI we are using.
  4977. echo 'int i;' > conftest.$ac_ext
  4978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4979. (eval $ac_compile) 2>&5
  4980. ac_status=$?
  4981. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4982. (exit $ac_status); }; then
  4983. case `/usr/bin/file conftest.o` in
  4984. *64-bit*)
  4985. case $lt_cv_prog_gnu_ld in
  4986. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4987. *)
  4988. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4989. LD="${LD-ld} -64"
  4990. fi
  4991. ;;
  4992. esac
  4993. ;;
  4994. esac
  4995. fi
  4996. rm -rf conftest*
  4997. ;;
  4998. esac
  4999. need_locks="$enable_libtool_lock"
  5000. case $host_os in
  5001. rhapsody* | darwin*)
  5002. if test -n "$ac_tool_prefix"; then
  5003. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5004. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5005. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5006. $as_echo_n "checking for $ac_word... " >&6; }
  5007. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5008. $as_echo_n "(cached) " >&6
  5009. else
  5010. if test -n "$DSYMUTIL"; then
  5011. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5012. else
  5013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5014. for as_dir in $PATH
  5015. do
  5016. IFS=$as_save_IFS
  5017. test -z "$as_dir" && as_dir=.
  5018. for ac_exec_ext in '' $ac_executable_extensions; do
  5019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5020. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5021. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5022. break 2
  5023. fi
  5024. done
  5025. done
  5026. IFS=$as_save_IFS
  5027. fi
  5028. fi
  5029. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5030. if test -n "$DSYMUTIL"; then
  5031. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5032. $as_echo "$DSYMUTIL" >&6; }
  5033. else
  5034. { $as_echo "$as_me:$LINENO: result: no" >&5
  5035. $as_echo "no" >&6; }
  5036. fi
  5037. fi
  5038. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5039. ac_ct_DSYMUTIL=$DSYMUTIL
  5040. # Extract the first word of "dsymutil", so it can be a program name with args.
  5041. set dummy dsymutil; ac_word=$2
  5042. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5043. $as_echo_n "checking for $ac_word... " >&6; }
  5044. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5045. $as_echo_n "(cached) " >&6
  5046. else
  5047. if test -n "$ac_ct_DSYMUTIL"; then
  5048. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5049. else
  5050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5051. for as_dir in $PATH
  5052. do
  5053. IFS=$as_save_IFS
  5054. test -z "$as_dir" && as_dir=.
  5055. for ac_exec_ext in '' $ac_executable_extensions; do
  5056. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5057. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5058. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5059. break 2
  5060. fi
  5061. done
  5062. done
  5063. IFS=$as_save_IFS
  5064. fi
  5065. fi
  5066. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5067. if test -n "$ac_ct_DSYMUTIL"; then
  5068. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5069. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5070. else
  5071. { $as_echo "$as_me:$LINENO: result: no" >&5
  5072. $as_echo "no" >&6; }
  5073. fi
  5074. if test "x$ac_ct_DSYMUTIL" = x; then
  5075. DSYMUTIL=":"
  5076. else
  5077. case $cross_compiling:$ac_tool_warned in
  5078. yes:)
  5079. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5080. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5081. ac_tool_warned=yes ;;
  5082. esac
  5083. DSYMUTIL=$ac_ct_DSYMUTIL
  5084. fi
  5085. else
  5086. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5087. fi
  5088. if test -n "$ac_tool_prefix"; then
  5089. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5090. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5091. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5092. $as_echo_n "checking for $ac_word... " >&6; }
  5093. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5094. $as_echo_n "(cached) " >&6
  5095. else
  5096. if test -n "$NMEDIT"; then
  5097. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5098. else
  5099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5100. for as_dir in $PATH
  5101. do
  5102. IFS=$as_save_IFS
  5103. test -z "$as_dir" && as_dir=.
  5104. for ac_exec_ext in '' $ac_executable_extensions; do
  5105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5106. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5107. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5108. break 2
  5109. fi
  5110. done
  5111. done
  5112. IFS=$as_save_IFS
  5113. fi
  5114. fi
  5115. NMEDIT=$ac_cv_prog_NMEDIT
  5116. if test -n "$NMEDIT"; then
  5117. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5118. $as_echo "$NMEDIT" >&6; }
  5119. else
  5120. { $as_echo "$as_me:$LINENO: result: no" >&5
  5121. $as_echo "no" >&6; }
  5122. fi
  5123. fi
  5124. if test -z "$ac_cv_prog_NMEDIT"; then
  5125. ac_ct_NMEDIT=$NMEDIT
  5126. # Extract the first word of "nmedit", so it can be a program name with args.
  5127. set dummy nmedit; ac_word=$2
  5128. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5129. $as_echo_n "checking for $ac_word... " >&6; }
  5130. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5131. $as_echo_n "(cached) " >&6
  5132. else
  5133. if test -n "$ac_ct_NMEDIT"; then
  5134. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5135. else
  5136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5137. for as_dir in $PATH
  5138. do
  5139. IFS=$as_save_IFS
  5140. test -z "$as_dir" && as_dir=.
  5141. for ac_exec_ext in '' $ac_executable_extensions; do
  5142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5143. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5144. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5145. break 2
  5146. fi
  5147. done
  5148. done
  5149. IFS=$as_save_IFS
  5150. fi
  5151. fi
  5152. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5153. if test -n "$ac_ct_NMEDIT"; then
  5154. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5155. $as_echo "$ac_ct_NMEDIT" >&6; }
  5156. else
  5157. { $as_echo "$as_me:$LINENO: result: no" >&5
  5158. $as_echo "no" >&6; }
  5159. fi
  5160. if test "x$ac_ct_NMEDIT" = x; then
  5161. NMEDIT=":"
  5162. else
  5163. case $cross_compiling:$ac_tool_warned in
  5164. yes:)
  5165. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5166. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5167. ac_tool_warned=yes ;;
  5168. esac
  5169. NMEDIT=$ac_ct_NMEDIT
  5170. fi
  5171. else
  5172. NMEDIT="$ac_cv_prog_NMEDIT"
  5173. fi
  5174. if test -n "$ac_tool_prefix"; then
  5175. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5176. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5177. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5178. $as_echo_n "checking for $ac_word... " >&6; }
  5179. if test "${ac_cv_prog_LIPO+set}" = set; then
  5180. $as_echo_n "(cached) " >&6
  5181. else
  5182. if test -n "$LIPO"; then
  5183. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5184. else
  5185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5186. for as_dir in $PATH
  5187. do
  5188. IFS=$as_save_IFS
  5189. test -z "$as_dir" && as_dir=.
  5190. for ac_exec_ext in '' $ac_executable_extensions; do
  5191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5192. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5193. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5194. break 2
  5195. fi
  5196. done
  5197. done
  5198. IFS=$as_save_IFS
  5199. fi
  5200. fi
  5201. LIPO=$ac_cv_prog_LIPO
  5202. if test -n "$LIPO"; then
  5203. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5204. $as_echo "$LIPO" >&6; }
  5205. else
  5206. { $as_echo "$as_me:$LINENO: result: no" >&5
  5207. $as_echo "no" >&6; }
  5208. fi
  5209. fi
  5210. if test -z "$ac_cv_prog_LIPO"; then
  5211. ac_ct_LIPO=$LIPO
  5212. # Extract the first word of "lipo", so it can be a program name with args.
  5213. set dummy lipo; ac_word=$2
  5214. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5215. $as_echo_n "checking for $ac_word... " >&6; }
  5216. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5217. $as_echo_n "(cached) " >&6
  5218. else
  5219. if test -n "$ac_ct_LIPO"; then
  5220. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5221. else
  5222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5223. for as_dir in $PATH
  5224. do
  5225. IFS=$as_save_IFS
  5226. test -z "$as_dir" && as_dir=.
  5227. for ac_exec_ext in '' $ac_executable_extensions; do
  5228. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5229. ac_cv_prog_ac_ct_LIPO="lipo"
  5230. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5231. break 2
  5232. fi
  5233. done
  5234. done
  5235. IFS=$as_save_IFS
  5236. fi
  5237. fi
  5238. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5239. if test -n "$ac_ct_LIPO"; then
  5240. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5241. $as_echo "$ac_ct_LIPO" >&6; }
  5242. else
  5243. { $as_echo "$as_me:$LINENO: result: no" >&5
  5244. $as_echo "no" >&6; }
  5245. fi
  5246. if test "x$ac_ct_LIPO" = x; then
  5247. LIPO=":"
  5248. else
  5249. case $cross_compiling:$ac_tool_warned in
  5250. yes:)
  5251. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5253. ac_tool_warned=yes ;;
  5254. esac
  5255. LIPO=$ac_ct_LIPO
  5256. fi
  5257. else
  5258. LIPO="$ac_cv_prog_LIPO"
  5259. fi
  5260. if test -n "$ac_tool_prefix"; then
  5261. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5262. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5263. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5264. $as_echo_n "checking for $ac_word... " >&6; }
  5265. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5266. $as_echo_n "(cached) " >&6
  5267. else
  5268. if test -n "$OTOOL"; then
  5269. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5270. else
  5271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5272. for as_dir in $PATH
  5273. do
  5274. IFS=$as_save_IFS
  5275. test -z "$as_dir" && as_dir=.
  5276. for ac_exec_ext in '' $ac_executable_extensions; do
  5277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5278. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5279. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5280. break 2
  5281. fi
  5282. done
  5283. done
  5284. IFS=$as_save_IFS
  5285. fi
  5286. fi
  5287. OTOOL=$ac_cv_prog_OTOOL
  5288. if test -n "$OTOOL"; then
  5289. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5290. $as_echo "$OTOOL" >&6; }
  5291. else
  5292. { $as_echo "$as_me:$LINENO: result: no" >&5
  5293. $as_echo "no" >&6; }
  5294. fi
  5295. fi
  5296. if test -z "$ac_cv_prog_OTOOL"; then
  5297. ac_ct_OTOOL=$OTOOL
  5298. # Extract the first word of "otool", so it can be a program name with args.
  5299. set dummy otool; ac_word=$2
  5300. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5301. $as_echo_n "checking for $ac_word... " >&6; }
  5302. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. if test -n "$ac_ct_OTOOL"; then
  5306. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5307. else
  5308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5309. for as_dir in $PATH
  5310. do
  5311. IFS=$as_save_IFS
  5312. test -z "$as_dir" && as_dir=.
  5313. for ac_exec_ext in '' $ac_executable_extensions; do
  5314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5315. ac_cv_prog_ac_ct_OTOOL="otool"
  5316. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5317. break 2
  5318. fi
  5319. done
  5320. done
  5321. IFS=$as_save_IFS
  5322. fi
  5323. fi
  5324. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5325. if test -n "$ac_ct_OTOOL"; then
  5326. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5327. $as_echo "$ac_ct_OTOOL" >&6; }
  5328. else
  5329. { $as_echo "$as_me:$LINENO: result: no" >&5
  5330. $as_echo "no" >&6; }
  5331. fi
  5332. if test "x$ac_ct_OTOOL" = x; then
  5333. OTOOL=":"
  5334. else
  5335. case $cross_compiling:$ac_tool_warned in
  5336. yes:)
  5337. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5339. ac_tool_warned=yes ;;
  5340. esac
  5341. OTOOL=$ac_ct_OTOOL
  5342. fi
  5343. else
  5344. OTOOL="$ac_cv_prog_OTOOL"
  5345. fi
  5346. if test -n "$ac_tool_prefix"; then
  5347. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5348. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5349. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5350. $as_echo_n "checking for $ac_word... " >&6; }
  5351. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. if test -n "$OTOOL64"; then
  5355. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5356. else
  5357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5358. for as_dir in $PATH
  5359. do
  5360. IFS=$as_save_IFS
  5361. test -z "$as_dir" && as_dir=.
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5364. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5365. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5366. break 2
  5367. fi
  5368. done
  5369. done
  5370. IFS=$as_save_IFS
  5371. fi
  5372. fi
  5373. OTOOL64=$ac_cv_prog_OTOOL64
  5374. if test -n "$OTOOL64"; then
  5375. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5376. $as_echo "$OTOOL64" >&6; }
  5377. else
  5378. { $as_echo "$as_me:$LINENO: result: no" >&5
  5379. $as_echo "no" >&6; }
  5380. fi
  5381. fi
  5382. if test -z "$ac_cv_prog_OTOOL64"; then
  5383. ac_ct_OTOOL64=$OTOOL64
  5384. # Extract the first word of "otool64", so it can be a program name with args.
  5385. set dummy otool64; ac_word=$2
  5386. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$ac_ct_OTOOL64"; then
  5392. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5401. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5402. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5411. if test -n "$ac_ct_OTOOL64"; then
  5412. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5413. $as_echo "$ac_ct_OTOOL64" >&6; }
  5414. else
  5415. { $as_echo "$as_me:$LINENO: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. if test "x$ac_ct_OTOOL64" = x; then
  5419. OTOOL64=":"
  5420. else
  5421. case $cross_compiling:$ac_tool_warned in
  5422. yes:)
  5423. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5425. ac_tool_warned=yes ;;
  5426. esac
  5427. OTOOL64=$ac_ct_OTOOL64
  5428. fi
  5429. else
  5430. OTOOL64="$ac_cv_prog_OTOOL64"
  5431. fi
  5432. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5433. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5434. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. lt_cv_apple_cc_single_mod=no
  5438. if test -z "${LT_MULTI_MODULE}"; then
  5439. # By default we will add the -single_module flag. You can override
  5440. # by either setting the environment variable LT_MULTI_MODULE
  5441. # non-empty at configure time, or by adding -multi_module to the
  5442. # link flags.
  5443. rm -rf libconftest.dylib*
  5444. echo "int foo(void){return 1;}" > conftest.c
  5445. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5446. -dynamiclib -Wl,-single_module conftest.c" >&5
  5447. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5448. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5449. _lt_result=$?
  5450. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5451. lt_cv_apple_cc_single_mod=yes
  5452. else
  5453. cat conftest.err >&5
  5454. fi
  5455. rm -rf libconftest.dylib*
  5456. rm -f conftest.*
  5457. fi
  5458. fi
  5459. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5460. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5461. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5462. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5463. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5464. $as_echo_n "(cached) " >&6
  5465. else
  5466. lt_cv_ld_exported_symbols_list=no
  5467. save_LDFLAGS=$LDFLAGS
  5468. echo "_main" > conftest.sym
  5469. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5470. cat >conftest.$ac_ext <<_ACEOF
  5471. /* confdefs.h. */
  5472. _ACEOF
  5473. cat confdefs.h >>conftest.$ac_ext
  5474. cat >>conftest.$ac_ext <<_ACEOF
  5475. /* end confdefs.h. */
  5476. int
  5477. main ()
  5478. {
  5479. ;
  5480. return 0;
  5481. }
  5482. _ACEOF
  5483. rm -f conftest.$ac_objext conftest$ac_exeext
  5484. if { (ac_try="$ac_link"
  5485. case "(($ac_try" in
  5486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5487. *) ac_try_echo=$ac_try;;
  5488. esac
  5489. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5490. $as_echo "$ac_try_echo") >&5
  5491. (eval "$ac_link") 2>conftest.er1
  5492. ac_status=$?
  5493. grep -v '^ *+' conftest.er1 >conftest.err
  5494. rm -f conftest.er1
  5495. cat conftest.err >&5
  5496. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5497. (exit $ac_status); } && {
  5498. test -z "$ac_c_werror_flag" ||
  5499. test ! -s conftest.err
  5500. } && test -s conftest$ac_exeext && {
  5501. test "$cross_compiling" = yes ||
  5502. $as_test_x conftest$ac_exeext
  5503. }; then
  5504. lt_cv_ld_exported_symbols_list=yes
  5505. else
  5506. $as_echo "$as_me: failed program was:" >&5
  5507. sed 's/^/| /' conftest.$ac_ext >&5
  5508. lt_cv_ld_exported_symbols_list=no
  5509. fi
  5510. rm -rf conftest.dSYM
  5511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5512. conftest$ac_exeext conftest.$ac_ext
  5513. LDFLAGS="$save_LDFLAGS"
  5514. fi
  5515. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5516. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5517. case $host_os in
  5518. rhapsody* | darwin1.[012])
  5519. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5520. darwin1.*)
  5521. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5522. darwin*) # darwin 5.x on
  5523. # if running on 10.5 or later, the deployment target defaults
  5524. # to the OS version, if on x86, and 10.4, the deployment
  5525. # target defaults to 10.4. Don't you love it?
  5526. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5527. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5528. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5529. 10.[012]*)
  5530. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5531. 10.*)
  5532. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5533. esac
  5534. ;;
  5535. esac
  5536. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5537. _lt_dar_single_mod='$single_module'
  5538. fi
  5539. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5540. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5541. else
  5542. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5543. fi
  5544. if test "$DSYMUTIL" != ":"; then
  5545. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5546. else
  5547. _lt_dsymutil=
  5548. fi
  5549. ;;
  5550. esac
  5551. ac_ext=c
  5552. ac_cpp='$CPP $CPPFLAGS'
  5553. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5554. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5555. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5556. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5557. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5558. # On Suns, sometimes $CPP names a directory.
  5559. if test -n "$CPP" && test -d "$CPP"; then
  5560. CPP=
  5561. fi
  5562. if test -z "$CPP"; then
  5563. if test "${ac_cv_prog_CPP+set}" = set; then
  5564. $as_echo_n "(cached) " >&6
  5565. else
  5566. # Double quotes because CPP needs to be expanded
  5567. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5568. do
  5569. ac_preproc_ok=false
  5570. for ac_c_preproc_warn_flag in '' yes
  5571. do
  5572. # Use a header file that comes with gcc, so configuring glibc
  5573. # with a fresh cross-compiler works.
  5574. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5575. # <limits.h> exists even on freestanding compilers.
  5576. # On the NeXT, cc -E runs the code through the compiler's parser,
  5577. # not just through cpp. "Syntax error" is here to catch this case.
  5578. cat >conftest.$ac_ext <<_ACEOF
  5579. /* confdefs.h. */
  5580. _ACEOF
  5581. cat confdefs.h >>conftest.$ac_ext
  5582. cat >>conftest.$ac_ext <<_ACEOF
  5583. /* end confdefs.h. */
  5584. #ifdef __STDC__
  5585. # include <limits.h>
  5586. #else
  5587. # include <assert.h>
  5588. #endif
  5589. Syntax error
  5590. _ACEOF
  5591. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5592. case "(($ac_try" in
  5593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5594. *) ac_try_echo=$ac_try;;
  5595. esac
  5596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5597. $as_echo "$ac_try_echo") >&5
  5598. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5599. ac_status=$?
  5600. grep -v '^ *+' conftest.er1 >conftest.err
  5601. rm -f conftest.er1
  5602. cat conftest.err >&5
  5603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5604. (exit $ac_status); } >/dev/null && {
  5605. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5606. test ! -s conftest.err
  5607. }; then
  5608. :
  5609. else
  5610. $as_echo "$as_me: failed program was:" >&5
  5611. sed 's/^/| /' conftest.$ac_ext >&5
  5612. # Broken: fails on valid input.
  5613. continue
  5614. fi
  5615. rm -f conftest.err conftest.$ac_ext
  5616. # OK, works on sane cases. Now check whether nonexistent headers
  5617. # can be detected and how.
  5618. cat >conftest.$ac_ext <<_ACEOF
  5619. /* confdefs.h. */
  5620. _ACEOF
  5621. cat confdefs.h >>conftest.$ac_ext
  5622. cat >>conftest.$ac_ext <<_ACEOF
  5623. /* end confdefs.h. */
  5624. #include <ac_nonexistent.h>
  5625. _ACEOF
  5626. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5627. case "(($ac_try" in
  5628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5629. *) ac_try_echo=$ac_try;;
  5630. esac
  5631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5632. $as_echo "$ac_try_echo") >&5
  5633. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5634. ac_status=$?
  5635. grep -v '^ *+' conftest.er1 >conftest.err
  5636. rm -f conftest.er1
  5637. cat conftest.err >&5
  5638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5639. (exit $ac_status); } >/dev/null && {
  5640. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5641. test ! -s conftest.err
  5642. }; then
  5643. # Broken: success on invalid input.
  5644. continue
  5645. else
  5646. $as_echo "$as_me: failed program was:" >&5
  5647. sed 's/^/| /' conftest.$ac_ext >&5
  5648. # Passes both tests.
  5649. ac_preproc_ok=:
  5650. break
  5651. fi
  5652. rm -f conftest.err conftest.$ac_ext
  5653. done
  5654. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5655. rm -f conftest.err conftest.$ac_ext
  5656. if $ac_preproc_ok; then
  5657. break
  5658. fi
  5659. done
  5660. ac_cv_prog_CPP=$CPP
  5661. fi
  5662. CPP=$ac_cv_prog_CPP
  5663. else
  5664. ac_cv_prog_CPP=$CPP
  5665. fi
  5666. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5667. $as_echo "$CPP" >&6; }
  5668. ac_preproc_ok=false
  5669. for ac_c_preproc_warn_flag in '' yes
  5670. do
  5671. # Use a header file that comes with gcc, so configuring glibc
  5672. # with a fresh cross-compiler works.
  5673. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5674. # <limits.h> exists even on freestanding compilers.
  5675. # On the NeXT, cc -E runs the code through the compiler's parser,
  5676. # not just through cpp. "Syntax error" is here to catch this case.
  5677. cat >conftest.$ac_ext <<_ACEOF
  5678. /* confdefs.h. */
  5679. _ACEOF
  5680. cat confdefs.h >>conftest.$ac_ext
  5681. cat >>conftest.$ac_ext <<_ACEOF
  5682. /* end confdefs.h. */
  5683. #ifdef __STDC__
  5684. # include <limits.h>
  5685. #else
  5686. # include <assert.h>
  5687. #endif
  5688. Syntax error
  5689. _ACEOF
  5690. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5691. case "(($ac_try" in
  5692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5693. *) ac_try_echo=$ac_try;;
  5694. esac
  5695. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5696. $as_echo "$ac_try_echo") >&5
  5697. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5698. ac_status=$?
  5699. grep -v '^ *+' conftest.er1 >conftest.err
  5700. rm -f conftest.er1
  5701. cat conftest.err >&5
  5702. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5703. (exit $ac_status); } >/dev/null && {
  5704. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5705. test ! -s conftest.err
  5706. }; then
  5707. :
  5708. else
  5709. $as_echo "$as_me: failed program was:" >&5
  5710. sed 's/^/| /' conftest.$ac_ext >&5
  5711. # Broken: fails on valid input.
  5712. continue
  5713. fi
  5714. rm -f conftest.err conftest.$ac_ext
  5715. # OK, works on sane cases. Now check whether nonexistent headers
  5716. # can be detected and how.
  5717. cat >conftest.$ac_ext <<_ACEOF
  5718. /* confdefs.h. */
  5719. _ACEOF
  5720. cat confdefs.h >>conftest.$ac_ext
  5721. cat >>conftest.$ac_ext <<_ACEOF
  5722. /* end confdefs.h. */
  5723. #include <ac_nonexistent.h>
  5724. _ACEOF
  5725. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5726. case "(($ac_try" in
  5727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5728. *) ac_try_echo=$ac_try;;
  5729. esac
  5730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5731. $as_echo "$ac_try_echo") >&5
  5732. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5733. ac_status=$?
  5734. grep -v '^ *+' conftest.er1 >conftest.err
  5735. rm -f conftest.er1
  5736. cat conftest.err >&5
  5737. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738. (exit $ac_status); } >/dev/null && {
  5739. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5740. test ! -s conftest.err
  5741. }; then
  5742. # Broken: success on invalid input.
  5743. continue
  5744. else
  5745. $as_echo "$as_me: failed program was:" >&5
  5746. sed 's/^/| /' conftest.$ac_ext >&5
  5747. # Passes both tests.
  5748. ac_preproc_ok=:
  5749. break
  5750. fi
  5751. rm -f conftest.err conftest.$ac_ext
  5752. done
  5753. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5754. rm -f conftest.err conftest.$ac_ext
  5755. if $ac_preproc_ok; then
  5756. :
  5757. else
  5758. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5759. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5760. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5761. See \`config.log' for more details." >&5
  5762. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5763. See \`config.log' for more details." >&2;}
  5764. { (exit 1); exit 1; }; }; }
  5765. fi
  5766. ac_ext=c
  5767. ac_cpp='$CPP $CPPFLAGS'
  5768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5771. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5772. $as_echo_n "checking for ANSI C header files... " >&6; }
  5773. if test "${ac_cv_header_stdc+set}" = set; then
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. cat >conftest.$ac_ext <<_ACEOF
  5777. /* confdefs.h. */
  5778. _ACEOF
  5779. cat confdefs.h >>conftest.$ac_ext
  5780. cat >>conftest.$ac_ext <<_ACEOF
  5781. /* end confdefs.h. */
  5782. #include <stdlib.h>
  5783. #include <stdarg.h>
  5784. #include <string.h>
  5785. #include <float.h>
  5786. int
  5787. main ()
  5788. {
  5789. ;
  5790. return 0;
  5791. }
  5792. _ACEOF
  5793. rm -f conftest.$ac_objext
  5794. if { (ac_try="$ac_compile"
  5795. case "(($ac_try" in
  5796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5797. *) ac_try_echo=$ac_try;;
  5798. esac
  5799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5800. $as_echo "$ac_try_echo") >&5
  5801. (eval "$ac_compile") 2>conftest.er1
  5802. ac_status=$?
  5803. grep -v '^ *+' conftest.er1 >conftest.err
  5804. rm -f conftest.er1
  5805. cat conftest.err >&5
  5806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807. (exit $ac_status); } && {
  5808. test -z "$ac_c_werror_flag" ||
  5809. test ! -s conftest.err
  5810. } && test -s conftest.$ac_objext; then
  5811. ac_cv_header_stdc=yes
  5812. else
  5813. $as_echo "$as_me: failed program was:" >&5
  5814. sed 's/^/| /' conftest.$ac_ext >&5
  5815. ac_cv_header_stdc=no
  5816. fi
  5817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5818. if test $ac_cv_header_stdc = yes; then
  5819. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5820. cat >conftest.$ac_ext <<_ACEOF
  5821. /* confdefs.h. */
  5822. _ACEOF
  5823. cat confdefs.h >>conftest.$ac_ext
  5824. cat >>conftest.$ac_ext <<_ACEOF
  5825. /* end confdefs.h. */
  5826. #include <string.h>
  5827. _ACEOF
  5828. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5829. $EGREP "memchr" >/dev/null 2>&1; then
  5830. :
  5831. else
  5832. ac_cv_header_stdc=no
  5833. fi
  5834. rm -f conftest*
  5835. fi
  5836. if test $ac_cv_header_stdc = yes; then
  5837. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5838. cat >conftest.$ac_ext <<_ACEOF
  5839. /* confdefs.h. */
  5840. _ACEOF
  5841. cat confdefs.h >>conftest.$ac_ext
  5842. cat >>conftest.$ac_ext <<_ACEOF
  5843. /* end confdefs.h. */
  5844. #include <stdlib.h>
  5845. _ACEOF
  5846. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5847. $EGREP "free" >/dev/null 2>&1; then
  5848. :
  5849. else
  5850. ac_cv_header_stdc=no
  5851. fi
  5852. rm -f conftest*
  5853. fi
  5854. if test $ac_cv_header_stdc = yes; then
  5855. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5856. if test "$cross_compiling" = yes; then
  5857. :
  5858. else
  5859. cat >conftest.$ac_ext <<_ACEOF
  5860. /* confdefs.h. */
  5861. _ACEOF
  5862. cat confdefs.h >>conftest.$ac_ext
  5863. cat >>conftest.$ac_ext <<_ACEOF
  5864. /* end confdefs.h. */
  5865. #include <ctype.h>
  5866. #include <stdlib.h>
  5867. #if ((' ' & 0x0FF) == 0x020)
  5868. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5869. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5870. #else
  5871. # define ISLOWER(c) \
  5872. (('a' <= (c) && (c) <= 'i') \
  5873. || ('j' <= (c) && (c) <= 'r') \
  5874. || ('s' <= (c) && (c) <= 'z'))
  5875. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5876. #endif
  5877. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5878. int
  5879. main ()
  5880. {
  5881. int i;
  5882. for (i = 0; i < 256; i++)
  5883. if (XOR (islower (i), ISLOWER (i))
  5884. || toupper (i) != TOUPPER (i))
  5885. return 2;
  5886. return 0;
  5887. }
  5888. _ACEOF
  5889. rm -f conftest$ac_exeext
  5890. if { (ac_try="$ac_link"
  5891. case "(($ac_try" in
  5892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5893. *) ac_try_echo=$ac_try;;
  5894. esac
  5895. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5896. $as_echo "$ac_try_echo") >&5
  5897. (eval "$ac_link") 2>&5
  5898. ac_status=$?
  5899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5900. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5901. { (case "(($ac_try" in
  5902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5903. *) ac_try_echo=$ac_try;;
  5904. esac
  5905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5906. $as_echo "$ac_try_echo") >&5
  5907. (eval "$ac_try") 2>&5
  5908. ac_status=$?
  5909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5910. (exit $ac_status); }; }; then
  5911. :
  5912. else
  5913. $as_echo "$as_me: program exited with status $ac_status" >&5
  5914. $as_echo "$as_me: failed program was:" >&5
  5915. sed 's/^/| /' conftest.$ac_ext >&5
  5916. ( exit $ac_status )
  5917. ac_cv_header_stdc=no
  5918. fi
  5919. rm -rf conftest.dSYM
  5920. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5921. fi
  5922. fi
  5923. fi
  5924. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5925. $as_echo "$ac_cv_header_stdc" >&6; }
  5926. if test $ac_cv_header_stdc = yes; then
  5927. cat >>confdefs.h <<\_ACEOF
  5928. #define STDC_HEADERS 1
  5929. _ACEOF
  5930. fi
  5931. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5932. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5933. inttypes.h stdint.h unistd.h
  5934. do
  5935. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5936. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5937. $as_echo_n "checking for $ac_header... " >&6; }
  5938. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5939. $as_echo_n "(cached) " >&6
  5940. else
  5941. cat >conftest.$ac_ext <<_ACEOF
  5942. /* confdefs.h. */
  5943. _ACEOF
  5944. cat confdefs.h >>conftest.$ac_ext
  5945. cat >>conftest.$ac_ext <<_ACEOF
  5946. /* end confdefs.h. */
  5947. $ac_includes_default
  5948. #include <$ac_header>
  5949. _ACEOF
  5950. rm -f conftest.$ac_objext
  5951. if { (ac_try="$ac_compile"
  5952. case "(($ac_try" in
  5953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5954. *) ac_try_echo=$ac_try;;
  5955. esac
  5956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5957. $as_echo "$ac_try_echo") >&5
  5958. (eval "$ac_compile") 2>conftest.er1
  5959. ac_status=$?
  5960. grep -v '^ *+' conftest.er1 >conftest.err
  5961. rm -f conftest.er1
  5962. cat conftest.err >&5
  5963. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5964. (exit $ac_status); } && {
  5965. test -z "$ac_c_werror_flag" ||
  5966. test ! -s conftest.err
  5967. } && test -s conftest.$ac_objext; then
  5968. eval "$as_ac_Header=yes"
  5969. else
  5970. $as_echo "$as_me: failed program was:" >&5
  5971. sed 's/^/| /' conftest.$ac_ext >&5
  5972. eval "$as_ac_Header=no"
  5973. fi
  5974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5975. fi
  5976. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5977. $as_echo "$as_val"'`
  5978. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5979. $as_echo "$ac_res" >&6; }
  5980. as_val=`eval 'as_val=${'$as_ac_Header'}
  5981. $as_echo "$as_val"'`
  5982. if test "x$as_val" = x""yes; then
  5983. cat >>confdefs.h <<_ACEOF
  5984. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5985. _ACEOF
  5986. fi
  5987. done
  5988. for ac_header in dlfcn.h
  5989. do
  5990. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5991. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5992. $as_echo_n "checking for $ac_header... " >&6; }
  5993. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5994. $as_echo_n "(cached) " >&6
  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. $ac_includes_default
  6003. #include <$ac_header>
  6004. _ACEOF
  6005. rm -f conftest.$ac_objext
  6006. if { (ac_try="$ac_compile"
  6007. case "(($ac_try" in
  6008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6009. *) ac_try_echo=$ac_try;;
  6010. esac
  6011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6012. $as_echo "$ac_try_echo") >&5
  6013. (eval "$ac_compile") 2>conftest.er1
  6014. ac_status=$?
  6015. grep -v '^ *+' conftest.er1 >conftest.err
  6016. rm -f conftest.er1
  6017. cat conftest.err >&5
  6018. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. (exit $ac_status); } && {
  6020. test -z "$ac_c_werror_flag" ||
  6021. test ! -s conftest.err
  6022. } && test -s conftest.$ac_objext; then
  6023. eval "$as_ac_Header=yes"
  6024. else
  6025. $as_echo "$as_me: failed program was:" >&5
  6026. sed 's/^/| /' conftest.$ac_ext >&5
  6027. eval "$as_ac_Header=no"
  6028. fi
  6029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6030. fi
  6031. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6032. $as_echo "$as_val"'`
  6033. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6034. $as_echo "$ac_res" >&6; }
  6035. as_val=`eval 'as_val=${'$as_ac_Header'}
  6036. $as_echo "$as_val"'`
  6037. if test "x$as_val" = x""yes; then
  6038. cat >>confdefs.h <<_ACEOF
  6039. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6040. _ACEOF
  6041. fi
  6042. done
  6043. # Set options
  6044. enable_dlopen=no
  6045. enable_win32_dll=no
  6046. # Check whether --enable-shared was given.
  6047. if test "${enable_shared+set}" = set; then
  6048. enableval=$enable_shared; p=${PACKAGE-default}
  6049. case $enableval in
  6050. yes) enable_shared=yes ;;
  6051. no) enable_shared=no ;;
  6052. *)
  6053. enable_shared=no
  6054. # Look at the argument we got. We use all the common list separators.
  6055. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6056. for pkg in $enableval; do
  6057. IFS="$lt_save_ifs"
  6058. if test "X$pkg" = "X$p"; then
  6059. enable_shared=yes
  6060. fi
  6061. done
  6062. IFS="$lt_save_ifs"
  6063. ;;
  6064. esac
  6065. else
  6066. enable_shared=yes
  6067. fi
  6068. # Check whether --enable-static was given.
  6069. if test "${enable_static+set}" = set; then
  6070. enableval=$enable_static; p=${PACKAGE-default}
  6071. case $enableval in
  6072. yes) enable_static=yes ;;
  6073. no) enable_static=no ;;
  6074. *)
  6075. enable_static=no
  6076. # Look at the argument we got. We use all the common list separators.
  6077. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6078. for pkg in $enableval; do
  6079. IFS="$lt_save_ifs"
  6080. if test "X$pkg" = "X$p"; then
  6081. enable_static=yes
  6082. fi
  6083. done
  6084. IFS="$lt_save_ifs"
  6085. ;;
  6086. esac
  6087. else
  6088. enable_static=yes
  6089. fi
  6090. # Check whether --with-pic was given.
  6091. if test "${with_pic+set}" = set; then
  6092. withval=$with_pic; pic_mode="$withval"
  6093. else
  6094. pic_mode=default
  6095. fi
  6096. test -z "$pic_mode" && pic_mode=default
  6097. # Check whether --enable-fast-install was given.
  6098. if test "${enable_fast_install+set}" = set; then
  6099. enableval=$enable_fast_install; p=${PACKAGE-default}
  6100. case $enableval in
  6101. yes) enable_fast_install=yes ;;
  6102. no) enable_fast_install=no ;;
  6103. *)
  6104. enable_fast_install=no
  6105. # Look at the argument we got. We use all the common list separators.
  6106. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6107. for pkg in $enableval; do
  6108. IFS="$lt_save_ifs"
  6109. if test "X$pkg" = "X$p"; then
  6110. enable_fast_install=yes
  6111. fi
  6112. done
  6113. IFS="$lt_save_ifs"
  6114. ;;
  6115. esac
  6116. else
  6117. enable_fast_install=yes
  6118. fi
  6119. # This can be used to rebuild libtool when needed
  6120. LIBTOOL_DEPS="$ltmain"
  6121. # Always use our own libtool.
  6122. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6123. test -z "$LN_S" && LN_S="ln -s"
  6124. if test -n "${ZSH_VERSION+set}" ; then
  6125. setopt NO_GLOB_SUBST
  6126. fi
  6127. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6128. $as_echo_n "checking for objdir... " >&6; }
  6129. if test "${lt_cv_objdir+set}" = set; then
  6130. $as_echo_n "(cached) " >&6
  6131. else
  6132. rm -f .libs 2>/dev/null
  6133. mkdir .libs 2>/dev/null
  6134. if test -d .libs; then
  6135. lt_cv_objdir=.libs
  6136. else
  6137. # MS-DOS does not allow filenames that begin with a dot.
  6138. lt_cv_objdir=_libs
  6139. fi
  6140. rmdir .libs 2>/dev/null
  6141. fi
  6142. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6143. $as_echo "$lt_cv_objdir" >&6; }
  6144. objdir=$lt_cv_objdir
  6145. cat >>confdefs.h <<_ACEOF
  6146. #define LT_OBJDIR "$lt_cv_objdir/"
  6147. _ACEOF
  6148. case $host_os in
  6149. aix3*)
  6150. # AIX sometimes has problems with the GCC collect2 program. For some
  6151. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6152. # vanish in a puff of smoke.
  6153. if test "X${COLLECT_NAMES+set}" != Xset; then
  6154. COLLECT_NAMES=
  6155. export COLLECT_NAMES
  6156. fi
  6157. ;;
  6158. esac
  6159. # Sed substitution that helps us do robust quoting. It backslashifies
  6160. # metacharacters that are still active within double-quoted strings.
  6161. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6162. # Same as above, but do not quote variable references.
  6163. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6164. # Sed substitution to delay expansion of an escaped shell variable in a
  6165. # double_quote_subst'ed string.
  6166. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6167. # Sed substitution to delay expansion of an escaped single quote.
  6168. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6169. # Sed substitution to avoid accidental globbing in evaled expressions
  6170. no_glob_subst='s/\*/\\\*/g'
  6171. # Global variables:
  6172. ofile=libtool
  6173. can_build_shared=yes
  6174. # All known linkers require a `.a' archive for static linking (except MSVC,
  6175. # which needs '.lib').
  6176. libext=a
  6177. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6178. old_CC="$CC"
  6179. old_CFLAGS="$CFLAGS"
  6180. # Set sane defaults for various variables
  6181. test -z "$CC" && CC=cc
  6182. test -z "$LTCC" && LTCC=$CC
  6183. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6184. test -z "$LD" && LD=ld
  6185. test -z "$ac_objext" && ac_objext=o
  6186. for cc_temp in $compiler""; do
  6187. case $cc_temp in
  6188. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6189. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6190. \-*) ;;
  6191. *) break;;
  6192. esac
  6193. done
  6194. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6195. # Only perform the check for file, if the check method requires it
  6196. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6197. case $deplibs_check_method in
  6198. file_magic*)
  6199. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6200. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6201. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6202. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6203. $as_echo_n "(cached) " >&6
  6204. else
  6205. case $MAGIC_CMD in
  6206. [\\/*] | ?:[\\/]*)
  6207. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6208. ;;
  6209. *)
  6210. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6211. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6212. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6213. for ac_dir in $ac_dummy; do
  6214. IFS="$lt_save_ifs"
  6215. test -z "$ac_dir" && ac_dir=.
  6216. if test -f $ac_dir/${ac_tool_prefix}file; then
  6217. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6218. if test -n "$file_magic_test_file"; then
  6219. case $deplibs_check_method in
  6220. "file_magic "*)
  6221. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6222. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6223. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6224. $EGREP "$file_magic_regex" > /dev/null; then
  6225. :
  6226. else
  6227. cat <<_LT_EOF 1>&2
  6228. *** Warning: the command libtool uses to detect shared libraries,
  6229. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6230. *** The result is that libtool may fail to recognize shared libraries
  6231. *** as such. This will affect the creation of libtool libraries that
  6232. *** depend on shared libraries, but programs linked with such libtool
  6233. *** libraries will work regardless of this problem. Nevertheless, you
  6234. *** may want to report the problem to your system manager and/or to
  6235. *** bug-libtool@gnu.org
  6236. _LT_EOF
  6237. fi ;;
  6238. esac
  6239. fi
  6240. break
  6241. fi
  6242. done
  6243. IFS="$lt_save_ifs"
  6244. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6245. ;;
  6246. esac
  6247. fi
  6248. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6249. if test -n "$MAGIC_CMD"; then
  6250. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6251. $as_echo "$MAGIC_CMD" >&6; }
  6252. else
  6253. { $as_echo "$as_me:$LINENO: result: no" >&5
  6254. $as_echo "no" >&6; }
  6255. fi
  6256. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6257. if test -n "$ac_tool_prefix"; then
  6258. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6259. $as_echo_n "checking for file... " >&6; }
  6260. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6261. $as_echo_n "(cached) " >&6
  6262. else
  6263. case $MAGIC_CMD in
  6264. [\\/*] | ?:[\\/]*)
  6265. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6266. ;;
  6267. *)
  6268. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6269. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6270. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6271. for ac_dir in $ac_dummy; do
  6272. IFS="$lt_save_ifs"
  6273. test -z "$ac_dir" && ac_dir=.
  6274. if test -f $ac_dir/file; then
  6275. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6276. if test -n "$file_magic_test_file"; then
  6277. case $deplibs_check_method in
  6278. "file_magic "*)
  6279. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6280. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6281. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6282. $EGREP "$file_magic_regex" > /dev/null; then
  6283. :
  6284. else
  6285. cat <<_LT_EOF 1>&2
  6286. *** Warning: the command libtool uses to detect shared libraries,
  6287. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6288. *** The result is that libtool may fail to recognize shared libraries
  6289. *** as such. This will affect the creation of libtool libraries that
  6290. *** depend on shared libraries, but programs linked with such libtool
  6291. *** libraries will work regardless of this problem. Nevertheless, you
  6292. *** may want to report the problem to your system manager and/or to
  6293. *** bug-libtool@gnu.org
  6294. _LT_EOF
  6295. fi ;;
  6296. esac
  6297. fi
  6298. break
  6299. fi
  6300. done
  6301. IFS="$lt_save_ifs"
  6302. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6303. ;;
  6304. esac
  6305. fi
  6306. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6307. if test -n "$MAGIC_CMD"; then
  6308. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6309. $as_echo "$MAGIC_CMD" >&6; }
  6310. else
  6311. { $as_echo "$as_me:$LINENO: result: no" >&5
  6312. $as_echo "no" >&6; }
  6313. fi
  6314. else
  6315. MAGIC_CMD=:
  6316. fi
  6317. fi
  6318. fi
  6319. ;;
  6320. esac
  6321. # Use C for the default configuration in the libtool script
  6322. lt_save_CC="$CC"
  6323. ac_ext=c
  6324. ac_cpp='$CPP $CPPFLAGS'
  6325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6328. # Source file extension for C test sources.
  6329. ac_ext=c
  6330. # Object file extension for compiled C test sources.
  6331. objext=o
  6332. objext=$objext
  6333. # Code to be used in simple compile tests
  6334. lt_simple_compile_test_code="int some_variable = 0;"
  6335. # Code to be used in simple link tests
  6336. lt_simple_link_test_code='int main(){return(0);}'
  6337. # If no C compiler was specified, use CC.
  6338. LTCC=${LTCC-"$CC"}
  6339. # If no C compiler flags were specified, use CFLAGS.
  6340. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6341. # Allow CC to be a program name with arguments.
  6342. compiler=$CC
  6343. # Save the default compiler, since it gets overwritten when the other
  6344. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6345. compiler_DEFAULT=$CC
  6346. # save warnings/boilerplate of simple test code
  6347. ac_outfile=conftest.$ac_objext
  6348. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6349. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6350. _lt_compiler_boilerplate=`cat conftest.err`
  6351. $RM conftest*
  6352. ac_outfile=conftest.$ac_objext
  6353. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6354. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6355. _lt_linker_boilerplate=`cat conftest.err`
  6356. $RM -r conftest*
  6357. if test -n "$compiler"; then
  6358. lt_prog_compiler_no_builtin_flag=
  6359. if test "$GCC" = yes; then
  6360. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6361. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6362. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6363. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6364. $as_echo_n "(cached) " >&6
  6365. else
  6366. lt_cv_prog_compiler_rtti_exceptions=no
  6367. ac_outfile=conftest.$ac_objext
  6368. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6369. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6370. # Insert the option either (1) after the last *FLAGS variable, or
  6371. # (2) before a word containing "conftest.", or (3) at the end.
  6372. # Note that $ac_compile itself does not contain backslashes and begins
  6373. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6374. # The option is referenced via a variable to avoid confusing sed.
  6375. lt_compile=`echo "$ac_compile" | $SED \
  6376. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6377. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6378. -e 's:$: $lt_compiler_flag:'`
  6379. (eval echo "\"\$as_me:7395: $lt_compile\"" >&5)
  6380. (eval "$lt_compile" 2>conftest.err)
  6381. ac_status=$?
  6382. cat conftest.err >&5
  6383. echo "$as_me:7399: \$? = $ac_status" >&5
  6384. if (exit $ac_status) && test -s "$ac_outfile"; then
  6385. # The compiler can only warn and ignore the option if not recognized
  6386. # So say no if there are warnings other than the usual output.
  6387. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6388. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6389. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6390. lt_cv_prog_compiler_rtti_exceptions=yes
  6391. fi
  6392. fi
  6393. $RM conftest*
  6394. fi
  6395. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6396. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6397. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6398. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6399. else
  6400. :
  6401. fi
  6402. fi
  6403. lt_prog_compiler_wl=
  6404. lt_prog_compiler_pic=
  6405. lt_prog_compiler_static=
  6406. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6407. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6408. if test "$GCC" = yes; then
  6409. lt_prog_compiler_wl='-Wl,'
  6410. lt_prog_compiler_static='-static'
  6411. case $host_os in
  6412. aix*)
  6413. # All AIX code is PIC.
  6414. if test "$host_cpu" = ia64; then
  6415. # AIX 5 now supports IA64 processor
  6416. lt_prog_compiler_static='-Bstatic'
  6417. fi
  6418. ;;
  6419. amigaos*)
  6420. case $host_cpu in
  6421. powerpc)
  6422. # see comment about AmigaOS4 .so support
  6423. lt_prog_compiler_pic='-fPIC'
  6424. ;;
  6425. m68k)
  6426. # FIXME: we need at least 68020 code to build shared libraries, but
  6427. # adding the `-m68020' flag to GCC prevents building anything better,
  6428. # like `-m68040'.
  6429. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6430. ;;
  6431. esac
  6432. ;;
  6433. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6434. # PIC is the default for these OSes.
  6435. ;;
  6436. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6437. # This hack is so that the source file can tell whether it is being
  6438. # built for inclusion in a dll (and should export symbols for example).
  6439. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6440. # (--disable-auto-import) libraries
  6441. lt_prog_compiler_pic='-DDLL_EXPORT'
  6442. ;;
  6443. darwin* | rhapsody*)
  6444. # PIC is the default on this platform
  6445. # Common symbols not allowed in MH_DYLIB files
  6446. lt_prog_compiler_pic='-fno-common'
  6447. ;;
  6448. hpux*)
  6449. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6450. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6451. # sets the default TLS model and affects inlining.
  6452. case $host_cpu in
  6453. hppa*64*)
  6454. # +Z the default
  6455. ;;
  6456. *)
  6457. lt_prog_compiler_pic='-fPIC'
  6458. ;;
  6459. esac
  6460. ;;
  6461. interix[3-9]*)
  6462. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6463. # Instead, we relocate shared libraries at runtime.
  6464. ;;
  6465. msdosdjgpp*)
  6466. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6467. # on systems that don't support them.
  6468. lt_prog_compiler_can_build_shared=no
  6469. enable_shared=no
  6470. ;;
  6471. *nto* | *qnx*)
  6472. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6473. # it will coredump.
  6474. lt_prog_compiler_pic='-fPIC -shared'
  6475. ;;
  6476. sysv4*MP*)
  6477. if test -d /usr/nec; then
  6478. lt_prog_compiler_pic=-Kconform_pic
  6479. fi
  6480. ;;
  6481. *)
  6482. lt_prog_compiler_pic='-fPIC'
  6483. ;;
  6484. esac
  6485. else
  6486. # PORTME Check for flag to pass linker flags through the system compiler.
  6487. case $host_os in
  6488. aix*)
  6489. lt_prog_compiler_wl='-Wl,'
  6490. if test "$host_cpu" = ia64; then
  6491. # AIX 5 now supports IA64 processor
  6492. lt_prog_compiler_static='-Bstatic'
  6493. else
  6494. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6495. fi
  6496. ;;
  6497. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6498. # This hack is so that the source file can tell whether it is being
  6499. # built for inclusion in a dll (and should export symbols for example).
  6500. lt_prog_compiler_pic='-DDLL_EXPORT'
  6501. ;;
  6502. hpux9* | hpux10* | hpux11*)
  6503. lt_prog_compiler_wl='-Wl,'
  6504. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6505. # not for PA HP-UX.
  6506. case $host_cpu in
  6507. hppa*64*|ia64*)
  6508. # +Z the default
  6509. ;;
  6510. *)
  6511. lt_prog_compiler_pic='+Z'
  6512. ;;
  6513. esac
  6514. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6515. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6516. ;;
  6517. irix5* | irix6* | nonstopux*)
  6518. lt_prog_compiler_wl='-Wl,'
  6519. # PIC (with -KPIC) is the default.
  6520. lt_prog_compiler_static='-non_shared'
  6521. ;;
  6522. linux* | k*bsd*-gnu)
  6523. case $cc_basename in
  6524. # old Intel for x86_64 which still supported -KPIC.
  6525. ecc*)
  6526. lt_prog_compiler_wl='-Wl,'
  6527. lt_prog_compiler_pic='-KPIC'
  6528. lt_prog_compiler_static='-static'
  6529. ;;
  6530. # icc used to be incompatible with GCC.
  6531. # ICC 10 doesn't accept -KPIC any more.
  6532. icc* | ifort*)
  6533. lt_prog_compiler_wl='-Wl,'
  6534. lt_prog_compiler_pic='-fPIC'
  6535. lt_prog_compiler_static='-static'
  6536. ;;
  6537. # Lahey Fortran 8.1.
  6538. lf95*)
  6539. lt_prog_compiler_wl='-Wl,'
  6540. lt_prog_compiler_pic='--shared'
  6541. lt_prog_compiler_static='--static'
  6542. ;;
  6543. pgcc* | pgf77* | pgf90* | pgf95*)
  6544. # Portland Group compilers (*not* the Pentium gcc compiler,
  6545. # which looks to be a dead project)
  6546. lt_prog_compiler_wl='-Wl,'
  6547. lt_prog_compiler_pic='-fpic'
  6548. lt_prog_compiler_static='-Bstatic'
  6549. ;;
  6550. ccc*)
  6551. lt_prog_compiler_wl='-Wl,'
  6552. # All Alpha code is PIC.
  6553. lt_prog_compiler_static='-non_shared'
  6554. ;;
  6555. xl*)
  6556. # IBM XL C 8.0/Fortran 10.1 on PPC
  6557. lt_prog_compiler_wl='-Wl,'
  6558. lt_prog_compiler_pic='-qpic'
  6559. lt_prog_compiler_static='-qstaticlink'
  6560. ;;
  6561. *)
  6562. case `$CC -V 2>&1 | sed 5q` in
  6563. *Sun\ C*)
  6564. # Sun C 5.9
  6565. lt_prog_compiler_pic='-KPIC'
  6566. lt_prog_compiler_static='-Bstatic'
  6567. lt_prog_compiler_wl='-Wl,'
  6568. ;;
  6569. *Sun\ F*)
  6570. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6571. lt_prog_compiler_pic='-KPIC'
  6572. lt_prog_compiler_static='-Bstatic'
  6573. lt_prog_compiler_wl=''
  6574. ;;
  6575. esac
  6576. ;;
  6577. esac
  6578. ;;
  6579. newsos6)
  6580. lt_prog_compiler_pic='-KPIC'
  6581. lt_prog_compiler_static='-Bstatic'
  6582. ;;
  6583. *nto* | *qnx*)
  6584. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6585. # it will coredump.
  6586. lt_prog_compiler_pic='-fPIC -shared'
  6587. ;;
  6588. osf3* | osf4* | osf5*)
  6589. lt_prog_compiler_wl='-Wl,'
  6590. # All OSF/1 code is PIC.
  6591. lt_prog_compiler_static='-non_shared'
  6592. ;;
  6593. rdos*)
  6594. lt_prog_compiler_static='-non_shared'
  6595. ;;
  6596. solaris*)
  6597. lt_prog_compiler_pic='-KPIC'
  6598. lt_prog_compiler_static='-Bstatic'
  6599. case $cc_basename in
  6600. f77* | f90* | f95*)
  6601. lt_prog_compiler_wl='-Qoption ld ';;
  6602. *)
  6603. lt_prog_compiler_wl='-Wl,';;
  6604. esac
  6605. ;;
  6606. sunos4*)
  6607. lt_prog_compiler_wl='-Qoption ld '
  6608. lt_prog_compiler_pic='-PIC'
  6609. lt_prog_compiler_static='-Bstatic'
  6610. ;;
  6611. sysv4 | sysv4.2uw2* | sysv4.3*)
  6612. lt_prog_compiler_wl='-Wl,'
  6613. lt_prog_compiler_pic='-KPIC'
  6614. lt_prog_compiler_static='-Bstatic'
  6615. ;;
  6616. sysv4*MP*)
  6617. if test -d /usr/nec ;then
  6618. lt_prog_compiler_pic='-Kconform_pic'
  6619. lt_prog_compiler_static='-Bstatic'
  6620. fi
  6621. ;;
  6622. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6623. lt_prog_compiler_wl='-Wl,'
  6624. lt_prog_compiler_pic='-KPIC'
  6625. lt_prog_compiler_static='-Bstatic'
  6626. ;;
  6627. unicos*)
  6628. lt_prog_compiler_wl='-Wl,'
  6629. lt_prog_compiler_can_build_shared=no
  6630. ;;
  6631. uts4*)
  6632. lt_prog_compiler_pic='-pic'
  6633. lt_prog_compiler_static='-Bstatic'
  6634. ;;
  6635. *)
  6636. lt_prog_compiler_can_build_shared=no
  6637. ;;
  6638. esac
  6639. fi
  6640. case $host_os in
  6641. # For platforms which do not support PIC, -DPIC is meaningless:
  6642. *djgpp*)
  6643. lt_prog_compiler_pic=
  6644. ;;
  6645. *)
  6646. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6647. ;;
  6648. esac
  6649. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6650. $as_echo "$lt_prog_compiler_pic" >&6; }
  6651. #
  6652. # Check to make sure the PIC flag actually works.
  6653. #
  6654. if test -n "$lt_prog_compiler_pic"; then
  6655. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6656. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6657. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. lt_cv_prog_compiler_pic_works=no
  6661. ac_outfile=conftest.$ac_objext
  6662. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6663. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6664. # Insert the option either (1) after the last *FLAGS variable, or
  6665. # (2) before a word containing "conftest.", or (3) at the end.
  6666. # Note that $ac_compile itself does not contain backslashes and begins
  6667. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6668. # The option is referenced via a variable to avoid confusing sed.
  6669. lt_compile=`echo "$ac_compile" | $SED \
  6670. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6671. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6672. -e 's:$: $lt_compiler_flag:'`
  6673. (eval echo "\"\$as_me:7734: $lt_compile\"" >&5)
  6674. (eval "$lt_compile" 2>conftest.err)
  6675. ac_status=$?
  6676. cat conftest.err >&5
  6677. echo "$as_me:7738: \$? = $ac_status" >&5
  6678. if (exit $ac_status) && test -s "$ac_outfile"; then
  6679. # The compiler can only warn and ignore the option if not recognized
  6680. # So say no if there are warnings other than the usual output.
  6681. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6682. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6683. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6684. lt_cv_prog_compiler_pic_works=yes
  6685. fi
  6686. fi
  6687. $RM conftest*
  6688. fi
  6689. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6690. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6691. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6692. case $lt_prog_compiler_pic in
  6693. "" | " "*) ;;
  6694. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6695. esac
  6696. else
  6697. lt_prog_compiler_pic=
  6698. lt_prog_compiler_can_build_shared=no
  6699. fi
  6700. fi
  6701. #
  6702. # Check to make sure the static flag actually works.
  6703. #
  6704. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6705. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6706. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6707. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6708. $as_echo_n "(cached) " >&6
  6709. else
  6710. lt_cv_prog_compiler_static_works=no
  6711. save_LDFLAGS="$LDFLAGS"
  6712. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6713. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6714. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6715. # The linker can only warn and ignore the option if not recognized
  6716. # So say no if there are warnings
  6717. if test -s conftest.err; then
  6718. # Append any errors to the config.log.
  6719. cat conftest.err 1>&5
  6720. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6721. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6722. if diff conftest.exp conftest.er2 >/dev/null; then
  6723. lt_cv_prog_compiler_static_works=yes
  6724. fi
  6725. else
  6726. lt_cv_prog_compiler_static_works=yes
  6727. fi
  6728. fi
  6729. $RM -r conftest*
  6730. LDFLAGS="$save_LDFLAGS"
  6731. fi
  6732. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6733. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6734. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6735. :
  6736. else
  6737. lt_prog_compiler_static=
  6738. fi
  6739. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6740. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6741. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6742. $as_echo_n "(cached) " >&6
  6743. else
  6744. lt_cv_prog_compiler_c_o=no
  6745. $RM -r conftest 2>/dev/null
  6746. mkdir conftest
  6747. cd conftest
  6748. mkdir out
  6749. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6750. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6751. # Insert the option either (1) after the last *FLAGS variable, or
  6752. # (2) before a word containing "conftest.", or (3) at the end.
  6753. # Note that $ac_compile itself does not contain backslashes and begins
  6754. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6755. lt_compile=`echo "$ac_compile" | $SED \
  6756. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6757. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6758. -e 's:$: $lt_compiler_flag:'`
  6759. (eval echo "\"\$as_me:7839: $lt_compile\"" >&5)
  6760. (eval "$lt_compile" 2>out/conftest.err)
  6761. ac_status=$?
  6762. cat out/conftest.err >&5
  6763. echo "$as_me:7843: \$? = $ac_status" >&5
  6764. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6765. then
  6766. # The compiler can only warn and ignore the option if not recognized
  6767. # So say no if there are warnings
  6768. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6769. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6770. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6771. lt_cv_prog_compiler_c_o=yes
  6772. fi
  6773. fi
  6774. chmod u+w . 2>&5
  6775. $RM conftest*
  6776. # SGI C++ compiler will create directory out/ii_files/ for
  6777. # template instantiation
  6778. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6779. $RM out/* && rmdir out
  6780. cd ..
  6781. $RM -r conftest
  6782. $RM conftest*
  6783. fi
  6784. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6785. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6786. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6787. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6788. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6789. $as_echo_n "(cached) " >&6
  6790. else
  6791. lt_cv_prog_compiler_c_o=no
  6792. $RM -r conftest 2>/dev/null
  6793. mkdir conftest
  6794. cd conftest
  6795. mkdir out
  6796. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6797. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6798. # Insert the option either (1) after the last *FLAGS variable, or
  6799. # (2) before a word containing "conftest.", or (3) at the end.
  6800. # Note that $ac_compile itself does not contain backslashes and begins
  6801. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6802. lt_compile=`echo "$ac_compile" | $SED \
  6803. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6804. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6805. -e 's:$: $lt_compiler_flag:'`
  6806. (eval echo "\"\$as_me:7894: $lt_compile\"" >&5)
  6807. (eval "$lt_compile" 2>out/conftest.err)
  6808. ac_status=$?
  6809. cat out/conftest.err >&5
  6810. echo "$as_me:7898: \$? = $ac_status" >&5
  6811. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6812. then
  6813. # The compiler can only warn and ignore the option if not recognized
  6814. # So say no if there are warnings
  6815. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6816. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6817. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6818. lt_cv_prog_compiler_c_o=yes
  6819. fi
  6820. fi
  6821. chmod u+w . 2>&5
  6822. $RM conftest*
  6823. # SGI C++ compiler will create directory out/ii_files/ for
  6824. # template instantiation
  6825. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6826. $RM out/* && rmdir out
  6827. cd ..
  6828. $RM -r conftest
  6829. $RM conftest*
  6830. fi
  6831. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6832. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6833. hard_links="nottested"
  6834. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6835. # do not overwrite the value of need_locks provided by the user
  6836. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6837. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6838. hard_links=yes
  6839. $RM conftest*
  6840. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6841. touch conftest.a
  6842. ln conftest.a conftest.b 2>&5 || hard_links=no
  6843. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6844. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  6845. $as_echo "$hard_links" >&6; }
  6846. if test "$hard_links" = no; then
  6847. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6848. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6849. need_locks=warn
  6850. fi
  6851. else
  6852. need_locks=no
  6853. fi
  6854. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6855. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6856. runpath_var=
  6857. allow_undefined_flag=
  6858. always_export_symbols=no
  6859. archive_cmds=
  6860. archive_expsym_cmds=
  6861. compiler_needs_object=no
  6862. enable_shared_with_static_runtimes=no
  6863. export_dynamic_flag_spec=
  6864. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6865. hardcode_automatic=no
  6866. hardcode_direct=no
  6867. hardcode_direct_absolute=no
  6868. hardcode_libdir_flag_spec=
  6869. hardcode_libdir_flag_spec_ld=
  6870. hardcode_libdir_separator=
  6871. hardcode_minus_L=no
  6872. hardcode_shlibpath_var=unsupported
  6873. inherit_rpath=no
  6874. link_all_deplibs=unknown
  6875. module_cmds=
  6876. module_expsym_cmds=
  6877. old_archive_from_new_cmds=
  6878. old_archive_from_expsyms_cmds=
  6879. thread_safe_flag_spec=
  6880. whole_archive_flag_spec=
  6881. # include_expsyms should be a list of space-separated symbols to be *always*
  6882. # included in the symbol list
  6883. include_expsyms=
  6884. # exclude_expsyms can be an extended regexp of symbols to exclude
  6885. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6886. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6887. # as well as any symbol that contains `d'.
  6888. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6889. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6890. # platforms (ab)use it in PIC code, but their linkers get confused if
  6891. # the symbol is explicitly referenced. Since portable code cannot
  6892. # rely on this symbol name, it's probably fine to never include it in
  6893. # preloaded symbol tables.
  6894. # Exclude shared library initialization/finalization symbols.
  6895. extract_expsyms_cmds=
  6896. case $host_os in
  6897. cygwin* | mingw* | pw32* | cegcc*)
  6898. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6899. # When not using gcc, we currently assume that we are using
  6900. # Microsoft Visual C++.
  6901. if test "$GCC" != yes; then
  6902. with_gnu_ld=no
  6903. fi
  6904. ;;
  6905. interix*)
  6906. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6907. with_gnu_ld=yes
  6908. ;;
  6909. openbsd*)
  6910. with_gnu_ld=no
  6911. ;;
  6912. esac
  6913. ld_shlibs=yes
  6914. if test "$with_gnu_ld" = yes; then
  6915. # If archive_cmds runs LD, not CC, wlarc should be empty
  6916. wlarc='${wl}'
  6917. # Set some defaults for GNU ld with shared library support. These
  6918. # are reset later if shared libraries are not supported. Putting them
  6919. # here allows them to be overridden if necessary.
  6920. runpath_var=LD_RUN_PATH
  6921. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6922. export_dynamic_flag_spec='${wl}--export-dynamic'
  6923. # ancient GNU ld didn't support --whole-archive et. al.
  6924. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6925. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6926. else
  6927. whole_archive_flag_spec=
  6928. fi
  6929. supports_anon_versioning=no
  6930. case `$LD -v 2>&1` in
  6931. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6932. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6933. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6934. *\ 2.11.*) ;; # other 2.11 versions
  6935. *) supports_anon_versioning=yes ;;
  6936. esac
  6937. # See if GNU ld supports shared libraries.
  6938. case $host_os in
  6939. aix[3-9]*)
  6940. # On AIX/PPC, the GNU linker is very broken
  6941. if test "$host_cpu" != ia64; then
  6942. ld_shlibs=no
  6943. cat <<_LT_EOF 1>&2
  6944. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6945. *** to be unable to reliably create shared libraries on AIX.
  6946. *** Therefore, libtool is disabling shared libraries support. If you
  6947. *** really care for shared libraries, you may want to modify your PATH
  6948. *** so that a non-GNU linker is found, and then restart.
  6949. _LT_EOF
  6950. fi
  6951. ;;
  6952. amigaos*)
  6953. case $host_cpu in
  6954. powerpc)
  6955. # see comment about AmigaOS4 .so support
  6956. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6957. archive_expsym_cmds=''
  6958. ;;
  6959. m68k)
  6960. 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)'
  6961. hardcode_libdir_flag_spec='-L$libdir'
  6962. hardcode_minus_L=yes
  6963. ;;
  6964. esac
  6965. ;;
  6966. beos*)
  6967. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6968. allow_undefined_flag=unsupported
  6969. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6970. # support --undefined. This deserves some investigation. FIXME
  6971. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6972. else
  6973. ld_shlibs=no
  6974. fi
  6975. ;;
  6976. cygwin* | mingw* | pw32* | cegcc*)
  6977. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6978. # as there is no search path for DLLs.
  6979. hardcode_libdir_flag_spec='-L$libdir'
  6980. allow_undefined_flag=unsupported
  6981. always_export_symbols=no
  6982. enable_shared_with_static_runtimes=yes
  6983. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6984. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6985. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6986. # If the export-symbols file already is a .def file (1st line
  6987. # is EXPORTS), use it as is; otherwise, prepend...
  6988. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6989. cp $export_symbols $output_objdir/$soname.def;
  6990. else
  6991. echo EXPORTS > $output_objdir/$soname.def;
  6992. cat $export_symbols >> $output_objdir/$soname.def;
  6993. fi~
  6994. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6995. else
  6996. ld_shlibs=no
  6997. fi
  6998. ;;
  6999. interix[3-9]*)
  7000. hardcode_direct=no
  7001. hardcode_shlibpath_var=no
  7002. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7003. export_dynamic_flag_spec='${wl}-E'
  7004. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7005. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7006. # default) and relocated if they conflict, which is a slow very memory
  7007. # consuming and fragmenting process. To avoid this, we pick a random,
  7008. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7009. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7010. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7011. 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'
  7012. ;;
  7013. gnu* | linux* | tpf* | k*bsd*-gnu)
  7014. tmp_diet=no
  7015. if test "$host_os" = linux-dietlibc; then
  7016. case $cc_basename in
  7017. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7018. esac
  7019. fi
  7020. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7021. && test "$tmp_diet" = no
  7022. then
  7023. tmp_addflag=
  7024. tmp_sharedflag='-shared'
  7025. case $cc_basename,$host_cpu in
  7026. pgcc*) # Portland Group C compiler
  7027. 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'
  7028. tmp_addflag=' $pic_flag'
  7029. ;;
  7030. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7031. 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'
  7032. tmp_addflag=' $pic_flag -Mnomain' ;;
  7033. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7034. tmp_addflag=' -i_dynamic' ;;
  7035. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7036. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7037. ifc* | ifort*) # Intel Fortran compiler
  7038. tmp_addflag=' -nofor_main' ;;
  7039. lf95*) # Lahey Fortran 8.1
  7040. whole_archive_flag_spec=
  7041. tmp_sharedflag='--shared' ;;
  7042. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7043. tmp_sharedflag='-qmkshrobj'
  7044. tmp_addflag= ;;
  7045. esac
  7046. case `$CC -V 2>&1 | sed 5q` in
  7047. *Sun\ C*) # Sun C 5.9
  7048. 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'
  7049. compiler_needs_object=yes
  7050. tmp_sharedflag='-G' ;;
  7051. *Sun\ F*) # Sun Fortran 8.3
  7052. tmp_sharedflag='-G' ;;
  7053. esac
  7054. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7055. if test "x$supports_anon_versioning" = xyes; then
  7056. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7057. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7058. echo "local: *; };" >> $output_objdir/$libname.ver~
  7059. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7060. fi
  7061. case $cc_basename in
  7062. xlf*)
  7063. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7064. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7065. hardcode_libdir_flag_spec=
  7066. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7067. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7068. if test "x$supports_anon_versioning" = xyes; then
  7069. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7070. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7071. echo "local: *; };" >> $output_objdir/$libname.ver~
  7072. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7073. fi
  7074. ;;
  7075. esac
  7076. else
  7077. ld_shlibs=no
  7078. fi
  7079. ;;
  7080. netbsd*)
  7081. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7082. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7083. wlarc=
  7084. else
  7085. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7086. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7087. fi
  7088. ;;
  7089. solaris*)
  7090. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7091. ld_shlibs=no
  7092. cat <<_LT_EOF 1>&2
  7093. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7094. *** create shared libraries on Solaris systems. Therefore, libtool
  7095. *** is disabling shared libraries support. We urge you to upgrade GNU
  7096. *** binutils to release 2.9.1 or newer. Another option is to modify
  7097. *** your PATH or compiler configuration so that the native linker is
  7098. *** used, and then restart.
  7099. _LT_EOF
  7100. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7101. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7102. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7103. else
  7104. ld_shlibs=no
  7105. fi
  7106. ;;
  7107. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7108. case `$LD -v 2>&1` in
  7109. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7110. ld_shlibs=no
  7111. cat <<_LT_EOF 1>&2
  7112. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7113. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7114. *** is disabling shared libraries support. We urge you to upgrade GNU
  7115. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7116. *** your PATH or compiler configuration so that the native linker is
  7117. *** used, and then restart.
  7118. _LT_EOF
  7119. ;;
  7120. *)
  7121. # For security reasons, it is highly recommended that you always
  7122. # use absolute paths for naming shared libraries, and exclude the
  7123. # DT_RUNPATH tag from executables and libraries. But doing so
  7124. # requires that you compile everything twice, which is a pain.
  7125. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7126. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7127. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7128. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7129. else
  7130. ld_shlibs=no
  7131. fi
  7132. ;;
  7133. esac
  7134. ;;
  7135. sunos4*)
  7136. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7137. wlarc=
  7138. hardcode_direct=yes
  7139. hardcode_shlibpath_var=no
  7140. ;;
  7141. *)
  7142. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7143. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7144. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7145. else
  7146. ld_shlibs=no
  7147. fi
  7148. ;;
  7149. esac
  7150. if test "$ld_shlibs" = no; then
  7151. runpath_var=
  7152. hardcode_libdir_flag_spec=
  7153. export_dynamic_flag_spec=
  7154. whole_archive_flag_spec=
  7155. fi
  7156. else
  7157. # PORTME fill in a description of your system's linker (not GNU ld)
  7158. case $host_os in
  7159. aix3*)
  7160. allow_undefined_flag=unsupported
  7161. always_export_symbols=yes
  7162. 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'
  7163. # Note: this linker hardcodes the directories in LIBPATH if there
  7164. # are no directories specified by -L.
  7165. hardcode_minus_L=yes
  7166. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7167. # Neither direct hardcoding nor static linking is supported with a
  7168. # broken collect2.
  7169. hardcode_direct=unsupported
  7170. fi
  7171. ;;
  7172. aix[4-9]*)
  7173. if test "$host_cpu" = ia64; then
  7174. # On IA64, the linker does run time linking by default, so we don't
  7175. # have to do anything special.
  7176. aix_use_runtimelinking=no
  7177. exp_sym_flag='-Bexport'
  7178. no_entry_flag=""
  7179. else
  7180. # If we're using GNU nm, then we don't want the "-C" option.
  7181. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7182. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7183. 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'
  7184. else
  7185. 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'
  7186. fi
  7187. aix_use_runtimelinking=no
  7188. # Test if we are trying to use run time linking or normal
  7189. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7190. # need to do runtime linking.
  7191. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7192. for ld_flag in $LDFLAGS; do
  7193. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7194. aix_use_runtimelinking=yes
  7195. break
  7196. fi
  7197. done
  7198. ;;
  7199. esac
  7200. exp_sym_flag='-bexport'
  7201. no_entry_flag='-bnoentry'
  7202. fi
  7203. # When large executables or shared objects are built, AIX ld can
  7204. # have problems creating the table of contents. If linking a library
  7205. # or program results in "error TOC overflow" add -mminimal-toc to
  7206. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7207. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7208. archive_cmds=''
  7209. hardcode_direct=yes
  7210. hardcode_direct_absolute=yes
  7211. hardcode_libdir_separator=':'
  7212. link_all_deplibs=yes
  7213. file_list_spec='${wl}-f,'
  7214. if test "$GCC" = yes; then
  7215. case $host_os in aix4.[012]|aix4.[012].*)
  7216. # We only want to do this on AIX 4.2 and lower, the check
  7217. # below for broken collect2 doesn't work under 4.3+
  7218. collect2name=`${CC} -print-prog-name=collect2`
  7219. if test -f "$collect2name" &&
  7220. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7221. then
  7222. # We have reworked collect2
  7223. :
  7224. else
  7225. # We have old collect2
  7226. hardcode_direct=unsupported
  7227. # It fails to find uninstalled libraries when the uninstalled
  7228. # path is not listed in the libpath. Setting hardcode_minus_L
  7229. # to unsupported forces relinking
  7230. hardcode_minus_L=yes
  7231. hardcode_libdir_flag_spec='-L$libdir'
  7232. hardcode_libdir_separator=
  7233. fi
  7234. ;;
  7235. esac
  7236. shared_flag='-shared'
  7237. if test "$aix_use_runtimelinking" = yes; then
  7238. shared_flag="$shared_flag "'${wl}-G'
  7239. fi
  7240. else
  7241. # not using gcc
  7242. if test "$host_cpu" = ia64; then
  7243. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7244. # chokes on -Wl,-G. The following line is correct:
  7245. shared_flag='-G'
  7246. else
  7247. if test "$aix_use_runtimelinking" = yes; then
  7248. shared_flag='${wl}-G'
  7249. else
  7250. shared_flag='${wl}-bM:SRE'
  7251. fi
  7252. fi
  7253. fi
  7254. export_dynamic_flag_spec='${wl}-bexpall'
  7255. # It seems that -bexpall does not export symbols beginning with
  7256. # underscore (_), so it is better to generate a list of symbols to export.
  7257. always_export_symbols=yes
  7258. if test "$aix_use_runtimelinking" = yes; then
  7259. # Warning - without using the other runtime loading flags (-brtl),
  7260. # -berok will link without error, but may produce a broken library.
  7261. allow_undefined_flag='-berok'
  7262. # Determine the default libpath from the value encoded in an
  7263. # empty executable.
  7264. cat >conftest.$ac_ext <<_ACEOF
  7265. /* confdefs.h. */
  7266. _ACEOF
  7267. cat confdefs.h >>conftest.$ac_ext
  7268. cat >>conftest.$ac_ext <<_ACEOF
  7269. /* end confdefs.h. */
  7270. int
  7271. main ()
  7272. {
  7273. ;
  7274. return 0;
  7275. }
  7276. _ACEOF
  7277. rm -f conftest.$ac_objext conftest$ac_exeext
  7278. if { (ac_try="$ac_link"
  7279. case "(($ac_try" in
  7280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7281. *) ac_try_echo=$ac_try;;
  7282. esac
  7283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7284. $as_echo "$ac_try_echo") >&5
  7285. (eval "$ac_link") 2>conftest.er1
  7286. ac_status=$?
  7287. grep -v '^ *+' conftest.er1 >conftest.err
  7288. rm -f conftest.er1
  7289. cat conftest.err >&5
  7290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7291. (exit $ac_status); } && {
  7292. test -z "$ac_c_werror_flag" ||
  7293. test ! -s conftest.err
  7294. } && test -s conftest$ac_exeext && {
  7295. test "$cross_compiling" = yes ||
  7296. $as_test_x conftest$ac_exeext
  7297. }; then
  7298. lt_aix_libpath_sed='
  7299. /Import File Strings/,/^$/ {
  7300. /^0/ {
  7301. s/^0 *\(.*\)$/\1/
  7302. p
  7303. }
  7304. }'
  7305. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7306. # Check for a 64-bit object if we didn't find anything.
  7307. if test -z "$aix_libpath"; then
  7308. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7309. fi
  7310. else
  7311. $as_echo "$as_me: failed program was:" >&5
  7312. sed 's/^/| /' conftest.$ac_ext >&5
  7313. fi
  7314. rm -rf conftest.dSYM
  7315. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7316. conftest$ac_exeext conftest.$ac_ext
  7317. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7318. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7319. 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"
  7320. else
  7321. if test "$host_cpu" = ia64; then
  7322. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7323. allow_undefined_flag="-z nodefs"
  7324. 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"
  7325. else
  7326. # Determine the default libpath from the value encoded in an
  7327. # empty executable.
  7328. cat >conftest.$ac_ext <<_ACEOF
  7329. /* confdefs.h. */
  7330. _ACEOF
  7331. cat confdefs.h >>conftest.$ac_ext
  7332. cat >>conftest.$ac_ext <<_ACEOF
  7333. /* end confdefs.h. */
  7334. int
  7335. main ()
  7336. {
  7337. ;
  7338. return 0;
  7339. }
  7340. _ACEOF
  7341. rm -f conftest.$ac_objext conftest$ac_exeext
  7342. if { (ac_try="$ac_link"
  7343. case "(($ac_try" in
  7344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7345. *) ac_try_echo=$ac_try;;
  7346. esac
  7347. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7348. $as_echo "$ac_try_echo") >&5
  7349. (eval "$ac_link") 2>conftest.er1
  7350. ac_status=$?
  7351. grep -v '^ *+' conftest.er1 >conftest.err
  7352. rm -f conftest.er1
  7353. cat conftest.err >&5
  7354. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7355. (exit $ac_status); } && {
  7356. test -z "$ac_c_werror_flag" ||
  7357. test ! -s conftest.err
  7358. } && test -s conftest$ac_exeext && {
  7359. test "$cross_compiling" = yes ||
  7360. $as_test_x conftest$ac_exeext
  7361. }; then
  7362. lt_aix_libpath_sed='
  7363. /Import File Strings/,/^$/ {
  7364. /^0/ {
  7365. s/^0 *\(.*\)$/\1/
  7366. p
  7367. }
  7368. }'
  7369. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7370. # Check for a 64-bit object if we didn't find anything.
  7371. if test -z "$aix_libpath"; then
  7372. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7373. fi
  7374. else
  7375. $as_echo "$as_me: failed program was:" >&5
  7376. sed 's/^/| /' conftest.$ac_ext >&5
  7377. fi
  7378. rm -rf conftest.dSYM
  7379. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7380. conftest$ac_exeext conftest.$ac_ext
  7381. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7382. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7383. # Warning - without using the other run time loading flags,
  7384. # -berok will link without error, but may produce a broken library.
  7385. no_undefined_flag=' ${wl}-bernotok'
  7386. allow_undefined_flag=' ${wl}-berok'
  7387. # Exported symbols can be pulled into shared objects from archives
  7388. whole_archive_flag_spec='$convenience'
  7389. archive_cmds_need_lc=yes
  7390. # This is similar to how AIX traditionally builds its shared libraries.
  7391. 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'
  7392. fi
  7393. fi
  7394. ;;
  7395. amigaos*)
  7396. case $host_cpu in
  7397. powerpc)
  7398. # see comment about AmigaOS4 .so support
  7399. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7400. archive_expsym_cmds=''
  7401. ;;
  7402. m68k)
  7403. 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)'
  7404. hardcode_libdir_flag_spec='-L$libdir'
  7405. hardcode_minus_L=yes
  7406. ;;
  7407. esac
  7408. ;;
  7409. bsdi[45]*)
  7410. export_dynamic_flag_spec=-rdynamic
  7411. ;;
  7412. cygwin* | mingw* | pw32* | cegcc*)
  7413. # When not using gcc, we currently assume that we are using
  7414. # Microsoft Visual C++.
  7415. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7416. # no search path for DLLs.
  7417. hardcode_libdir_flag_spec=' '
  7418. allow_undefined_flag=unsupported
  7419. # Tell ltmain to make .lib files, not .a files.
  7420. libext=lib
  7421. # Tell ltmain to make .dll files, not .so files.
  7422. shrext_cmds=".dll"
  7423. # FIXME: Setting linknames here is a bad hack.
  7424. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7425. # The linker will automatically build a .lib file if we build a DLL.
  7426. old_archive_from_new_cmds='true'
  7427. # FIXME: Should let the user specify the lib program.
  7428. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7429. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7430. enable_shared_with_static_runtimes=yes
  7431. ;;
  7432. darwin* | rhapsody*)
  7433. archive_cmds_need_lc=no
  7434. hardcode_direct=no
  7435. hardcode_automatic=yes
  7436. hardcode_shlibpath_var=unsupported
  7437. whole_archive_flag_spec=''
  7438. link_all_deplibs=yes
  7439. allow_undefined_flag="$_lt_dar_allow_undefined"
  7440. case $cc_basename in
  7441. ifort*) _lt_dar_can_shared=yes ;;
  7442. *) _lt_dar_can_shared=$GCC ;;
  7443. esac
  7444. if test "$_lt_dar_can_shared" = "yes"; then
  7445. output_verbose_link_cmd=echo
  7446. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7447. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7448. 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}"
  7449. 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}"
  7450. else
  7451. ld_shlibs=no
  7452. fi
  7453. ;;
  7454. dgux*)
  7455. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7456. hardcode_libdir_flag_spec='-L$libdir'
  7457. hardcode_shlibpath_var=no
  7458. ;;
  7459. freebsd1*)
  7460. ld_shlibs=no
  7461. ;;
  7462. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7463. # support. Future versions do this automatically, but an explicit c++rt0.o
  7464. # does not break anything, and helps significantly (at the cost of a little
  7465. # extra space).
  7466. freebsd2.2*)
  7467. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7468. hardcode_libdir_flag_spec='-R$libdir'
  7469. hardcode_direct=yes
  7470. hardcode_shlibpath_var=no
  7471. ;;
  7472. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7473. freebsd2*)
  7474. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7475. hardcode_direct=yes
  7476. hardcode_minus_L=yes
  7477. hardcode_shlibpath_var=no
  7478. ;;
  7479. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7480. freebsd* | dragonfly*)
  7481. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7482. hardcode_libdir_flag_spec='-R$libdir'
  7483. hardcode_direct=yes
  7484. hardcode_shlibpath_var=no
  7485. ;;
  7486. hpux9*)
  7487. if test "$GCC" = yes; then
  7488. 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'
  7489. else
  7490. 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'
  7491. fi
  7492. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7493. hardcode_libdir_separator=:
  7494. hardcode_direct=yes
  7495. # hardcode_minus_L: Not really in the search PATH,
  7496. # but as the default location of the library.
  7497. hardcode_minus_L=yes
  7498. export_dynamic_flag_spec='${wl}-E'
  7499. ;;
  7500. hpux10*)
  7501. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7502. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7503. else
  7504. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7505. fi
  7506. if test "$with_gnu_ld" = no; then
  7507. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7508. hardcode_libdir_flag_spec_ld='+b $libdir'
  7509. hardcode_libdir_separator=:
  7510. hardcode_direct=yes
  7511. hardcode_direct_absolute=yes
  7512. export_dynamic_flag_spec='${wl}-E'
  7513. # hardcode_minus_L: Not really in the search PATH,
  7514. # but as the default location of the library.
  7515. hardcode_minus_L=yes
  7516. fi
  7517. ;;
  7518. hpux11*)
  7519. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7520. case $host_cpu in
  7521. hppa*64*)
  7522. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7523. ;;
  7524. ia64*)
  7525. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7526. ;;
  7527. *)
  7528. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7529. ;;
  7530. esac
  7531. else
  7532. case $host_cpu in
  7533. hppa*64*)
  7534. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7535. ;;
  7536. ia64*)
  7537. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7538. ;;
  7539. *)
  7540. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7541. ;;
  7542. esac
  7543. fi
  7544. if test "$with_gnu_ld" = no; then
  7545. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7546. hardcode_libdir_separator=:
  7547. case $host_cpu in
  7548. hppa*64*|ia64*)
  7549. hardcode_direct=no
  7550. hardcode_shlibpath_var=no
  7551. ;;
  7552. *)
  7553. hardcode_direct=yes
  7554. hardcode_direct_absolute=yes
  7555. export_dynamic_flag_spec='${wl}-E'
  7556. # hardcode_minus_L: Not really in the search PATH,
  7557. # but as the default location of the library.
  7558. hardcode_minus_L=yes
  7559. ;;
  7560. esac
  7561. fi
  7562. ;;
  7563. irix5* | irix6* | nonstopux*)
  7564. if test "$GCC" = yes; then
  7565. 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'
  7566. # Try to use the -exported_symbol ld option, if it does not
  7567. # work, assume that -exports_file does not work either and
  7568. # implicitly export all symbols.
  7569. save_LDFLAGS="$LDFLAGS"
  7570. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7571. cat >conftest.$ac_ext <<_ACEOF
  7572. int foo(void) {}
  7573. _ACEOF
  7574. rm -f conftest.$ac_objext conftest$ac_exeext
  7575. if { (ac_try="$ac_link"
  7576. case "(($ac_try" in
  7577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7578. *) ac_try_echo=$ac_try;;
  7579. esac
  7580. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7581. $as_echo "$ac_try_echo") >&5
  7582. (eval "$ac_link") 2>conftest.er1
  7583. ac_status=$?
  7584. grep -v '^ *+' conftest.er1 >conftest.err
  7585. rm -f conftest.er1
  7586. cat conftest.err >&5
  7587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7588. (exit $ac_status); } && {
  7589. test -z "$ac_c_werror_flag" ||
  7590. test ! -s conftest.err
  7591. } && test -s conftest$ac_exeext && {
  7592. test "$cross_compiling" = yes ||
  7593. $as_test_x conftest$ac_exeext
  7594. }; then
  7595. 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'
  7596. else
  7597. $as_echo "$as_me: failed program was:" >&5
  7598. sed 's/^/| /' conftest.$ac_ext >&5
  7599. fi
  7600. rm -rf conftest.dSYM
  7601. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7602. conftest$ac_exeext conftest.$ac_ext
  7603. LDFLAGS="$save_LDFLAGS"
  7604. else
  7605. 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'
  7606. 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'
  7607. fi
  7608. archive_cmds_need_lc='no'
  7609. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7610. hardcode_libdir_separator=:
  7611. inherit_rpath=yes
  7612. link_all_deplibs=yes
  7613. ;;
  7614. netbsd*)
  7615. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7616. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7617. else
  7618. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7619. fi
  7620. hardcode_libdir_flag_spec='-R$libdir'
  7621. hardcode_direct=yes
  7622. hardcode_shlibpath_var=no
  7623. ;;
  7624. newsos6)
  7625. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7626. hardcode_direct=yes
  7627. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7628. hardcode_libdir_separator=:
  7629. hardcode_shlibpath_var=no
  7630. ;;
  7631. *nto* | *qnx*)
  7632. ;;
  7633. openbsd*)
  7634. if test -f /usr/libexec/ld.so; then
  7635. hardcode_direct=yes
  7636. hardcode_shlibpath_var=no
  7637. hardcode_direct_absolute=yes
  7638. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7639. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7640. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7641. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7642. export_dynamic_flag_spec='${wl}-E'
  7643. else
  7644. case $host_os in
  7645. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7646. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7647. hardcode_libdir_flag_spec='-R$libdir'
  7648. ;;
  7649. *)
  7650. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7651. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7652. ;;
  7653. esac
  7654. fi
  7655. else
  7656. ld_shlibs=no
  7657. fi
  7658. ;;
  7659. os2*)
  7660. hardcode_libdir_flag_spec='-L$libdir'
  7661. hardcode_minus_L=yes
  7662. allow_undefined_flag=unsupported
  7663. 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'
  7664. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7665. ;;
  7666. osf3*)
  7667. if test "$GCC" = yes; then
  7668. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7669. 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'
  7670. else
  7671. allow_undefined_flag=' -expect_unresolved \*'
  7672. 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'
  7673. fi
  7674. archive_cmds_need_lc='no'
  7675. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7676. hardcode_libdir_separator=:
  7677. ;;
  7678. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7679. if test "$GCC" = yes; then
  7680. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7681. 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'
  7682. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7683. else
  7684. allow_undefined_flag=' -expect_unresolved \*'
  7685. 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'
  7686. 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~
  7687. $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'
  7688. # Both c and cxx compiler support -rpath directly
  7689. hardcode_libdir_flag_spec='-rpath $libdir'
  7690. fi
  7691. archive_cmds_need_lc='no'
  7692. hardcode_libdir_separator=:
  7693. ;;
  7694. solaris*)
  7695. no_undefined_flag=' -z defs'
  7696. if test "$GCC" = yes; then
  7697. wlarc='${wl}'
  7698. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7699. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7700. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7701. else
  7702. case `$CC -V 2>&1` in
  7703. *"Compilers 5.0"*)
  7704. wlarc=''
  7705. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7706. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7707. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7708. ;;
  7709. *)
  7710. wlarc='${wl}'
  7711. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7712. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7713. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7714. ;;
  7715. esac
  7716. fi
  7717. hardcode_libdir_flag_spec='-R$libdir'
  7718. hardcode_shlibpath_var=no
  7719. case $host_os in
  7720. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7721. *)
  7722. # The compiler driver will combine and reorder linker options,
  7723. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7724. # but is careful enough not to reorder.
  7725. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7726. if test "$GCC" = yes; then
  7727. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7728. else
  7729. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7730. fi
  7731. ;;
  7732. esac
  7733. link_all_deplibs=yes
  7734. ;;
  7735. sunos4*)
  7736. if test "x$host_vendor" = xsequent; then
  7737. # Use $CC to link under sequent, because it throws in some extra .o
  7738. # files that make .init and .fini sections work.
  7739. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7740. else
  7741. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7742. fi
  7743. hardcode_libdir_flag_spec='-L$libdir'
  7744. hardcode_direct=yes
  7745. hardcode_minus_L=yes
  7746. hardcode_shlibpath_var=no
  7747. ;;
  7748. sysv4)
  7749. case $host_vendor in
  7750. sni)
  7751. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7752. hardcode_direct=yes # is this really true???
  7753. ;;
  7754. siemens)
  7755. ## LD is ld it makes a PLAMLIB
  7756. ## CC just makes a GrossModule.
  7757. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7758. reload_cmds='$CC -r -o $output$reload_objs'
  7759. hardcode_direct=no
  7760. ;;
  7761. motorola)
  7762. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7763. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7764. ;;
  7765. esac
  7766. runpath_var='LD_RUN_PATH'
  7767. hardcode_shlibpath_var=no
  7768. ;;
  7769. sysv4.3*)
  7770. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7771. hardcode_shlibpath_var=no
  7772. export_dynamic_flag_spec='-Bexport'
  7773. ;;
  7774. sysv4*MP*)
  7775. if test -d /usr/nec; then
  7776. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7777. hardcode_shlibpath_var=no
  7778. runpath_var=LD_RUN_PATH
  7779. hardcode_runpath_var=yes
  7780. ld_shlibs=yes
  7781. fi
  7782. ;;
  7783. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7784. no_undefined_flag='${wl}-z,text'
  7785. archive_cmds_need_lc=no
  7786. hardcode_shlibpath_var=no
  7787. runpath_var='LD_RUN_PATH'
  7788. if test "$GCC" = yes; then
  7789. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7790. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7791. else
  7792. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7793. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7794. fi
  7795. ;;
  7796. sysv5* | sco3.2v5* | sco5v6*)
  7797. # Note: We can NOT use -z defs as we might desire, because we do not
  7798. # link with -lc, and that would cause any symbols used from libc to
  7799. # always be unresolved, which means just about no library would
  7800. # ever link correctly. If we're not using GNU ld we use -z text
  7801. # though, which does catch some bad symbols but isn't as heavy-handed
  7802. # as -z defs.
  7803. no_undefined_flag='${wl}-z,text'
  7804. allow_undefined_flag='${wl}-z,nodefs'
  7805. archive_cmds_need_lc=no
  7806. hardcode_shlibpath_var=no
  7807. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7808. hardcode_libdir_separator=':'
  7809. link_all_deplibs=yes
  7810. export_dynamic_flag_spec='${wl}-Bexport'
  7811. runpath_var='LD_RUN_PATH'
  7812. if test "$GCC" = yes; then
  7813. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7814. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7815. else
  7816. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7817. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7818. fi
  7819. ;;
  7820. uts4*)
  7821. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7822. hardcode_libdir_flag_spec='-L$libdir'
  7823. hardcode_shlibpath_var=no
  7824. ;;
  7825. *)
  7826. ld_shlibs=no
  7827. ;;
  7828. esac
  7829. if test x$host_vendor = xsni; then
  7830. case $host in
  7831. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7832. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7833. ;;
  7834. esac
  7835. fi
  7836. fi
  7837. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7838. $as_echo "$ld_shlibs" >&6; }
  7839. test "$ld_shlibs" = no && can_build_shared=no
  7840. with_gnu_ld=$with_gnu_ld
  7841. #
  7842. # Do we need to explicitly link libc?
  7843. #
  7844. case "x$archive_cmds_need_lc" in
  7845. x|xyes)
  7846. # Assume -lc should be added
  7847. archive_cmds_need_lc=yes
  7848. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7849. case $archive_cmds in
  7850. *'~'*)
  7851. # FIXME: we may have to deal with multi-command sequences.
  7852. ;;
  7853. '$CC '*)
  7854. # Test whether the compiler implicitly links with -lc since on some
  7855. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7856. # to ld, don't add -lc before -lgcc.
  7857. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7858. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7859. $RM conftest*
  7860. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7861. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7862. (eval $ac_compile) 2>&5
  7863. ac_status=$?
  7864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7865. (exit $ac_status); } 2>conftest.err; then
  7866. soname=conftest
  7867. lib=conftest
  7868. libobjs=conftest.$ac_objext
  7869. deplibs=
  7870. wl=$lt_prog_compiler_wl
  7871. pic_flag=$lt_prog_compiler_pic
  7872. compiler_flags=-v
  7873. linker_flags=-v
  7874. verstring=
  7875. output_objdir=.
  7876. libname=conftest
  7877. lt_save_allow_undefined_flag=$allow_undefined_flag
  7878. allow_undefined_flag=
  7879. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7880. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7881. ac_status=$?
  7882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7883. (exit $ac_status); }
  7884. then
  7885. archive_cmds_need_lc=no
  7886. else
  7887. archive_cmds_need_lc=yes
  7888. fi
  7889. allow_undefined_flag=$lt_save_allow_undefined_flag
  7890. else
  7891. cat conftest.err 1>&5
  7892. fi
  7893. $RM conftest*
  7894. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7895. $as_echo "$archive_cmds_need_lc" >&6; }
  7896. ;;
  7897. esac
  7898. fi
  7899. ;;
  7900. esac
  7901. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7902. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7903. if test "$GCC" = yes; then
  7904. case $host_os in
  7905. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7906. *) lt_awk_arg="/^libraries:/" ;;
  7907. esac
  7908. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7909. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7910. # if the path contains ";" then we assume it to be the separator
  7911. # otherwise default to the standard path separator (i.e. ":") - it is
  7912. # assumed that no part of a normal pathname contains ";" but that should
  7913. # okay in the real world where ";" in dirpaths is itself problematic.
  7914. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7915. else
  7916. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7917. fi
  7918. # Ok, now we have the path, separated by spaces, we can step through it
  7919. # and add multilib dir if necessary.
  7920. lt_tmp_lt_search_path_spec=
  7921. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7922. for lt_sys_path in $lt_search_path_spec; do
  7923. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7924. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7925. else
  7926. test -d "$lt_sys_path" && \
  7927. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7928. fi
  7929. done
  7930. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7931. BEGIN {RS=" "; FS="/|\n";} {
  7932. lt_foo="";
  7933. lt_count=0;
  7934. for (lt_i = NF; lt_i > 0; lt_i--) {
  7935. if ($lt_i != "" && $lt_i != ".") {
  7936. if ($lt_i == "..") {
  7937. lt_count++;
  7938. } else {
  7939. if (lt_count == 0) {
  7940. lt_foo="/" $lt_i lt_foo;
  7941. } else {
  7942. lt_count--;
  7943. }
  7944. }
  7945. }
  7946. }
  7947. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7948. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7949. }'`
  7950. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7951. else
  7952. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7953. fi
  7954. library_names_spec=
  7955. libname_spec='lib$name'
  7956. soname_spec=
  7957. shrext_cmds=".so"
  7958. postinstall_cmds=
  7959. postuninstall_cmds=
  7960. finish_cmds=
  7961. finish_eval=
  7962. shlibpath_var=
  7963. shlibpath_overrides_runpath=unknown
  7964. version_type=none
  7965. dynamic_linker="$host_os ld.so"
  7966. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7967. need_lib_prefix=unknown
  7968. hardcode_into_libs=no
  7969. # when you set need_version to no, make sure it does not cause -set_version
  7970. # flags to be left without arguments
  7971. need_version=unknown
  7972. case $host_os in
  7973. aix3*)
  7974. version_type=linux
  7975. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7976. shlibpath_var=LIBPATH
  7977. # AIX 3 has no versioning support, so we append a major version to the name.
  7978. soname_spec='${libname}${release}${shared_ext}$major'
  7979. ;;
  7980. aix[4-9]*)
  7981. version_type=linux
  7982. need_lib_prefix=no
  7983. need_version=no
  7984. hardcode_into_libs=yes
  7985. if test "$host_cpu" = ia64; then
  7986. # AIX 5 supports IA64
  7987. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7988. shlibpath_var=LD_LIBRARY_PATH
  7989. else
  7990. # With GCC up to 2.95.x, collect2 would create an import file
  7991. # for dependence libraries. The import file would start with
  7992. # the line `#! .'. This would cause the generated library to
  7993. # depend on `.', always an invalid library. This was fixed in
  7994. # development snapshots of GCC prior to 3.0.
  7995. case $host_os in
  7996. aix4 | aix4.[01] | aix4.[01].*)
  7997. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7998. echo ' yes '
  7999. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8000. :
  8001. else
  8002. can_build_shared=no
  8003. fi
  8004. ;;
  8005. esac
  8006. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8007. # soname into executable. Probably we can add versioning support to
  8008. # collect2, so additional links can be useful in future.
  8009. if test "$aix_use_runtimelinking" = yes; then
  8010. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8011. # instead of lib<name>.a to let people know that these are not
  8012. # typical AIX shared libraries.
  8013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8014. else
  8015. # We preserve .a as extension for shared libraries through AIX4.2
  8016. # and later when we are not doing run time linking.
  8017. library_names_spec='${libname}${release}.a $libname.a'
  8018. soname_spec='${libname}${release}${shared_ext}$major'
  8019. fi
  8020. shlibpath_var=LIBPATH
  8021. fi
  8022. ;;
  8023. amigaos*)
  8024. case $host_cpu in
  8025. powerpc)
  8026. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8027. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8029. ;;
  8030. m68k)
  8031. library_names_spec='$libname.ixlibrary $libname.a'
  8032. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8033. 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'
  8034. ;;
  8035. esac
  8036. ;;
  8037. beos*)
  8038. library_names_spec='${libname}${shared_ext}'
  8039. dynamic_linker="$host_os ld.so"
  8040. shlibpath_var=LIBRARY_PATH
  8041. ;;
  8042. bsdi[45]*)
  8043. version_type=linux
  8044. need_version=no
  8045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8046. soname_spec='${libname}${release}${shared_ext}$major'
  8047. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8048. shlibpath_var=LD_LIBRARY_PATH
  8049. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8050. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8051. # the default ld.so.conf also contains /usr/contrib/lib and
  8052. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8053. # libtool to hard-code these into programs
  8054. ;;
  8055. cygwin* | mingw* | pw32* | cegcc*)
  8056. version_type=windows
  8057. shrext_cmds=".dll"
  8058. need_version=no
  8059. need_lib_prefix=no
  8060. case $GCC,$host_os in
  8061. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8062. library_names_spec='$libname.dll.a'
  8063. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8064. postinstall_cmds='base_file=`basename \${file}`~
  8065. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8066. dldir=$destdir/`dirname \$dlpath`~
  8067. test -d \$dldir || mkdir -p \$dldir~
  8068. $install_prog $dir/$dlname \$dldir/$dlname~
  8069. chmod a+x \$dldir/$dlname~
  8070. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8071. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8072. fi'
  8073. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8074. dlpath=$dir/\$dldll~
  8075. $RM \$dlpath'
  8076. shlibpath_overrides_runpath=yes
  8077. case $host_os in
  8078. cygwin*)
  8079. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8080. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8081. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8082. ;;
  8083. mingw* | cegcc*)
  8084. # MinGW DLLs use traditional 'lib' prefix
  8085. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8086. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8087. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8088. # It is most probably a Windows format PATH printed by
  8089. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8090. # path with ; separators, and with drive letters. We can handle the
  8091. # drive letters (cygwin fileutils understands them), so leave them,
  8092. # especially as we might pass files found there to a mingw objdump,
  8093. # which wouldn't understand a cygwinified path. Ahh.
  8094. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8095. else
  8096. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8097. fi
  8098. ;;
  8099. pw32*)
  8100. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8101. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8102. ;;
  8103. esac
  8104. ;;
  8105. *)
  8106. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8107. ;;
  8108. esac
  8109. dynamic_linker='Win32 ld.exe'
  8110. # FIXME: first we should search . and the directory the executable is in
  8111. shlibpath_var=PATH
  8112. ;;
  8113. darwin* | rhapsody*)
  8114. dynamic_linker="$host_os dyld"
  8115. version_type=darwin
  8116. need_lib_prefix=no
  8117. need_version=no
  8118. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8119. soname_spec='${libname}${release}${major}$shared_ext'
  8120. shlibpath_overrides_runpath=yes
  8121. shlibpath_var=DYLD_LIBRARY_PATH
  8122. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8123. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8124. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8125. ;;
  8126. dgux*)
  8127. version_type=linux
  8128. need_lib_prefix=no
  8129. need_version=no
  8130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8131. soname_spec='${libname}${release}${shared_ext}$major'
  8132. shlibpath_var=LD_LIBRARY_PATH
  8133. ;;
  8134. freebsd1*)
  8135. dynamic_linker=no
  8136. ;;
  8137. freebsd* | dragonfly*)
  8138. # DragonFly does not have aout. When/if they implement a new
  8139. # versioning mechanism, adjust this.
  8140. if test -x /usr/bin/objformat; then
  8141. objformat=`/usr/bin/objformat`
  8142. else
  8143. case $host_os in
  8144. freebsd[123]*) objformat=aout ;;
  8145. *) objformat=elf ;;
  8146. esac
  8147. fi
  8148. # Handle Gentoo/FreeBSD as it was Linux
  8149. case $host_vendor in
  8150. gentoo)
  8151. version_type=linux ;;
  8152. *)
  8153. version_type=freebsd-$objformat ;;
  8154. esac
  8155. case $version_type in
  8156. freebsd-elf*)
  8157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8158. need_version=no
  8159. need_lib_prefix=no
  8160. ;;
  8161. freebsd-*)
  8162. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8163. need_version=yes
  8164. ;;
  8165. linux)
  8166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8167. soname_spec='${libname}${release}${shared_ext}$major'
  8168. need_lib_prefix=no
  8169. need_version=no
  8170. ;;
  8171. esac
  8172. shlibpath_var=LD_LIBRARY_PATH
  8173. case $host_os in
  8174. freebsd2*)
  8175. shlibpath_overrides_runpath=yes
  8176. ;;
  8177. freebsd3.[01]* | freebsdelf3.[01]*)
  8178. shlibpath_overrides_runpath=yes
  8179. hardcode_into_libs=yes
  8180. ;;
  8181. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8182. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8183. shlibpath_overrides_runpath=no
  8184. hardcode_into_libs=yes
  8185. ;;
  8186. *) # from 4.6 on, and DragonFly
  8187. shlibpath_overrides_runpath=yes
  8188. hardcode_into_libs=yes
  8189. ;;
  8190. esac
  8191. ;;
  8192. gnu*)
  8193. version_type=linux
  8194. need_lib_prefix=no
  8195. need_version=no
  8196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8197. soname_spec='${libname}${release}${shared_ext}$major'
  8198. shlibpath_var=LD_LIBRARY_PATH
  8199. hardcode_into_libs=yes
  8200. ;;
  8201. hpux9* | hpux10* | hpux11*)
  8202. # Give a soname corresponding to the major version so that dld.sl refuses to
  8203. # link against other versions.
  8204. version_type=sunos
  8205. need_lib_prefix=no
  8206. need_version=no
  8207. case $host_cpu in
  8208. ia64*)
  8209. shrext_cmds='.so'
  8210. hardcode_into_libs=yes
  8211. dynamic_linker="$host_os dld.so"
  8212. shlibpath_var=LD_LIBRARY_PATH
  8213. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8215. soname_spec='${libname}${release}${shared_ext}$major'
  8216. if test "X$HPUX_IA64_MODE" = X32; then
  8217. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8218. else
  8219. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8220. fi
  8221. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8222. ;;
  8223. hppa*64*)
  8224. shrext_cmds='.sl'
  8225. hardcode_into_libs=yes
  8226. dynamic_linker="$host_os dld.sl"
  8227. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8228. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8230. soname_spec='${libname}${release}${shared_ext}$major'
  8231. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8232. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8233. ;;
  8234. *)
  8235. shrext_cmds='.sl'
  8236. dynamic_linker="$host_os dld.sl"
  8237. shlibpath_var=SHLIB_PATH
  8238. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8240. soname_spec='${libname}${release}${shared_ext}$major'
  8241. ;;
  8242. esac
  8243. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8244. postinstall_cmds='chmod 555 $lib'
  8245. ;;
  8246. interix[3-9]*)
  8247. version_type=linux
  8248. need_lib_prefix=no
  8249. need_version=no
  8250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8251. soname_spec='${libname}${release}${shared_ext}$major'
  8252. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8253. shlibpath_var=LD_LIBRARY_PATH
  8254. shlibpath_overrides_runpath=no
  8255. hardcode_into_libs=yes
  8256. ;;
  8257. irix5* | irix6* | nonstopux*)
  8258. case $host_os in
  8259. nonstopux*) version_type=nonstopux ;;
  8260. *)
  8261. if test "$lt_cv_prog_gnu_ld" = yes; then
  8262. version_type=linux
  8263. else
  8264. version_type=irix
  8265. fi ;;
  8266. esac
  8267. need_lib_prefix=no
  8268. need_version=no
  8269. soname_spec='${libname}${release}${shared_ext}$major'
  8270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8271. case $host_os in
  8272. irix5* | nonstopux*)
  8273. libsuff= shlibsuff=
  8274. ;;
  8275. *)
  8276. case $LD in # libtool.m4 will add one of these switches to LD
  8277. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8278. libsuff= shlibsuff= libmagic=32-bit;;
  8279. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8280. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8281. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8282. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8283. *) libsuff= shlibsuff= libmagic=never-match;;
  8284. esac
  8285. ;;
  8286. esac
  8287. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8288. shlibpath_overrides_runpath=no
  8289. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8290. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8291. hardcode_into_libs=yes
  8292. ;;
  8293. # No shared lib support for Linux oldld, aout, or coff.
  8294. linux*oldld* | linux*aout* | linux*coff*)
  8295. dynamic_linker=no
  8296. ;;
  8297. # This must be Linux ELF.
  8298. linux* | k*bsd*-gnu)
  8299. version_type=linux
  8300. need_lib_prefix=no
  8301. need_version=no
  8302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8303. soname_spec='${libname}${release}${shared_ext}$major'
  8304. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8305. shlibpath_var=LD_LIBRARY_PATH
  8306. shlibpath_overrides_runpath=no
  8307. # Some binutils ld are patched to set DT_RUNPATH
  8308. save_LDFLAGS=$LDFLAGS
  8309. save_libdir=$libdir
  8310. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8311. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8312. cat >conftest.$ac_ext <<_ACEOF
  8313. /* confdefs.h. */
  8314. _ACEOF
  8315. cat confdefs.h >>conftest.$ac_ext
  8316. cat >>conftest.$ac_ext <<_ACEOF
  8317. /* end confdefs.h. */
  8318. int
  8319. main ()
  8320. {
  8321. ;
  8322. return 0;
  8323. }
  8324. _ACEOF
  8325. rm -f conftest.$ac_objext conftest$ac_exeext
  8326. if { (ac_try="$ac_link"
  8327. case "(($ac_try" in
  8328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8329. *) ac_try_echo=$ac_try;;
  8330. esac
  8331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8332. $as_echo "$ac_try_echo") >&5
  8333. (eval "$ac_link") 2>conftest.er1
  8334. ac_status=$?
  8335. grep -v '^ *+' conftest.er1 >conftest.err
  8336. rm -f conftest.er1
  8337. cat conftest.err >&5
  8338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8339. (exit $ac_status); } && {
  8340. test -z "$ac_c_werror_flag" ||
  8341. test ! -s conftest.err
  8342. } && test -s conftest$ac_exeext && {
  8343. test "$cross_compiling" = yes ||
  8344. $as_test_x conftest$ac_exeext
  8345. }; then
  8346. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8347. shlibpath_overrides_runpath=yes
  8348. fi
  8349. else
  8350. $as_echo "$as_me: failed program was:" >&5
  8351. sed 's/^/| /' conftest.$ac_ext >&5
  8352. fi
  8353. rm -rf conftest.dSYM
  8354. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8355. conftest$ac_exeext conftest.$ac_ext
  8356. LDFLAGS=$save_LDFLAGS
  8357. libdir=$save_libdir
  8358. # This implies no fast_install, which is unacceptable.
  8359. # Some rework will be needed to allow for fast_install
  8360. # before this can be enabled.
  8361. hardcode_into_libs=yes
  8362. # Append ld.so.conf contents to the search path
  8363. if test -f /etc/ld.so.conf; then
  8364. 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' ' '`
  8365. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8366. fi
  8367. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8368. # powerpc, because MkLinux only supported shared libraries with the
  8369. # GNU dynamic linker. Since this was broken with cross compilers,
  8370. # most powerpc-linux boxes support dynamic linking these days and
  8371. # people can always --disable-shared, the test was removed, and we
  8372. # assume the GNU/Linux dynamic linker is in use.
  8373. dynamic_linker='GNU/Linux ld.so'
  8374. ;;
  8375. netbsd*)
  8376. version_type=sunos
  8377. need_lib_prefix=no
  8378. need_version=no
  8379. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8381. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8382. dynamic_linker='NetBSD (a.out) ld.so'
  8383. else
  8384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8385. soname_spec='${libname}${release}${shared_ext}$major'
  8386. dynamic_linker='NetBSD ld.elf_so'
  8387. fi
  8388. shlibpath_var=LD_LIBRARY_PATH
  8389. shlibpath_overrides_runpath=yes
  8390. hardcode_into_libs=yes
  8391. ;;
  8392. newsos6)
  8393. version_type=linux
  8394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8395. shlibpath_var=LD_LIBRARY_PATH
  8396. shlibpath_overrides_runpath=yes
  8397. ;;
  8398. *nto* | *qnx*)
  8399. version_type=qnx
  8400. need_lib_prefix=no
  8401. need_version=no
  8402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8403. soname_spec='${libname}${release}${shared_ext}$major'
  8404. shlibpath_var=LD_LIBRARY_PATH
  8405. shlibpath_overrides_runpath=no
  8406. hardcode_into_libs=yes
  8407. dynamic_linker='ldqnx.so'
  8408. ;;
  8409. openbsd*)
  8410. version_type=sunos
  8411. sys_lib_dlsearch_path_spec="/usr/lib"
  8412. need_lib_prefix=no
  8413. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8414. case $host_os in
  8415. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8416. *) need_version=no ;;
  8417. esac
  8418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8419. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8420. shlibpath_var=LD_LIBRARY_PATH
  8421. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8422. case $host_os in
  8423. openbsd2.[89] | openbsd2.[89].*)
  8424. shlibpath_overrides_runpath=no
  8425. ;;
  8426. *)
  8427. shlibpath_overrides_runpath=yes
  8428. ;;
  8429. esac
  8430. else
  8431. shlibpath_overrides_runpath=yes
  8432. fi
  8433. ;;
  8434. os2*)
  8435. libname_spec='$name'
  8436. shrext_cmds=".dll"
  8437. need_lib_prefix=no
  8438. library_names_spec='$libname${shared_ext} $libname.a'
  8439. dynamic_linker='OS/2 ld.exe'
  8440. shlibpath_var=LIBPATH
  8441. ;;
  8442. osf3* | osf4* | osf5*)
  8443. version_type=osf
  8444. need_lib_prefix=no
  8445. need_version=no
  8446. soname_spec='${libname}${release}${shared_ext}$major'
  8447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8448. shlibpath_var=LD_LIBRARY_PATH
  8449. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8450. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8451. ;;
  8452. rdos*)
  8453. dynamic_linker=no
  8454. ;;
  8455. solaris*)
  8456. version_type=linux
  8457. need_lib_prefix=no
  8458. need_version=no
  8459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8460. soname_spec='${libname}${release}${shared_ext}$major'
  8461. shlibpath_var=LD_LIBRARY_PATH
  8462. shlibpath_overrides_runpath=yes
  8463. hardcode_into_libs=yes
  8464. # ldd complains unless libraries are executable
  8465. postinstall_cmds='chmod +x $lib'
  8466. ;;
  8467. sunos4*)
  8468. version_type=sunos
  8469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8470. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8471. shlibpath_var=LD_LIBRARY_PATH
  8472. shlibpath_overrides_runpath=yes
  8473. if test "$with_gnu_ld" = yes; then
  8474. need_lib_prefix=no
  8475. fi
  8476. need_version=yes
  8477. ;;
  8478. sysv4 | sysv4.3*)
  8479. version_type=linux
  8480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8481. soname_spec='${libname}${release}${shared_ext}$major'
  8482. shlibpath_var=LD_LIBRARY_PATH
  8483. case $host_vendor in
  8484. sni)
  8485. shlibpath_overrides_runpath=no
  8486. need_lib_prefix=no
  8487. runpath_var=LD_RUN_PATH
  8488. ;;
  8489. siemens)
  8490. need_lib_prefix=no
  8491. ;;
  8492. motorola)
  8493. need_lib_prefix=no
  8494. need_version=no
  8495. shlibpath_overrides_runpath=no
  8496. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8497. ;;
  8498. esac
  8499. ;;
  8500. sysv4*MP*)
  8501. if test -d /usr/nec ;then
  8502. version_type=linux
  8503. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8504. soname_spec='$libname${shared_ext}.$major'
  8505. shlibpath_var=LD_LIBRARY_PATH
  8506. fi
  8507. ;;
  8508. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8509. version_type=freebsd-elf
  8510. need_lib_prefix=no
  8511. need_version=no
  8512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8513. soname_spec='${libname}${release}${shared_ext}$major'
  8514. shlibpath_var=LD_LIBRARY_PATH
  8515. shlibpath_overrides_runpath=yes
  8516. hardcode_into_libs=yes
  8517. if test "$with_gnu_ld" = yes; then
  8518. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8519. else
  8520. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8521. case $host_os in
  8522. sco3.2v5*)
  8523. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8524. ;;
  8525. esac
  8526. fi
  8527. sys_lib_dlsearch_path_spec='/usr/lib'
  8528. ;;
  8529. tpf*)
  8530. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8531. version_type=linux
  8532. need_lib_prefix=no
  8533. need_version=no
  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=no
  8537. hardcode_into_libs=yes
  8538. ;;
  8539. uts4*)
  8540. version_type=linux
  8541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8542. soname_spec='${libname}${release}${shared_ext}$major'
  8543. shlibpath_var=LD_LIBRARY_PATH
  8544. ;;
  8545. *)
  8546. dynamic_linker=no
  8547. ;;
  8548. esac
  8549. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8550. $as_echo "$dynamic_linker" >&6; }
  8551. test "$dynamic_linker" = no && can_build_shared=no
  8552. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8553. if test "$GCC" = yes; then
  8554. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8555. fi
  8556. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8557. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8558. fi
  8559. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8560. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8561. fi
  8562. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8563. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8564. hardcode_action=
  8565. if test -n "$hardcode_libdir_flag_spec" ||
  8566. test -n "$runpath_var" ||
  8567. test "X$hardcode_automatic" = "Xyes" ; then
  8568. # We can hardcode non-existent directories.
  8569. if test "$hardcode_direct" != no &&
  8570. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8571. # have to relink, otherwise we might link with an installed library
  8572. # when we should be linking with a yet-to-be-installed one
  8573. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8574. test "$hardcode_minus_L" != no; then
  8575. # Linking always hardcodes the temporary library directory.
  8576. hardcode_action=relink
  8577. else
  8578. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8579. hardcode_action=immediate
  8580. fi
  8581. else
  8582. # We cannot hardcode anything, or else we can only hardcode existing
  8583. # directories.
  8584. hardcode_action=unsupported
  8585. fi
  8586. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8587. $as_echo "$hardcode_action" >&6; }
  8588. if test "$hardcode_action" = relink ||
  8589. test "$inherit_rpath" = yes; then
  8590. # Fast installation is not supported
  8591. enable_fast_install=no
  8592. elif test "$shlibpath_overrides_runpath" = yes ||
  8593. test "$enable_shared" = no; then
  8594. # Fast installation is not necessary
  8595. enable_fast_install=needless
  8596. fi
  8597. if test "x$enable_dlopen" != xyes; then
  8598. enable_dlopen=unknown
  8599. enable_dlopen_self=unknown
  8600. enable_dlopen_self_static=unknown
  8601. else
  8602. lt_cv_dlopen=no
  8603. lt_cv_dlopen_libs=
  8604. case $host_os in
  8605. beos*)
  8606. lt_cv_dlopen="load_add_on"
  8607. lt_cv_dlopen_libs=
  8608. lt_cv_dlopen_self=yes
  8609. ;;
  8610. mingw* | pw32* | cegcc*)
  8611. lt_cv_dlopen="LoadLibrary"
  8612. lt_cv_dlopen_libs=
  8613. ;;
  8614. cygwin*)
  8615. lt_cv_dlopen="dlopen"
  8616. lt_cv_dlopen_libs=
  8617. ;;
  8618. darwin*)
  8619. # if libdl is installed we need to link against it
  8620. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8621. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8622. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8623. $as_echo_n "(cached) " >&6
  8624. else
  8625. ac_check_lib_save_LIBS=$LIBS
  8626. LIBS="-ldl $LIBS"
  8627. cat >conftest.$ac_ext <<_ACEOF
  8628. /* confdefs.h. */
  8629. _ACEOF
  8630. cat confdefs.h >>conftest.$ac_ext
  8631. cat >>conftest.$ac_ext <<_ACEOF
  8632. /* end confdefs.h. */
  8633. /* Override any GCC internal prototype to avoid an error.
  8634. Use char because int might match the return type of a GCC
  8635. builtin and then its argument prototype would still apply. */
  8636. #ifdef __cplusplus
  8637. extern "C"
  8638. #endif
  8639. char dlopen ();
  8640. int
  8641. main ()
  8642. {
  8643. return dlopen ();
  8644. ;
  8645. return 0;
  8646. }
  8647. _ACEOF
  8648. rm -f conftest.$ac_objext conftest$ac_exeext
  8649. if { (ac_try="$ac_link"
  8650. case "(($ac_try" in
  8651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8652. *) ac_try_echo=$ac_try;;
  8653. esac
  8654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8655. $as_echo "$ac_try_echo") >&5
  8656. (eval "$ac_link") 2>conftest.er1
  8657. ac_status=$?
  8658. grep -v '^ *+' conftest.er1 >conftest.err
  8659. rm -f conftest.er1
  8660. cat conftest.err >&5
  8661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8662. (exit $ac_status); } && {
  8663. test -z "$ac_c_werror_flag" ||
  8664. test ! -s conftest.err
  8665. } && test -s conftest$ac_exeext && {
  8666. test "$cross_compiling" = yes ||
  8667. $as_test_x conftest$ac_exeext
  8668. }; then
  8669. ac_cv_lib_dl_dlopen=yes
  8670. else
  8671. $as_echo "$as_me: failed program was:" >&5
  8672. sed 's/^/| /' conftest.$ac_ext >&5
  8673. ac_cv_lib_dl_dlopen=no
  8674. fi
  8675. rm -rf conftest.dSYM
  8676. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8677. conftest$ac_exeext conftest.$ac_ext
  8678. LIBS=$ac_check_lib_save_LIBS
  8679. fi
  8680. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8681. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8682. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8683. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8684. else
  8685. lt_cv_dlopen="dyld"
  8686. lt_cv_dlopen_libs=
  8687. lt_cv_dlopen_self=yes
  8688. fi
  8689. ;;
  8690. *)
  8691. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  8692. $as_echo_n "checking for shl_load... " >&6; }
  8693. if test "${ac_cv_func_shl_load+set}" = set; then
  8694. $as_echo_n "(cached) " >&6
  8695. else
  8696. cat >conftest.$ac_ext <<_ACEOF
  8697. /* confdefs.h. */
  8698. _ACEOF
  8699. cat confdefs.h >>conftest.$ac_ext
  8700. cat >>conftest.$ac_ext <<_ACEOF
  8701. /* end confdefs.h. */
  8702. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8703. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8704. #define shl_load innocuous_shl_load
  8705. /* System header to define __stub macros and hopefully few prototypes,
  8706. which can conflict with char shl_load (); below.
  8707. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8708. <limits.h> exists even on freestanding compilers. */
  8709. #ifdef __STDC__
  8710. # include <limits.h>
  8711. #else
  8712. # include <assert.h>
  8713. #endif
  8714. #undef shl_load
  8715. /* Override any GCC internal prototype to avoid an error.
  8716. Use char because int might match the return type of a GCC
  8717. builtin and then its argument prototype would still apply. */
  8718. #ifdef __cplusplus
  8719. extern "C"
  8720. #endif
  8721. char shl_load ();
  8722. /* The GNU C library defines this for functions which it implements
  8723. to always fail with ENOSYS. Some functions are actually named
  8724. something starting with __ and the normal name is an alias. */
  8725. #if defined __stub_shl_load || defined __stub___shl_load
  8726. choke me
  8727. #endif
  8728. int
  8729. main ()
  8730. {
  8731. return shl_load ();
  8732. ;
  8733. return 0;
  8734. }
  8735. _ACEOF
  8736. rm -f conftest.$ac_objext conftest$ac_exeext
  8737. if { (ac_try="$ac_link"
  8738. case "(($ac_try" in
  8739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8740. *) ac_try_echo=$ac_try;;
  8741. esac
  8742. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8743. $as_echo "$ac_try_echo") >&5
  8744. (eval "$ac_link") 2>conftest.er1
  8745. ac_status=$?
  8746. grep -v '^ *+' conftest.er1 >conftest.err
  8747. rm -f conftest.er1
  8748. cat conftest.err >&5
  8749. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8750. (exit $ac_status); } && {
  8751. test -z "$ac_c_werror_flag" ||
  8752. test ! -s conftest.err
  8753. } && test -s conftest$ac_exeext && {
  8754. test "$cross_compiling" = yes ||
  8755. $as_test_x conftest$ac_exeext
  8756. }; then
  8757. ac_cv_func_shl_load=yes
  8758. else
  8759. $as_echo "$as_me: failed program was:" >&5
  8760. sed 's/^/| /' conftest.$ac_ext >&5
  8761. ac_cv_func_shl_load=no
  8762. fi
  8763. rm -rf conftest.dSYM
  8764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8765. conftest$ac_exeext conftest.$ac_ext
  8766. fi
  8767. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8768. $as_echo "$ac_cv_func_shl_load" >&6; }
  8769. if test "x$ac_cv_func_shl_load" = x""yes; then
  8770. lt_cv_dlopen="shl_load"
  8771. else
  8772. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8773. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8774. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8775. $as_echo_n "(cached) " >&6
  8776. else
  8777. ac_check_lib_save_LIBS=$LIBS
  8778. LIBS="-ldld $LIBS"
  8779. cat >conftest.$ac_ext <<_ACEOF
  8780. /* confdefs.h. */
  8781. _ACEOF
  8782. cat confdefs.h >>conftest.$ac_ext
  8783. cat >>conftest.$ac_ext <<_ACEOF
  8784. /* end confdefs.h. */
  8785. /* Override any GCC internal prototype to avoid an error.
  8786. Use char because int might match the return type of a GCC
  8787. builtin and then its argument prototype would still apply. */
  8788. #ifdef __cplusplus
  8789. extern "C"
  8790. #endif
  8791. char shl_load ();
  8792. int
  8793. main ()
  8794. {
  8795. return shl_load ();
  8796. ;
  8797. return 0;
  8798. }
  8799. _ACEOF
  8800. rm -f conftest.$ac_objext conftest$ac_exeext
  8801. if { (ac_try="$ac_link"
  8802. case "(($ac_try" in
  8803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8804. *) ac_try_echo=$ac_try;;
  8805. esac
  8806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8807. $as_echo "$ac_try_echo") >&5
  8808. (eval "$ac_link") 2>conftest.er1
  8809. ac_status=$?
  8810. grep -v '^ *+' conftest.er1 >conftest.err
  8811. rm -f conftest.er1
  8812. cat conftest.err >&5
  8813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8814. (exit $ac_status); } && {
  8815. test -z "$ac_c_werror_flag" ||
  8816. test ! -s conftest.err
  8817. } && test -s conftest$ac_exeext && {
  8818. test "$cross_compiling" = yes ||
  8819. $as_test_x conftest$ac_exeext
  8820. }; then
  8821. ac_cv_lib_dld_shl_load=yes
  8822. else
  8823. $as_echo "$as_me: failed program was:" >&5
  8824. sed 's/^/| /' conftest.$ac_ext >&5
  8825. ac_cv_lib_dld_shl_load=no
  8826. fi
  8827. rm -rf conftest.dSYM
  8828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8829. conftest$ac_exeext conftest.$ac_ext
  8830. LIBS=$ac_check_lib_save_LIBS
  8831. fi
  8832. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8833. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8834. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  8835. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8836. else
  8837. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  8838. $as_echo_n "checking for dlopen... " >&6; }
  8839. if test "${ac_cv_func_dlopen+set}" = set; then
  8840. $as_echo_n "(cached) " >&6
  8841. else
  8842. cat >conftest.$ac_ext <<_ACEOF
  8843. /* confdefs.h. */
  8844. _ACEOF
  8845. cat confdefs.h >>conftest.$ac_ext
  8846. cat >>conftest.$ac_ext <<_ACEOF
  8847. /* end confdefs.h. */
  8848. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8849. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8850. #define dlopen innocuous_dlopen
  8851. /* System header to define __stub macros and hopefully few prototypes,
  8852. which can conflict with char dlopen (); below.
  8853. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8854. <limits.h> exists even on freestanding compilers. */
  8855. #ifdef __STDC__
  8856. # include <limits.h>
  8857. #else
  8858. # include <assert.h>
  8859. #endif
  8860. #undef dlopen
  8861. /* Override any GCC internal prototype to avoid an error.
  8862. Use char because int might match the return type of a GCC
  8863. builtin and then its argument prototype would still apply. */
  8864. #ifdef __cplusplus
  8865. extern "C"
  8866. #endif
  8867. char dlopen ();
  8868. /* The GNU C library defines this for functions which it implements
  8869. to always fail with ENOSYS. Some functions are actually named
  8870. something starting with __ and the normal name is an alias. */
  8871. #if defined __stub_dlopen || defined __stub___dlopen
  8872. choke me
  8873. #endif
  8874. int
  8875. main ()
  8876. {
  8877. return dlopen ();
  8878. ;
  8879. return 0;
  8880. }
  8881. _ACEOF
  8882. rm -f conftest.$ac_objext conftest$ac_exeext
  8883. if { (ac_try="$ac_link"
  8884. case "(($ac_try" in
  8885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8886. *) ac_try_echo=$ac_try;;
  8887. esac
  8888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8889. $as_echo "$ac_try_echo") >&5
  8890. (eval "$ac_link") 2>conftest.er1
  8891. ac_status=$?
  8892. grep -v '^ *+' conftest.er1 >conftest.err
  8893. rm -f conftest.er1
  8894. cat conftest.err >&5
  8895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8896. (exit $ac_status); } && {
  8897. test -z "$ac_c_werror_flag" ||
  8898. test ! -s conftest.err
  8899. } && test -s conftest$ac_exeext && {
  8900. test "$cross_compiling" = yes ||
  8901. $as_test_x conftest$ac_exeext
  8902. }; then
  8903. ac_cv_func_dlopen=yes
  8904. else
  8905. $as_echo "$as_me: failed program was:" >&5
  8906. sed 's/^/| /' conftest.$ac_ext >&5
  8907. ac_cv_func_dlopen=no
  8908. fi
  8909. rm -rf conftest.dSYM
  8910. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8911. conftest$ac_exeext conftest.$ac_ext
  8912. fi
  8913. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8914. $as_echo "$ac_cv_func_dlopen" >&6; }
  8915. if test "x$ac_cv_func_dlopen" = x""yes; then
  8916. lt_cv_dlopen="dlopen"
  8917. else
  8918. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8919. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8920. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8921. $as_echo_n "(cached) " >&6
  8922. else
  8923. ac_check_lib_save_LIBS=$LIBS
  8924. LIBS="-ldl $LIBS"
  8925. cat >conftest.$ac_ext <<_ACEOF
  8926. /* confdefs.h. */
  8927. _ACEOF
  8928. cat confdefs.h >>conftest.$ac_ext
  8929. cat >>conftest.$ac_ext <<_ACEOF
  8930. /* end confdefs.h. */
  8931. /* Override any GCC internal prototype to avoid an error.
  8932. Use char because int might match the return type of a GCC
  8933. builtin and then its argument prototype would still apply. */
  8934. #ifdef __cplusplus
  8935. extern "C"
  8936. #endif
  8937. char dlopen ();
  8938. int
  8939. main ()
  8940. {
  8941. return dlopen ();
  8942. ;
  8943. return 0;
  8944. }
  8945. _ACEOF
  8946. rm -f conftest.$ac_objext conftest$ac_exeext
  8947. if { (ac_try="$ac_link"
  8948. case "(($ac_try" in
  8949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8950. *) ac_try_echo=$ac_try;;
  8951. esac
  8952. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8953. $as_echo "$ac_try_echo") >&5
  8954. (eval "$ac_link") 2>conftest.er1
  8955. ac_status=$?
  8956. grep -v '^ *+' conftest.er1 >conftest.err
  8957. rm -f conftest.er1
  8958. cat conftest.err >&5
  8959. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8960. (exit $ac_status); } && {
  8961. test -z "$ac_c_werror_flag" ||
  8962. test ! -s conftest.err
  8963. } && test -s conftest$ac_exeext && {
  8964. test "$cross_compiling" = yes ||
  8965. $as_test_x conftest$ac_exeext
  8966. }; then
  8967. ac_cv_lib_dl_dlopen=yes
  8968. else
  8969. $as_echo "$as_me: failed program was:" >&5
  8970. sed 's/^/| /' conftest.$ac_ext >&5
  8971. ac_cv_lib_dl_dlopen=no
  8972. fi
  8973. rm -rf conftest.dSYM
  8974. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8975. conftest$ac_exeext conftest.$ac_ext
  8976. LIBS=$ac_check_lib_save_LIBS
  8977. fi
  8978. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8979. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8980. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8981. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8982. else
  8983. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8984. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8985. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8986. $as_echo_n "(cached) " >&6
  8987. else
  8988. ac_check_lib_save_LIBS=$LIBS
  8989. LIBS="-lsvld $LIBS"
  8990. cat >conftest.$ac_ext <<_ACEOF
  8991. /* confdefs.h. */
  8992. _ACEOF
  8993. cat confdefs.h >>conftest.$ac_ext
  8994. cat >>conftest.$ac_ext <<_ACEOF
  8995. /* end confdefs.h. */
  8996. /* Override any GCC internal prototype to avoid an error.
  8997. Use char because int might match the return type of a GCC
  8998. builtin and then its argument prototype would still apply. */
  8999. #ifdef __cplusplus
  9000. extern "C"
  9001. #endif
  9002. char dlopen ();
  9003. int
  9004. main ()
  9005. {
  9006. return dlopen ();
  9007. ;
  9008. return 0;
  9009. }
  9010. _ACEOF
  9011. rm -f conftest.$ac_objext conftest$ac_exeext
  9012. if { (ac_try="$ac_link"
  9013. case "(($ac_try" in
  9014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9015. *) ac_try_echo=$ac_try;;
  9016. esac
  9017. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9018. $as_echo "$ac_try_echo") >&5
  9019. (eval "$ac_link") 2>conftest.er1
  9020. ac_status=$?
  9021. grep -v '^ *+' conftest.er1 >conftest.err
  9022. rm -f conftest.er1
  9023. cat conftest.err >&5
  9024. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9025. (exit $ac_status); } && {
  9026. test -z "$ac_c_werror_flag" ||
  9027. test ! -s conftest.err
  9028. } && test -s conftest$ac_exeext && {
  9029. test "$cross_compiling" = yes ||
  9030. $as_test_x conftest$ac_exeext
  9031. }; then
  9032. ac_cv_lib_svld_dlopen=yes
  9033. else
  9034. $as_echo "$as_me: failed program was:" >&5
  9035. sed 's/^/| /' conftest.$ac_ext >&5
  9036. ac_cv_lib_svld_dlopen=no
  9037. fi
  9038. rm -rf conftest.dSYM
  9039. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9040. conftest$ac_exeext conftest.$ac_ext
  9041. LIBS=$ac_check_lib_save_LIBS
  9042. fi
  9043. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9044. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9045. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9046. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9047. else
  9048. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9049. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9050. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9051. $as_echo_n "(cached) " >&6
  9052. else
  9053. ac_check_lib_save_LIBS=$LIBS
  9054. LIBS="-ldld $LIBS"
  9055. cat >conftest.$ac_ext <<_ACEOF
  9056. /* confdefs.h. */
  9057. _ACEOF
  9058. cat confdefs.h >>conftest.$ac_ext
  9059. cat >>conftest.$ac_ext <<_ACEOF
  9060. /* end confdefs.h. */
  9061. /* Override any GCC internal prototype to avoid an error.
  9062. Use char because int might match the return type of a GCC
  9063. builtin and then its argument prototype would still apply. */
  9064. #ifdef __cplusplus
  9065. extern "C"
  9066. #endif
  9067. char dld_link ();
  9068. int
  9069. main ()
  9070. {
  9071. return dld_link ();
  9072. ;
  9073. return 0;
  9074. }
  9075. _ACEOF
  9076. rm -f conftest.$ac_objext conftest$ac_exeext
  9077. if { (ac_try="$ac_link"
  9078. case "(($ac_try" in
  9079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9080. *) ac_try_echo=$ac_try;;
  9081. esac
  9082. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9083. $as_echo "$ac_try_echo") >&5
  9084. (eval "$ac_link") 2>conftest.er1
  9085. ac_status=$?
  9086. grep -v '^ *+' conftest.er1 >conftest.err
  9087. rm -f conftest.er1
  9088. cat conftest.err >&5
  9089. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9090. (exit $ac_status); } && {
  9091. test -z "$ac_c_werror_flag" ||
  9092. test ! -s conftest.err
  9093. } && test -s conftest$ac_exeext && {
  9094. test "$cross_compiling" = yes ||
  9095. $as_test_x conftest$ac_exeext
  9096. }; then
  9097. ac_cv_lib_dld_dld_link=yes
  9098. else
  9099. $as_echo "$as_me: failed program was:" >&5
  9100. sed 's/^/| /' conftest.$ac_ext >&5
  9101. ac_cv_lib_dld_dld_link=no
  9102. fi
  9103. rm -rf conftest.dSYM
  9104. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9105. conftest$ac_exeext conftest.$ac_ext
  9106. LIBS=$ac_check_lib_save_LIBS
  9107. fi
  9108. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9109. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9110. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9111. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9112. fi
  9113. fi
  9114. fi
  9115. fi
  9116. fi
  9117. fi
  9118. ;;
  9119. esac
  9120. if test "x$lt_cv_dlopen" != xno; then
  9121. enable_dlopen=yes
  9122. else
  9123. enable_dlopen=no
  9124. fi
  9125. case $lt_cv_dlopen in
  9126. dlopen)
  9127. save_CPPFLAGS="$CPPFLAGS"
  9128. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9129. save_LDFLAGS="$LDFLAGS"
  9130. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9131. save_LIBS="$LIBS"
  9132. LIBS="$lt_cv_dlopen_libs $LIBS"
  9133. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9134. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9135. if test "${lt_cv_dlopen_self+set}" = set; then
  9136. $as_echo_n "(cached) " >&6
  9137. else
  9138. if test "$cross_compiling" = yes; then :
  9139. lt_cv_dlopen_self=cross
  9140. else
  9141. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9142. lt_status=$lt_dlunknown
  9143. cat > conftest.$ac_ext <<_LT_EOF
  9144. #line 10707 "configure"
  9145. #include "confdefs.h"
  9146. #if HAVE_DLFCN_H
  9147. #include <dlfcn.h>
  9148. #endif
  9149. #include <stdio.h>
  9150. #ifdef RTLD_GLOBAL
  9151. # define LT_DLGLOBAL RTLD_GLOBAL
  9152. #else
  9153. # ifdef DL_GLOBAL
  9154. # define LT_DLGLOBAL DL_GLOBAL
  9155. # else
  9156. # define LT_DLGLOBAL 0
  9157. # endif
  9158. #endif
  9159. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9160. find out it does not work in some platform. */
  9161. #ifndef LT_DLLAZY_OR_NOW
  9162. # ifdef RTLD_LAZY
  9163. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9164. # else
  9165. # ifdef DL_LAZY
  9166. # define LT_DLLAZY_OR_NOW DL_LAZY
  9167. # else
  9168. # ifdef RTLD_NOW
  9169. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9170. # else
  9171. # ifdef DL_NOW
  9172. # define LT_DLLAZY_OR_NOW DL_NOW
  9173. # else
  9174. # define LT_DLLAZY_OR_NOW 0
  9175. # endif
  9176. # endif
  9177. # endif
  9178. # endif
  9179. #endif
  9180. void fnord() { int i=42;}
  9181. int main ()
  9182. {
  9183. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9184. int status = $lt_dlunknown;
  9185. if (self)
  9186. {
  9187. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9188. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9189. /* dlclose (self); */
  9190. }
  9191. else
  9192. puts (dlerror ());
  9193. return status;
  9194. }
  9195. _LT_EOF
  9196. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9197. (eval $ac_link) 2>&5
  9198. ac_status=$?
  9199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9200. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9201. (./conftest; exit; ) >&5 2>/dev/null
  9202. lt_status=$?
  9203. case x$lt_status in
  9204. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9205. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9206. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9207. esac
  9208. else :
  9209. # compilation failed
  9210. lt_cv_dlopen_self=no
  9211. fi
  9212. fi
  9213. rm -fr conftest*
  9214. fi
  9215. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9216. $as_echo "$lt_cv_dlopen_self" >&6; }
  9217. if test "x$lt_cv_dlopen_self" = xyes; then
  9218. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9219. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9220. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9221. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9222. $as_echo_n "(cached) " >&6
  9223. else
  9224. if test "$cross_compiling" = yes; then :
  9225. lt_cv_dlopen_self_static=cross
  9226. else
  9227. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9228. lt_status=$lt_dlunknown
  9229. cat > conftest.$ac_ext <<_LT_EOF
  9230. #line 10803 "configure"
  9231. #include "confdefs.h"
  9232. #if HAVE_DLFCN_H
  9233. #include <dlfcn.h>
  9234. #endif
  9235. #include <stdio.h>
  9236. #ifdef RTLD_GLOBAL
  9237. # define LT_DLGLOBAL RTLD_GLOBAL
  9238. #else
  9239. # ifdef DL_GLOBAL
  9240. # define LT_DLGLOBAL DL_GLOBAL
  9241. # else
  9242. # define LT_DLGLOBAL 0
  9243. # endif
  9244. #endif
  9245. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9246. find out it does not work in some platform. */
  9247. #ifndef LT_DLLAZY_OR_NOW
  9248. # ifdef RTLD_LAZY
  9249. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9250. # else
  9251. # ifdef DL_LAZY
  9252. # define LT_DLLAZY_OR_NOW DL_LAZY
  9253. # else
  9254. # ifdef RTLD_NOW
  9255. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9256. # else
  9257. # ifdef DL_NOW
  9258. # define LT_DLLAZY_OR_NOW DL_NOW
  9259. # else
  9260. # define LT_DLLAZY_OR_NOW 0
  9261. # endif
  9262. # endif
  9263. # endif
  9264. # endif
  9265. #endif
  9266. void fnord() { int i=42;}
  9267. int main ()
  9268. {
  9269. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9270. int status = $lt_dlunknown;
  9271. if (self)
  9272. {
  9273. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9274. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9275. /* dlclose (self); */
  9276. }
  9277. else
  9278. puts (dlerror ());
  9279. return status;
  9280. }
  9281. _LT_EOF
  9282. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9283. (eval $ac_link) 2>&5
  9284. ac_status=$?
  9285. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9286. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9287. (./conftest; exit; ) >&5 2>/dev/null
  9288. lt_status=$?
  9289. case x$lt_status in
  9290. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9291. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9292. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9293. esac
  9294. else :
  9295. # compilation failed
  9296. lt_cv_dlopen_self_static=no
  9297. fi
  9298. fi
  9299. rm -fr conftest*
  9300. fi
  9301. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9302. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9303. fi
  9304. CPPFLAGS="$save_CPPFLAGS"
  9305. LDFLAGS="$save_LDFLAGS"
  9306. LIBS="$save_LIBS"
  9307. ;;
  9308. esac
  9309. case $lt_cv_dlopen_self in
  9310. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9311. *) enable_dlopen_self=unknown ;;
  9312. esac
  9313. case $lt_cv_dlopen_self_static in
  9314. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9315. *) enable_dlopen_self_static=unknown ;;
  9316. esac
  9317. fi
  9318. striplib=
  9319. old_striplib=
  9320. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9321. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9322. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9323. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9324. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9325. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9326. $as_echo "yes" >&6; }
  9327. else
  9328. # FIXME - insert some real tests, host_os isn't really good enough
  9329. case $host_os in
  9330. darwin*)
  9331. if test -n "$STRIP" ; then
  9332. striplib="$STRIP -x"
  9333. old_striplib="$STRIP -S"
  9334. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9335. $as_echo "yes" >&6; }
  9336. else
  9337. { $as_echo "$as_me:$LINENO: result: no" >&5
  9338. $as_echo "no" >&6; }
  9339. fi
  9340. ;;
  9341. *)
  9342. { $as_echo "$as_me:$LINENO: result: no" >&5
  9343. $as_echo "no" >&6; }
  9344. ;;
  9345. esac
  9346. fi
  9347. # Report which library types will actually be built
  9348. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9349. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9350. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9351. $as_echo "$can_build_shared" >&6; }
  9352. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9353. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9354. test "$can_build_shared" = "no" && enable_shared=no
  9355. # On AIX, shared libraries and static libraries use the same namespace, and
  9356. # are all built from PIC.
  9357. case $host_os in
  9358. aix3*)
  9359. test "$enable_shared" = yes && enable_static=no
  9360. if test -n "$RANLIB"; then
  9361. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9362. postinstall_cmds='$RANLIB $lib'
  9363. fi
  9364. ;;
  9365. aix[4-9]*)
  9366. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9367. test "$enable_shared" = yes && enable_static=no
  9368. fi
  9369. ;;
  9370. esac
  9371. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9372. $as_echo "$enable_shared" >&6; }
  9373. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9374. $as_echo_n "checking whether to build static libraries... " >&6; }
  9375. # Make sure either enable_shared or enable_static is yes.
  9376. test "$enable_shared" = yes || enable_static=yes
  9377. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9378. $as_echo "$enable_static" >&6; }
  9379. fi
  9380. ac_ext=c
  9381. ac_cpp='$CPP $CPPFLAGS'
  9382. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9383. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9384. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9385. CC="$lt_save_CC"
  9386. ac_config_commands="$ac_config_commands libtool"
  9387. # Only expand once:
  9388. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  9389. $as_echo_n "checking for inline... " >&6; }
  9390. if test "${ac_cv_c_inline+set}" = set; then
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. ac_cv_c_inline=no
  9394. for ac_kw in inline __inline__ __inline; do
  9395. cat >conftest.$ac_ext <<_ACEOF
  9396. /* confdefs.h. */
  9397. _ACEOF
  9398. cat confdefs.h >>conftest.$ac_ext
  9399. cat >>conftest.$ac_ext <<_ACEOF
  9400. /* end confdefs.h. */
  9401. #ifndef __cplusplus
  9402. typedef int foo_t;
  9403. static $ac_kw foo_t static_foo () {return 0; }
  9404. $ac_kw foo_t foo () {return 0; }
  9405. #endif
  9406. _ACEOF
  9407. rm -f conftest.$ac_objext
  9408. if { (ac_try="$ac_compile"
  9409. case "(($ac_try" in
  9410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9411. *) ac_try_echo=$ac_try;;
  9412. esac
  9413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9414. $as_echo "$ac_try_echo") >&5
  9415. (eval "$ac_compile") 2>conftest.er1
  9416. ac_status=$?
  9417. grep -v '^ *+' conftest.er1 >conftest.err
  9418. rm -f conftest.er1
  9419. cat conftest.err >&5
  9420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9421. (exit $ac_status); } && {
  9422. test -z "$ac_c_werror_flag" ||
  9423. test ! -s conftest.err
  9424. } && test -s conftest.$ac_objext; then
  9425. ac_cv_c_inline=$ac_kw
  9426. else
  9427. $as_echo "$as_me: failed program was:" >&5
  9428. sed 's/^/| /' conftest.$ac_ext >&5
  9429. fi
  9430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9431. test "$ac_cv_c_inline" != no && break
  9432. done
  9433. fi
  9434. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  9435. $as_echo "$ac_cv_c_inline" >&6; }
  9436. case $ac_cv_c_inline in
  9437. inline | yes) ;;
  9438. *)
  9439. case $ac_cv_c_inline in
  9440. no) ac_val=;;
  9441. *) ac_val=$ac_cv_c_inline;;
  9442. esac
  9443. cat >>confdefs.h <<_ACEOF
  9444. #ifndef __cplusplus
  9445. #define inline $ac_val
  9446. #endif
  9447. _ACEOF
  9448. ;;
  9449. esac
  9450. if test "x$CC" != xcc; then
  9451. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  9452. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9453. else
  9454. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  9455. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9456. fi
  9457. set dummy $CC; ac_cc=`$as_echo "$2" |
  9458. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9459. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  9460. $as_echo_n "(cached) " >&6
  9461. else
  9462. cat >conftest.$ac_ext <<_ACEOF
  9463. /* confdefs.h. */
  9464. _ACEOF
  9465. cat confdefs.h >>conftest.$ac_ext
  9466. cat >>conftest.$ac_ext <<_ACEOF
  9467. /* end confdefs.h. */
  9468. int
  9469. main ()
  9470. {
  9471. ;
  9472. return 0;
  9473. }
  9474. _ACEOF
  9475. # Make sure it works both with $CC and with simple cc.
  9476. # We do the test twice because some compilers refuse to overwrite an
  9477. # existing .o file with -o, though they will create one.
  9478. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9479. rm -f conftest2.*
  9480. if { (case "(($ac_try" in
  9481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9482. *) ac_try_echo=$ac_try;;
  9483. esac
  9484. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9485. $as_echo "$ac_try_echo") >&5
  9486. (eval "$ac_try") 2>&5
  9487. ac_status=$?
  9488. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9489. (exit $ac_status); } &&
  9490. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9492. *) ac_try_echo=$ac_try;;
  9493. esac
  9494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9495. $as_echo "$ac_try_echo") >&5
  9496. (eval "$ac_try") 2>&5
  9497. ac_status=$?
  9498. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9499. (exit $ac_status); };
  9500. then
  9501. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9502. if test "x$CC" != xcc; then
  9503. # Test first that cc exists at all.
  9504. if { ac_try='cc -c conftest.$ac_ext >&5'
  9505. { (case "(($ac_try" in
  9506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9507. *) ac_try_echo=$ac_try;;
  9508. esac
  9509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9510. $as_echo "$ac_try_echo") >&5
  9511. (eval "$ac_try") 2>&5
  9512. ac_status=$?
  9513. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9514. (exit $ac_status); }; }; then
  9515. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9516. rm -f conftest2.*
  9517. if { (case "(($ac_try" in
  9518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9519. *) ac_try_echo=$ac_try;;
  9520. esac
  9521. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9522. $as_echo "$ac_try_echo") >&5
  9523. (eval "$ac_try") 2>&5
  9524. ac_status=$?
  9525. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9526. (exit $ac_status); } &&
  9527. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9529. *) ac_try_echo=$ac_try;;
  9530. esac
  9531. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9532. $as_echo "$ac_try_echo") >&5
  9533. (eval "$ac_try") 2>&5
  9534. ac_status=$?
  9535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9536. (exit $ac_status); };
  9537. then
  9538. # cc works too.
  9539. :
  9540. else
  9541. # cc exists but doesn't like -o.
  9542. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9543. fi
  9544. fi
  9545. fi
  9546. else
  9547. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9548. fi
  9549. rm -f core conftest*
  9550. fi
  9551. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9552. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9553. $as_echo "yes" >&6; }
  9554. else
  9555. { $as_echo "$as_me:$LINENO: result: no" >&5
  9556. $as_echo "no" >&6; }
  9557. cat >>confdefs.h <<\_ACEOF
  9558. #define NO_MINUS_C_MINUS_O 1
  9559. _ACEOF
  9560. fi
  9561. # FIXME: we rely on the cache variable name because
  9562. # there is no other way.
  9563. set dummy $CC
  9564. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9565. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  9566. if test "$am_t" != yes; then
  9567. # Losing compiler, so override with the script.
  9568. # FIXME: It is wrong to rewrite CC.
  9569. # But if we don't then we get into trouble of one sort or another.
  9570. # A longer-term fix would be to have automake use am__CC in this case,
  9571. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9572. CC="$am_aux_dir/compile $CC"
  9573. fi
  9574. cat >>confdefs.h <<\_ACEOF
  9575. #define _GNU_SOURCE /**/
  9576. _ACEOF
  9577. { $as_echo "$as_me:$LINENO: checking operating system" >&5
  9578. $as_echo_n "checking operating system... " >&6; }
  9579. case $host in
  9580. *-linux*)
  9581. cat >>confdefs.h <<\_ACEOF
  9582. #define OS_LINUX /**/
  9583. _ACEOF
  9584. { $as_echo "$as_me:$LINENO: result: Linux" >&5
  9585. $as_echo "Linux" >&6; }
  9586. backend="linux"
  9587. ;;
  9588. *)
  9589. { { $as_echo "$as_me:$LINENO: error: unsupported operating system" >&5
  9590. $as_echo "$as_me: error: unsupported operating system" >&2;}
  9591. { (exit 1); exit 1; }; }
  9592. esac
  9593. if test "x$backend" == "xlinux"; then
  9594. OS_LINUX_TRUE=
  9595. OS_LINUX_FALSE='#'
  9596. else
  9597. OS_LINUX_TRUE='#'
  9598. OS_LINUX_FALSE=
  9599. fi
  9600. # Library versioning
  9601. lt_major="0"
  9602. lt_revision="0"
  9603. lt_age="0"
  9604. # Message logging
  9605. # Check whether --enable-log was given.
  9606. if test "${enable_log+set}" = set; then
  9607. enableval=$enable_log; log_enabled=$enableval
  9608. else
  9609. log_enabled='yes'
  9610. fi
  9611. if test "x$log_enabled" != "xno"; then
  9612. cat >>confdefs.h <<\_ACEOF
  9613. #define ENABLE_LOGGING 1
  9614. _ACEOF
  9615. fi
  9616. # Check whether --enable-debug-log was given.
  9617. if test "${enable_debug_log+set}" = set; then
  9618. enableval=$enable_debug_log; debug_log_enabled=$enableval
  9619. else
  9620. debug_log_enabled='no'
  9621. fi
  9622. if test "x$debug_log_enabled" != "xno"; then
  9623. cat >>confdefs.h <<\_ACEOF
  9624. #define ENABLE_DEBUG_LOGGING 1
  9625. _ACEOF
  9626. fi
  9627. # Examples build
  9628. # Check whether --enable-examples-build was given.
  9629. if test "${enable_examples_build+set}" = set; then
  9630. enableval=$enable_examples_build; build_examples=$enableval
  9631. else
  9632. build_examples='no'
  9633. fi
  9634. if test "x$build_examples" != "xno"; then
  9635. BUILD_EXAMPLES_TRUE=
  9636. BUILD_EXAMPLES_FALSE='#'
  9637. else
  9638. BUILD_EXAMPLES_TRUE='#'
  9639. BUILD_EXAMPLES_FALSE=
  9640. fi
  9641. # Restore gnu89 inline semantics on gcc 4.3 and newer
  9642. saved_cflags="$CFLAGS"
  9643. CFLAGS="$CFLAGS -fgnu89-inline"
  9644. cat >conftest.$ac_ext <<_ACEOF
  9645. /* confdefs.h. */
  9646. _ACEOF
  9647. cat confdefs.h >>conftest.$ac_ext
  9648. cat >>conftest.$ac_ext <<_ACEOF
  9649. /* end confdefs.h. */
  9650. int
  9651. main ()
  9652. {
  9653. ;
  9654. return 0;
  9655. }
  9656. _ACEOF
  9657. rm -f conftest.$ac_objext
  9658. if { (ac_try="$ac_compile"
  9659. case "(($ac_try" in
  9660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9661. *) ac_try_echo=$ac_try;;
  9662. esac
  9663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9664. $as_echo "$ac_try_echo") >&5
  9665. (eval "$ac_compile") 2>conftest.er1
  9666. ac_status=$?
  9667. grep -v '^ *+' conftest.er1 >conftest.err
  9668. rm -f conftest.er1
  9669. cat conftest.err >&5
  9670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9671. (exit $ac_status); } && {
  9672. test -z "$ac_c_werror_flag" ||
  9673. test ! -s conftest.err
  9674. } && test -s conftest.$ac_objext; then
  9675. inline_cflags="-fgnu89-inline"
  9676. else
  9677. $as_echo "$as_me: failed program was:" >&5
  9678. sed 's/^/| /' conftest.$ac_ext >&5
  9679. inline_cflags=""
  9680. fi
  9681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9682. CFLAGS="$saved_cflags"
  9683. cat >>confdefs.h <<\_ACEOF
  9684. #define API_EXPORTED __attribute__((visibility("default")))
  9685. _ACEOF
  9686. AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"
  9687. ac_config_files="$ac_config_files libusb-1.0.pc Makefile libusb/Makefile examples/Makefile doc/Makefile doc/doxygen.cfg"
  9688. cat >confcache <<\_ACEOF
  9689. # This file is a shell script that caches the results of configure
  9690. # tests run on this system so they can be shared between configure
  9691. # scripts and configure runs, see configure's option --config-cache.
  9692. # It is not useful on other systems. If it contains results you don't
  9693. # want to keep, you may remove or edit it.
  9694. #
  9695. # config.status only pays attention to the cache file if you give it
  9696. # the --recheck option to rerun configure.
  9697. #
  9698. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9699. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9700. # following values.
  9701. _ACEOF
  9702. # The following way of writing the cache mishandles newlines in values,
  9703. # but we know of no workaround that is simple, portable, and efficient.
  9704. # So, we kill variables containing newlines.
  9705. # Ultrix sh set writes to stderr and can't be redirected directly,
  9706. # and sets the high bit in the cache file unless we assign to the vars.
  9707. (
  9708. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9709. eval ac_val=\$$ac_var
  9710. case $ac_val in #(
  9711. *${as_nl}*)
  9712. case $ac_var in #(
  9713. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  9714. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9715. esac
  9716. case $ac_var in #(
  9717. _ | IFS | as_nl) ;; #(
  9718. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9719. *) $as_unset $ac_var ;;
  9720. esac ;;
  9721. esac
  9722. done
  9723. (set) 2>&1 |
  9724. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9725. *${as_nl}ac_space=\ *)
  9726. # `set' does not quote correctly, so add quotes (double-quote
  9727. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9728. sed -n \
  9729. "s/'/'\\\\''/g;
  9730. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9731. ;; #(
  9732. *)
  9733. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9734. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9735. ;;
  9736. esac |
  9737. sort
  9738. ) |
  9739. sed '
  9740. /^ac_cv_env_/b end
  9741. t clear
  9742. :clear
  9743. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9744. t end
  9745. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9746. :end' >>confcache
  9747. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9748. if test -w "$cache_file"; then
  9749. test "x$cache_file" != "x/dev/null" &&
  9750. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  9751. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9752. cat confcache >$cache_file
  9753. else
  9754. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  9755. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9756. fi
  9757. fi
  9758. rm -f confcache
  9759. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9760. # Let make expand exec_prefix.
  9761. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9762. DEFS=-DHAVE_CONFIG_H
  9763. ac_libobjs=
  9764. ac_ltlibobjs=
  9765. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9766. # 1. Remove the extension, and $U if already installed.
  9767. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9768. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9769. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9770. # will be set to the directory where LIBOBJS objects are built.
  9771. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9772. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  9773. done
  9774. LIBOBJS=$ac_libobjs
  9775. LTLIBOBJS=$ac_ltlibobjs
  9776. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9777. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  9778. Usually this means the macro was only invoked conditionally." >&5
  9779. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  9780. Usually this means the macro was only invoked conditionally." >&2;}
  9781. { (exit 1); exit 1; }; }
  9782. fi
  9783. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9784. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  9785. Usually this means the macro was only invoked conditionally." >&5
  9786. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  9787. Usually this means the macro was only invoked conditionally." >&2;}
  9788. { (exit 1); exit 1; }; }
  9789. fi
  9790. if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
  9791. { { $as_echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
  9792. Usually this means the macro was only invoked conditionally." >&5
  9793. $as_echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
  9794. Usually this means the macro was only invoked conditionally." >&2;}
  9795. { (exit 1); exit 1; }; }
  9796. fi
  9797. if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
  9798. { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
  9799. Usually this means the macro was only invoked conditionally." >&5
  9800. $as_echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
  9801. Usually this means the macro was only invoked conditionally." >&2;}
  9802. { (exit 1); exit 1; }; }
  9803. fi
  9804. : ${CONFIG_STATUS=./config.status}
  9805. ac_write_fail=0
  9806. ac_clean_files_save=$ac_clean_files
  9807. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9808. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9809. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9810. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9811. #! $SHELL
  9812. # Generated by $as_me.
  9813. # Run this file to recreate the current configuration.
  9814. # Compiler output produced by configure, useful for debugging
  9815. # configure, is in config.log if it exists.
  9816. debug=false
  9817. ac_cs_recheck=false
  9818. ac_cs_silent=false
  9819. SHELL=\${CONFIG_SHELL-$SHELL}
  9820. _ACEOF
  9821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9822. ## --------------------- ##
  9823. ## M4sh Initialization. ##
  9824. ## --------------------- ##
  9825. # Be more Bourne compatible
  9826. DUALCASE=1; export DUALCASE # for MKS sh
  9827. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9828. emulate sh
  9829. NULLCMD=:
  9830. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9831. # is contrary to our usage. Disable this feature.
  9832. alias -g '${1+"$@"}'='"$@"'
  9833. setopt NO_GLOB_SUBST
  9834. else
  9835. case `(set -o) 2>/dev/null` in
  9836. *posix*) set -o posix ;;
  9837. esac
  9838. fi
  9839. # PATH needs CR
  9840. # Avoid depending upon Character Ranges.
  9841. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9842. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9843. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9844. as_cr_digits='0123456789'
  9845. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9846. as_nl='
  9847. '
  9848. export as_nl
  9849. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9850. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9851. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9852. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9853. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9854. as_echo='printf %s\n'
  9855. as_echo_n='printf %s'
  9856. else
  9857. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9858. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9859. as_echo_n='/usr/ucb/echo -n'
  9860. else
  9861. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9862. as_echo_n_body='eval
  9863. arg=$1;
  9864. case $arg in
  9865. *"$as_nl"*)
  9866. expr "X$arg" : "X\\(.*\\)$as_nl";
  9867. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9868. esac;
  9869. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9870. '
  9871. export as_echo_n_body
  9872. as_echo_n='sh -c $as_echo_n_body as_echo'
  9873. fi
  9874. export as_echo_body
  9875. as_echo='sh -c $as_echo_body as_echo'
  9876. fi
  9877. # The user is always right.
  9878. if test "${PATH_SEPARATOR+set}" != set; then
  9879. PATH_SEPARATOR=:
  9880. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9881. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9882. PATH_SEPARATOR=';'
  9883. }
  9884. fi
  9885. # Support unset when possible.
  9886. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9887. as_unset=unset
  9888. else
  9889. as_unset=false
  9890. fi
  9891. # IFS
  9892. # We need space, tab and new line, in precisely that order. Quoting is
  9893. # there to prevent editors from complaining about space-tab.
  9894. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9895. # splitting by setting IFS to empty value.)
  9896. IFS=" "" $as_nl"
  9897. # Find who we are. Look in the path if we contain no directory separator.
  9898. case $0 in
  9899. *[\\/]* ) as_myself=$0 ;;
  9900. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9901. for as_dir in $PATH
  9902. do
  9903. IFS=$as_save_IFS
  9904. test -z "$as_dir" && as_dir=.
  9905. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9906. done
  9907. IFS=$as_save_IFS
  9908. ;;
  9909. esac
  9910. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9911. # in which case we are not to be found in the path.
  9912. if test "x$as_myself" = x; then
  9913. as_myself=$0
  9914. fi
  9915. if test ! -f "$as_myself"; then
  9916. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9917. { (exit 1); exit 1; }
  9918. fi
  9919. # Work around bugs in pre-3.0 UWIN ksh.
  9920. for as_var in ENV MAIL MAILPATH
  9921. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9922. done
  9923. PS1='$ '
  9924. PS2='> '
  9925. PS4='+ '
  9926. # NLS nuisances.
  9927. LC_ALL=C
  9928. export LC_ALL
  9929. LANGUAGE=C
  9930. export LANGUAGE
  9931. # Required to use basename.
  9932. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9933. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9934. as_expr=expr
  9935. else
  9936. as_expr=false
  9937. fi
  9938. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9939. as_basename=basename
  9940. else
  9941. as_basename=false
  9942. fi
  9943. # Name of the executable.
  9944. as_me=`$as_basename -- "$0" ||
  9945. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9946. X"$0" : 'X\(//\)$' \| \
  9947. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9948. $as_echo X/"$0" |
  9949. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9950. s//\1/
  9951. q
  9952. }
  9953. /^X\/\(\/\/\)$/{
  9954. s//\1/
  9955. q
  9956. }
  9957. /^X\/\(\/\).*/{
  9958. s//\1/
  9959. q
  9960. }
  9961. s/.*/./; q'`
  9962. # CDPATH.
  9963. $as_unset CDPATH
  9964. as_lineno_1=$LINENO
  9965. as_lineno_2=$LINENO
  9966. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9967. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  9968. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9969. # uniformly replaced by the line number. The first 'sed' inserts a
  9970. # line-number line after each line using $LINENO; the second 'sed'
  9971. # does the real work. The second script uses 'N' to pair each
  9972. # line-number line with the line containing $LINENO, and appends
  9973. # trailing '-' during substitution so that $LINENO is not a special
  9974. # case at line end.
  9975. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9976. # scripts with optimization help from Paolo Bonzini. Blame Lee
  9977. # E. McMahon (1931-1989) for sed's syntax. :-)
  9978. sed -n '
  9979. p
  9980. /[$]LINENO/=
  9981. ' <$as_myself |
  9982. sed '
  9983. s/[$]LINENO.*/&-/
  9984. t lineno
  9985. b
  9986. :lineno
  9987. N
  9988. :loop
  9989. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  9990. t loop
  9991. s/-\n.*//
  9992. ' >$as_me.lineno &&
  9993. chmod +x "$as_me.lineno" ||
  9994. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  9995. { (exit 1); exit 1; }; }
  9996. # Don't try to exec as it changes $[0], causing all sort of problems
  9997. # (the dirname of $[0] is not the place where we might find the
  9998. # original and so on. Autoconf is especially sensitive to this).
  9999. . "./$as_me.lineno"
  10000. # Exit status is that of the last command.
  10001. exit
  10002. }
  10003. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10004. as_dirname=dirname
  10005. else
  10006. as_dirname=false
  10007. fi
  10008. ECHO_C= ECHO_N= ECHO_T=
  10009. case `echo -n x` in
  10010. -n*)
  10011. case `echo 'x\c'` in
  10012. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10013. *) ECHO_C='\c';;
  10014. esac;;
  10015. *)
  10016. ECHO_N='-n';;
  10017. esac
  10018. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10019. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10020. as_expr=expr
  10021. else
  10022. as_expr=false
  10023. fi
  10024. rm -f conf$$ conf$$.exe conf$$.file
  10025. if test -d conf$$.dir; then
  10026. rm -f conf$$.dir/conf$$.file
  10027. else
  10028. rm -f conf$$.dir
  10029. mkdir conf$$.dir 2>/dev/null
  10030. fi
  10031. if (echo >conf$$.file) 2>/dev/null; then
  10032. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10033. as_ln_s='ln -s'
  10034. # ... but there are two gotchas:
  10035. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10036. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10037. # In both cases, we have to default to `cp -p'.
  10038. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10039. as_ln_s='cp -p'
  10040. elif ln conf$$.file conf$$ 2>/dev/null; then
  10041. as_ln_s=ln
  10042. else
  10043. as_ln_s='cp -p'
  10044. fi
  10045. else
  10046. as_ln_s='cp -p'
  10047. fi
  10048. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10049. rmdir conf$$.dir 2>/dev/null
  10050. if mkdir -p . 2>/dev/null; then
  10051. as_mkdir_p=:
  10052. else
  10053. test -d ./-p && rmdir ./-p
  10054. as_mkdir_p=false
  10055. fi
  10056. if test -x / >/dev/null 2>&1; then
  10057. as_test_x='test -x'
  10058. else
  10059. if ls -dL / >/dev/null 2>&1; then
  10060. as_ls_L_option=L
  10061. else
  10062. as_ls_L_option=
  10063. fi
  10064. as_test_x='
  10065. eval sh -c '\''
  10066. if test -d "$1"; then
  10067. test -d "$1/.";
  10068. else
  10069. case $1 in
  10070. -*)set "./$1";;
  10071. esac;
  10072. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  10073. ???[sx]*):;;*)false;;esac;fi
  10074. '\'' sh
  10075. '
  10076. fi
  10077. as_executable_p=$as_test_x
  10078. # Sed expression to map a string onto a valid CPP name.
  10079. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10080. # Sed expression to map a string onto a valid variable name.
  10081. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10082. exec 6>&1
  10083. # Save the log message, to keep $[0] and so on meaningful, and to
  10084. # report actual input values of CONFIG_FILES etc. instead of their
  10085. # values after options handling.
  10086. ac_log="
  10087. This file was extended by libusb $as_me 1.0.0, which was
  10088. generated by GNU Autoconf 2.63. Invocation command line was
  10089. CONFIG_FILES = $CONFIG_FILES
  10090. CONFIG_HEADERS = $CONFIG_HEADERS
  10091. CONFIG_LINKS = $CONFIG_LINKS
  10092. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10093. $ $0 $@
  10094. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10095. "
  10096. _ACEOF
  10097. case $ac_config_files in *"
  10098. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10099. esac
  10100. case $ac_config_headers in *"
  10101. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10102. esac
  10103. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10104. # Files that config.status was made for.
  10105. config_files="$ac_config_files"
  10106. config_headers="$ac_config_headers"
  10107. config_commands="$ac_config_commands"
  10108. _ACEOF
  10109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10110. ac_cs_usage="\
  10111. \`$as_me' instantiates files from templates according to the
  10112. current configuration.
  10113. Usage: $0 [OPTION]... [FILE]...
  10114. -h, --help print this help, then exit
  10115. -V, --version print version number and configuration settings, then exit
  10116. -q, --quiet, --silent
  10117. do not print progress messages
  10118. -d, --debug don't remove temporary files
  10119. --recheck update $as_me by reconfiguring in the same conditions
  10120. --file=FILE[:TEMPLATE]
  10121. instantiate the configuration file FILE
  10122. --header=FILE[:TEMPLATE]
  10123. instantiate the configuration header FILE
  10124. Configuration files:
  10125. $config_files
  10126. Configuration headers:
  10127. $config_headers
  10128. Configuration commands:
  10129. $config_commands
  10130. Report bugs to <bug-autoconf@gnu.org>."
  10131. _ACEOF
  10132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10133. ac_cs_version="\\
  10134. libusb config.status 1.0.0
  10135. configured by $0, generated by GNU Autoconf 2.63,
  10136. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10137. Copyright (C) 2008 Free Software Foundation, Inc.
  10138. This config.status script is free software; the Free Software Foundation
  10139. gives unlimited permission to copy, distribute and modify it."
  10140. ac_pwd='$ac_pwd'
  10141. srcdir='$srcdir'
  10142. INSTALL='$INSTALL'
  10143. MKDIR_P='$MKDIR_P'
  10144. AWK='$AWK'
  10145. test -n "\$AWK" || AWK=awk
  10146. _ACEOF
  10147. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10148. # The default lists apply if the user does not specify any file.
  10149. ac_need_defaults=:
  10150. while test $# != 0
  10151. do
  10152. case $1 in
  10153. --*=*)
  10154. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10155. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10156. ac_shift=:
  10157. ;;
  10158. *)
  10159. ac_option=$1
  10160. ac_optarg=$2
  10161. ac_shift=shift
  10162. ;;
  10163. esac
  10164. case $ac_option in
  10165. # Handling of the options.
  10166. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10167. ac_cs_recheck=: ;;
  10168. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10169. $as_echo "$ac_cs_version"; exit ;;
  10170. --debug | --debu | --deb | --de | --d | -d )
  10171. debug=: ;;
  10172. --file | --fil | --fi | --f )
  10173. $ac_shift
  10174. case $ac_optarg in
  10175. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10176. esac
  10177. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  10178. ac_need_defaults=false;;
  10179. --header | --heade | --head | --hea )
  10180. $ac_shift
  10181. case $ac_optarg in
  10182. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10183. esac
  10184. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  10185. ac_need_defaults=false;;
  10186. --he | --h)
  10187. # Conflict between --help and --header
  10188. { $as_echo "$as_me: error: ambiguous option: $1
  10189. Try \`$0 --help' for more information." >&2
  10190. { (exit 1); exit 1; }; };;
  10191. --help | --hel | -h )
  10192. $as_echo "$ac_cs_usage"; exit ;;
  10193. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10194. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10195. ac_cs_silent=: ;;
  10196. # This is an error.
  10197. -*) { $as_echo "$as_me: error: unrecognized option: $1
  10198. Try \`$0 --help' for more information." >&2
  10199. { (exit 1); exit 1; }; } ;;
  10200. *) ac_config_targets="$ac_config_targets $1"
  10201. ac_need_defaults=false ;;
  10202. esac
  10203. shift
  10204. done
  10205. ac_configure_extra_args=
  10206. if $ac_cs_silent; then
  10207. exec 6>/dev/null
  10208. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10209. fi
  10210. _ACEOF
  10211. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10212. if \$ac_cs_recheck; then
  10213. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10214. shift
  10215. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10216. CONFIG_SHELL='$SHELL'
  10217. export CONFIG_SHELL
  10218. exec "\$@"
  10219. fi
  10220. _ACEOF
  10221. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10222. exec 5>>config.log
  10223. {
  10224. echo
  10225. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10226. ## Running $as_me. ##
  10227. _ASBOX
  10228. $as_echo "$ac_log"
  10229. } >&5
  10230. _ACEOF
  10231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10232. #
  10233. # INIT-COMMANDS
  10234. #
  10235. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10236. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10237. # if CDPATH is set.
  10238. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10239. sed_quote_subst='$sed_quote_subst'
  10240. double_quote_subst='$double_quote_subst'
  10241. delay_variable_subst='$delay_variable_subst'
  10242. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  10243. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  10244. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  10245. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  10246. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  10247. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  10248. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10249. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  10250. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  10251. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10252. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  10253. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  10254. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  10255. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  10256. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  10257. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10258. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10259. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  10260. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  10261. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  10262. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  10263. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  10264. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  10265. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  10266. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  10267. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  10268. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10269. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10270. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  10271. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  10272. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  10273. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  10274. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10275. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  10276. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  10277. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10278. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10279. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10280. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  10281. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10282. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  10283. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  10284. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  10285. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  10286. 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"`'
  10287. 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"`'
  10288. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  10289. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  10290. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  10291. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  10292. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10293. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  10294. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  10295. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  10296. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  10297. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  10298. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  10299. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  10300. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  10301. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  10302. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  10303. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  10304. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10305. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10306. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  10307. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  10308. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10309. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10310. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  10311. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10312. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10313. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10314. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10315. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10316. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10317. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10318. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10319. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10320. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10321. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10322. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  10323. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  10324. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  10325. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  10326. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10327. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  10328. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  10329. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  10330. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  10331. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  10332. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10333. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10334. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10335. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10336. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10337. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  10338. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10339. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  10340. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  10341. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10342. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10343. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  10344. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10345. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10346. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10347. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10348. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10349. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10350. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  10351. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  10352. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10353. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10354. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  10355. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  10356. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  10357. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  10358. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10359. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10360. LTCC='$LTCC'
  10361. LTCFLAGS='$LTCFLAGS'
  10362. compiler='$compiler_DEFAULT'
  10363. # Quote evaled strings.
  10364. for var in SED \
  10365. GREP \
  10366. EGREP \
  10367. FGREP \
  10368. LD \
  10369. NM \
  10370. LN_S \
  10371. lt_SP2NL \
  10372. lt_NL2SP \
  10373. reload_flag \
  10374. OBJDUMP \
  10375. deplibs_check_method \
  10376. file_magic_cmd \
  10377. AR \
  10378. AR_FLAGS \
  10379. STRIP \
  10380. RANLIB \
  10381. CC \
  10382. CFLAGS \
  10383. compiler \
  10384. lt_cv_sys_global_symbol_pipe \
  10385. lt_cv_sys_global_symbol_to_cdecl \
  10386. lt_cv_sys_global_symbol_to_c_name_address \
  10387. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10388. SHELL \
  10389. ECHO \
  10390. lt_prog_compiler_no_builtin_flag \
  10391. lt_prog_compiler_wl \
  10392. lt_prog_compiler_pic \
  10393. lt_prog_compiler_static \
  10394. lt_cv_prog_compiler_c_o \
  10395. need_locks \
  10396. DSYMUTIL \
  10397. NMEDIT \
  10398. LIPO \
  10399. OTOOL \
  10400. OTOOL64 \
  10401. shrext_cmds \
  10402. export_dynamic_flag_spec \
  10403. whole_archive_flag_spec \
  10404. compiler_needs_object \
  10405. with_gnu_ld \
  10406. allow_undefined_flag \
  10407. no_undefined_flag \
  10408. hardcode_libdir_flag_spec \
  10409. hardcode_libdir_flag_spec_ld \
  10410. hardcode_libdir_separator \
  10411. fix_srcfile_path \
  10412. exclude_expsyms \
  10413. include_expsyms \
  10414. file_list_spec \
  10415. variables_saved_for_relink \
  10416. libname_spec \
  10417. library_names_spec \
  10418. soname_spec \
  10419. finish_eval \
  10420. old_striplib \
  10421. striplib; do
  10422. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10423. *[\\\\\\\`\\"\\\$]*)
  10424. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10425. ;;
  10426. *)
  10427. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10428. ;;
  10429. esac
  10430. done
  10431. # Double-quote double-evaled strings.
  10432. for var in reload_cmds \
  10433. old_postinstall_cmds \
  10434. old_postuninstall_cmds \
  10435. old_archive_cmds \
  10436. extract_expsyms_cmds \
  10437. old_archive_from_new_cmds \
  10438. old_archive_from_expsyms_cmds \
  10439. archive_cmds \
  10440. archive_expsym_cmds \
  10441. module_cmds \
  10442. module_expsym_cmds \
  10443. export_symbols_cmds \
  10444. prelink_cmds \
  10445. postinstall_cmds \
  10446. postuninstall_cmds \
  10447. finish_cmds \
  10448. sys_lib_search_path_spec \
  10449. sys_lib_dlsearch_path_spec; do
  10450. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10451. *[\\\\\\\`\\"\\\$]*)
  10452. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10453. ;;
  10454. *)
  10455. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10456. ;;
  10457. esac
  10458. done
  10459. # Fix-up fallback echo if it was mangled by the above quoting rules.
  10460. case \$lt_ECHO in
  10461. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  10462. ;;
  10463. esac
  10464. ac_aux_dir='$ac_aux_dir'
  10465. xsi_shell='$xsi_shell'
  10466. lt_shell_append='$lt_shell_append'
  10467. # See if we are running on zsh, and set the options which allow our
  10468. # commands through without removal of \ escapes INIT.
  10469. if test -n "\${ZSH_VERSION+set}" ; then
  10470. setopt NO_GLOB_SUBST
  10471. fi
  10472. PACKAGE='$PACKAGE'
  10473. VERSION='$VERSION'
  10474. TIMESTAMP='$TIMESTAMP'
  10475. RM='$RM'
  10476. ofile='$ofile'
  10477. _ACEOF
  10478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10479. # Handling of arguments.
  10480. for ac_config_target in $ac_config_targets
  10481. do
  10482. case $ac_config_target in
  10483. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10484. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10485. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10486. "libusb-1.0.pc") CONFIG_FILES="$CONFIG_FILES libusb-1.0.pc" ;;
  10487. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10488. "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
  10489. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  10490. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  10491. "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
  10492. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10493. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10494. { (exit 1); exit 1; }; };;
  10495. esac
  10496. done
  10497. # If the user did not use the arguments to specify the items to instantiate,
  10498. # then the envvar interface is used. Set only those that are not.
  10499. # We use the long form for the default assignment because of an extremely
  10500. # bizarre bug on SunOS 4.1.3.
  10501. if $ac_need_defaults; then
  10502. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10503. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10504. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10505. fi
  10506. # Have a temporary directory for convenience. Make it in the build tree
  10507. # simply because there is no reason against having it here, and in addition,
  10508. # creating and moving files from /tmp can sometimes cause problems.
  10509. # Hook for its removal unless debugging.
  10510. # Note that there is a small window in which the directory will not be cleaned:
  10511. # after its creation but before its name has been assigned to `$tmp'.
  10512. $debug ||
  10513. {
  10514. tmp=
  10515. trap 'exit_status=$?
  10516. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10517. ' 0
  10518. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10519. }
  10520. # Create a (secure) tmp directory for tmp files.
  10521. {
  10522. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10523. test -n "$tmp" && test -d "$tmp"
  10524. } ||
  10525. {
  10526. tmp=./conf$$-$RANDOM
  10527. (umask 077 && mkdir "$tmp")
  10528. } ||
  10529. {
  10530. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  10531. { (exit 1); exit 1; }
  10532. }
  10533. # Set up the scripts for CONFIG_FILES section.
  10534. # No need to generate them if there are no CONFIG_FILES.
  10535. # This happens for instance with `./config.status config.h'.
  10536. if test -n "$CONFIG_FILES"; then
  10537. ac_cr=' '
  10538. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10539. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10540. ac_cs_awk_cr='\\r'
  10541. else
  10542. ac_cs_awk_cr=$ac_cr
  10543. fi
  10544. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10545. _ACEOF
  10546. {
  10547. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10548. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10549. echo "_ACEOF"
  10550. } >conf$$subs.sh ||
  10551. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10552. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10553. { (exit 1); exit 1; }; }
  10554. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10555. ac_delim='%!_!# '
  10556. for ac_last_try in false false false false false :; do
  10557. . ./conf$$subs.sh ||
  10558. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10559. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10560. { (exit 1); exit 1; }; }
  10561. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10562. if test $ac_delim_n = $ac_delim_num; then
  10563. break
  10564. elif $ac_last_try; then
  10565. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10566. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10567. { (exit 1); exit 1; }; }
  10568. else
  10569. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10570. fi
  10571. done
  10572. rm -f conf$$subs.sh
  10573. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10574. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10575. _ACEOF
  10576. sed -n '
  10577. h
  10578. s/^/S["/; s/!.*/"]=/
  10579. p
  10580. g
  10581. s/^[^!]*!//
  10582. :repl
  10583. t repl
  10584. s/'"$ac_delim"'$//
  10585. t delim
  10586. :nl
  10587. h
  10588. s/\(.\{148\}\).*/\1/
  10589. t more1
  10590. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10591. p
  10592. n
  10593. b repl
  10594. :more1
  10595. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10596. p
  10597. g
  10598. s/.\{148\}//
  10599. t nl
  10600. :delim
  10601. h
  10602. s/\(.\{148\}\).*/\1/
  10603. t more2
  10604. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10605. p
  10606. b
  10607. :more2
  10608. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10609. p
  10610. g
  10611. s/.\{148\}//
  10612. t delim
  10613. ' <conf$$subs.awk | sed '
  10614. /^[^""]/{
  10615. N
  10616. s/\n//
  10617. }
  10618. ' >>$CONFIG_STATUS || ac_write_fail=1
  10619. rm -f conf$$subs.awk
  10620. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10621. _ACAWK
  10622. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10623. for (key in S) S_is_set[key] = 1
  10624. FS = ""
  10625. }
  10626. {
  10627. line = $ 0
  10628. nfields = split(line, field, "@")
  10629. substed = 0
  10630. len = length(field[1])
  10631. for (i = 2; i < nfields; i++) {
  10632. key = field[i]
  10633. keylen = length(key)
  10634. if (S_is_set[key]) {
  10635. value = S[key]
  10636. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10637. len += length(value) + length(field[++i])
  10638. substed = 1
  10639. } else
  10640. len += 1 + keylen
  10641. }
  10642. print line
  10643. }
  10644. _ACAWK
  10645. _ACEOF
  10646. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10647. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10648. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10649. else
  10650. cat
  10651. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10652. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  10653. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  10654. { (exit 1); exit 1; }; }
  10655. _ACEOF
  10656. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10657. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10658. # trailing colons and then remove the whole line if VPATH becomes empty
  10659. # (actually we leave an empty line to preserve line numbers).
  10660. if test "x$srcdir" = x.; then
  10661. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10662. s/:*\$(srcdir):*/:/
  10663. s/:*\${srcdir}:*/:/
  10664. s/:*@srcdir@:*/:/
  10665. s/^\([^=]*=[ ]*\):*/\1/
  10666. s/:*$//
  10667. s/^[^=]*=[ ]*$//
  10668. }'
  10669. fi
  10670. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10671. fi # test -n "$CONFIG_FILES"
  10672. # Set up the scripts for CONFIG_HEADERS section.
  10673. # No need to generate them if there are no CONFIG_HEADERS.
  10674. # This happens for instance with `./config.status Makefile'.
  10675. if test -n "$CONFIG_HEADERS"; then
  10676. cat >"$tmp/defines.awk" <<\_ACAWK ||
  10677. BEGIN {
  10678. _ACEOF
  10679. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10680. # here-document in config.status, that substitutes the proper values into
  10681. # config.h.in to produce config.h.
  10682. # Create a delimiter string that does not exist in confdefs.h, to ease
  10683. # handling of long lines.
  10684. ac_delim='%!_!# '
  10685. for ac_last_try in false false :; do
  10686. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  10687. if test -z "$ac_t"; then
  10688. break
  10689. elif $ac_last_try; then
  10690. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  10691. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  10692. { (exit 1); exit 1; }; }
  10693. else
  10694. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10695. fi
  10696. done
  10697. # For the awk script, D is an array of macro values keyed by name,
  10698. # likewise P contains macro parameters if any. Preserve backslash
  10699. # newline sequences.
  10700. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10701. sed -n '
  10702. s/.\{148\}/&'"$ac_delim"'/g
  10703. t rset
  10704. :rset
  10705. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10706. t def
  10707. d
  10708. :def
  10709. s/\\$//
  10710. t bsnl
  10711. s/["\\]/\\&/g
  10712. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10713. D["\1"]=" \3"/p
  10714. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10715. d
  10716. :bsnl
  10717. s/["\\]/\\&/g
  10718. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10719. D["\1"]=" \3\\\\\\n"\\/p
  10720. t cont
  10721. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10722. t cont
  10723. d
  10724. :cont
  10725. n
  10726. s/.\{148\}/&'"$ac_delim"'/g
  10727. t clear
  10728. :clear
  10729. s/\\$//
  10730. t bsnlc
  10731. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10732. d
  10733. :bsnlc
  10734. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10735. b cont
  10736. ' <confdefs.h | sed '
  10737. s/'"$ac_delim"'/"\\\
  10738. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10739. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10740. for (key in D) D_is_set[key] = 1
  10741. FS = ""
  10742. }
  10743. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10744. line = \$ 0
  10745. split(line, arg, " ")
  10746. if (arg[1] == "#") {
  10747. defundef = arg[2]
  10748. mac1 = arg[3]
  10749. } else {
  10750. defundef = substr(arg[1], 2)
  10751. mac1 = arg[2]
  10752. }
  10753. split(mac1, mac2, "(") #)
  10754. macro = mac2[1]
  10755. prefix = substr(line, 1, index(line, defundef) - 1)
  10756. if (D_is_set[macro]) {
  10757. # Preserve the white space surrounding the "#".
  10758. print prefix "define", macro P[macro] D[macro]
  10759. next
  10760. } else {
  10761. # Replace #undef with comments. This is necessary, for example,
  10762. # in the case of _POSIX_SOURCE, which is predefined and required
  10763. # on some systems where configure will not decide to define it.
  10764. if (defundef == "undef") {
  10765. print "/*", prefix defundef, macro, "*/"
  10766. next
  10767. }
  10768. }
  10769. }
  10770. { print }
  10771. _ACAWK
  10772. _ACEOF
  10773. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10774. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  10775. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  10776. { (exit 1); exit 1; }; }
  10777. fi # test -n "$CONFIG_HEADERS"
  10778. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10779. shift
  10780. for ac_tag
  10781. do
  10782. case $ac_tag in
  10783. :[FHLC]) ac_mode=$ac_tag; continue;;
  10784. esac
  10785. case $ac_mode$ac_tag in
  10786. :[FHL]*:*);;
  10787. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  10788. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  10789. { (exit 1); exit 1; }; };;
  10790. :[FH]-) ac_tag=-:-;;
  10791. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10792. esac
  10793. ac_save_IFS=$IFS
  10794. IFS=:
  10795. set x $ac_tag
  10796. IFS=$ac_save_IFS
  10797. shift
  10798. ac_file=$1
  10799. shift
  10800. case $ac_mode in
  10801. :L) ac_source=$1;;
  10802. :[FH])
  10803. ac_file_inputs=
  10804. for ac_f
  10805. do
  10806. case $ac_f in
  10807. -) ac_f="$tmp/stdin";;
  10808. *) # Look for the file first in the build tree, then in the source tree
  10809. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10810. # because $ac_f cannot contain `:'.
  10811. test -f "$ac_f" ||
  10812. case $ac_f in
  10813. [\\/$]*) false;;
  10814. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10815. esac ||
  10816. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  10817. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  10818. { (exit 1); exit 1; }; };;
  10819. esac
  10820. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10821. ac_file_inputs="$ac_file_inputs '$ac_f'"
  10822. done
  10823. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10824. # use $as_me), people would be surprised to read:
  10825. # /* config.h. Generated by config.status. */
  10826. configure_input='Generated from '`
  10827. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10828. `' by configure.'
  10829. if test x"$ac_file" != x-; then
  10830. configure_input="$ac_file. $configure_input"
  10831. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  10832. $as_echo "$as_me: creating $ac_file" >&6;}
  10833. fi
  10834. # Neutralize special characters interpreted by sed in replacement strings.
  10835. case $configure_input in #(
  10836. *\&* | *\|* | *\\* )
  10837. ac_sed_conf_input=`$as_echo "$configure_input" |
  10838. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10839. *) ac_sed_conf_input=$configure_input;;
  10840. esac
  10841. case $ac_tag in
  10842. *:-:* | *:-) cat >"$tmp/stdin" \
  10843. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10844. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10845. { (exit 1); exit 1; }; } ;;
  10846. esac
  10847. ;;
  10848. esac
  10849. ac_dir=`$as_dirname -- "$ac_file" ||
  10850. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10851. X"$ac_file" : 'X\(//\)[^/]' \| \
  10852. X"$ac_file" : 'X\(//\)$' \| \
  10853. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10854. $as_echo X"$ac_file" |
  10855. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10856. s//\1/
  10857. q
  10858. }
  10859. /^X\(\/\/\)[^/].*/{
  10860. s//\1/
  10861. q
  10862. }
  10863. /^X\(\/\/\)$/{
  10864. s//\1/
  10865. q
  10866. }
  10867. /^X\(\/\).*/{
  10868. s//\1/
  10869. q
  10870. }
  10871. s/.*/./; q'`
  10872. { as_dir="$ac_dir"
  10873. case $as_dir in #(
  10874. -*) as_dir=./$as_dir;;
  10875. esac
  10876. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  10877. as_dirs=
  10878. while :; do
  10879. case $as_dir in #(
  10880. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10881. *) as_qdir=$as_dir;;
  10882. esac
  10883. as_dirs="'$as_qdir' $as_dirs"
  10884. as_dir=`$as_dirname -- "$as_dir" ||
  10885. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10886. X"$as_dir" : 'X\(//\)[^/]' \| \
  10887. X"$as_dir" : 'X\(//\)$' \| \
  10888. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10889. $as_echo X"$as_dir" |
  10890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10891. s//\1/
  10892. q
  10893. }
  10894. /^X\(\/\/\)[^/].*/{
  10895. s//\1/
  10896. q
  10897. }
  10898. /^X\(\/\/\)$/{
  10899. s//\1/
  10900. q
  10901. }
  10902. /^X\(\/\).*/{
  10903. s//\1/
  10904. q
  10905. }
  10906. s/.*/./; q'`
  10907. test -d "$as_dir" && break
  10908. done
  10909. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10910. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  10911. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  10912. { (exit 1); exit 1; }; }; }
  10913. ac_builddir=.
  10914. case "$ac_dir" in
  10915. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10916. *)
  10917. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10918. # A ".." for each directory in $ac_dir_suffix.
  10919. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10920. case $ac_top_builddir_sub in
  10921. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10922. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10923. esac ;;
  10924. esac
  10925. ac_abs_top_builddir=$ac_pwd
  10926. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10927. # for backward compatibility:
  10928. ac_top_builddir=$ac_top_build_prefix
  10929. case $srcdir in
  10930. .) # We are building in place.
  10931. ac_srcdir=.
  10932. ac_top_srcdir=$ac_top_builddir_sub
  10933. ac_abs_top_srcdir=$ac_pwd ;;
  10934. [\\/]* | ?:[\\/]* ) # Absolute name.
  10935. ac_srcdir=$srcdir$ac_dir_suffix;
  10936. ac_top_srcdir=$srcdir
  10937. ac_abs_top_srcdir=$srcdir ;;
  10938. *) # Relative name.
  10939. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10940. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10941. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10942. esac
  10943. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10944. case $ac_mode in
  10945. :F)
  10946. #
  10947. # CONFIG_FILE
  10948. #
  10949. case $INSTALL in
  10950. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10951. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10952. esac
  10953. ac_MKDIR_P=$MKDIR_P
  10954. case $MKDIR_P in
  10955. [\\/$]* | ?:[\\/]* ) ;;
  10956. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10957. esac
  10958. _ACEOF
  10959. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10960. # If the template does not know about datarootdir, expand it.
  10961. # FIXME: This hack should be removed a few years after 2.60.
  10962. ac_datarootdir_hack=; ac_datarootdir_seen=
  10963. ac_sed_dataroot='
  10964. /datarootdir/ {
  10965. p
  10966. q
  10967. }
  10968. /@datadir@/p
  10969. /@docdir@/p
  10970. /@infodir@/p
  10971. /@localedir@/p
  10972. /@mandir@/p
  10973. '
  10974. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10975. *datarootdir*) ac_datarootdir_seen=yes;;
  10976. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10977. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10978. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10979. _ACEOF
  10980. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10981. ac_datarootdir_hack='
  10982. s&@datadir@&$datadir&g
  10983. s&@docdir@&$docdir&g
  10984. s&@infodir@&$infodir&g
  10985. s&@localedir@&$localedir&g
  10986. s&@mandir@&$mandir&g
  10987. s&\\\${datarootdir}&$datarootdir&g' ;;
  10988. esac
  10989. _ACEOF
  10990. # Neutralize VPATH when `$srcdir' = `.'.
  10991. # Shell code in configure.ac might set extrasub.
  10992. # FIXME: do we really want to maintain this feature?
  10993. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10994. ac_sed_extra="$ac_vpsub
  10995. $extrasub
  10996. _ACEOF
  10997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10998. :t
  10999. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11000. s|@configure_input@|$ac_sed_conf_input|;t t
  11001. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11002. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11003. s&@srcdir@&$ac_srcdir&;t t
  11004. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11005. s&@top_srcdir@&$ac_top_srcdir&;t t
  11006. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11007. s&@builddir@&$ac_builddir&;t t
  11008. s&@abs_builddir@&$ac_abs_builddir&;t t
  11009. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11010. s&@INSTALL@&$ac_INSTALL&;t t
  11011. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11012. $ac_datarootdir_hack
  11013. "
  11014. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  11015. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11016. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11017. { (exit 1); exit 1; }; }
  11018. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11019. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11020. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11021. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11022. which seems to be undefined. Please make sure it is defined." >&5
  11023. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11024. which seems to be undefined. Please make sure it is defined." >&2;}
  11025. rm -f "$tmp/stdin"
  11026. case $ac_file in
  11027. -) cat "$tmp/out" && rm -f "$tmp/out";;
  11028. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  11029. esac \
  11030. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11031. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11032. { (exit 1); exit 1; }; }
  11033. ;;
  11034. :H)
  11035. #
  11036. # CONFIG_HEADER
  11037. #
  11038. if test x"$ac_file" != x-; then
  11039. {
  11040. $as_echo "/* $configure_input */" \
  11041. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  11042. } >"$tmp/config.h" \
  11043. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11044. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11045. { (exit 1); exit 1; }; }
  11046. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  11047. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11048. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11049. else
  11050. rm -f "$ac_file"
  11051. mv "$tmp/config.h" "$ac_file" \
  11052. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  11053. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  11054. { (exit 1); exit 1; }; }
  11055. fi
  11056. else
  11057. $as_echo "/* $configure_input */" \
  11058. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  11059. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  11060. $as_echo "$as_me: error: could not create -" >&2;}
  11061. { (exit 1); exit 1; }; }
  11062. fi
  11063. # Compute "$ac_file"'s index in $config_headers.
  11064. _am_arg="$ac_file"
  11065. _am_stamp_count=1
  11066. for _am_header in $config_headers :; do
  11067. case $_am_header in
  11068. $_am_arg | $_am_arg:* )
  11069. break ;;
  11070. * )
  11071. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11072. esac
  11073. done
  11074. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11075. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11076. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11077. X"$_am_arg" : 'X\(//\)$' \| \
  11078. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11079. $as_echo X"$_am_arg" |
  11080. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11081. s//\1/
  11082. q
  11083. }
  11084. /^X\(\/\/\)[^/].*/{
  11085. s//\1/
  11086. q
  11087. }
  11088. /^X\(\/\/\)$/{
  11089. s//\1/
  11090. q
  11091. }
  11092. /^X\(\/\).*/{
  11093. s//\1/
  11094. q
  11095. }
  11096. s/.*/./; q'`/stamp-h$_am_stamp_count
  11097. ;;
  11098. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  11099. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11100. ;;
  11101. esac
  11102. case $ac_file$ac_mode in
  11103. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11104. # are listed without --file. Let's play safe and only enable the eval
  11105. # if we detect the quoting.
  11106. case $CONFIG_FILES in
  11107. *\'*) eval set x "$CONFIG_FILES" ;;
  11108. *) set x $CONFIG_FILES ;;
  11109. esac
  11110. shift
  11111. for mf
  11112. do
  11113. # Strip MF so we end up with the name of the file.
  11114. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11115. # Check whether this is an Automake generated Makefile or not.
  11116. # We used to match only the files named `Makefile.in', but
  11117. # some people rename them; so instead we look at the file content.
  11118. # Grep'ing the first line is not enough: some people post-process
  11119. # each Makefile.in and add a new line on top of each file to say so.
  11120. # Grep'ing the whole file is not good either: AIX grep has a line
  11121. # limit of 2048, but all sed's we know have understand at least 4000.
  11122. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11123. dirpart=`$as_dirname -- "$mf" ||
  11124. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11125. X"$mf" : 'X\(//\)[^/]' \| \
  11126. X"$mf" : 'X\(//\)$' \| \
  11127. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11128. $as_echo X"$mf" |
  11129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11130. s//\1/
  11131. q
  11132. }
  11133. /^X\(\/\/\)[^/].*/{
  11134. s//\1/
  11135. q
  11136. }
  11137. /^X\(\/\/\)$/{
  11138. s//\1/
  11139. q
  11140. }
  11141. /^X\(\/\).*/{
  11142. s//\1/
  11143. q
  11144. }
  11145. s/.*/./; q'`
  11146. else
  11147. continue
  11148. fi
  11149. # Extract the definition of DEPDIR, am__include, and am__quote
  11150. # from the Makefile without running `make'.
  11151. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11152. test -z "$DEPDIR" && continue
  11153. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11154. test -z "am__include" && continue
  11155. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11156. # When using ansi2knr, U may be empty or an underscore; expand it
  11157. U=`sed -n 's/^U = //p' < "$mf"`
  11158. # Find all dependency output files, they are included files with
  11159. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11160. # simplest approach to changing $(DEPDIR) to its actual value in the
  11161. # expansion.
  11162. for file in `sed -n "
  11163. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11164. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11165. # Make sure the directory exists.
  11166. test -f "$dirpart/$file" && continue
  11167. fdir=`$as_dirname -- "$file" ||
  11168. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11169. X"$file" : 'X\(//\)[^/]' \| \
  11170. X"$file" : 'X\(//\)$' \| \
  11171. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11172. $as_echo X"$file" |
  11173. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11174. s//\1/
  11175. q
  11176. }
  11177. /^X\(\/\/\)[^/].*/{
  11178. s//\1/
  11179. q
  11180. }
  11181. /^X\(\/\/\)$/{
  11182. s//\1/
  11183. q
  11184. }
  11185. /^X\(\/\).*/{
  11186. s//\1/
  11187. q
  11188. }
  11189. s/.*/./; q'`
  11190. { as_dir=$dirpart/$fdir
  11191. case $as_dir in #(
  11192. -*) as_dir=./$as_dir;;
  11193. esac
  11194. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11195. as_dirs=
  11196. while :; do
  11197. case $as_dir in #(
  11198. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11199. *) as_qdir=$as_dir;;
  11200. esac
  11201. as_dirs="'$as_qdir' $as_dirs"
  11202. as_dir=`$as_dirname -- "$as_dir" ||
  11203. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11204. X"$as_dir" : 'X\(//\)[^/]' \| \
  11205. X"$as_dir" : 'X\(//\)$' \| \
  11206. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11207. $as_echo X"$as_dir" |
  11208. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11209. s//\1/
  11210. q
  11211. }
  11212. /^X\(\/\/\)[^/].*/{
  11213. s//\1/
  11214. q
  11215. }
  11216. /^X\(\/\/\)$/{
  11217. s//\1/
  11218. q
  11219. }
  11220. /^X\(\/\).*/{
  11221. s//\1/
  11222. q
  11223. }
  11224. s/.*/./; q'`
  11225. test -d "$as_dir" && break
  11226. done
  11227. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11228. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11229. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11230. { (exit 1); exit 1; }; }; }
  11231. # echo "creating $dirpart/$file"
  11232. echo '# dummy' > "$dirpart/$file"
  11233. done
  11234. done
  11235. ;;
  11236. "libtool":C)
  11237. # See if we are running on zsh, and set the options which allow our
  11238. # commands through without removal of \ escapes.
  11239. if test -n "${ZSH_VERSION+set}" ; then
  11240. setopt NO_GLOB_SUBST
  11241. fi
  11242. cfgfile="${ofile}T"
  11243. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11244. $RM "$cfgfile"
  11245. cat <<_LT_EOF >> "$cfgfile"
  11246. #! $SHELL
  11247. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11248. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11249. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11250. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11251. #
  11252. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11253. # 2006, 2007, 2008 Free Software Foundation, Inc.
  11254. # Written by Gordon Matzigkeit, 1996
  11255. #
  11256. # This file is part of GNU Libtool.
  11257. #
  11258. # GNU Libtool is free software; you can redistribute it and/or
  11259. # modify it under the terms of the GNU General Public License as
  11260. # published by the Free Software Foundation; either version 2 of
  11261. # the License, or (at your option) any later version.
  11262. #
  11263. # As a special exception to the GNU General Public License,
  11264. # if you distribute this file as part of a program or library that
  11265. # is built using GNU Libtool, you may include this file under the
  11266. # same distribution terms that you use for the rest of that program.
  11267. #
  11268. # GNU Libtool is distributed in the hope that it will be useful,
  11269. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11270. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11271. # GNU General Public License for more details.
  11272. #
  11273. # You should have received a copy of the GNU General Public License
  11274. # along with GNU Libtool; see the file COPYING. If not, a copy
  11275. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11276. # obtained by writing to the Free Software Foundation, Inc.,
  11277. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11278. # The names of the tagged configurations supported by this script.
  11279. available_tags=""
  11280. # ### BEGIN LIBTOOL CONFIG
  11281. # Which release of libtool.m4 was used?
  11282. macro_version=$macro_version
  11283. macro_revision=$macro_revision
  11284. # Whether or not to build shared libraries.
  11285. build_libtool_libs=$enable_shared
  11286. # Whether or not to build static libraries.
  11287. build_old_libs=$enable_static
  11288. # What type of objects to build.
  11289. pic_mode=$pic_mode
  11290. # Whether or not to optimize for fast installation.
  11291. fast_install=$enable_fast_install
  11292. # The host system.
  11293. host_alias=$host_alias
  11294. host=$host
  11295. host_os=$host_os
  11296. # The build system.
  11297. build_alias=$build_alias
  11298. build=$build
  11299. build_os=$build_os
  11300. # A sed program that does not truncate output.
  11301. SED=$lt_SED
  11302. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11303. Xsed="\$SED -e 1s/^X//"
  11304. # A grep program that handles long lines.
  11305. GREP=$lt_GREP
  11306. # An ERE matcher.
  11307. EGREP=$lt_EGREP
  11308. # A literal string matcher.
  11309. FGREP=$lt_FGREP
  11310. # A BSD- or MS-compatible name lister.
  11311. NM=$lt_NM
  11312. # Whether we need soft or hard links.
  11313. LN_S=$lt_LN_S
  11314. # What is the maximum length of a command?
  11315. max_cmd_len=$max_cmd_len
  11316. # Object file suffix (normally "o").
  11317. objext=$ac_objext
  11318. # Executable file suffix (normally "").
  11319. exeext=$exeext
  11320. # whether the shell understands "unset".
  11321. lt_unset=$lt_unset
  11322. # turn spaces into newlines.
  11323. SP2NL=$lt_lt_SP2NL
  11324. # turn newlines into spaces.
  11325. NL2SP=$lt_lt_NL2SP
  11326. # How to create reloadable object files.
  11327. reload_flag=$lt_reload_flag
  11328. reload_cmds=$lt_reload_cmds
  11329. # An object symbol dumper.
  11330. OBJDUMP=$lt_OBJDUMP
  11331. # Method to check whether dependent libraries are shared objects.
  11332. deplibs_check_method=$lt_deplibs_check_method
  11333. # Command to use when deplibs_check_method == "file_magic".
  11334. file_magic_cmd=$lt_file_magic_cmd
  11335. # The archiver.
  11336. AR=$lt_AR
  11337. AR_FLAGS=$lt_AR_FLAGS
  11338. # A symbol stripping program.
  11339. STRIP=$lt_STRIP
  11340. # Commands used to install an old-style archive.
  11341. RANLIB=$lt_RANLIB
  11342. old_postinstall_cmds=$lt_old_postinstall_cmds
  11343. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11344. # A C compiler.
  11345. LTCC=$lt_CC
  11346. # LTCC compiler flags.
  11347. LTCFLAGS=$lt_CFLAGS
  11348. # Take the output of nm and produce a listing of raw symbols and C names.
  11349. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11350. # Transform the output of nm in a proper C declaration.
  11351. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11352. # Transform the output of nm in a C name address pair.
  11353. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11354. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11355. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11356. # The name of the directory that contains temporary libtool files.
  11357. objdir=$objdir
  11358. # Shell to use when invoking shell scripts.
  11359. SHELL=$lt_SHELL
  11360. # An echo program that does not interpret backslashes.
  11361. ECHO=$lt_ECHO
  11362. # Used to examine libraries when file_magic_cmd begins with "file".
  11363. MAGIC_CMD=$MAGIC_CMD
  11364. # Must we lock files when doing compilation?
  11365. need_locks=$lt_need_locks
  11366. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11367. DSYMUTIL=$lt_DSYMUTIL
  11368. # Tool to change global to local symbols on Mac OS X.
  11369. NMEDIT=$lt_NMEDIT
  11370. # Tool to manipulate fat objects and archives on Mac OS X.
  11371. LIPO=$lt_LIPO
  11372. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11373. OTOOL=$lt_OTOOL
  11374. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11375. OTOOL64=$lt_OTOOL64
  11376. # Old archive suffix (normally "a").
  11377. libext=$libext
  11378. # Shared library suffix (normally ".so").
  11379. shrext_cmds=$lt_shrext_cmds
  11380. # The commands to extract the exported symbol list from a shared archive.
  11381. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11382. # Variables whose values should be saved in libtool wrapper scripts and
  11383. # restored at link time.
  11384. variables_saved_for_relink=$lt_variables_saved_for_relink
  11385. # Do we need the "lib" prefix for modules?
  11386. need_lib_prefix=$need_lib_prefix
  11387. # Do we need a version for libraries?
  11388. need_version=$need_version
  11389. # Library versioning type.
  11390. version_type=$version_type
  11391. # Shared library runtime path variable.
  11392. runpath_var=$runpath_var
  11393. # Shared library path variable.
  11394. shlibpath_var=$shlibpath_var
  11395. # Is shlibpath searched before the hard-coded library search path?
  11396. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11397. # Format of library name prefix.
  11398. libname_spec=$lt_libname_spec
  11399. # List of archive names. First name is the real one, the rest are links.
  11400. # The last name is the one that the linker finds with -lNAME
  11401. library_names_spec=$lt_library_names_spec
  11402. # The coded name of the library, if different from the real name.
  11403. soname_spec=$lt_soname_spec
  11404. # Command to use after installation of a shared archive.
  11405. postinstall_cmds=$lt_postinstall_cmds
  11406. # Command to use after uninstallation of a shared archive.
  11407. postuninstall_cmds=$lt_postuninstall_cmds
  11408. # Commands used to finish a libtool library installation in a directory.
  11409. finish_cmds=$lt_finish_cmds
  11410. # As "finish_cmds", except a single script fragment to be evaled but
  11411. # not shown.
  11412. finish_eval=$lt_finish_eval
  11413. # Whether we should hardcode library paths into libraries.
  11414. hardcode_into_libs=$hardcode_into_libs
  11415. # Compile-time system search path for libraries.
  11416. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11417. # Run-time system search path for libraries.
  11418. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11419. # Whether dlopen is supported.
  11420. dlopen_support=$enable_dlopen
  11421. # Whether dlopen of programs is supported.
  11422. dlopen_self=$enable_dlopen_self
  11423. # Whether dlopen of statically linked programs is supported.
  11424. dlopen_self_static=$enable_dlopen_self_static
  11425. # Commands to strip libraries.
  11426. old_striplib=$lt_old_striplib
  11427. striplib=$lt_striplib
  11428. # The linker used to build libraries.
  11429. LD=$lt_LD
  11430. # Commands used to build an old-style archive.
  11431. old_archive_cmds=$lt_old_archive_cmds
  11432. # A language specific compiler.
  11433. CC=$lt_compiler
  11434. # Is the compiler the GNU compiler?
  11435. with_gcc=$GCC
  11436. # Compiler flag to turn off builtin functions.
  11437. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11438. # How to pass a linker flag through the compiler.
  11439. wl=$lt_lt_prog_compiler_wl
  11440. # Additional compiler flags for building library objects.
  11441. pic_flag=$lt_lt_prog_compiler_pic
  11442. # Compiler flag to prevent dynamic linking.
  11443. link_static_flag=$lt_lt_prog_compiler_static
  11444. # Does compiler simultaneously support -c and -o options?
  11445. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11446. # Whether or not to add -lc for building shared libraries.
  11447. build_libtool_need_lc=$archive_cmds_need_lc
  11448. # Whether or not to disallow shared libs when runtime libs are static.
  11449. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11450. # Compiler flag to allow reflexive dlopens.
  11451. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11452. # Compiler flag to generate shared objects directly from archives.
  11453. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11454. # Whether the compiler copes with passing no objects directly.
  11455. compiler_needs_object=$lt_compiler_needs_object
  11456. # Create an old-style archive from a shared archive.
  11457. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11458. # Create a temporary old-style archive to link instead of a shared archive.
  11459. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11460. # Commands used to build a shared archive.
  11461. archive_cmds=$lt_archive_cmds
  11462. archive_expsym_cmds=$lt_archive_expsym_cmds
  11463. # Commands used to build a loadable module if different from building
  11464. # a shared archive.
  11465. module_cmds=$lt_module_cmds
  11466. module_expsym_cmds=$lt_module_expsym_cmds
  11467. # Whether we are building with GNU ld or not.
  11468. with_gnu_ld=$lt_with_gnu_ld
  11469. # Flag that allows shared libraries with undefined symbols to be built.
  11470. allow_undefined_flag=$lt_allow_undefined_flag
  11471. # Flag that enforces no undefined symbols.
  11472. no_undefined_flag=$lt_no_undefined_flag
  11473. # Flag to hardcode \$libdir into a binary during linking.
  11474. # This must work even if \$libdir does not exist
  11475. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11476. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11477. # during linking. This must work even if \$libdir does not exist.
  11478. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11479. # Whether we need a single "-rpath" flag with a separated argument.
  11480. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11481. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11482. # DIR into the resulting binary.
  11483. hardcode_direct=$hardcode_direct
  11484. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11485. # DIR into the resulting binary and the resulting library dependency is
  11486. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11487. # library is relocated.
  11488. hardcode_direct_absolute=$hardcode_direct_absolute
  11489. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11490. # into the resulting binary.
  11491. hardcode_minus_L=$hardcode_minus_L
  11492. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11493. # into the resulting binary.
  11494. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11495. # Set to "yes" if building a shared library automatically hardcodes DIR
  11496. # into the library and all subsequent libraries and executables linked
  11497. # against it.
  11498. hardcode_automatic=$hardcode_automatic
  11499. # Set to yes if linker adds runtime paths of dependent libraries
  11500. # to runtime path list.
  11501. inherit_rpath=$inherit_rpath
  11502. # Whether libtool must link a program against all its dependency libraries.
  11503. link_all_deplibs=$link_all_deplibs
  11504. # Fix the shell variable \$srcfile for the compiler.
  11505. fix_srcfile_path=$lt_fix_srcfile_path
  11506. # Set to "yes" if exported symbols are required.
  11507. always_export_symbols=$always_export_symbols
  11508. # The commands to list exported symbols.
  11509. export_symbols_cmds=$lt_export_symbols_cmds
  11510. # Symbols that should not be listed in the preloaded symbols.
  11511. exclude_expsyms=$lt_exclude_expsyms
  11512. # Symbols that must always be exported.
  11513. include_expsyms=$lt_include_expsyms
  11514. # Commands necessary for linking programs (against libraries) with templates.
  11515. prelink_cmds=$lt_prelink_cmds
  11516. # Specify filename containing input files.
  11517. file_list_spec=$lt_file_list_spec
  11518. # How to hardcode a shared library path into an executable.
  11519. hardcode_action=$hardcode_action
  11520. # ### END LIBTOOL CONFIG
  11521. _LT_EOF
  11522. case $host_os in
  11523. aix3*)
  11524. cat <<\_LT_EOF >> "$cfgfile"
  11525. # AIX sometimes has problems with the GCC collect2 program. For some
  11526. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11527. # vanish in a puff of smoke.
  11528. if test "X${COLLECT_NAMES+set}" != Xset; then
  11529. COLLECT_NAMES=
  11530. export COLLECT_NAMES
  11531. fi
  11532. _LT_EOF
  11533. ;;
  11534. esac
  11535. ltmain="$ac_aux_dir/ltmain.sh"
  11536. # We use sed instead of cat because bash on DJGPP gets confused if
  11537. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11538. # text mode, it properly converts lines to CR/LF. This bash problem
  11539. # is reportedly fixed, but why not run on old versions too?
  11540. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11541. || (rm -f "$cfgfile"; exit 1)
  11542. case $xsi_shell in
  11543. yes)
  11544. cat << \_LT_EOF >> "$cfgfile"
  11545. # func_dirname file append nondir_replacement
  11546. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11547. # otherwise set result to NONDIR_REPLACEMENT.
  11548. func_dirname ()
  11549. {
  11550. case ${1} in
  11551. */*) func_dirname_result="${1%/*}${2}" ;;
  11552. * ) func_dirname_result="${3}" ;;
  11553. esac
  11554. }
  11555. # func_basename file
  11556. func_basename ()
  11557. {
  11558. func_basename_result="${1##*/}"
  11559. }
  11560. # func_dirname_and_basename file append nondir_replacement
  11561. # perform func_basename and func_dirname in a single function
  11562. # call:
  11563. # dirname: Compute the dirname of FILE. If nonempty,
  11564. # add APPEND to the result, otherwise set result
  11565. # to NONDIR_REPLACEMENT.
  11566. # value returned in "$func_dirname_result"
  11567. # basename: Compute filename of FILE.
  11568. # value retuned in "$func_basename_result"
  11569. # Implementation must be kept synchronized with func_dirname
  11570. # and func_basename. For efficiency, we do not delegate to
  11571. # those functions but instead duplicate the functionality here.
  11572. func_dirname_and_basename ()
  11573. {
  11574. case ${1} in
  11575. */*) func_dirname_result="${1%/*}${2}" ;;
  11576. * ) func_dirname_result="${3}" ;;
  11577. esac
  11578. func_basename_result="${1##*/}"
  11579. }
  11580. # func_stripname prefix suffix name
  11581. # strip PREFIX and SUFFIX off of NAME.
  11582. # PREFIX and SUFFIX must not contain globbing or regex special
  11583. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11584. # dot (in which case that matches only a dot).
  11585. func_stripname ()
  11586. {
  11587. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11588. # positional parameters, so assign one to ordinary parameter first.
  11589. func_stripname_result=${3}
  11590. func_stripname_result=${func_stripname_result#"${1}"}
  11591. func_stripname_result=${func_stripname_result%"${2}"}
  11592. }
  11593. # func_opt_split
  11594. func_opt_split ()
  11595. {
  11596. func_opt_split_opt=${1%%=*}
  11597. func_opt_split_arg=${1#*=}
  11598. }
  11599. # func_lo2o object
  11600. func_lo2o ()
  11601. {
  11602. case ${1} in
  11603. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11604. *) func_lo2o_result=${1} ;;
  11605. esac
  11606. }
  11607. # func_xform libobj-or-source
  11608. func_xform ()
  11609. {
  11610. func_xform_result=${1%.*}.lo
  11611. }
  11612. # func_arith arithmetic-term...
  11613. func_arith ()
  11614. {
  11615. func_arith_result=$(( $* ))
  11616. }
  11617. # func_len string
  11618. # STRING may not start with a hyphen.
  11619. func_len ()
  11620. {
  11621. func_len_result=${#1}
  11622. }
  11623. _LT_EOF
  11624. ;;
  11625. *) # Bourne compatible functions.
  11626. cat << \_LT_EOF >> "$cfgfile"
  11627. # func_dirname file append nondir_replacement
  11628. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11629. # otherwise set result to NONDIR_REPLACEMENT.
  11630. func_dirname ()
  11631. {
  11632. # Extract subdirectory from the argument.
  11633. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11634. if test "X$func_dirname_result" = "X${1}"; then
  11635. func_dirname_result="${3}"
  11636. else
  11637. func_dirname_result="$func_dirname_result${2}"
  11638. fi
  11639. }
  11640. # func_basename file
  11641. func_basename ()
  11642. {
  11643. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11644. }
  11645. # func_stripname prefix suffix name
  11646. # strip PREFIX and SUFFIX off of NAME.
  11647. # PREFIX and SUFFIX must not contain globbing or regex special
  11648. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11649. # dot (in which case that matches only a dot).
  11650. # func_strip_suffix prefix name
  11651. func_stripname ()
  11652. {
  11653. case ${2} in
  11654. .*) func_stripname_result=`$ECHO "X${3}" \
  11655. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11656. *) func_stripname_result=`$ECHO "X${3}" \
  11657. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11658. esac
  11659. }
  11660. # sed scripts:
  11661. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11662. my_sed_long_arg='1s/^-[^=]*=//'
  11663. # func_opt_split
  11664. func_opt_split ()
  11665. {
  11666. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11667. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11668. }
  11669. # func_lo2o object
  11670. func_lo2o ()
  11671. {
  11672. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11673. }
  11674. # func_xform libobj-or-source
  11675. func_xform ()
  11676. {
  11677. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  11678. }
  11679. # func_arith arithmetic-term...
  11680. func_arith ()
  11681. {
  11682. func_arith_result=`expr "$@"`
  11683. }
  11684. # func_len string
  11685. # STRING may not start with a hyphen.
  11686. func_len ()
  11687. {
  11688. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11689. }
  11690. _LT_EOF
  11691. esac
  11692. case $lt_shell_append in
  11693. yes)
  11694. cat << \_LT_EOF >> "$cfgfile"
  11695. # func_append var value
  11696. # Append VALUE to the end of shell variable VAR.
  11697. func_append ()
  11698. {
  11699. eval "$1+=\$2"
  11700. }
  11701. _LT_EOF
  11702. ;;
  11703. *)
  11704. cat << \_LT_EOF >> "$cfgfile"
  11705. # func_append var value
  11706. # Append VALUE to the end of shell variable VAR.
  11707. func_append ()
  11708. {
  11709. eval "$1=\$$1\$2"
  11710. }
  11711. _LT_EOF
  11712. ;;
  11713. esac
  11714. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11715. || (rm -f "$cfgfile"; exit 1)
  11716. mv -f "$cfgfile" "$ofile" ||
  11717. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11718. chmod +x "$ofile"
  11719. ;;
  11720. esac
  11721. done # for ac_tag
  11722. { (exit 0); exit 0; }
  11723. _ACEOF
  11724. chmod +x $CONFIG_STATUS
  11725. ac_clean_files=$ac_clean_files_save
  11726. test $ac_write_fail = 0 ||
  11727. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  11728. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  11729. { (exit 1); exit 1; }; }
  11730. # configure is writing to config.log, and then calls config.status.
  11731. # config.status does its own redirection, appending to config.log.
  11732. # Unfortunately, on DOS this fails, as config.log is still kept open
  11733. # by configure, so config.status won't be able to write to it; its
  11734. # output is simply discarded. So we exec the FD to /dev/null,
  11735. # effectively closing config.log, so it can be properly (re)opened and
  11736. # appended to by config.status. When coming back to configure, we
  11737. # need to make the FD available again.
  11738. if test "$no_create" != yes; then
  11739. ac_cs_success=:
  11740. ac_config_status_args=
  11741. test "$silent" = yes &&
  11742. ac_config_status_args="$ac_config_status_args --quiet"
  11743. exec 5>/dev/null
  11744. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11745. exec 5>>config.log
  11746. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11747. # would make configure fail if this is the last instruction.
  11748. $ac_cs_success || { (exit 1); exit 1; }
  11749. fi
  11750. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11751. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11752. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11753. fi