You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18222 lines
551 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for Google C++ Testing Framework 1.7.0.
  4. #
  5. # Report bugs to <googletestframework@googlegroups.com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  231. $0: googletestframework@googlegroups.com about your system,
  232. $0: including any error possibly output before this
  233. $0: message. Then install a modern shell, or manually run
  234. $0: the script under such a shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='Google C++ Testing Framework'
  523. PACKAGE_TARNAME='gtest'
  524. PACKAGE_VERSION='1.7.0'
  525. PACKAGE_STRING='Google C++ Testing Framework 1.7.0'
  526. PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
  527. PACKAGE_URL=''
  528. ac_unique_file="./LICENSE"
  529. # Factoring default headers for most tests.
  530. ac_includes_default="\
  531. #include <stdio.h>
  532. #ifdef HAVE_SYS_TYPES_H
  533. # include <sys/types.h>
  534. #endif
  535. #ifdef HAVE_SYS_STAT_H
  536. # include <sys/stat.h>
  537. #endif
  538. #ifdef STDC_HEADERS
  539. # include <stdlib.h>
  540. # include <stddef.h>
  541. #else
  542. # ifdef HAVE_STDLIB_H
  543. # include <stdlib.h>
  544. # endif
  545. #endif
  546. #ifdef HAVE_STRING_H
  547. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  548. # include <memory.h>
  549. # endif
  550. # include <string.h>
  551. #endif
  552. #ifdef HAVE_STRINGS_H
  553. # include <strings.h>
  554. #endif
  555. #ifdef HAVE_INTTYPES_H
  556. # include <inttypes.h>
  557. #endif
  558. #ifdef HAVE_STDINT_H
  559. # include <stdint.h>
  560. #endif
  561. #ifdef HAVE_UNISTD_H
  562. # include <unistd.h>
  563. #endif"
  564. ac_subst_vars='am__EXEEXT_FALSE
  565. am__EXEEXT_TRUE
  566. LTLIBOBJS
  567. LIBOBJS
  568. HAVE_PTHREADS_FALSE
  569. HAVE_PTHREADS_TRUE
  570. PTHREAD_CFLAGS
  571. PTHREAD_LIBS
  572. PTHREAD_CC
  573. acx_pthread_config
  574. HAVE_PYTHON_FALSE
  575. HAVE_PYTHON_TRUE
  576. PYTHON
  577. CXXCPP
  578. CPP
  579. OTOOL64
  580. OTOOL
  581. LIPO
  582. NMEDIT
  583. DSYMUTIL
  584. MANIFEST_TOOL
  585. RANLIB
  586. ac_ct_AR
  587. AR
  588. DLLTOOL
  589. OBJDUMP
  590. LN_S
  591. NM
  592. ac_ct_DUMPBIN
  593. DUMPBIN
  594. LD
  595. FGREP
  596. EGREP
  597. GREP
  598. SED
  599. host_os
  600. host_vendor
  601. host_cpu
  602. host
  603. build_os
  604. build_vendor
  605. build_cpu
  606. build
  607. LIBTOOL
  608. am__fastdepCXX_FALSE
  609. am__fastdepCXX_TRUE
  610. CXXDEPMODE
  611. ac_ct_CXX
  612. CXXFLAGS
  613. CXX
  614. am__fastdepCC_FALSE
  615. am__fastdepCC_TRUE
  616. CCDEPMODE
  617. am__nodep
  618. AMDEPBACKSLASH
  619. AMDEP_FALSE
  620. AMDEP_TRUE
  621. am__quote
  622. am__include
  623. DEPDIR
  624. OBJEXT
  625. EXEEXT
  626. ac_ct_CC
  627. CPPFLAGS
  628. LDFLAGS
  629. CFLAGS
  630. CC
  631. am__untar
  632. am__tar
  633. AMTAR
  634. am__leading_dot
  635. SET_MAKE
  636. AWK
  637. mkdir_p
  638. MKDIR_P
  639. INSTALL_STRIP_PROGRAM
  640. STRIP
  641. install_sh
  642. MAKEINFO
  643. AUTOHEADER
  644. AUTOMAKE
  645. AUTOCONF
  646. ACLOCAL
  647. VERSION
  648. PACKAGE
  649. CYGPATH_W
  650. am__isrc
  651. INSTALL_DATA
  652. INSTALL_SCRIPT
  653. INSTALL_PROGRAM
  654. target_alias
  655. host_alias
  656. build_alias
  657. LIBS
  658. ECHO_T
  659. ECHO_N
  660. ECHO_C
  661. DEFS
  662. mandir
  663. localedir
  664. libdir
  665. psdir
  666. pdfdir
  667. dvidir
  668. htmldir
  669. infodir
  670. docdir
  671. oldincludedir
  672. includedir
  673. localstatedir
  674. sharedstatedir
  675. sysconfdir
  676. datadir
  677. datarootdir
  678. libexecdir
  679. sbindir
  680. bindir
  681. program_transform_name
  682. prefix
  683. exec_prefix
  684. PACKAGE_URL
  685. PACKAGE_BUGREPORT
  686. PACKAGE_STRING
  687. PACKAGE_VERSION
  688. PACKAGE_TARNAME
  689. PACKAGE_NAME
  690. PATH_SEPARATOR
  691. SHELL'
  692. ac_subst_files=''
  693. ac_user_opts='
  694. enable_option_checking
  695. enable_dependency_tracking
  696. enable_shared
  697. enable_static
  698. with_pic
  699. enable_fast_install
  700. with_gnu_ld
  701. with_sysroot
  702. enable_libtool_lock
  703. with_pthreads
  704. '
  705. ac_precious_vars='build_alias
  706. host_alias
  707. target_alias
  708. CC
  709. CFLAGS
  710. LDFLAGS
  711. LIBS
  712. CPPFLAGS
  713. CXX
  714. CXXFLAGS
  715. CCC
  716. CPP
  717. CXXCPP'
  718. # Initialize some variables set by options.
  719. ac_init_help=
  720. ac_init_version=false
  721. ac_unrecognized_opts=
  722. ac_unrecognized_sep=
  723. # The variables have the same names as the options, with
  724. # dashes changed to underlines.
  725. cache_file=/dev/null
  726. exec_prefix=NONE
  727. no_create=
  728. no_recursion=
  729. prefix=NONE
  730. program_prefix=NONE
  731. program_suffix=NONE
  732. program_transform_name=s,x,x,
  733. silent=
  734. site=
  735. srcdir=
  736. verbose=
  737. x_includes=NONE
  738. x_libraries=NONE
  739. # Installation directory options.
  740. # These are left unexpanded so users can "make install exec_prefix=/foo"
  741. # and all the variables that are supposed to be based on exec_prefix
  742. # by default will actually change.
  743. # Use braces instead of parens because sh, perl, etc. also accept them.
  744. # (The list follows the same order as the GNU Coding Standards.)
  745. bindir='${exec_prefix}/bin'
  746. sbindir='${exec_prefix}/sbin'
  747. libexecdir='${exec_prefix}/libexec'
  748. datarootdir='${prefix}/share'
  749. datadir='${datarootdir}'
  750. sysconfdir='${prefix}/etc'
  751. sharedstatedir='${prefix}/com'
  752. localstatedir='${prefix}/var'
  753. includedir='${prefix}/include'
  754. oldincludedir='/usr/include'
  755. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  756. infodir='${datarootdir}/info'
  757. htmldir='${docdir}'
  758. dvidir='${docdir}'
  759. pdfdir='${docdir}'
  760. psdir='${docdir}'
  761. libdir='${exec_prefix}/lib'
  762. localedir='${datarootdir}/locale'
  763. mandir='${datarootdir}/man'
  764. ac_prev=
  765. ac_dashdash=
  766. for ac_option
  767. do
  768. # If the previous option needs an argument, assign it.
  769. if test -n "$ac_prev"; then
  770. eval $ac_prev=\$ac_option
  771. ac_prev=
  772. continue
  773. fi
  774. case $ac_option in
  775. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  776. *=) ac_optarg= ;;
  777. *) ac_optarg=yes ;;
  778. esac
  779. # Accept the important Cygnus configure options, so we can diagnose typos.
  780. case $ac_dashdash$ac_option in
  781. --)
  782. ac_dashdash=yes ;;
  783. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  784. ac_prev=bindir ;;
  785. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  786. bindir=$ac_optarg ;;
  787. -build | --build | --buil | --bui | --bu)
  788. ac_prev=build_alias ;;
  789. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  790. build_alias=$ac_optarg ;;
  791. -cache-file | --cache-file | --cache-fil | --cache-fi \
  792. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  793. ac_prev=cache_file ;;
  794. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  795. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  796. cache_file=$ac_optarg ;;
  797. --config-cache | -C)
  798. cache_file=config.cache ;;
  799. -datadir | --datadir | --datadi | --datad)
  800. ac_prev=datadir ;;
  801. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  802. datadir=$ac_optarg ;;
  803. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  804. | --dataroo | --dataro | --datar)
  805. ac_prev=datarootdir ;;
  806. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  807. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  808. datarootdir=$ac_optarg ;;
  809. -disable-* | --disable-*)
  810. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  811. # Reject names that are not valid shell variable names.
  812. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  813. as_fn_error $? "invalid feature name: $ac_useropt"
  814. ac_useropt_orig=$ac_useropt
  815. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  816. case $ac_user_opts in
  817. *"
  818. "enable_$ac_useropt"
  819. "*) ;;
  820. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  821. ac_unrecognized_sep=', ';;
  822. esac
  823. eval enable_$ac_useropt=no ;;
  824. -docdir | --docdir | --docdi | --doc | --do)
  825. ac_prev=docdir ;;
  826. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  827. docdir=$ac_optarg ;;
  828. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  829. ac_prev=dvidir ;;
  830. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  831. dvidir=$ac_optarg ;;
  832. -enable-* | --enable-*)
  833. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  834. # Reject names that are not valid shell variable names.
  835. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  836. as_fn_error $? "invalid feature name: $ac_useropt"
  837. ac_useropt_orig=$ac_useropt
  838. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  839. case $ac_user_opts in
  840. *"
  841. "enable_$ac_useropt"
  842. "*) ;;
  843. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  844. ac_unrecognized_sep=', ';;
  845. esac
  846. eval enable_$ac_useropt=\$ac_optarg ;;
  847. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  848. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  849. | --exec | --exe | --ex)
  850. ac_prev=exec_prefix ;;
  851. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  852. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  853. | --exec=* | --exe=* | --ex=*)
  854. exec_prefix=$ac_optarg ;;
  855. -gas | --gas | --ga | --g)
  856. # Obsolete; use --with-gas.
  857. with_gas=yes ;;
  858. -help | --help | --hel | --he | -h)
  859. ac_init_help=long ;;
  860. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  861. ac_init_help=recursive ;;
  862. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  863. ac_init_help=short ;;
  864. -host | --host | --hos | --ho)
  865. ac_prev=host_alias ;;
  866. -host=* | --host=* | --hos=* | --ho=*)
  867. host_alias=$ac_optarg ;;
  868. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  869. ac_prev=htmldir ;;
  870. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  871. | --ht=*)
  872. htmldir=$ac_optarg ;;
  873. -includedir | --includedir | --includedi | --included | --include \
  874. | --includ | --inclu | --incl | --inc)
  875. ac_prev=includedir ;;
  876. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  877. | --includ=* | --inclu=* | --incl=* | --inc=*)
  878. includedir=$ac_optarg ;;
  879. -infodir | --infodir | --infodi | --infod | --info | --inf)
  880. ac_prev=infodir ;;
  881. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  882. infodir=$ac_optarg ;;
  883. -libdir | --libdir | --libdi | --libd)
  884. ac_prev=libdir ;;
  885. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  886. libdir=$ac_optarg ;;
  887. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  888. | --libexe | --libex | --libe)
  889. ac_prev=libexecdir ;;
  890. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  891. | --libexe=* | --libex=* | --libe=*)
  892. libexecdir=$ac_optarg ;;
  893. -localedir | --localedir | --localedi | --localed | --locale)
  894. ac_prev=localedir ;;
  895. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  896. localedir=$ac_optarg ;;
  897. -localstatedir | --localstatedir | --localstatedi | --localstated \
  898. | --localstate | --localstat | --localsta | --localst | --locals)
  899. ac_prev=localstatedir ;;
  900. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  901. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  902. localstatedir=$ac_optarg ;;
  903. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  904. ac_prev=mandir ;;
  905. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  906. mandir=$ac_optarg ;;
  907. -nfp | --nfp | --nf)
  908. # Obsolete; use --without-fp.
  909. with_fp=no ;;
  910. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  911. | --no-cr | --no-c | -n)
  912. no_create=yes ;;
  913. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  914. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  915. no_recursion=yes ;;
  916. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  917. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  918. | --oldin | --oldi | --old | --ol | --o)
  919. ac_prev=oldincludedir ;;
  920. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  921. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  922. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  923. oldincludedir=$ac_optarg ;;
  924. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  925. ac_prev=prefix ;;
  926. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  927. prefix=$ac_optarg ;;
  928. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  929. | --program-pre | --program-pr | --program-p)
  930. ac_prev=program_prefix ;;
  931. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  932. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  933. program_prefix=$ac_optarg ;;
  934. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  935. | --program-suf | --program-su | --program-s)
  936. ac_prev=program_suffix ;;
  937. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  938. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  939. program_suffix=$ac_optarg ;;
  940. -program-transform-name | --program-transform-name \
  941. | --program-transform-nam | --program-transform-na \
  942. | --program-transform-n | --program-transform- \
  943. | --program-transform | --program-transfor \
  944. | --program-transfo | --program-transf \
  945. | --program-trans | --program-tran \
  946. | --progr-tra | --program-tr | --program-t)
  947. ac_prev=program_transform_name ;;
  948. -program-transform-name=* | --program-transform-name=* \
  949. | --program-transform-nam=* | --program-transform-na=* \
  950. | --program-transform-n=* | --program-transform-=* \
  951. | --program-transform=* | --program-transfor=* \
  952. | --program-transfo=* | --program-transf=* \
  953. | --program-trans=* | --program-tran=* \
  954. | --progr-tra=* | --program-tr=* | --program-t=*)
  955. program_transform_name=$ac_optarg ;;
  956. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  957. ac_prev=pdfdir ;;
  958. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  959. pdfdir=$ac_optarg ;;
  960. -psdir | --psdir | --psdi | --psd | --ps)
  961. ac_prev=psdir ;;
  962. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  963. psdir=$ac_optarg ;;
  964. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  965. | -silent | --silent | --silen | --sile | --sil)
  966. silent=yes ;;
  967. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  968. ac_prev=sbindir ;;
  969. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  970. | --sbi=* | --sb=*)
  971. sbindir=$ac_optarg ;;
  972. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  973. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  974. | --sharedst | --shareds | --shared | --share | --shar \
  975. | --sha | --sh)
  976. ac_prev=sharedstatedir ;;
  977. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  978. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  979. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  980. | --sha=* | --sh=*)
  981. sharedstatedir=$ac_optarg ;;
  982. -site | --site | --sit)
  983. ac_prev=site ;;
  984. -site=* | --site=* | --sit=*)
  985. site=$ac_optarg ;;
  986. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  987. ac_prev=srcdir ;;
  988. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  989. srcdir=$ac_optarg ;;
  990. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  991. | --syscon | --sysco | --sysc | --sys | --sy)
  992. ac_prev=sysconfdir ;;
  993. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  994. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  995. sysconfdir=$ac_optarg ;;
  996. -target | --target | --targe | --targ | --tar | --ta | --t)
  997. ac_prev=target_alias ;;
  998. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  999. target_alias=$ac_optarg ;;
  1000. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1001. verbose=yes ;;
  1002. -version | --version | --versio | --versi | --vers | -V)
  1003. ac_init_version=: ;;
  1004. -with-* | --with-*)
  1005. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1006. # Reject names that are not valid shell variable names.
  1007. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1008. as_fn_error $? "invalid package name: $ac_useropt"
  1009. ac_useropt_orig=$ac_useropt
  1010. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1011. case $ac_user_opts in
  1012. *"
  1013. "with_$ac_useropt"
  1014. "*) ;;
  1015. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1016. ac_unrecognized_sep=', ';;
  1017. esac
  1018. eval with_$ac_useropt=\$ac_optarg ;;
  1019. -without-* | --without-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=no ;;
  1034. --x)
  1035. # Obsolete; use --with-x.
  1036. with_x=yes ;;
  1037. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1038. | --x-incl | --x-inc | --x-in | --x-i)
  1039. ac_prev=x_includes ;;
  1040. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1041. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1042. x_includes=$ac_optarg ;;
  1043. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1044. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1045. ac_prev=x_libraries ;;
  1046. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1047. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1048. x_libraries=$ac_optarg ;;
  1049. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1050. Try \`$0 --help' for more information"
  1051. ;;
  1052. *=*)
  1053. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1054. # Reject names that are not valid shell variable names.
  1055. case $ac_envvar in #(
  1056. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1057. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1058. esac
  1059. eval $ac_envvar=\$ac_optarg
  1060. export $ac_envvar ;;
  1061. *)
  1062. # FIXME: should be removed in autoconf 3.0.
  1063. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1064. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1065. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1066. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1067. ;;
  1068. esac
  1069. done
  1070. if test -n "$ac_prev"; then
  1071. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1072. as_fn_error $? "missing argument to $ac_option"
  1073. fi
  1074. if test -n "$ac_unrecognized_opts"; then
  1075. case $enable_option_checking in
  1076. no) ;;
  1077. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1078. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1079. esac
  1080. fi
  1081. # Check all directory arguments for consistency.
  1082. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1083. datadir sysconfdir sharedstatedir localstatedir includedir \
  1084. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1085. libdir localedir mandir
  1086. do
  1087. eval ac_val=\$$ac_var
  1088. # Remove trailing slashes.
  1089. case $ac_val in
  1090. */ )
  1091. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1092. eval $ac_var=\$ac_val;;
  1093. esac
  1094. # Be sure to have absolute directory names.
  1095. case $ac_val in
  1096. [\\/$]* | ?:[\\/]* ) continue;;
  1097. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1098. esac
  1099. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1100. done
  1101. # There might be people who depend on the old broken behavior: `$host'
  1102. # used to hold the argument of --host etc.
  1103. # FIXME: To remove some day.
  1104. build=$build_alias
  1105. host=$host_alias
  1106. target=$target_alias
  1107. # FIXME: To remove some day.
  1108. if test "x$host_alias" != x; then
  1109. if test "x$build_alias" = x; then
  1110. cross_compiling=maybe
  1111. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1112. If a cross compiler is detected then cross compile mode will be used" >&2
  1113. elif test "x$build_alias" != "x$host_alias"; then
  1114. cross_compiling=yes
  1115. fi
  1116. fi
  1117. ac_tool_prefix=
  1118. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1119. test "$silent" = yes && exec 6>/dev/null
  1120. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1121. ac_ls_di=`ls -di .` &&
  1122. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1123. as_fn_error $? "working directory cannot be determined"
  1124. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1125. as_fn_error $? "pwd does not report name of working directory"
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$as_myself" ||
  1131. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$as_myself" : 'X\(//\)[^/]' \| \
  1133. X"$as_myself" : 'X\(//\)$' \| \
  1134. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1135. $as_echo X"$as_myself" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1163. fi
  1164. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1165. ac_abs_confdir=`(
  1166. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1167. pwd)`
  1168. # When building in place, set srcdir=.
  1169. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1170. srcdir=.
  1171. fi
  1172. # Remove unnecessary trailing slashes from srcdir.
  1173. # Double slashes in file names in object file debugging info
  1174. # mess up M-x gdb in Emacs.
  1175. case $srcdir in
  1176. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1177. esac
  1178. for ac_var in $ac_precious_vars; do
  1179. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_env_${ac_var}_value=\$${ac_var}
  1181. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1183. done
  1184. #
  1185. # Report the --help message.
  1186. #
  1187. if test "$ac_init_help" = "long"; then
  1188. # Omit some internal or obsolete options to make the list less imposing.
  1189. # This message is too long to be a string in the A/UX 3.1 sh.
  1190. cat <<_ACEOF
  1191. \`configure' configures Google C++ Testing Framework 1.7.0 to adapt to many kinds of systems.
  1192. Usage: $0 [OPTION]... [VAR=VALUE]...
  1193. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1194. VAR=VALUE. See below for descriptions of some of the useful variables.
  1195. Defaults for the options are specified in brackets.
  1196. Configuration:
  1197. -h, --help display this help and exit
  1198. --help=short display options specific to this package
  1199. --help=recursive display the short help of all the included packages
  1200. -V, --version display version information and exit
  1201. -q, --quiet, --silent do not print \`checking ...' messages
  1202. --cache-file=FILE cache test results in FILE [disabled]
  1203. -C, --config-cache alias for \`--cache-file=config.cache'
  1204. -n, --no-create do not create output files
  1205. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1206. Installation directories:
  1207. --prefix=PREFIX install architecture-independent files in PREFIX
  1208. [$ac_default_prefix]
  1209. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1210. [PREFIX]
  1211. By default, \`make install' will install all the files in
  1212. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1213. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1214. for instance \`--prefix=\$HOME'.
  1215. For better control, use the options below.
  1216. Fine tuning of the installation directories:
  1217. --bindir=DIR user executables [EPREFIX/bin]
  1218. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1219. --libexecdir=DIR program executables [EPREFIX/libexec]
  1220. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1221. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1222. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1223. --libdir=DIR object code libraries [EPREFIX/lib]
  1224. --includedir=DIR C header files [PREFIX/include]
  1225. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1226. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1227. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1228. --infodir=DIR info documentation [DATAROOTDIR/info]
  1229. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1230. --mandir=DIR man documentation [DATAROOTDIR/man]
  1231. --docdir=DIR documentation root [DATAROOTDIR/doc/gtest]
  1232. --htmldir=DIR html documentation [DOCDIR]
  1233. --dvidir=DIR dvi documentation [DOCDIR]
  1234. --pdfdir=DIR pdf documentation [DOCDIR]
  1235. --psdir=DIR ps documentation [DOCDIR]
  1236. _ACEOF
  1237. cat <<\_ACEOF
  1238. Program names:
  1239. --program-prefix=PREFIX prepend PREFIX to installed program names
  1240. --program-suffix=SUFFIX append SUFFIX to installed program names
  1241. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1242. System types:
  1243. --build=BUILD configure for building on BUILD [guessed]
  1244. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. case $ac_init_help in
  1249. short | recursive ) echo "Configuration of Google C++ Testing Framework 1.7.0:";;
  1250. esac
  1251. cat <<\_ACEOF
  1252. Optional Features:
  1253. --disable-option-checking ignore unrecognized --enable/--with options
  1254. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1255. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1256. --disable-dependency-tracking speeds up one-time build
  1257. --enable-dependency-tracking do not reject slow dependency extractors
  1258. --enable-shared[=PKGS] build shared libraries [default=yes]
  1259. --enable-static[=PKGS] build static libraries [default=yes]
  1260. --enable-fast-install[=PKGS]
  1261. optimize for fast installation [default=yes]
  1262. --disable-libtool-lock avoid locking (might break parallel builds)
  1263. Optional Packages:
  1264. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1265. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1266. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1267. both]
  1268. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1269. --with-sysroot=DIR Search for dependent libraries within DIR
  1270. (or the compiler's sysroot if not specified).
  1271. --with-pthreads use pthreads (default is yes)
  1272. Some influential environment variables:
  1273. CC C compiler command
  1274. CFLAGS C compiler flags
  1275. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1276. nonstandard directory <lib dir>
  1277. LIBS libraries to pass to the linker, e.g. -l<library>
  1278. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1279. you have headers in a nonstandard directory <include dir>
  1280. CXX C++ compiler command
  1281. CXXFLAGS C++ compiler flags
  1282. CPP C preprocessor
  1283. CXXCPP C++ preprocessor
  1284. Use these variables to override the choices made by `configure' or to help
  1285. it to find libraries and programs with nonstandard names/locations.
  1286. Report bugs to <googletestframework@googlegroups.com>.
  1287. _ACEOF
  1288. ac_status=$?
  1289. fi
  1290. if test "$ac_init_help" = "recursive"; then
  1291. # If there are subdirs, report their specific --help.
  1292. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1293. test -d "$ac_dir" ||
  1294. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1295. continue
  1296. ac_builddir=.
  1297. case "$ac_dir" in
  1298. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1299. *)
  1300. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1301. # A ".." for each directory in $ac_dir_suffix.
  1302. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1303. case $ac_top_builddir_sub in
  1304. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1305. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1306. esac ;;
  1307. esac
  1308. ac_abs_top_builddir=$ac_pwd
  1309. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1310. # for backward compatibility:
  1311. ac_top_builddir=$ac_top_build_prefix
  1312. case $srcdir in
  1313. .) # We are building in place.
  1314. ac_srcdir=.
  1315. ac_top_srcdir=$ac_top_builddir_sub
  1316. ac_abs_top_srcdir=$ac_pwd ;;
  1317. [\\/]* | ?:[\\/]* ) # Absolute name.
  1318. ac_srcdir=$srcdir$ac_dir_suffix;
  1319. ac_top_srcdir=$srcdir
  1320. ac_abs_top_srcdir=$srcdir ;;
  1321. *) # Relative name.
  1322. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1323. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1324. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1325. esac
  1326. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1327. cd "$ac_dir" || { ac_status=$?; continue; }
  1328. # Check for guested configure.
  1329. if test -f "$ac_srcdir/configure.gnu"; then
  1330. echo &&
  1331. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1332. elif test -f "$ac_srcdir/configure"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure" --help=recursive
  1335. else
  1336. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1337. fi || ac_status=$?
  1338. cd "$ac_pwd" || { ac_status=$?; break; }
  1339. done
  1340. fi
  1341. test -n "$ac_init_help" && exit $ac_status
  1342. if $ac_init_version; then
  1343. cat <<\_ACEOF
  1344. Google C++ Testing Framework configure 1.7.0
  1345. generated by GNU Autoconf 2.68
  1346. Copyright (C) 2010 Free Software Foundation, Inc.
  1347. This configure script is free software; the Free Software Foundation
  1348. gives unlimited permission to copy, distribute and modify it.
  1349. _ACEOF
  1350. exit
  1351. fi
  1352. ## ------------------------ ##
  1353. ## Autoconf initialization. ##
  1354. ## ------------------------ ##
  1355. # ac_fn_c_try_compile LINENO
  1356. # --------------------------
  1357. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1358. ac_fn_c_try_compile ()
  1359. {
  1360. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1361. rm -f conftest.$ac_objext
  1362. if { { ac_try="$ac_compile"
  1363. case "(($ac_try" in
  1364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1365. *) ac_try_echo=$ac_try;;
  1366. esac
  1367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1368. $as_echo "$ac_try_echo"; } >&5
  1369. (eval "$ac_compile") 2>conftest.err
  1370. ac_status=$?
  1371. if test -s conftest.err; then
  1372. grep -v '^ *+' conftest.err >conftest.er1
  1373. cat conftest.er1 >&5
  1374. mv -f conftest.er1 conftest.err
  1375. fi
  1376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1377. test $ac_status = 0; } && {
  1378. test -z "$ac_c_werror_flag" ||
  1379. test ! -s conftest.err
  1380. } && test -s conftest.$ac_objext; then :
  1381. ac_retval=0
  1382. else
  1383. $as_echo "$as_me: failed program was:" >&5
  1384. sed 's/^/| /' conftest.$ac_ext >&5
  1385. ac_retval=1
  1386. fi
  1387. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1388. as_fn_set_status $ac_retval
  1389. } # ac_fn_c_try_compile
  1390. # ac_fn_cxx_try_compile LINENO
  1391. # ----------------------------
  1392. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1393. ac_fn_cxx_try_compile ()
  1394. {
  1395. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1396. rm -f conftest.$ac_objext
  1397. if { { ac_try="$ac_compile"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_compile") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && {
  1413. test -z "$ac_cxx_werror_flag" ||
  1414. test ! -s conftest.err
  1415. } && test -s conftest.$ac_objext; then :
  1416. ac_retval=0
  1417. else
  1418. $as_echo "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=1
  1421. fi
  1422. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1423. as_fn_set_status $ac_retval
  1424. } # ac_fn_cxx_try_compile
  1425. # ac_fn_c_try_link LINENO
  1426. # -----------------------
  1427. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_link ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. rm -f conftest.$ac_objext conftest$ac_exeext
  1432. if { { ac_try="$ac_link"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_link") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } && {
  1448. test -z "$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. } && test -s conftest$ac_exeext && {
  1451. test "$cross_compiling" = yes ||
  1452. $as_test_x conftest$ac_exeext
  1453. }; then :
  1454. ac_retval=0
  1455. else
  1456. $as_echo "$as_me: failed program was:" >&5
  1457. sed 's/^/| /' conftest.$ac_ext >&5
  1458. ac_retval=1
  1459. fi
  1460. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1461. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1462. # interfere with the next link command; also delete a directory that is
  1463. # left behind by Apple's compiler. We do this before executing the actions.
  1464. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. as_fn_set_status $ac_retval
  1467. } # ac_fn_c_try_link
  1468. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1469. # -------------------------------------------------------
  1470. # Tests whether HEADER exists and can be compiled using the include files in
  1471. # INCLUDES, setting the cache variable VAR accordingly.
  1472. ac_fn_c_check_header_compile ()
  1473. {
  1474. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1476. $as_echo_n "checking for $2... " >&6; }
  1477. if eval \${$3+:} false; then :
  1478. $as_echo_n "(cached) " >&6
  1479. else
  1480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1481. /* end confdefs.h. */
  1482. $4
  1483. #include <$2>
  1484. _ACEOF
  1485. if ac_fn_c_try_compile "$LINENO"; then :
  1486. eval "$3=yes"
  1487. else
  1488. eval "$3=no"
  1489. fi
  1490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1491. fi
  1492. eval ac_res=\$$3
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1494. $as_echo "$ac_res" >&6; }
  1495. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1496. } # ac_fn_c_check_header_compile
  1497. # ac_fn_c_try_cpp LINENO
  1498. # ----------------------
  1499. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1500. ac_fn_c_try_cpp ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1504. case "(($ac_try" in
  1505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1506. *) ac_try_echo=$ac_try;;
  1507. esac
  1508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1509. $as_echo "$ac_try_echo"; } >&5
  1510. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1511. ac_status=$?
  1512. if test -s conftest.err; then
  1513. grep -v '^ *+' conftest.err >conftest.er1
  1514. cat conftest.er1 >&5
  1515. mv -f conftest.er1 conftest.err
  1516. fi
  1517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1518. test $ac_status = 0; } > conftest.i && {
  1519. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1520. test ! -s conftest.err
  1521. }; then :
  1522. ac_retval=0
  1523. else
  1524. $as_echo "$as_me: failed program was:" >&5
  1525. sed 's/^/| /' conftest.$ac_ext >&5
  1526. ac_retval=1
  1527. fi
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. as_fn_set_status $ac_retval
  1530. } # ac_fn_c_try_cpp
  1531. # ac_fn_c_try_run LINENO
  1532. # ----------------------
  1533. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1534. # that executables *can* be run.
  1535. ac_fn_c_try_run ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. if { { ac_try="$ac_link"
  1539. case "(($ac_try" in
  1540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1541. *) ac_try_echo=$ac_try;;
  1542. esac
  1543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1544. $as_echo "$ac_try_echo"; } >&5
  1545. (eval "$ac_link") 2>&5
  1546. ac_status=$?
  1547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1548. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1549. { { case "(($ac_try" in
  1550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1551. *) ac_try_echo=$ac_try;;
  1552. esac
  1553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1554. $as_echo "$ac_try_echo"; } >&5
  1555. (eval "$ac_try") 2>&5
  1556. ac_status=$?
  1557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1558. test $ac_status = 0; }; }; then :
  1559. ac_retval=0
  1560. else
  1561. $as_echo "$as_me: program exited with status $ac_status" >&5
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=$ac_status
  1565. fi
  1566. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. as_fn_set_status $ac_retval
  1569. } # ac_fn_c_try_run
  1570. # ac_fn_c_check_func LINENO FUNC VAR
  1571. # ----------------------------------
  1572. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1573. ac_fn_c_check_func ()
  1574. {
  1575. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1577. $as_echo_n "checking for $2... " >&6; }
  1578. if eval \${$3+:} false; then :
  1579. $as_echo_n "(cached) " >&6
  1580. else
  1581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1582. /* end confdefs.h. */
  1583. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1584. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1585. #define $2 innocuous_$2
  1586. /* System header to define __stub macros and hopefully few prototypes,
  1587. which can conflict with char $2 (); below.
  1588. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1589. <limits.h> exists even on freestanding compilers. */
  1590. #ifdef __STDC__
  1591. # include <limits.h>
  1592. #else
  1593. # include <assert.h>
  1594. #endif
  1595. #undef $2
  1596. /* Override any GCC internal prototype to avoid an error.
  1597. Use char because int might match the return type of a GCC
  1598. builtin and then its argument prototype would still apply. */
  1599. #ifdef __cplusplus
  1600. extern "C"
  1601. #endif
  1602. char $2 ();
  1603. /* The GNU C library defines this for functions which it implements
  1604. to always fail with ENOSYS. Some functions are actually named
  1605. something starting with __ and the normal name is an alias. */
  1606. #if defined __stub_$2 || defined __stub___$2
  1607. choke me
  1608. #endif
  1609. int
  1610. main ()
  1611. {
  1612. return $2 ();
  1613. ;
  1614. return 0;
  1615. }
  1616. _ACEOF
  1617. if ac_fn_c_try_link "$LINENO"; then :
  1618. eval "$3=yes"
  1619. else
  1620. eval "$3=no"
  1621. fi
  1622. rm -f core conftest.err conftest.$ac_objext \
  1623. conftest$ac_exeext conftest.$ac_ext
  1624. fi
  1625. eval ac_res=\$$3
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1627. $as_echo "$ac_res" >&6; }
  1628. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1629. } # ac_fn_c_check_func
  1630. # ac_fn_cxx_try_cpp LINENO
  1631. # ------------------------
  1632. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1633. ac_fn_cxx_try_cpp ()
  1634. {
  1635. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1636. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1637. case "(($ac_try" in
  1638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1639. *) ac_try_echo=$ac_try;;
  1640. esac
  1641. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1642. $as_echo "$ac_try_echo"; } >&5
  1643. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1644. ac_status=$?
  1645. if test -s conftest.err; then
  1646. grep -v '^ *+' conftest.err >conftest.er1
  1647. cat conftest.er1 >&5
  1648. mv -f conftest.er1 conftest.err
  1649. fi
  1650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1651. test $ac_status = 0; } > conftest.i && {
  1652. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1653. test ! -s conftest.err
  1654. }; then :
  1655. ac_retval=0
  1656. else
  1657. $as_echo "$as_me: failed program was:" >&5
  1658. sed 's/^/| /' conftest.$ac_ext >&5
  1659. ac_retval=1
  1660. fi
  1661. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1662. as_fn_set_status $ac_retval
  1663. } # ac_fn_cxx_try_cpp
  1664. # ac_fn_cxx_try_link LINENO
  1665. # -------------------------
  1666. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1667. ac_fn_cxx_try_link ()
  1668. {
  1669. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1670. rm -f conftest.$ac_objext conftest$ac_exeext
  1671. if { { ac_try="$ac_link"
  1672. case "(($ac_try" in
  1673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1674. *) ac_try_echo=$ac_try;;
  1675. esac
  1676. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1677. $as_echo "$ac_try_echo"; } >&5
  1678. (eval "$ac_link") 2>conftest.err
  1679. ac_status=$?
  1680. if test -s conftest.err; then
  1681. grep -v '^ *+' conftest.err >conftest.er1
  1682. cat conftest.er1 >&5
  1683. mv -f conftest.er1 conftest.err
  1684. fi
  1685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1686. test $ac_status = 0; } && {
  1687. test -z "$ac_cxx_werror_flag" ||
  1688. test ! -s conftest.err
  1689. } && test -s conftest$ac_exeext && {
  1690. test "$cross_compiling" = yes ||
  1691. $as_test_x conftest$ac_exeext
  1692. }; then :
  1693. ac_retval=0
  1694. else
  1695. $as_echo "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. ac_retval=1
  1698. fi
  1699. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1700. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1701. # interfere with the next link command; also delete a directory that is
  1702. # left behind by Apple's compiler. We do this before executing the actions.
  1703. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1704. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1705. as_fn_set_status $ac_retval
  1706. } # ac_fn_cxx_try_link
  1707. cat >config.log <<_ACEOF
  1708. This file contains any messages produced by compilers while
  1709. running configure, to aid debugging if configure makes a mistake.
  1710. It was created by Google C++ Testing Framework $as_me 1.7.0, which was
  1711. generated by GNU Autoconf 2.68. Invocation command line was
  1712. $ $0 $@
  1713. _ACEOF
  1714. exec 5>>config.log
  1715. {
  1716. cat <<_ASUNAME
  1717. ## --------- ##
  1718. ## Platform. ##
  1719. ## --------- ##
  1720. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1721. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1722. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1723. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1724. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1725. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1726. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1727. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1728. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1729. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1730. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1731. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1732. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1733. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1734. _ASUNAME
  1735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1736. for as_dir in $PATH
  1737. do
  1738. IFS=$as_save_IFS
  1739. test -z "$as_dir" && as_dir=.
  1740. $as_echo "PATH: $as_dir"
  1741. done
  1742. IFS=$as_save_IFS
  1743. } >&5
  1744. cat >&5 <<_ACEOF
  1745. ## ----------- ##
  1746. ## Core tests. ##
  1747. ## ----------- ##
  1748. _ACEOF
  1749. # Keep a trace of the command line.
  1750. # Strip out --no-create and --no-recursion so they do not pile up.
  1751. # Strip out --silent because we don't want to record it for future runs.
  1752. # Also quote any args containing shell meta-characters.
  1753. # Make two passes to allow for proper duplicate-argument suppression.
  1754. ac_configure_args=
  1755. ac_configure_args0=
  1756. ac_configure_args1=
  1757. ac_must_keep_next=false
  1758. for ac_pass in 1 2
  1759. do
  1760. for ac_arg
  1761. do
  1762. case $ac_arg in
  1763. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1764. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1765. | -silent | --silent | --silen | --sile | --sil)
  1766. continue ;;
  1767. *\'*)
  1768. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1769. esac
  1770. case $ac_pass in
  1771. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1772. 2)
  1773. as_fn_append ac_configure_args1 " '$ac_arg'"
  1774. if test $ac_must_keep_next = true; then
  1775. ac_must_keep_next=false # Got value, back to normal.
  1776. else
  1777. case $ac_arg in
  1778. *=* | --config-cache | -C | -disable-* | --disable-* \
  1779. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1780. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1781. | -with-* | --with-* | -without-* | --without-* | --x)
  1782. case "$ac_configure_args0 " in
  1783. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1784. esac
  1785. ;;
  1786. -* ) ac_must_keep_next=true ;;
  1787. esac
  1788. fi
  1789. as_fn_append ac_configure_args " '$ac_arg'"
  1790. ;;
  1791. esac
  1792. done
  1793. done
  1794. { ac_configure_args0=; unset ac_configure_args0;}
  1795. { ac_configure_args1=; unset ac_configure_args1;}
  1796. # When interrupted or exit'd, cleanup temporary files, and complete
  1797. # config.log. We remove comments because anyway the quotes in there
  1798. # would cause problems or look ugly.
  1799. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1800. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1801. trap 'exit_status=$?
  1802. # Save into config.log some information that might help in debugging.
  1803. {
  1804. echo
  1805. $as_echo "## ---------------- ##
  1806. ## Cache variables. ##
  1807. ## ---------------- ##"
  1808. echo
  1809. # The following way of writing the cache mishandles newlines in values,
  1810. (
  1811. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1812. eval ac_val=\$$ac_var
  1813. case $ac_val in #(
  1814. *${as_nl}*)
  1815. case $ac_var in #(
  1816. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1817. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1818. esac
  1819. case $ac_var in #(
  1820. _ | IFS | as_nl) ;; #(
  1821. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1822. *) { eval $ac_var=; unset $ac_var;} ;;
  1823. esac ;;
  1824. esac
  1825. done
  1826. (set) 2>&1 |
  1827. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1828. *${as_nl}ac_space=\ *)
  1829. sed -n \
  1830. "s/'\''/'\''\\\\'\'''\''/g;
  1831. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1832. ;; #(
  1833. *)
  1834. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1835. ;;
  1836. esac |
  1837. sort
  1838. )
  1839. echo
  1840. $as_echo "## ----------------- ##
  1841. ## Output variables. ##
  1842. ## ----------------- ##"
  1843. echo
  1844. for ac_var in $ac_subst_vars
  1845. do
  1846. eval ac_val=\$$ac_var
  1847. case $ac_val in
  1848. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1849. esac
  1850. $as_echo "$ac_var='\''$ac_val'\''"
  1851. done | sort
  1852. echo
  1853. if test -n "$ac_subst_files"; then
  1854. $as_echo "## ------------------- ##
  1855. ## File substitutions. ##
  1856. ## ------------------- ##"
  1857. echo
  1858. for ac_var in $ac_subst_files
  1859. do
  1860. eval ac_val=\$$ac_var
  1861. case $ac_val in
  1862. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1863. esac
  1864. $as_echo "$ac_var='\''$ac_val'\''"
  1865. done | sort
  1866. echo
  1867. fi
  1868. if test -s confdefs.h; then
  1869. $as_echo "## ----------- ##
  1870. ## confdefs.h. ##
  1871. ## ----------- ##"
  1872. echo
  1873. cat confdefs.h
  1874. echo
  1875. fi
  1876. test "$ac_signal" != 0 &&
  1877. $as_echo "$as_me: caught signal $ac_signal"
  1878. $as_echo "$as_me: exit $exit_status"
  1879. } >&5
  1880. rm -f core *.core core.conftest.* &&
  1881. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1882. exit $exit_status
  1883. ' 0
  1884. for ac_signal in 1 2 13 15; do
  1885. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1886. done
  1887. ac_signal=0
  1888. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1889. rm -f -r conftest* confdefs.h
  1890. $as_echo "/* confdefs.h */" > confdefs.h
  1891. # Predefined preprocessor variables.
  1892. cat >>confdefs.h <<_ACEOF
  1893. #define PACKAGE_NAME "$PACKAGE_NAME"
  1894. _ACEOF
  1895. cat >>confdefs.h <<_ACEOF
  1896. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1897. _ACEOF
  1898. cat >>confdefs.h <<_ACEOF
  1899. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1900. _ACEOF
  1901. cat >>confdefs.h <<_ACEOF
  1902. #define PACKAGE_STRING "$PACKAGE_STRING"
  1903. _ACEOF
  1904. cat >>confdefs.h <<_ACEOF
  1905. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1906. _ACEOF
  1907. cat >>confdefs.h <<_ACEOF
  1908. #define PACKAGE_URL "$PACKAGE_URL"
  1909. _ACEOF
  1910. # Let the site file select an alternate cache file if it wants to.
  1911. # Prefer an explicitly selected file to automatically selected ones.
  1912. ac_site_file1=NONE
  1913. ac_site_file2=NONE
  1914. if test -n "$CONFIG_SITE"; then
  1915. # We do not want a PATH search for config.site.
  1916. case $CONFIG_SITE in #((
  1917. -*) ac_site_file1=./$CONFIG_SITE;;
  1918. */*) ac_site_file1=$CONFIG_SITE;;
  1919. *) ac_site_file1=./$CONFIG_SITE;;
  1920. esac
  1921. elif test "x$prefix" != xNONE; then
  1922. ac_site_file1=$prefix/share/config.site
  1923. ac_site_file2=$prefix/etc/config.site
  1924. else
  1925. ac_site_file1=$ac_default_prefix/share/config.site
  1926. ac_site_file2=$ac_default_prefix/etc/config.site
  1927. fi
  1928. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1929. do
  1930. test "x$ac_site_file" = xNONE && continue
  1931. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1933. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1934. sed 's/^/| /' "$ac_site_file" >&5
  1935. . "$ac_site_file" \
  1936. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1937. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1938. as_fn_error $? "failed to load site script $ac_site_file
  1939. See \`config.log' for more details" "$LINENO" 5; }
  1940. fi
  1941. done
  1942. if test -r "$cache_file"; then
  1943. # Some versions of bash will fail to source /dev/null (special files
  1944. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1945. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1947. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1948. case $cache_file in
  1949. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1950. *) . "./$cache_file";;
  1951. esac
  1952. fi
  1953. else
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1955. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1956. >$cache_file
  1957. fi
  1958. # Check that the precious variables saved in the cache have kept the same
  1959. # value.
  1960. ac_cache_corrupted=false
  1961. for ac_var in $ac_precious_vars; do
  1962. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1963. eval ac_new_set=\$ac_env_${ac_var}_set
  1964. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1965. eval ac_new_val=\$ac_env_${ac_var}_value
  1966. case $ac_old_set,$ac_new_set in
  1967. set,)
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1969. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1970. ac_cache_corrupted=: ;;
  1971. ,set)
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1973. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1974. ac_cache_corrupted=: ;;
  1975. ,);;
  1976. *)
  1977. if test "x$ac_old_val" != "x$ac_new_val"; then
  1978. # differences in whitespace do not lead to failure.
  1979. ac_old_val_w=`echo x $ac_old_val`
  1980. ac_new_val_w=`echo x $ac_new_val`
  1981. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1983. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1984. ac_cache_corrupted=:
  1985. else
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1987. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1988. eval $ac_var=\$ac_old_val
  1989. fi
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1991. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1993. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1994. fi;;
  1995. esac
  1996. # Pass precious variables to config.status.
  1997. if test "$ac_new_set" = set; then
  1998. case $ac_new_val in
  1999. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2000. *) ac_arg=$ac_var=$ac_new_val ;;
  2001. esac
  2002. case " $ac_configure_args " in
  2003. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2004. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2005. esac
  2006. fi
  2007. done
  2008. if $ac_cache_corrupted; then
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2010. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2012. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2013. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2014. fi
  2015. ## -------------------- ##
  2016. ## Main body of script. ##
  2017. ## -------------------- ##
  2018. ac_ext=c
  2019. ac_cpp='$CPP $CPPFLAGS'
  2020. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2021. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2022. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2023. # Provide various options to initialize the Autoconf and configure processes.
  2024. ac_aux_dir=
  2025. for ac_dir in build-aux "$srcdir"/build-aux; do
  2026. if test -f "$ac_dir/install-sh"; then
  2027. ac_aux_dir=$ac_dir
  2028. ac_install_sh="$ac_aux_dir/install-sh -c"
  2029. break
  2030. elif test -f "$ac_dir/install.sh"; then
  2031. ac_aux_dir=$ac_dir
  2032. ac_install_sh="$ac_aux_dir/install.sh -c"
  2033. break
  2034. elif test -f "$ac_dir/shtool"; then
  2035. ac_aux_dir=$ac_dir
  2036. ac_install_sh="$ac_aux_dir/shtool install -c"
  2037. break
  2038. fi
  2039. done
  2040. if test -z "$ac_aux_dir"; then
  2041. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  2042. fi
  2043. # These three variables are undocumented and unsupported,
  2044. # and are intended to be withdrawn in a future Autoconf release.
  2045. # They can cause serious problems if a builder's source tree is in a directory
  2046. # whose full name contains unusual characters.
  2047. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2048. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2049. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2050. ac_config_headers="$ac_config_headers build-aux/config.h"
  2051. ac_config_files="$ac_config_files Makefile"
  2052. ac_config_files="$ac_config_files scripts/gtest-config"
  2053. # Initialize Automake with various options. We require at least v1.9, prevent
  2054. # pedantic complaints about package files, and enable various distribution
  2055. # targets.
  2056. am__api_version='1.11'
  2057. # Find a good install program. We prefer a C program (faster),
  2058. # so one script is as good as another. But avoid the broken or
  2059. # incompatible versions:
  2060. # SysV /etc/install, /usr/sbin/install
  2061. # SunOS /usr/etc/install
  2062. # IRIX /sbin/install
  2063. # AIX /bin/install
  2064. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2065. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2066. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2067. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2068. # OS/2's system install, which has a completely different semantic
  2069. # ./install, which can be erroneously created by make from ./install.sh.
  2070. # Reject install programs that cannot install multiple files.
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2072. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2073. if test -z "$INSTALL"; then
  2074. if ${ac_cv_path_install+:} false; then :
  2075. $as_echo_n "(cached) " >&6
  2076. else
  2077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2078. for as_dir in $PATH
  2079. do
  2080. IFS=$as_save_IFS
  2081. test -z "$as_dir" && as_dir=.
  2082. # Account for people who put trailing slashes in PATH elements.
  2083. case $as_dir/ in #((
  2084. ./ | .// | /[cC]/* | \
  2085. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2086. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2087. /usr/ucb/* ) ;;
  2088. *)
  2089. # OSF1 and SCO ODT 3.0 have their own names for install.
  2090. # Don't use installbsd from OSF since it installs stuff as root
  2091. # by default.
  2092. for ac_prog in ginstall scoinst install; do
  2093. for ac_exec_ext in '' $ac_executable_extensions; do
  2094. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2095. if test $ac_prog = install &&
  2096. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2097. # AIX install. It has an incompatible calling convention.
  2098. :
  2099. elif test $ac_prog = install &&
  2100. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2101. # program-specific install script used by HP pwplus--don't use.
  2102. :
  2103. else
  2104. rm -rf conftest.one conftest.two conftest.dir
  2105. echo one > conftest.one
  2106. echo two > conftest.two
  2107. mkdir conftest.dir
  2108. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2109. test -s conftest.one && test -s conftest.two &&
  2110. test -s conftest.dir/conftest.one &&
  2111. test -s conftest.dir/conftest.two
  2112. then
  2113. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2114. break 3
  2115. fi
  2116. fi
  2117. fi
  2118. done
  2119. done
  2120. ;;
  2121. esac
  2122. done
  2123. IFS=$as_save_IFS
  2124. rm -rf conftest.one conftest.two conftest.dir
  2125. fi
  2126. if test "${ac_cv_path_install+set}" = set; then
  2127. INSTALL=$ac_cv_path_install
  2128. else
  2129. # As a last resort, use the slow shell script. Don't cache a
  2130. # value for INSTALL within a source directory, because that will
  2131. # break other packages using the cache if that directory is
  2132. # removed, or if the value is a relative name.
  2133. INSTALL=$ac_install_sh
  2134. fi
  2135. fi
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2137. $as_echo "$INSTALL" >&6; }
  2138. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2139. # It thinks the first close brace ends the variable substitution.
  2140. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2141. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2142. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2144. $as_echo_n "checking whether build environment is sane... " >&6; }
  2145. # Just in case
  2146. sleep 1
  2147. echo timestamp > conftest.file
  2148. # Reject unsafe characters in $srcdir or the absolute working directory
  2149. # name. Accept space and tab only in the latter.
  2150. am_lf='
  2151. '
  2152. case `pwd` in
  2153. *[\\\"\#\$\&\'\`$am_lf]*)
  2154. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2155. esac
  2156. case $srcdir in
  2157. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2158. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2159. esac
  2160. # Do `set' in a subshell so we don't clobber the current shell's
  2161. # arguments. Must try -L first in case configure is actually a
  2162. # symlink; some systems play weird games with the mod time of symlinks
  2163. # (eg FreeBSD returns the mod time of the symlink's containing
  2164. # directory).
  2165. if (
  2166. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2167. if test "$*" = "X"; then
  2168. # -L didn't work.
  2169. set X `ls -t "$srcdir/configure" conftest.file`
  2170. fi
  2171. rm -f conftest.file
  2172. if test "$*" != "X $srcdir/configure conftest.file" \
  2173. && test "$*" != "X conftest.file $srcdir/configure"; then
  2174. # If neither matched, then we have a broken ls. This can happen
  2175. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2176. # broken ls alias from the environment. This has actually
  2177. # happened. Such a system could not be considered "sane".
  2178. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2179. alias in your environment" "$LINENO" 5
  2180. fi
  2181. test "$2" = conftest.file
  2182. )
  2183. then
  2184. # Ok.
  2185. :
  2186. else
  2187. as_fn_error $? "newly created file is older than distributed files!
  2188. Check your system clock" "$LINENO" 5
  2189. fi
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2191. $as_echo "yes" >&6; }
  2192. test "$program_prefix" != NONE &&
  2193. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2194. # Use a double $ so make ignores it.
  2195. test "$program_suffix" != NONE &&
  2196. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2197. # Double any \ or $.
  2198. # By default was `s,x,x', remove it if useless.
  2199. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2200. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2201. # expand $ac_aux_dir to an absolute path
  2202. am_aux_dir=`cd $ac_aux_dir && pwd`
  2203. if test x"${MISSING+set}" != xset; then
  2204. case $am_aux_dir in
  2205. *\ * | *\ *)
  2206. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2207. *)
  2208. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2209. esac
  2210. fi
  2211. # Use eval to expand $SHELL
  2212. if eval "$MISSING --run true"; then
  2213. am_missing_run="$MISSING --run "
  2214. else
  2215. am_missing_run=
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2217. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2218. fi
  2219. if test x"${install_sh}" != xset; then
  2220. case $am_aux_dir in
  2221. *\ * | *\ *)
  2222. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2223. *)
  2224. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2225. esac
  2226. fi
  2227. # Installed binaries are usually stripped using `strip' when the user
  2228. # run `make install-strip'. However `strip' might not be the right
  2229. # tool to use in cross-compilation environments, therefore Automake
  2230. # will honor the `STRIP' environment variable to overrule this program.
  2231. if test "$cross_compiling" != no; then
  2232. if test -n "$ac_tool_prefix"; then
  2233. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2234. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2236. $as_echo_n "checking for $ac_word... " >&6; }
  2237. if ${ac_cv_prog_STRIP+:} false; then :
  2238. $as_echo_n "(cached) " >&6
  2239. else
  2240. if test -n "$STRIP"; then
  2241. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2242. else
  2243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2244. for as_dir in $PATH
  2245. do
  2246. IFS=$as_save_IFS
  2247. test -z "$as_dir" && as_dir=.
  2248. for ac_exec_ext in '' $ac_executable_extensions; do
  2249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2250. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2251. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2252. break 2
  2253. fi
  2254. done
  2255. done
  2256. IFS=$as_save_IFS
  2257. fi
  2258. fi
  2259. STRIP=$ac_cv_prog_STRIP
  2260. if test -n "$STRIP"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2262. $as_echo "$STRIP" >&6; }
  2263. else
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2265. $as_echo "no" >&6; }
  2266. fi
  2267. fi
  2268. if test -z "$ac_cv_prog_STRIP"; then
  2269. ac_ct_STRIP=$STRIP
  2270. # Extract the first word of "strip", so it can be a program name with args.
  2271. set dummy strip; ac_word=$2
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2273. $as_echo_n "checking for $ac_word... " >&6; }
  2274. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2275. $as_echo_n "(cached) " >&6
  2276. else
  2277. if test -n "$ac_ct_STRIP"; then
  2278. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2279. else
  2280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2281. for as_dir in $PATH
  2282. do
  2283. IFS=$as_save_IFS
  2284. test -z "$as_dir" && as_dir=.
  2285. for ac_exec_ext in '' $ac_executable_extensions; do
  2286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2287. ac_cv_prog_ac_ct_STRIP="strip"
  2288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2289. break 2
  2290. fi
  2291. done
  2292. done
  2293. IFS=$as_save_IFS
  2294. fi
  2295. fi
  2296. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2297. if test -n "$ac_ct_STRIP"; then
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2299. $as_echo "$ac_ct_STRIP" >&6; }
  2300. else
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2302. $as_echo "no" >&6; }
  2303. fi
  2304. if test "x$ac_ct_STRIP" = x; then
  2305. STRIP=":"
  2306. else
  2307. case $cross_compiling:$ac_tool_warned in
  2308. yes:)
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2310. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2311. ac_tool_warned=yes ;;
  2312. esac
  2313. STRIP=$ac_ct_STRIP
  2314. fi
  2315. else
  2316. STRIP="$ac_cv_prog_STRIP"
  2317. fi
  2318. fi
  2319. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2321. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2322. if test -z "$MKDIR_P"; then
  2323. if ${ac_cv_path_mkdir+:} false; then :
  2324. $as_echo_n "(cached) " >&6
  2325. else
  2326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2327. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2328. do
  2329. IFS=$as_save_IFS
  2330. test -z "$as_dir" && as_dir=.
  2331. for ac_prog in mkdir gmkdir; do
  2332. for ac_exec_ext in '' $ac_executable_extensions; do
  2333. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2334. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2335. 'mkdir (GNU coreutils) '* | \
  2336. 'mkdir (coreutils) '* | \
  2337. 'mkdir (fileutils) '4.1*)
  2338. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2339. break 3;;
  2340. esac
  2341. done
  2342. done
  2343. done
  2344. IFS=$as_save_IFS
  2345. fi
  2346. test -d ./--version && rmdir ./--version
  2347. if test "${ac_cv_path_mkdir+set}" = set; then
  2348. MKDIR_P="$ac_cv_path_mkdir -p"
  2349. else
  2350. # As a last resort, use the slow shell script. Don't cache a
  2351. # value for MKDIR_P within a source directory, because that will
  2352. # break other packages using the cache if that directory is
  2353. # removed, or if the value is a relative name.
  2354. MKDIR_P="$ac_install_sh -d"
  2355. fi
  2356. fi
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2358. $as_echo "$MKDIR_P" >&6; }
  2359. mkdir_p="$MKDIR_P"
  2360. case $mkdir_p in
  2361. [\\/$]* | ?:[\\/]*) ;;
  2362. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2363. esac
  2364. for ac_prog in gawk mawk nawk awk
  2365. do
  2366. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2367. set dummy $ac_prog; ac_word=$2
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2369. $as_echo_n "checking for $ac_word... " >&6; }
  2370. if ${ac_cv_prog_AWK+:} false; then :
  2371. $as_echo_n "(cached) " >&6
  2372. else
  2373. if test -n "$AWK"; then
  2374. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2375. else
  2376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2377. for as_dir in $PATH
  2378. do
  2379. IFS=$as_save_IFS
  2380. test -z "$as_dir" && as_dir=.
  2381. for ac_exec_ext in '' $ac_executable_extensions; do
  2382. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2383. ac_cv_prog_AWK="$ac_prog"
  2384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2385. break 2
  2386. fi
  2387. done
  2388. done
  2389. IFS=$as_save_IFS
  2390. fi
  2391. fi
  2392. AWK=$ac_cv_prog_AWK
  2393. if test -n "$AWK"; then
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2395. $as_echo "$AWK" >&6; }
  2396. else
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2398. $as_echo "no" >&6; }
  2399. fi
  2400. test -n "$AWK" && break
  2401. done
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2403. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2404. set x ${MAKE-make}
  2405. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2406. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2407. $as_echo_n "(cached) " >&6
  2408. else
  2409. cat >conftest.make <<\_ACEOF
  2410. SHELL = /bin/sh
  2411. all:
  2412. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2413. _ACEOF
  2414. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2415. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2416. *@@@%%%=?*=@@@%%%*)
  2417. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2418. *)
  2419. eval ac_cv_prog_make_${ac_make}_set=no;;
  2420. esac
  2421. rm -f conftest.make
  2422. fi
  2423. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2425. $as_echo "yes" >&6; }
  2426. SET_MAKE=
  2427. else
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2429. $as_echo "no" >&6; }
  2430. SET_MAKE="MAKE=${MAKE-make}"
  2431. fi
  2432. rm -rf .tst 2>/dev/null
  2433. mkdir .tst 2>/dev/null
  2434. if test -d .tst; then
  2435. am__leading_dot=.
  2436. else
  2437. am__leading_dot=_
  2438. fi
  2439. rmdir .tst 2>/dev/null
  2440. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2441. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2442. # is not polluted with repeated "-I."
  2443. am__isrc=' -I$(srcdir)'
  2444. # test to see if srcdir already configured
  2445. if test -f $srcdir/config.status; then
  2446. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2447. fi
  2448. fi
  2449. # test whether we have cygpath
  2450. if test -z "$CYGPATH_W"; then
  2451. if (cygpath --version) >/dev/null 2>/dev/null; then
  2452. CYGPATH_W='cygpath -w'
  2453. else
  2454. CYGPATH_W=echo
  2455. fi
  2456. fi
  2457. # Define the identity of the package.
  2458. PACKAGE='gtest'
  2459. VERSION='1.7.0'
  2460. cat >>confdefs.h <<_ACEOF
  2461. #define PACKAGE "$PACKAGE"
  2462. _ACEOF
  2463. cat >>confdefs.h <<_ACEOF
  2464. #define VERSION "$VERSION"
  2465. _ACEOF
  2466. # Some tools Automake needs.
  2467. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2468. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2469. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2470. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2471. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2472. # We need awk for the "check" target. The system "awk" is bad on
  2473. # some platforms.
  2474. # Always define AMTAR for backward compatibility. Yes, it's still used
  2475. # in the wild :-( We should find a proper way to deprecate it ...
  2476. AMTAR='$${TAR-tar}'
  2477. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2478. # Check for programs used in building Google Test.
  2479. ac_ext=c
  2480. ac_cpp='$CPP $CPPFLAGS'
  2481. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2482. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2483. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2484. if test -n "$ac_tool_prefix"; then
  2485. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2486. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2488. $as_echo_n "checking for $ac_word... " >&6; }
  2489. if ${ac_cv_prog_CC+:} false; then :
  2490. $as_echo_n "(cached) " >&6
  2491. else
  2492. if test -n "$CC"; then
  2493. ac_cv_prog_CC="$CC" # Let the user override the test.
  2494. else
  2495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2496. for as_dir in $PATH
  2497. do
  2498. IFS=$as_save_IFS
  2499. test -z "$as_dir" && as_dir=.
  2500. for ac_exec_ext in '' $ac_executable_extensions; do
  2501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2502. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2504. break 2
  2505. fi
  2506. done
  2507. done
  2508. IFS=$as_save_IFS
  2509. fi
  2510. fi
  2511. CC=$ac_cv_prog_CC
  2512. if test -n "$CC"; then
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2514. $as_echo "$CC" >&6; }
  2515. else
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2517. $as_echo "no" >&6; }
  2518. fi
  2519. fi
  2520. if test -z "$ac_cv_prog_CC"; then
  2521. ac_ct_CC=$CC
  2522. # Extract the first word of "gcc", so it can be a program name with args.
  2523. set dummy gcc; ac_word=$2
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2525. $as_echo_n "checking for $ac_word... " >&6; }
  2526. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2527. $as_echo_n "(cached) " >&6
  2528. else
  2529. if test -n "$ac_ct_CC"; then
  2530. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2531. else
  2532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2533. for as_dir in $PATH
  2534. do
  2535. IFS=$as_save_IFS
  2536. test -z "$as_dir" && as_dir=.
  2537. for ac_exec_ext in '' $ac_executable_extensions; do
  2538. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2539. ac_cv_prog_ac_ct_CC="gcc"
  2540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2541. break 2
  2542. fi
  2543. done
  2544. done
  2545. IFS=$as_save_IFS
  2546. fi
  2547. fi
  2548. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2549. if test -n "$ac_ct_CC"; then
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2551. $as_echo "$ac_ct_CC" >&6; }
  2552. else
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2554. $as_echo "no" >&6; }
  2555. fi
  2556. if test "x$ac_ct_CC" = x; then
  2557. CC=""
  2558. else
  2559. case $cross_compiling:$ac_tool_warned in
  2560. yes:)
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2563. ac_tool_warned=yes ;;
  2564. esac
  2565. CC=$ac_ct_CC
  2566. fi
  2567. else
  2568. CC="$ac_cv_prog_CC"
  2569. fi
  2570. if test -z "$CC"; then
  2571. if test -n "$ac_tool_prefix"; then
  2572. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2573. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2575. $as_echo_n "checking for $ac_word... " >&6; }
  2576. if ${ac_cv_prog_CC+:} false; then :
  2577. $as_echo_n "(cached) " >&6
  2578. else
  2579. if test -n "$CC"; then
  2580. ac_cv_prog_CC="$CC" # Let the user override the test.
  2581. else
  2582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2583. for as_dir in $PATH
  2584. do
  2585. IFS=$as_save_IFS
  2586. test -z "$as_dir" && as_dir=.
  2587. for ac_exec_ext in '' $ac_executable_extensions; do
  2588. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2589. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2591. break 2
  2592. fi
  2593. done
  2594. done
  2595. IFS=$as_save_IFS
  2596. fi
  2597. fi
  2598. CC=$ac_cv_prog_CC
  2599. if test -n "$CC"; then
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2601. $as_echo "$CC" >&6; }
  2602. else
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2604. $as_echo "no" >&6; }
  2605. fi
  2606. fi
  2607. fi
  2608. if test -z "$CC"; then
  2609. # Extract the first word of "cc", so it can be a program name with args.
  2610. set dummy cc; ac_word=$2
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2612. $as_echo_n "checking for $ac_word... " >&6; }
  2613. if ${ac_cv_prog_CC+:} false; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. if test -n "$CC"; then
  2617. ac_cv_prog_CC="$CC" # Let the user override the test.
  2618. else
  2619. ac_prog_rejected=no
  2620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2621. for as_dir in $PATH
  2622. do
  2623. IFS=$as_save_IFS
  2624. test -z "$as_dir" && as_dir=.
  2625. for ac_exec_ext in '' $ac_executable_extensions; do
  2626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2627. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2628. ac_prog_rejected=yes
  2629. continue
  2630. fi
  2631. ac_cv_prog_CC="cc"
  2632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2633. break 2
  2634. fi
  2635. done
  2636. done
  2637. IFS=$as_save_IFS
  2638. if test $ac_prog_rejected = yes; then
  2639. # We found a bogon in the path, so make sure we never use it.
  2640. set dummy $ac_cv_prog_CC
  2641. shift
  2642. if test $# != 0; then
  2643. # We chose a different compiler from the bogus one.
  2644. # However, it has the same basename, so the bogon will be chosen
  2645. # first if we set CC to just the basename; use the full file name.
  2646. shift
  2647. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2648. fi
  2649. fi
  2650. fi
  2651. fi
  2652. CC=$ac_cv_prog_CC
  2653. if test -n "$CC"; then
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2655. $as_echo "$CC" >&6; }
  2656. else
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2658. $as_echo "no" >&6; }
  2659. fi
  2660. fi
  2661. if test -z "$CC"; then
  2662. if test -n "$ac_tool_prefix"; then
  2663. for ac_prog in cl.exe
  2664. do
  2665. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2666. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2668. $as_echo_n "checking for $ac_word... " >&6; }
  2669. if ${ac_cv_prog_CC+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. if test -n "$CC"; then
  2673. ac_cv_prog_CC="$CC" # Let the user override the test.
  2674. else
  2675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2676. for as_dir in $PATH
  2677. do
  2678. IFS=$as_save_IFS
  2679. test -z "$as_dir" && as_dir=.
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2682. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2684. break 2
  2685. fi
  2686. done
  2687. done
  2688. IFS=$as_save_IFS
  2689. fi
  2690. fi
  2691. CC=$ac_cv_prog_CC
  2692. if test -n "$CC"; then
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2694. $as_echo "$CC" >&6; }
  2695. else
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2697. $as_echo "no" >&6; }
  2698. fi
  2699. test -n "$CC" && break
  2700. done
  2701. fi
  2702. if test -z "$CC"; then
  2703. ac_ct_CC=$CC
  2704. for ac_prog in cl.exe
  2705. do
  2706. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2707. set dummy $ac_prog; ac_word=$2
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2709. $as_echo_n "checking for $ac_word... " >&6; }
  2710. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2711. $as_echo_n "(cached) " >&6
  2712. else
  2713. if test -n "$ac_ct_CC"; then
  2714. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2715. else
  2716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2717. for as_dir in $PATH
  2718. do
  2719. IFS=$as_save_IFS
  2720. test -z "$as_dir" && as_dir=.
  2721. for ac_exec_ext in '' $ac_executable_extensions; do
  2722. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2723. ac_cv_prog_ac_ct_CC="$ac_prog"
  2724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2725. break 2
  2726. fi
  2727. done
  2728. done
  2729. IFS=$as_save_IFS
  2730. fi
  2731. fi
  2732. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2733. if test -n "$ac_ct_CC"; then
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2735. $as_echo "$ac_ct_CC" >&6; }
  2736. else
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2738. $as_echo "no" >&6; }
  2739. fi
  2740. test -n "$ac_ct_CC" && break
  2741. done
  2742. if test "x$ac_ct_CC" = x; then
  2743. CC=""
  2744. else
  2745. case $cross_compiling:$ac_tool_warned in
  2746. yes:)
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2748. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2749. ac_tool_warned=yes ;;
  2750. esac
  2751. CC=$ac_ct_CC
  2752. fi
  2753. fi
  2754. fi
  2755. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2756. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2757. as_fn_error $? "no acceptable C compiler found in \$PATH
  2758. See \`config.log' for more details" "$LINENO" 5; }
  2759. # Provide some information about the compiler.
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2761. set X $ac_compile
  2762. ac_compiler=$2
  2763. for ac_option in --version -v -V -qversion; do
  2764. { { ac_try="$ac_compiler $ac_option >&5"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2770. $as_echo "$ac_try_echo"; } >&5
  2771. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2772. ac_status=$?
  2773. if test -s conftest.err; then
  2774. sed '10a\
  2775. ... rest of stderr output deleted ...
  2776. 10q' conftest.err >conftest.er1
  2777. cat conftest.er1 >&5
  2778. fi
  2779. rm -f conftest.er1 conftest.err
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2781. test $ac_status = 0; }
  2782. done
  2783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2784. /* end confdefs.h. */
  2785. int
  2786. main ()
  2787. {
  2788. ;
  2789. return 0;
  2790. }
  2791. _ACEOF
  2792. ac_clean_files_save=$ac_clean_files
  2793. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2794. # Try to create an executable without -o first, disregard a.out.
  2795. # It will help us diagnose broken compilers, and finding out an intuition
  2796. # of exeext.
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2798. $as_echo_n "checking whether the C compiler works... " >&6; }
  2799. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2800. # The possible output files:
  2801. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2802. ac_rmfiles=
  2803. for ac_file in $ac_files
  2804. do
  2805. case $ac_file in
  2806. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2807. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2808. esac
  2809. done
  2810. rm -f $ac_rmfiles
  2811. if { { ac_try="$ac_link_default"
  2812. case "(($ac_try" in
  2813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2814. *) ac_try_echo=$ac_try;;
  2815. esac
  2816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2817. $as_echo "$ac_try_echo"; } >&5
  2818. (eval "$ac_link_default") 2>&5
  2819. ac_status=$?
  2820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2821. test $ac_status = 0; }; then :
  2822. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2823. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2824. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2825. # so that the user can short-circuit this test for compilers unknown to
  2826. # Autoconf.
  2827. for ac_file in $ac_files ''
  2828. do
  2829. test -f "$ac_file" || continue
  2830. case $ac_file in
  2831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2832. ;;
  2833. [ab].out )
  2834. # We found the default executable, but exeext='' is most
  2835. # certainly right.
  2836. break;;
  2837. *.* )
  2838. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2839. then :; else
  2840. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2841. fi
  2842. # We set ac_cv_exeext here because the later test for it is not
  2843. # safe: cross compilers may not add the suffix if given an `-o'
  2844. # argument, so we may need to know it at that point already.
  2845. # Even if this section looks crufty: it has the advantage of
  2846. # actually working.
  2847. break;;
  2848. * )
  2849. break;;
  2850. esac
  2851. done
  2852. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2853. else
  2854. ac_file=''
  2855. fi
  2856. if test -z "$ac_file"; then :
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2858. $as_echo "no" >&6; }
  2859. $as_echo "$as_me: failed program was:" >&5
  2860. sed 's/^/| /' conftest.$ac_ext >&5
  2861. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2862. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2863. as_fn_error 77 "C compiler cannot create executables
  2864. See \`config.log' for more details" "$LINENO" 5; }
  2865. else
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2867. $as_echo "yes" >&6; }
  2868. fi
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2870. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2872. $as_echo "$ac_file" >&6; }
  2873. ac_exeext=$ac_cv_exeext
  2874. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2875. ac_clean_files=$ac_clean_files_save
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2877. $as_echo_n "checking for suffix of executables... " >&6; }
  2878. if { { ac_try="$ac_link"
  2879. case "(($ac_try" in
  2880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2881. *) ac_try_echo=$ac_try;;
  2882. esac
  2883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2884. $as_echo "$ac_try_echo"; } >&5
  2885. (eval "$ac_link") 2>&5
  2886. ac_status=$?
  2887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2888. test $ac_status = 0; }; then :
  2889. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2890. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2891. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2892. # `rm'.
  2893. for ac_file in conftest.exe conftest conftest.*; do
  2894. test -f "$ac_file" || continue
  2895. case $ac_file in
  2896. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2897. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2898. break;;
  2899. * ) break;;
  2900. esac
  2901. done
  2902. else
  2903. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2904. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2905. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2906. See \`config.log' for more details" "$LINENO" 5; }
  2907. fi
  2908. rm -f conftest conftest$ac_cv_exeext
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2910. $as_echo "$ac_cv_exeext" >&6; }
  2911. rm -f conftest.$ac_ext
  2912. EXEEXT=$ac_cv_exeext
  2913. ac_exeext=$EXEEXT
  2914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2915. /* end confdefs.h. */
  2916. #include <stdio.h>
  2917. int
  2918. main ()
  2919. {
  2920. FILE *f = fopen ("conftest.out", "w");
  2921. return ferror (f) || fclose (f) != 0;
  2922. ;
  2923. return 0;
  2924. }
  2925. _ACEOF
  2926. ac_clean_files="$ac_clean_files conftest.out"
  2927. # Check that the compiler produces executables we can run. If not, either
  2928. # the compiler is broken, or we cross compile.
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2930. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2931. if test "$cross_compiling" != yes; then
  2932. { { ac_try="$ac_link"
  2933. case "(($ac_try" in
  2934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2935. *) ac_try_echo=$ac_try;;
  2936. esac
  2937. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2938. $as_echo "$ac_try_echo"; } >&5
  2939. (eval "$ac_link") 2>&5
  2940. ac_status=$?
  2941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2942. test $ac_status = 0; }
  2943. if { ac_try='./conftest$ac_cv_exeext'
  2944. { { case "(($ac_try" in
  2945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2946. *) ac_try_echo=$ac_try;;
  2947. esac
  2948. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2949. $as_echo "$ac_try_echo"; } >&5
  2950. (eval "$ac_try") 2>&5
  2951. ac_status=$?
  2952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2953. test $ac_status = 0; }; }; then
  2954. cross_compiling=no
  2955. else
  2956. if test "$cross_compiling" = maybe; then
  2957. cross_compiling=yes
  2958. else
  2959. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2961. as_fn_error $? "cannot run C compiled programs.
  2962. If you meant to cross compile, use \`--host'.
  2963. See \`config.log' for more details" "$LINENO" 5; }
  2964. fi
  2965. fi
  2966. fi
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2968. $as_echo "$cross_compiling" >&6; }
  2969. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2970. ac_clean_files=$ac_clean_files_save
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2972. $as_echo_n "checking for suffix of object files... " >&6; }
  2973. if ${ac_cv_objext+:} false; then :
  2974. $as_echo_n "(cached) " >&6
  2975. else
  2976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2977. /* end confdefs.h. */
  2978. int
  2979. main ()
  2980. {
  2981. ;
  2982. return 0;
  2983. }
  2984. _ACEOF
  2985. rm -f conftest.o conftest.obj
  2986. if { { ac_try="$ac_compile"
  2987. case "(($ac_try" in
  2988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2989. *) ac_try_echo=$ac_try;;
  2990. esac
  2991. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2992. $as_echo "$ac_try_echo"; } >&5
  2993. (eval "$ac_compile") 2>&5
  2994. ac_status=$?
  2995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2996. test $ac_status = 0; }; then :
  2997. for ac_file in conftest.o conftest.obj conftest.*; do
  2998. test -f "$ac_file" || continue;
  2999. case $ac_file in
  3000. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3001. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3002. break;;
  3003. esac
  3004. done
  3005. else
  3006. $as_echo "$as_me: failed program was:" >&5
  3007. sed 's/^/| /' conftest.$ac_ext >&5
  3008. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3009. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3010. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3011. See \`config.log' for more details" "$LINENO" 5; }
  3012. fi
  3013. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3014. fi
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3016. $as_echo "$ac_cv_objext" >&6; }
  3017. OBJEXT=$ac_cv_objext
  3018. ac_objext=$OBJEXT
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3020. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3021. if ${ac_cv_c_compiler_gnu+:} false; then :
  3022. $as_echo_n "(cached) " >&6
  3023. else
  3024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3025. /* end confdefs.h. */
  3026. int
  3027. main ()
  3028. {
  3029. #ifndef __GNUC__
  3030. choke me
  3031. #endif
  3032. ;
  3033. return 0;
  3034. }
  3035. _ACEOF
  3036. if ac_fn_c_try_compile "$LINENO"; then :
  3037. ac_compiler_gnu=yes
  3038. else
  3039. ac_compiler_gnu=no
  3040. fi
  3041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3042. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3043. fi
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3045. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3046. if test $ac_compiler_gnu = yes; then
  3047. GCC=yes
  3048. else
  3049. GCC=
  3050. fi
  3051. ac_test_CFLAGS=${CFLAGS+set}
  3052. ac_save_CFLAGS=$CFLAGS
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3054. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3055. if ${ac_cv_prog_cc_g+:} false; then :
  3056. $as_echo_n "(cached) " >&6
  3057. else
  3058. ac_save_c_werror_flag=$ac_c_werror_flag
  3059. ac_c_werror_flag=yes
  3060. ac_cv_prog_cc_g=no
  3061. CFLAGS="-g"
  3062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3063. /* end confdefs.h. */
  3064. int
  3065. main ()
  3066. {
  3067. ;
  3068. return 0;
  3069. }
  3070. _ACEOF
  3071. if ac_fn_c_try_compile "$LINENO"; then :
  3072. ac_cv_prog_cc_g=yes
  3073. else
  3074. CFLAGS=""
  3075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3076. /* end confdefs.h. */
  3077. int
  3078. main ()
  3079. {
  3080. ;
  3081. return 0;
  3082. }
  3083. _ACEOF
  3084. if ac_fn_c_try_compile "$LINENO"; then :
  3085. else
  3086. ac_c_werror_flag=$ac_save_c_werror_flag
  3087. CFLAGS="-g"
  3088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3089. /* end confdefs.h. */
  3090. int
  3091. main ()
  3092. {
  3093. ;
  3094. return 0;
  3095. }
  3096. _ACEOF
  3097. if ac_fn_c_try_compile "$LINENO"; then :
  3098. ac_cv_prog_cc_g=yes
  3099. fi
  3100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3101. fi
  3102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3103. fi
  3104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3105. ac_c_werror_flag=$ac_save_c_werror_flag
  3106. fi
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3108. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3109. if test "$ac_test_CFLAGS" = set; then
  3110. CFLAGS=$ac_save_CFLAGS
  3111. elif test $ac_cv_prog_cc_g = yes; then
  3112. if test "$GCC" = yes; then
  3113. CFLAGS="-g -O2"
  3114. else
  3115. CFLAGS="-g"
  3116. fi
  3117. else
  3118. if test "$GCC" = yes; then
  3119. CFLAGS="-O2"
  3120. else
  3121. CFLAGS=
  3122. fi
  3123. fi
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3125. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3126. if ${ac_cv_prog_cc_c89+:} false; then :
  3127. $as_echo_n "(cached) " >&6
  3128. else
  3129. ac_cv_prog_cc_c89=no
  3130. ac_save_CC=$CC
  3131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3132. /* end confdefs.h. */
  3133. #include <stdarg.h>
  3134. #include <stdio.h>
  3135. #include <sys/types.h>
  3136. #include <sys/stat.h>
  3137. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3138. struct buf { int x; };
  3139. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3140. static char *e (p, i)
  3141. char **p;
  3142. int i;
  3143. {
  3144. return p[i];
  3145. }
  3146. static char *f (char * (*g) (char **, int), char **p, ...)
  3147. {
  3148. char *s;
  3149. va_list v;
  3150. va_start (v,p);
  3151. s = g (p, va_arg (v,int));
  3152. va_end (v);
  3153. return s;
  3154. }
  3155. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3156. function prototypes and stuff, but not '\xHH' hex character constants.
  3157. These don't provoke an error unfortunately, instead are silently treated
  3158. as 'x'. The following induces an error, until -std is added to get
  3159. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3160. array size at least. It's necessary to write '\x00'==0 to get something
  3161. that's true only with -std. */
  3162. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3163. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3164. inside strings and character constants. */
  3165. #define FOO(x) 'x'
  3166. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3167. int test (int i, double x);
  3168. struct s1 {int (*f) (int a);};
  3169. struct s2 {int (*f) (double a);};
  3170. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3171. int argc;
  3172. char **argv;
  3173. int
  3174. main ()
  3175. {
  3176. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3177. ;
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3182. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3183. do
  3184. CC="$ac_save_CC $ac_arg"
  3185. if ac_fn_c_try_compile "$LINENO"; then :
  3186. ac_cv_prog_cc_c89=$ac_arg
  3187. fi
  3188. rm -f core conftest.err conftest.$ac_objext
  3189. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3190. done
  3191. rm -f conftest.$ac_ext
  3192. CC=$ac_save_CC
  3193. fi
  3194. # AC_CACHE_VAL
  3195. case "x$ac_cv_prog_cc_c89" in
  3196. x)
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3198. $as_echo "none needed" >&6; } ;;
  3199. xno)
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3201. $as_echo "unsupported" >&6; } ;;
  3202. *)
  3203. CC="$CC $ac_cv_prog_cc_c89"
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3205. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3206. esac
  3207. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3208. fi
  3209. ac_ext=c
  3210. ac_cpp='$CPP $CPPFLAGS'
  3211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3214. DEPDIR="${am__leading_dot}deps"
  3215. ac_config_commands="$ac_config_commands depfiles"
  3216. am_make=${MAKE-make}
  3217. cat > confinc << 'END'
  3218. am__doit:
  3219. @echo this is the am__doit target
  3220. .PHONY: am__doit
  3221. END
  3222. # If we don't find an include directive, just comment out the code.
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3224. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3225. am__include="#"
  3226. am__quote=
  3227. _am_result=none
  3228. # First try GNU make style include.
  3229. echo "include confinc" > confmf
  3230. # Ignore all kinds of additional output from `make'.
  3231. case `$am_make -s -f confmf 2> /dev/null` in #(
  3232. *the\ am__doit\ target*)
  3233. am__include=include
  3234. am__quote=
  3235. _am_result=GNU
  3236. ;;
  3237. esac
  3238. # Now try BSD make style include.
  3239. if test "$am__include" = "#"; then
  3240. echo '.include "confinc"' > confmf
  3241. case `$am_make -s -f confmf 2> /dev/null` in #(
  3242. *the\ am__doit\ target*)
  3243. am__include=.include
  3244. am__quote="\""
  3245. _am_result=BSD
  3246. ;;
  3247. esac
  3248. fi
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3250. $as_echo "$_am_result" >&6; }
  3251. rm -f confinc confmf
  3252. # Check whether --enable-dependency-tracking was given.
  3253. if test "${enable_dependency_tracking+set}" = set; then :
  3254. enableval=$enable_dependency_tracking;
  3255. fi
  3256. if test "x$enable_dependency_tracking" != xno; then
  3257. am_depcomp="$ac_aux_dir/depcomp"
  3258. AMDEPBACKSLASH='\'
  3259. am__nodep='_no'
  3260. fi
  3261. if test "x$enable_dependency_tracking" != xno; then
  3262. AMDEP_TRUE=
  3263. AMDEP_FALSE='#'
  3264. else
  3265. AMDEP_TRUE='#'
  3266. AMDEP_FALSE=
  3267. fi
  3268. depcc="$CC" am_compiler_list=
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3270. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3271. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3272. $as_echo_n "(cached) " >&6
  3273. else
  3274. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3275. # We make a subdir and do the tests there. Otherwise we can end up
  3276. # making bogus files that we don't know about and never remove. For
  3277. # instance it was reported that on HP-UX the gcc test will end up
  3278. # making a dummy file named `D' -- because `-MD' means `put the output
  3279. # in D'.
  3280. rm -rf conftest.dir
  3281. mkdir conftest.dir
  3282. # Copy depcomp to subdir because otherwise we won't find it if we're
  3283. # using a relative directory.
  3284. cp "$am_depcomp" conftest.dir
  3285. cd conftest.dir
  3286. # We will build objects and dependencies in a subdirectory because
  3287. # it helps to detect inapplicable dependency modes. For instance
  3288. # both Tru64's cc and ICC support -MD to output dependencies as a
  3289. # side effect of compilation, but ICC will put the dependencies in
  3290. # the current directory while Tru64 will put them in the object
  3291. # directory.
  3292. mkdir sub
  3293. am_cv_CC_dependencies_compiler_type=none
  3294. if test "$am_compiler_list" = ""; then
  3295. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3296. fi
  3297. am__universal=false
  3298. case " $depcc " in #(
  3299. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3300. esac
  3301. for depmode in $am_compiler_list; do
  3302. # Setup a source with many dependencies, because some compilers
  3303. # like to wrap large dependency lists on column 80 (with \), and
  3304. # we should not choose a depcomp mode which is confused by this.
  3305. #
  3306. # We need to recreate these files for each test, as the compiler may
  3307. # overwrite some of them when testing with obscure command lines.
  3308. # This happens at least with the AIX C compiler.
  3309. : > sub/conftest.c
  3310. for i in 1 2 3 4 5 6; do
  3311. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3312. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3313. # Solaris 8's {/usr,}/bin/sh.
  3314. touch sub/conftst$i.h
  3315. done
  3316. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3317. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3318. # mode. It turns out that the SunPro C++ compiler does not properly
  3319. # handle `-M -o', and we need to detect this. Also, some Intel
  3320. # versions had trouble with output in subdirs
  3321. am__obj=sub/conftest.${OBJEXT-o}
  3322. am__minus_obj="-o $am__obj"
  3323. case $depmode in
  3324. gcc)
  3325. # This depmode causes a compiler race in universal mode.
  3326. test "$am__universal" = false || continue
  3327. ;;
  3328. nosideeffect)
  3329. # after this tag, mechanisms are not by side-effect, so they'll
  3330. # only be used when explicitly requested
  3331. if test "x$enable_dependency_tracking" = xyes; then
  3332. continue
  3333. else
  3334. break
  3335. fi
  3336. ;;
  3337. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3338. # This compiler won't grok `-c -o', but also, the minuso test has
  3339. # not run yet. These depmodes are late enough in the game, and
  3340. # so weak that their functioning should not be impacted.
  3341. am__obj=conftest.${OBJEXT-o}
  3342. am__minus_obj=
  3343. ;;
  3344. none) break ;;
  3345. esac
  3346. if depmode=$depmode \
  3347. source=sub/conftest.c object=$am__obj \
  3348. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3349. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3350. >/dev/null 2>conftest.err &&
  3351. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3352. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3353. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3354. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3355. # icc doesn't choke on unknown options, it will just issue warnings
  3356. # or remarks (even with -Werror). So we grep stderr for any message
  3357. # that says an option was ignored or not supported.
  3358. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3359. # icc: Command line warning: ignoring option '-M'; no argument required
  3360. # The diagnosis changed in icc 8.0:
  3361. # icc: Command line remark: option '-MP' not supported
  3362. if (grep 'ignoring option' conftest.err ||
  3363. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3364. am_cv_CC_dependencies_compiler_type=$depmode
  3365. break
  3366. fi
  3367. fi
  3368. done
  3369. cd ..
  3370. rm -rf conftest.dir
  3371. else
  3372. am_cv_CC_dependencies_compiler_type=none
  3373. fi
  3374. fi
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3376. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3377. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3378. if
  3379. test "x$enable_dependency_tracking" != xno \
  3380. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3381. am__fastdepCC_TRUE=
  3382. am__fastdepCC_FALSE='#'
  3383. else
  3384. am__fastdepCC_TRUE='#'
  3385. am__fastdepCC_FALSE=
  3386. fi
  3387. ac_ext=cpp
  3388. ac_cpp='$CXXCPP $CPPFLAGS'
  3389. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3390. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3391. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3392. if test -z "$CXX"; then
  3393. if test -n "$CCC"; then
  3394. CXX=$CCC
  3395. else
  3396. if test -n "$ac_tool_prefix"; then
  3397. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3398. do
  3399. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3400. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3402. $as_echo_n "checking for $ac_word... " >&6; }
  3403. if ${ac_cv_prog_CXX+:} false; then :
  3404. $as_echo_n "(cached) " >&6
  3405. else
  3406. if test -n "$CXX"; then
  3407. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3408. else
  3409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3410. for as_dir in $PATH
  3411. do
  3412. IFS=$as_save_IFS
  3413. test -z "$as_dir" && as_dir=.
  3414. for ac_exec_ext in '' $ac_executable_extensions; do
  3415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3416. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3418. break 2
  3419. fi
  3420. done
  3421. done
  3422. IFS=$as_save_IFS
  3423. fi
  3424. fi
  3425. CXX=$ac_cv_prog_CXX
  3426. if test -n "$CXX"; then
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3428. $as_echo "$CXX" >&6; }
  3429. else
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3431. $as_echo "no" >&6; }
  3432. fi
  3433. test -n "$CXX" && break
  3434. done
  3435. fi
  3436. if test -z "$CXX"; then
  3437. ac_ct_CXX=$CXX
  3438. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3439. do
  3440. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3441. set dummy $ac_prog; ac_word=$2
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3443. $as_echo_n "checking for $ac_word... " >&6; }
  3444. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3445. $as_echo_n "(cached) " >&6
  3446. else
  3447. if test -n "$ac_ct_CXX"; then
  3448. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3449. else
  3450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3451. for as_dir in $PATH
  3452. do
  3453. IFS=$as_save_IFS
  3454. test -z "$as_dir" && as_dir=.
  3455. for ac_exec_ext in '' $ac_executable_extensions; do
  3456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3457. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3459. break 2
  3460. fi
  3461. done
  3462. done
  3463. IFS=$as_save_IFS
  3464. fi
  3465. fi
  3466. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3467. if test -n "$ac_ct_CXX"; then
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3469. $as_echo "$ac_ct_CXX" >&6; }
  3470. else
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3472. $as_echo "no" >&6; }
  3473. fi
  3474. test -n "$ac_ct_CXX" && break
  3475. done
  3476. if test "x$ac_ct_CXX" = x; then
  3477. CXX="g++"
  3478. else
  3479. case $cross_compiling:$ac_tool_warned in
  3480. yes:)
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3483. ac_tool_warned=yes ;;
  3484. esac
  3485. CXX=$ac_ct_CXX
  3486. fi
  3487. fi
  3488. fi
  3489. fi
  3490. # Provide some information about the compiler.
  3491. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3492. set X $ac_compile
  3493. ac_compiler=$2
  3494. for ac_option in --version -v -V -qversion; do
  3495. { { ac_try="$ac_compiler $ac_option >&5"
  3496. case "(($ac_try" in
  3497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3498. *) ac_try_echo=$ac_try;;
  3499. esac
  3500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3501. $as_echo "$ac_try_echo"; } >&5
  3502. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3503. ac_status=$?
  3504. if test -s conftest.err; then
  3505. sed '10a\
  3506. ... rest of stderr output deleted ...
  3507. 10q' conftest.err >conftest.er1
  3508. cat conftest.er1 >&5
  3509. fi
  3510. rm -f conftest.er1 conftest.err
  3511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3512. test $ac_status = 0; }
  3513. done
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3515. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3516. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3517. $as_echo_n "(cached) " >&6
  3518. else
  3519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3520. /* end confdefs.h. */
  3521. int
  3522. main ()
  3523. {
  3524. #ifndef __GNUC__
  3525. choke me
  3526. #endif
  3527. ;
  3528. return 0;
  3529. }
  3530. _ACEOF
  3531. if ac_fn_cxx_try_compile "$LINENO"; then :
  3532. ac_compiler_gnu=yes
  3533. else
  3534. ac_compiler_gnu=no
  3535. fi
  3536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3537. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3540. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3541. if test $ac_compiler_gnu = yes; then
  3542. GXX=yes
  3543. else
  3544. GXX=
  3545. fi
  3546. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3547. ac_save_CXXFLAGS=$CXXFLAGS
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3549. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3550. if ${ac_cv_prog_cxx_g+:} false; then :
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3554. ac_cxx_werror_flag=yes
  3555. ac_cv_prog_cxx_g=no
  3556. CXXFLAGS="-g"
  3557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3558. /* end confdefs.h. */
  3559. int
  3560. main ()
  3561. {
  3562. ;
  3563. return 0;
  3564. }
  3565. _ACEOF
  3566. if ac_fn_cxx_try_compile "$LINENO"; then :
  3567. ac_cv_prog_cxx_g=yes
  3568. else
  3569. CXXFLAGS=""
  3570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3571. /* end confdefs.h. */
  3572. int
  3573. main ()
  3574. {
  3575. ;
  3576. return 0;
  3577. }
  3578. _ACEOF
  3579. if ac_fn_cxx_try_compile "$LINENO"; then :
  3580. else
  3581. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3582. CXXFLAGS="-g"
  3583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3584. /* end confdefs.h. */
  3585. int
  3586. main ()
  3587. {
  3588. ;
  3589. return 0;
  3590. }
  3591. _ACEOF
  3592. if ac_fn_cxx_try_compile "$LINENO"; then :
  3593. ac_cv_prog_cxx_g=yes
  3594. fi
  3595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3596. fi
  3597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3598. fi
  3599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3600. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3603. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3604. if test "$ac_test_CXXFLAGS" = set; then
  3605. CXXFLAGS=$ac_save_CXXFLAGS
  3606. elif test $ac_cv_prog_cxx_g = yes; then
  3607. if test "$GXX" = yes; then
  3608. CXXFLAGS="-g -O2"
  3609. else
  3610. CXXFLAGS="-g"
  3611. fi
  3612. else
  3613. if test "$GXX" = yes; then
  3614. CXXFLAGS="-O2"
  3615. else
  3616. CXXFLAGS=
  3617. fi
  3618. fi
  3619. ac_ext=c
  3620. ac_cpp='$CPP $CPPFLAGS'
  3621. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3622. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3623. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3624. depcc="$CXX" am_compiler_list=
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3626. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3627. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3628. $as_echo_n "(cached) " >&6
  3629. else
  3630. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3631. # We make a subdir and do the tests there. Otherwise we can end up
  3632. # making bogus files that we don't know about and never remove. For
  3633. # instance it was reported that on HP-UX the gcc test will end up
  3634. # making a dummy file named `D' -- because `-MD' means `put the output
  3635. # in D'.
  3636. rm -rf conftest.dir
  3637. mkdir conftest.dir
  3638. # Copy depcomp to subdir because otherwise we won't find it if we're
  3639. # using a relative directory.
  3640. cp "$am_depcomp" conftest.dir
  3641. cd conftest.dir
  3642. # We will build objects and dependencies in a subdirectory because
  3643. # it helps to detect inapplicable dependency modes. For instance
  3644. # both Tru64's cc and ICC support -MD to output dependencies as a
  3645. # side effect of compilation, but ICC will put the dependencies in
  3646. # the current directory while Tru64 will put them in the object
  3647. # directory.
  3648. mkdir sub
  3649. am_cv_CXX_dependencies_compiler_type=none
  3650. if test "$am_compiler_list" = ""; then
  3651. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3652. fi
  3653. am__universal=false
  3654. case " $depcc " in #(
  3655. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3656. esac
  3657. for depmode in $am_compiler_list; do
  3658. # Setup a source with many dependencies, because some compilers
  3659. # like to wrap large dependency lists on column 80 (with \), and
  3660. # we should not choose a depcomp mode which is confused by this.
  3661. #
  3662. # We need to recreate these files for each test, as the compiler may
  3663. # overwrite some of them when testing with obscure command lines.
  3664. # This happens at least with the AIX C compiler.
  3665. : > sub/conftest.c
  3666. for i in 1 2 3 4 5 6; do
  3667. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3668. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3669. # Solaris 8's {/usr,}/bin/sh.
  3670. touch sub/conftst$i.h
  3671. done
  3672. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3673. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3674. # mode. It turns out that the SunPro C++ compiler does not properly
  3675. # handle `-M -o', and we need to detect this. Also, some Intel
  3676. # versions had trouble with output in subdirs
  3677. am__obj=sub/conftest.${OBJEXT-o}
  3678. am__minus_obj="-o $am__obj"
  3679. case $depmode in
  3680. gcc)
  3681. # This depmode causes a compiler race in universal mode.
  3682. test "$am__universal" = false || continue
  3683. ;;
  3684. nosideeffect)
  3685. # after this tag, mechanisms are not by side-effect, so they'll
  3686. # only be used when explicitly requested
  3687. if test "x$enable_dependency_tracking" = xyes; then
  3688. continue
  3689. else
  3690. break
  3691. fi
  3692. ;;
  3693. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3694. # This compiler won't grok `-c -o', but also, the minuso test has
  3695. # not run yet. These depmodes are late enough in the game, and
  3696. # so weak that their functioning should not be impacted.
  3697. am__obj=conftest.${OBJEXT-o}
  3698. am__minus_obj=
  3699. ;;
  3700. none) break ;;
  3701. esac
  3702. if depmode=$depmode \
  3703. source=sub/conftest.c object=$am__obj \
  3704. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3705. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3706. >/dev/null 2>conftest.err &&
  3707. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3708. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3709. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3710. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3711. # icc doesn't choke on unknown options, it will just issue warnings
  3712. # or remarks (even with -Werror). So we grep stderr for any message
  3713. # that says an option was ignored or not supported.
  3714. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3715. # icc: Command line warning: ignoring option '-M'; no argument required
  3716. # The diagnosis changed in icc 8.0:
  3717. # icc: Command line remark: option '-MP' not supported
  3718. if (grep 'ignoring option' conftest.err ||
  3719. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3720. am_cv_CXX_dependencies_compiler_type=$depmode
  3721. break
  3722. fi
  3723. fi
  3724. done
  3725. cd ..
  3726. rm -rf conftest.dir
  3727. else
  3728. am_cv_CXX_dependencies_compiler_type=none
  3729. fi
  3730. fi
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3732. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3733. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3734. if
  3735. test "x$enable_dependency_tracking" != xno \
  3736. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3737. am__fastdepCXX_TRUE=
  3738. am__fastdepCXX_FALSE='#'
  3739. else
  3740. am__fastdepCXX_TRUE='#'
  3741. am__fastdepCXX_FALSE=
  3742. fi
  3743. ac_ext=cpp
  3744. ac_cpp='$CXXCPP $CPPFLAGS'
  3745. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3746. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3747. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3748. case `pwd` in
  3749. *\ * | *\ *)
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3751. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3752. esac
  3753. macro_version='2.4.2'
  3754. macro_revision='1.3337'
  3755. ltmain="$ac_aux_dir/ltmain.sh"
  3756. # Make sure we can run config.sub.
  3757. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3758. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3760. $as_echo_n "checking build system type... " >&6; }
  3761. if ${ac_cv_build+:} false; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. ac_build_alias=$build_alias
  3765. test "x$ac_build_alias" = x &&
  3766. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3767. test "x$ac_build_alias" = x &&
  3768. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3769. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3770. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3771. fi
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3773. $as_echo "$ac_cv_build" >&6; }
  3774. case $ac_cv_build in
  3775. *-*-*) ;;
  3776. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3777. esac
  3778. build=$ac_cv_build
  3779. ac_save_IFS=$IFS; IFS='-'
  3780. set x $ac_cv_build
  3781. shift
  3782. build_cpu=$1
  3783. build_vendor=$2
  3784. shift; shift
  3785. # Remember, the first character of IFS is used to create $*,
  3786. # except with old shells:
  3787. build_os=$*
  3788. IFS=$ac_save_IFS
  3789. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3791. $as_echo_n "checking host system type... " >&6; }
  3792. if ${ac_cv_host+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test "x$host_alias" = x; then
  3796. ac_cv_host=$ac_cv_build
  3797. else
  3798. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3799. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3800. fi
  3801. fi
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3803. $as_echo "$ac_cv_host" >&6; }
  3804. case $ac_cv_host in
  3805. *-*-*) ;;
  3806. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3807. esac
  3808. host=$ac_cv_host
  3809. ac_save_IFS=$IFS; IFS='-'
  3810. set x $ac_cv_host
  3811. shift
  3812. host_cpu=$1
  3813. host_vendor=$2
  3814. shift; shift
  3815. # Remember, the first character of IFS is used to create $*,
  3816. # except with old shells:
  3817. host_os=$*
  3818. IFS=$ac_save_IFS
  3819. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3820. # Backslashify metacharacters that are still active within
  3821. # double-quoted strings.
  3822. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3823. # Same as above, but do not quote variable references.
  3824. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3825. # Sed substitution to delay expansion of an escaped shell variable in a
  3826. # double_quote_subst'ed string.
  3827. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3828. # Sed substitution to delay expansion of an escaped single quote.
  3829. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3830. # Sed substitution to avoid accidental globbing in evaled expressions
  3831. no_glob_subst='s/\*/\\\*/g'
  3832. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3833. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3834. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3836. $as_echo_n "checking how to print strings... " >&6; }
  3837. # Test print first, because it will be a builtin if present.
  3838. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3839. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3840. ECHO='print -r --'
  3841. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3842. ECHO='printf %s\n'
  3843. else
  3844. # Use this function as a fallback that always works.
  3845. func_fallback_echo ()
  3846. {
  3847. eval 'cat <<_LTECHO_EOF
  3848. $1
  3849. _LTECHO_EOF'
  3850. }
  3851. ECHO='func_fallback_echo'
  3852. fi
  3853. # func_echo_all arg...
  3854. # Invoke $ECHO with all args, space-separated.
  3855. func_echo_all ()
  3856. {
  3857. $ECHO ""
  3858. }
  3859. case "$ECHO" in
  3860. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3861. $as_echo "printf" >&6; } ;;
  3862. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3863. $as_echo "print -r" >&6; } ;;
  3864. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3865. $as_echo "cat" >&6; } ;;
  3866. esac
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3868. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3869. if ${ac_cv_path_SED+:} false; then :
  3870. $as_echo_n "(cached) " >&6
  3871. else
  3872. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3873. for ac_i in 1 2 3 4 5 6 7; do
  3874. ac_script="$ac_script$as_nl$ac_script"
  3875. done
  3876. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3877. { ac_script=; unset ac_script;}
  3878. if test -z "$SED"; then
  3879. ac_path_SED_found=false
  3880. # Loop through the user's path and test for each of PROGNAME-LIST
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. for ac_prog in sed gsed; do
  3887. for ac_exec_ext in '' $ac_executable_extensions; do
  3888. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3889. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3890. # Check for GNU ac_path_SED and select it if it is found.
  3891. # Check for GNU $ac_path_SED
  3892. case `"$ac_path_SED" --version 2>&1` in
  3893. *GNU*)
  3894. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3895. *)
  3896. ac_count=0
  3897. $as_echo_n 0123456789 >"conftest.in"
  3898. while :
  3899. do
  3900. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3901. mv "conftest.tmp" "conftest.in"
  3902. cp "conftest.in" "conftest.nl"
  3903. $as_echo '' >> "conftest.nl"
  3904. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3905. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3906. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3907. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3908. # Best one so far, save it but keep looking for a better one
  3909. ac_cv_path_SED="$ac_path_SED"
  3910. ac_path_SED_max=$ac_count
  3911. fi
  3912. # 10*(2^10) chars as input seems more than enough
  3913. test $ac_count -gt 10 && break
  3914. done
  3915. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3916. esac
  3917. $ac_path_SED_found && break 3
  3918. done
  3919. done
  3920. done
  3921. IFS=$as_save_IFS
  3922. if test -z "$ac_cv_path_SED"; then
  3923. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3924. fi
  3925. else
  3926. ac_cv_path_SED=$SED
  3927. fi
  3928. fi
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3930. $as_echo "$ac_cv_path_SED" >&6; }
  3931. SED="$ac_cv_path_SED"
  3932. rm -f conftest.sed
  3933. test -z "$SED" && SED=sed
  3934. Xsed="$SED -e 1s/^X//"
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3936. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3937. if ${ac_cv_path_GREP+:} false; then :
  3938. $as_echo_n "(cached) " >&6
  3939. else
  3940. if test -z "$GREP"; then
  3941. ac_path_GREP_found=false
  3942. # Loop through the user's path and test for each of PROGNAME-LIST
  3943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3944. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3945. do
  3946. IFS=$as_save_IFS
  3947. test -z "$as_dir" && as_dir=.
  3948. for ac_prog in grep ggrep; do
  3949. for ac_exec_ext in '' $ac_executable_extensions; do
  3950. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3951. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3952. # Check for GNU ac_path_GREP and select it if it is found.
  3953. # Check for GNU $ac_path_GREP
  3954. case `"$ac_path_GREP" --version 2>&1` in
  3955. *GNU*)
  3956. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3957. *)
  3958. ac_count=0
  3959. $as_echo_n 0123456789 >"conftest.in"
  3960. while :
  3961. do
  3962. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3963. mv "conftest.tmp" "conftest.in"
  3964. cp "conftest.in" "conftest.nl"
  3965. $as_echo 'GREP' >> "conftest.nl"
  3966. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3967. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3968. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3969. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3970. # Best one so far, save it but keep looking for a better one
  3971. ac_cv_path_GREP="$ac_path_GREP"
  3972. ac_path_GREP_max=$ac_count
  3973. fi
  3974. # 10*(2^10) chars as input seems more than enough
  3975. test $ac_count -gt 10 && break
  3976. done
  3977. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3978. esac
  3979. $ac_path_GREP_found && break 3
  3980. done
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. if test -z "$ac_cv_path_GREP"; then
  3985. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3986. fi
  3987. else
  3988. ac_cv_path_GREP=$GREP
  3989. fi
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3992. $as_echo "$ac_cv_path_GREP" >&6; }
  3993. GREP="$ac_cv_path_GREP"
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3995. $as_echo_n "checking for egrep... " >&6; }
  3996. if ${ac_cv_path_EGREP+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4000. then ac_cv_path_EGREP="$GREP -E"
  4001. else
  4002. if test -z "$EGREP"; then
  4003. ac_path_EGREP_found=false
  4004. # Loop through the user's path and test for each of PROGNAME-LIST
  4005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4006. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4007. do
  4008. IFS=$as_save_IFS
  4009. test -z "$as_dir" && as_dir=.
  4010. for ac_prog in egrep; do
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4013. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4014. # Check for GNU ac_path_EGREP and select it if it is found.
  4015. # Check for GNU $ac_path_EGREP
  4016. case `"$ac_path_EGREP" --version 2>&1` in
  4017. *GNU*)
  4018. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4019. *)
  4020. ac_count=0
  4021. $as_echo_n 0123456789 >"conftest.in"
  4022. while :
  4023. do
  4024. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4025. mv "conftest.tmp" "conftest.in"
  4026. cp "conftest.in" "conftest.nl"
  4027. $as_echo 'EGREP' >> "conftest.nl"
  4028. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4029. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4030. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4031. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4032. # Best one so far, save it but keep looking for a better one
  4033. ac_cv_path_EGREP="$ac_path_EGREP"
  4034. ac_path_EGREP_max=$ac_count
  4035. fi
  4036. # 10*(2^10) chars as input seems more than enough
  4037. test $ac_count -gt 10 && break
  4038. done
  4039. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4040. esac
  4041. $ac_path_EGREP_found && break 3
  4042. done
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. if test -z "$ac_cv_path_EGREP"; then
  4047. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4048. fi
  4049. else
  4050. ac_cv_path_EGREP=$EGREP
  4051. fi
  4052. fi
  4053. fi
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4055. $as_echo "$ac_cv_path_EGREP" >&6; }
  4056. EGREP="$ac_cv_path_EGREP"
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4058. $as_echo_n "checking for fgrep... " >&6; }
  4059. if ${ac_cv_path_FGREP+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4063. then ac_cv_path_FGREP="$GREP -F"
  4064. else
  4065. if test -z "$FGREP"; then
  4066. ac_path_FGREP_found=false
  4067. # Loop through the user's path and test for each of PROGNAME-LIST
  4068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4069. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4070. do
  4071. IFS=$as_save_IFS
  4072. test -z "$as_dir" && as_dir=.
  4073. for ac_prog in fgrep; do
  4074. for ac_exec_ext in '' $ac_executable_extensions; do
  4075. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4076. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4077. # Check for GNU ac_path_FGREP and select it if it is found.
  4078. # Check for GNU $ac_path_FGREP
  4079. case `"$ac_path_FGREP" --version 2>&1` in
  4080. *GNU*)
  4081. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4082. *)
  4083. ac_count=0
  4084. $as_echo_n 0123456789 >"conftest.in"
  4085. while :
  4086. do
  4087. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4088. mv "conftest.tmp" "conftest.in"
  4089. cp "conftest.in" "conftest.nl"
  4090. $as_echo 'FGREP' >> "conftest.nl"
  4091. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4092. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4093. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4094. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4095. # Best one so far, save it but keep looking for a better one
  4096. ac_cv_path_FGREP="$ac_path_FGREP"
  4097. ac_path_FGREP_max=$ac_count
  4098. fi
  4099. # 10*(2^10) chars as input seems more than enough
  4100. test $ac_count -gt 10 && break
  4101. done
  4102. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4103. esac
  4104. $ac_path_FGREP_found && break 3
  4105. done
  4106. done
  4107. done
  4108. IFS=$as_save_IFS
  4109. if test -z "$ac_cv_path_FGREP"; then
  4110. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4111. fi
  4112. else
  4113. ac_cv_path_FGREP=$FGREP
  4114. fi
  4115. fi
  4116. fi
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4118. $as_echo "$ac_cv_path_FGREP" >&6; }
  4119. FGREP="$ac_cv_path_FGREP"
  4120. test -z "$GREP" && GREP=grep
  4121. # Check whether --with-gnu-ld was given.
  4122. if test "${with_gnu_ld+set}" = set; then :
  4123. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4124. else
  4125. with_gnu_ld=no
  4126. fi
  4127. ac_prog=ld
  4128. if test "$GCC" = yes; then
  4129. # Check if gcc -print-prog-name=ld gives a path.
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4131. $as_echo_n "checking for ld used by $CC... " >&6; }
  4132. case $host in
  4133. *-*-mingw*)
  4134. # gcc leaves a trailing carriage return which upsets mingw
  4135. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4136. *)
  4137. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4138. esac
  4139. case $ac_prog in
  4140. # Accept absolute paths.
  4141. [\\/]* | ?:[\\/]*)
  4142. re_direlt='/[^/][^/]*/\.\./'
  4143. # Canonicalize the pathname of ld
  4144. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4145. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4146. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4147. done
  4148. test -z "$LD" && LD="$ac_prog"
  4149. ;;
  4150. "")
  4151. # If it fails, then pretend we aren't using GCC.
  4152. ac_prog=ld
  4153. ;;
  4154. *)
  4155. # If it is relative, then search for the first ld in PATH.
  4156. with_gnu_ld=unknown
  4157. ;;
  4158. esac
  4159. elif test "$with_gnu_ld" = yes; then
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4161. $as_echo_n "checking for GNU ld... " >&6; }
  4162. else
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4164. $as_echo_n "checking for non-GNU ld... " >&6; }
  4165. fi
  4166. if ${lt_cv_path_LD+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. if test -z "$LD"; then
  4170. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4171. for ac_dir in $PATH; do
  4172. IFS="$lt_save_ifs"
  4173. test -z "$ac_dir" && ac_dir=.
  4174. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4175. lt_cv_path_LD="$ac_dir/$ac_prog"
  4176. # Check to see if the program is GNU ld. I'd rather use --version,
  4177. # but apparently some variants of GNU ld only accept -v.
  4178. # Break only if it was the GNU/non-GNU ld that we prefer.
  4179. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4180. *GNU* | *'with BFD'*)
  4181. test "$with_gnu_ld" != no && break
  4182. ;;
  4183. *)
  4184. test "$with_gnu_ld" != yes && break
  4185. ;;
  4186. esac
  4187. fi
  4188. done
  4189. IFS="$lt_save_ifs"
  4190. else
  4191. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4192. fi
  4193. fi
  4194. LD="$lt_cv_path_LD"
  4195. if test -n "$LD"; then
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4197. $as_echo "$LD" >&6; }
  4198. else
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4200. $as_echo "no" >&6; }
  4201. fi
  4202. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4204. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4205. if ${lt_cv_prog_gnu_ld+:} false; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4209. case `$LD -v 2>&1 </dev/null` in
  4210. *GNU* | *'with BFD'*)
  4211. lt_cv_prog_gnu_ld=yes
  4212. ;;
  4213. *)
  4214. lt_cv_prog_gnu_ld=no
  4215. ;;
  4216. esac
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4219. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4220. with_gnu_ld=$lt_cv_prog_gnu_ld
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4222. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4223. if ${lt_cv_path_NM+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. if test -n "$NM"; then
  4227. # Let the user override the test.
  4228. lt_cv_path_NM="$NM"
  4229. else
  4230. lt_nm_to_check="${ac_tool_prefix}nm"
  4231. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4232. lt_nm_to_check="$lt_nm_to_check nm"
  4233. fi
  4234. for lt_tmp_nm in $lt_nm_to_check; do
  4235. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4236. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4237. IFS="$lt_save_ifs"
  4238. test -z "$ac_dir" && ac_dir=.
  4239. tmp_nm="$ac_dir/$lt_tmp_nm"
  4240. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4241. # Check to see if the nm accepts a BSD-compat flag.
  4242. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4243. # nm: unknown option "B" ignored
  4244. # Tru64's nm complains that /dev/null is an invalid object file
  4245. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4246. */dev/null* | *'Invalid file or object type'*)
  4247. lt_cv_path_NM="$tmp_nm -B"
  4248. break
  4249. ;;
  4250. *)
  4251. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4252. */dev/null*)
  4253. lt_cv_path_NM="$tmp_nm -p"
  4254. break
  4255. ;;
  4256. *)
  4257. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4258. continue # so that we can try to find one that supports BSD flags
  4259. ;;
  4260. esac
  4261. ;;
  4262. esac
  4263. fi
  4264. done
  4265. IFS="$lt_save_ifs"
  4266. done
  4267. : ${lt_cv_path_NM=no}
  4268. fi
  4269. fi
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4271. $as_echo "$lt_cv_path_NM" >&6; }
  4272. if test "$lt_cv_path_NM" != "no"; then
  4273. NM="$lt_cv_path_NM"
  4274. else
  4275. # Didn't find any BSD compatible name lister, look for dumpbin.
  4276. if test -n "$DUMPBIN"; then :
  4277. # Let the user override the test.
  4278. else
  4279. if test -n "$ac_tool_prefix"; then
  4280. for ac_prog in dumpbin "link -dump"
  4281. do
  4282. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4283. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4285. $as_echo_n "checking for $ac_word... " >&6; }
  4286. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4287. $as_echo_n "(cached) " >&6
  4288. else
  4289. if test -n "$DUMPBIN"; then
  4290. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4291. else
  4292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4293. for as_dir in $PATH
  4294. do
  4295. IFS=$as_save_IFS
  4296. test -z "$as_dir" && as_dir=.
  4297. for ac_exec_ext in '' $ac_executable_extensions; do
  4298. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4299. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4301. break 2
  4302. fi
  4303. done
  4304. done
  4305. IFS=$as_save_IFS
  4306. fi
  4307. fi
  4308. DUMPBIN=$ac_cv_prog_DUMPBIN
  4309. if test -n "$DUMPBIN"; then
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4311. $as_echo "$DUMPBIN" >&6; }
  4312. else
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4314. $as_echo "no" >&6; }
  4315. fi
  4316. test -n "$DUMPBIN" && break
  4317. done
  4318. fi
  4319. if test -z "$DUMPBIN"; then
  4320. ac_ct_DUMPBIN=$DUMPBIN
  4321. for ac_prog in dumpbin "link -dump"
  4322. do
  4323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4324. set dummy $ac_prog; ac_word=$2
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4326. $as_echo_n "checking for $ac_word... " >&6; }
  4327. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. if test -n "$ac_ct_DUMPBIN"; then
  4331. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4332. else
  4333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4334. for as_dir in $PATH
  4335. do
  4336. IFS=$as_save_IFS
  4337. test -z "$as_dir" && as_dir=.
  4338. for ac_exec_ext in '' $ac_executable_extensions; do
  4339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4340. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4342. break 2
  4343. fi
  4344. done
  4345. done
  4346. IFS=$as_save_IFS
  4347. fi
  4348. fi
  4349. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4350. if test -n "$ac_ct_DUMPBIN"; then
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4352. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4353. else
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4355. $as_echo "no" >&6; }
  4356. fi
  4357. test -n "$ac_ct_DUMPBIN" && break
  4358. done
  4359. if test "x$ac_ct_DUMPBIN" = x; then
  4360. DUMPBIN=":"
  4361. else
  4362. case $cross_compiling:$ac_tool_warned in
  4363. yes:)
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4366. ac_tool_warned=yes ;;
  4367. esac
  4368. DUMPBIN=$ac_ct_DUMPBIN
  4369. fi
  4370. fi
  4371. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4372. *COFF*)
  4373. DUMPBIN="$DUMPBIN -symbols"
  4374. ;;
  4375. *)
  4376. DUMPBIN=:
  4377. ;;
  4378. esac
  4379. fi
  4380. if test "$DUMPBIN" != ":"; then
  4381. NM="$DUMPBIN"
  4382. fi
  4383. fi
  4384. test -z "$NM" && NM=nm
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4386. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4387. if ${lt_cv_nm_interface+:} false; then :
  4388. $as_echo_n "(cached) " >&6
  4389. else
  4390. lt_cv_nm_interface="BSD nm"
  4391. echo "int some_variable = 0;" > conftest.$ac_ext
  4392. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4393. (eval "$ac_compile" 2>conftest.err)
  4394. cat conftest.err >&5
  4395. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4396. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4397. cat conftest.err >&5
  4398. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4399. cat conftest.out >&5
  4400. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4401. lt_cv_nm_interface="MS dumpbin"
  4402. fi
  4403. rm -f conftest*
  4404. fi
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4406. $as_echo "$lt_cv_nm_interface" >&6; }
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4408. $as_echo_n "checking whether ln -s works... " >&6; }
  4409. LN_S=$as_ln_s
  4410. if test "$LN_S" = "ln -s"; then
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4412. $as_echo "yes" >&6; }
  4413. else
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4415. $as_echo "no, using $LN_S" >&6; }
  4416. fi
  4417. # find the maximum length of command line arguments
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4419. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4420. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4421. $as_echo_n "(cached) " >&6
  4422. else
  4423. i=0
  4424. teststring="ABCD"
  4425. case $build_os in
  4426. msdosdjgpp*)
  4427. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4428. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4429. # during glob expansion). Even if it were fixed, the result of this
  4430. # check would be larger than it should be.
  4431. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4432. ;;
  4433. gnu*)
  4434. # Under GNU Hurd, this test is not required because there is
  4435. # no limit to the length of command line arguments.
  4436. # Libtool will interpret -1 as no limit whatsoever
  4437. lt_cv_sys_max_cmd_len=-1;
  4438. ;;
  4439. cygwin* | mingw* | cegcc*)
  4440. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4441. # about 5 minutes as the teststring grows exponentially.
  4442. # Worse, since 9x/ME are not pre-emptively multitasking,
  4443. # you end up with a "frozen" computer, even though with patience
  4444. # the test eventually succeeds (with a max line length of 256k).
  4445. # Instead, let's just punt: use the minimum linelength reported by
  4446. # all of the supported platforms: 8192 (on NT/2K/XP).
  4447. lt_cv_sys_max_cmd_len=8192;
  4448. ;;
  4449. mint*)
  4450. # On MiNT this can take a long time and run out of memory.
  4451. lt_cv_sys_max_cmd_len=8192;
  4452. ;;
  4453. amigaos*)
  4454. # On AmigaOS with pdksh, this test takes hours, literally.
  4455. # So we just punt and use a minimum line length of 8192.
  4456. lt_cv_sys_max_cmd_len=8192;
  4457. ;;
  4458. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4459. # This has been around since 386BSD, at least. Likely further.
  4460. if test -x /sbin/sysctl; then
  4461. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4462. elif test -x /usr/sbin/sysctl; then
  4463. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4464. else
  4465. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4466. fi
  4467. # And add a safety zone
  4468. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4469. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4470. ;;
  4471. interix*)
  4472. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4473. lt_cv_sys_max_cmd_len=196608
  4474. ;;
  4475. os2*)
  4476. # The test takes a long time on OS/2.
  4477. lt_cv_sys_max_cmd_len=8192
  4478. ;;
  4479. osf*)
  4480. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4481. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4482. # nice to cause kernel panics so lets avoid the loop below.
  4483. # First set a reasonable default.
  4484. lt_cv_sys_max_cmd_len=16384
  4485. #
  4486. if test -x /sbin/sysconfig; then
  4487. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4488. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4489. esac
  4490. fi
  4491. ;;
  4492. sco3.2v5*)
  4493. lt_cv_sys_max_cmd_len=102400
  4494. ;;
  4495. sysv5* | sco5v6* | sysv4.2uw2*)
  4496. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4497. if test -n "$kargmax"; then
  4498. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4499. else
  4500. lt_cv_sys_max_cmd_len=32768
  4501. fi
  4502. ;;
  4503. *)
  4504. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4505. if test -n "$lt_cv_sys_max_cmd_len"; then
  4506. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4507. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4508. else
  4509. # Make teststring a little bigger before we do anything with it.
  4510. # a 1K string should be a reasonable start.
  4511. for i in 1 2 3 4 5 6 7 8 ; do
  4512. teststring=$teststring$teststring
  4513. done
  4514. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4515. # If test is not a shell built-in, we'll probably end up computing a
  4516. # maximum length that is only half of the actual maximum length, but
  4517. # we can't tell.
  4518. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4519. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4520. test $i != 17 # 1/2 MB should be enough
  4521. do
  4522. i=`expr $i + 1`
  4523. teststring=$teststring$teststring
  4524. done
  4525. # Only check the string length outside the loop.
  4526. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4527. teststring=
  4528. # Add a significant safety factor because C++ compilers can tack on
  4529. # massive amounts of additional arguments before passing them to the
  4530. # linker. It appears as though 1/2 is a usable value.
  4531. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4532. fi
  4533. ;;
  4534. esac
  4535. fi
  4536. if test -n $lt_cv_sys_max_cmd_len ; then
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4538. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4539. else
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4541. $as_echo "none" >&6; }
  4542. fi
  4543. max_cmd_len=$lt_cv_sys_max_cmd_len
  4544. : ${CP="cp -f"}
  4545. : ${MV="mv -f"}
  4546. : ${RM="rm -f"}
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4548. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4549. # Try some XSI features
  4550. xsi_shell=no
  4551. ( _lt_dummy="a/b/c"
  4552. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4553. = c,a/b,b/c, \
  4554. && eval 'test $(( 1 + 1 )) -eq 2 \
  4555. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4556. && xsi_shell=yes
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4558. $as_echo "$xsi_shell" >&6; }
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4560. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4561. lt_shell_append=no
  4562. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4563. >/dev/null 2>&1 \
  4564. && lt_shell_append=yes
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4566. $as_echo "$lt_shell_append" >&6; }
  4567. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4568. lt_unset=unset
  4569. else
  4570. lt_unset=false
  4571. fi
  4572. # test EBCDIC or ASCII
  4573. case `echo X|tr X '\101'` in
  4574. A) # ASCII based system
  4575. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4576. lt_SP2NL='tr \040 \012'
  4577. lt_NL2SP='tr \015\012 \040\040'
  4578. ;;
  4579. *) # EBCDIC based system
  4580. lt_SP2NL='tr \100 \n'
  4581. lt_NL2SP='tr \r\n \100\100'
  4582. ;;
  4583. esac
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4585. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4586. if ${lt_cv_to_host_file_cmd+:} false; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. case $host in
  4590. *-*-mingw* )
  4591. case $build in
  4592. *-*-mingw* ) # actually msys
  4593. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4594. ;;
  4595. *-*-cygwin* )
  4596. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4597. ;;
  4598. * ) # otherwise, assume *nix
  4599. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4600. ;;
  4601. esac
  4602. ;;
  4603. *-*-cygwin* )
  4604. case $build in
  4605. *-*-mingw* ) # actually msys
  4606. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4607. ;;
  4608. *-*-cygwin* )
  4609. lt_cv_to_host_file_cmd=func_convert_file_noop
  4610. ;;
  4611. * ) # otherwise, assume *nix
  4612. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4613. ;;
  4614. esac
  4615. ;;
  4616. * ) # unhandled hosts (and "normal" native builds)
  4617. lt_cv_to_host_file_cmd=func_convert_file_noop
  4618. ;;
  4619. esac
  4620. fi
  4621. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4623. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4625. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4626. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. #assume ordinary cross tools, or native build.
  4630. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4631. case $host in
  4632. *-*-mingw* )
  4633. case $build in
  4634. *-*-mingw* ) # actually msys
  4635. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4636. ;;
  4637. esac
  4638. ;;
  4639. esac
  4640. fi
  4641. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4643. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4645. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4646. if ${lt_cv_ld_reload_flag+:} false; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. lt_cv_ld_reload_flag='-r'
  4650. fi
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4652. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4653. reload_flag=$lt_cv_ld_reload_flag
  4654. case $reload_flag in
  4655. "" | " "*) ;;
  4656. *) reload_flag=" $reload_flag" ;;
  4657. esac
  4658. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4659. case $host_os in
  4660. cygwin* | mingw* | pw32* | cegcc*)
  4661. if test "$GCC" != yes; then
  4662. reload_cmds=false
  4663. fi
  4664. ;;
  4665. darwin*)
  4666. if test "$GCC" = yes; then
  4667. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4668. else
  4669. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4670. fi
  4671. ;;
  4672. esac
  4673. if test -n "$ac_tool_prefix"; then
  4674. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4675. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4677. $as_echo_n "checking for $ac_word... " >&6; }
  4678. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. if test -n "$OBJDUMP"; then
  4682. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4683. else
  4684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4685. for as_dir in $PATH
  4686. do
  4687. IFS=$as_save_IFS
  4688. test -z "$as_dir" && as_dir=.
  4689. for ac_exec_ext in '' $ac_executable_extensions; do
  4690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4691. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4693. break 2
  4694. fi
  4695. done
  4696. done
  4697. IFS=$as_save_IFS
  4698. fi
  4699. fi
  4700. OBJDUMP=$ac_cv_prog_OBJDUMP
  4701. if test -n "$OBJDUMP"; then
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4703. $as_echo "$OBJDUMP" >&6; }
  4704. else
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4706. $as_echo "no" >&6; }
  4707. fi
  4708. fi
  4709. if test -z "$ac_cv_prog_OBJDUMP"; then
  4710. ac_ct_OBJDUMP=$OBJDUMP
  4711. # Extract the first word of "objdump", so it can be a program name with args.
  4712. set dummy objdump; ac_word=$2
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4714. $as_echo_n "checking for $ac_word... " >&6; }
  4715. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4716. $as_echo_n "(cached) " >&6
  4717. else
  4718. if test -n "$ac_ct_OBJDUMP"; then
  4719. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4720. else
  4721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4722. for as_dir in $PATH
  4723. do
  4724. IFS=$as_save_IFS
  4725. test -z "$as_dir" && as_dir=.
  4726. for ac_exec_ext in '' $ac_executable_extensions; do
  4727. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4728. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4730. break 2
  4731. fi
  4732. done
  4733. done
  4734. IFS=$as_save_IFS
  4735. fi
  4736. fi
  4737. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4738. if test -n "$ac_ct_OBJDUMP"; then
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4740. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4741. else
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4743. $as_echo "no" >&6; }
  4744. fi
  4745. if test "x$ac_ct_OBJDUMP" = x; then
  4746. OBJDUMP="false"
  4747. else
  4748. case $cross_compiling:$ac_tool_warned in
  4749. yes:)
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4751. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4752. ac_tool_warned=yes ;;
  4753. esac
  4754. OBJDUMP=$ac_ct_OBJDUMP
  4755. fi
  4756. else
  4757. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4758. fi
  4759. test -z "$OBJDUMP" && OBJDUMP=objdump
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4761. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4762. if ${lt_cv_deplibs_check_method+:} false; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4766. lt_cv_file_magic_test_file=
  4767. lt_cv_deplibs_check_method='unknown'
  4768. # Need to set the preceding variable on all platforms that support
  4769. # interlibrary dependencies.
  4770. # 'none' -- dependencies not supported.
  4771. # `unknown' -- same as none, but documents that we really don't know.
  4772. # 'pass_all' -- all dependencies passed with no checks.
  4773. # 'test_compile' -- check by making test program.
  4774. # 'file_magic [[regex]]' -- check by looking for files in library path
  4775. # which responds to the $file_magic_cmd with a given extended regex.
  4776. # If you have `file' or equivalent on your system and you're not sure
  4777. # whether `pass_all' will *always* work, you probably want this one.
  4778. case $host_os in
  4779. aix[4-9]*)
  4780. lt_cv_deplibs_check_method=pass_all
  4781. ;;
  4782. beos*)
  4783. lt_cv_deplibs_check_method=pass_all
  4784. ;;
  4785. bsdi[45]*)
  4786. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4787. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4788. lt_cv_file_magic_test_file=/shlib/libc.so
  4789. ;;
  4790. cygwin*)
  4791. # func_win32_libid is a shell function defined in ltmain.sh
  4792. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4793. lt_cv_file_magic_cmd='func_win32_libid'
  4794. ;;
  4795. mingw* | pw32*)
  4796. # Base MSYS/MinGW do not provide the 'file' command needed by
  4797. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4798. # unless we find 'file', for example because we are cross-compiling.
  4799. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4800. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4801. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4802. lt_cv_file_magic_cmd='func_win32_libid'
  4803. else
  4804. # Keep this pattern in sync with the one in func_win32_libid.
  4805. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4806. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4807. fi
  4808. ;;
  4809. cegcc*)
  4810. # use the weaker test based on 'objdump'. See mingw*.
  4811. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4812. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4813. ;;
  4814. darwin* | rhapsody*)
  4815. lt_cv_deplibs_check_method=pass_all
  4816. ;;
  4817. freebsd* | dragonfly*)
  4818. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4819. case $host_cpu in
  4820. i*86 )
  4821. # Not sure whether the presence of OpenBSD here was a mistake.
  4822. # Let's accept both of them until this is cleared up.
  4823. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4824. lt_cv_file_magic_cmd=/usr/bin/file
  4825. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4826. ;;
  4827. esac
  4828. else
  4829. lt_cv_deplibs_check_method=pass_all
  4830. fi
  4831. ;;
  4832. gnu*)
  4833. lt_cv_deplibs_check_method=pass_all
  4834. ;;
  4835. haiku*)
  4836. lt_cv_deplibs_check_method=pass_all
  4837. ;;
  4838. hpux10.20* | hpux11*)
  4839. lt_cv_file_magic_cmd=/usr/bin/file
  4840. case $host_cpu in
  4841. ia64*)
  4842. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4843. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4844. ;;
  4845. hppa*64*)
  4846. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4847. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4848. ;;
  4849. *)
  4850. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4851. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4852. ;;
  4853. esac
  4854. ;;
  4855. interix[3-9]*)
  4856. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4857. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4858. ;;
  4859. irix5* | irix6* | nonstopux*)
  4860. case $LD in
  4861. *-32|*"-32 ") libmagic=32-bit;;
  4862. *-n32|*"-n32 ") libmagic=N32;;
  4863. *-64|*"-64 ") libmagic=64-bit;;
  4864. *) libmagic=never-match;;
  4865. esac
  4866. lt_cv_deplibs_check_method=pass_all
  4867. ;;
  4868. # This must be glibc/ELF.
  4869. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4870. lt_cv_deplibs_check_method=pass_all
  4871. ;;
  4872. netbsd* | netbsdelf*-gnu)
  4873. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4874. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4875. else
  4876. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4877. fi
  4878. ;;
  4879. newos6*)
  4880. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4881. lt_cv_file_magic_cmd=/usr/bin/file
  4882. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4883. ;;
  4884. *nto* | *qnx*)
  4885. lt_cv_deplibs_check_method=pass_all
  4886. ;;
  4887. openbsd*)
  4888. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4889. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4890. else
  4891. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4892. fi
  4893. ;;
  4894. osf3* | osf4* | osf5*)
  4895. lt_cv_deplibs_check_method=pass_all
  4896. ;;
  4897. rdos*)
  4898. lt_cv_deplibs_check_method=pass_all
  4899. ;;
  4900. solaris*)
  4901. lt_cv_deplibs_check_method=pass_all
  4902. ;;
  4903. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4904. lt_cv_deplibs_check_method=pass_all
  4905. ;;
  4906. sysv4 | sysv4.3*)
  4907. case $host_vendor in
  4908. motorola)
  4909. 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]'
  4910. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4911. ;;
  4912. ncr)
  4913. lt_cv_deplibs_check_method=pass_all
  4914. ;;
  4915. sequent)
  4916. lt_cv_file_magic_cmd='/bin/file'
  4917. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4918. ;;
  4919. sni)
  4920. lt_cv_file_magic_cmd='/bin/file'
  4921. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4922. lt_cv_file_magic_test_file=/lib/libc.so
  4923. ;;
  4924. siemens)
  4925. lt_cv_deplibs_check_method=pass_all
  4926. ;;
  4927. pc)
  4928. lt_cv_deplibs_check_method=pass_all
  4929. ;;
  4930. esac
  4931. ;;
  4932. tpf*)
  4933. lt_cv_deplibs_check_method=pass_all
  4934. ;;
  4935. esac
  4936. fi
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4938. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4939. file_magic_glob=
  4940. want_nocaseglob=no
  4941. if test "$build" = "$host"; then
  4942. case $host_os in
  4943. mingw* | pw32*)
  4944. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4945. want_nocaseglob=yes
  4946. else
  4947. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4948. fi
  4949. ;;
  4950. esac
  4951. fi
  4952. file_magic_cmd=$lt_cv_file_magic_cmd
  4953. deplibs_check_method=$lt_cv_deplibs_check_method
  4954. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4955. if test -n "$ac_tool_prefix"; then
  4956. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4957. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4959. $as_echo_n "checking for $ac_word... " >&6; }
  4960. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4961. $as_echo_n "(cached) " >&6
  4962. else
  4963. if test -n "$DLLTOOL"; then
  4964. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4965. else
  4966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4967. for as_dir in $PATH
  4968. do
  4969. IFS=$as_save_IFS
  4970. test -z "$as_dir" && as_dir=.
  4971. for ac_exec_ext in '' $ac_executable_extensions; do
  4972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4973. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4975. break 2
  4976. fi
  4977. done
  4978. done
  4979. IFS=$as_save_IFS
  4980. fi
  4981. fi
  4982. DLLTOOL=$ac_cv_prog_DLLTOOL
  4983. if test -n "$DLLTOOL"; then
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4985. $as_echo "$DLLTOOL" >&6; }
  4986. else
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4988. $as_echo "no" >&6; }
  4989. fi
  4990. fi
  4991. if test -z "$ac_cv_prog_DLLTOOL"; then
  4992. ac_ct_DLLTOOL=$DLLTOOL
  4993. # Extract the first word of "dlltool", so it can be a program name with args.
  4994. set dummy dlltool; ac_word=$2
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4996. $as_echo_n "checking for $ac_word... " >&6; }
  4997. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4998. $as_echo_n "(cached) " >&6
  4999. else
  5000. if test -n "$ac_ct_DLLTOOL"; then
  5001. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5002. else
  5003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5004. for as_dir in $PATH
  5005. do
  5006. IFS=$as_save_IFS
  5007. test -z "$as_dir" && as_dir=.
  5008. for ac_exec_ext in '' $ac_executable_extensions; do
  5009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5010. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5012. break 2
  5013. fi
  5014. done
  5015. done
  5016. IFS=$as_save_IFS
  5017. fi
  5018. fi
  5019. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5020. if test -n "$ac_ct_DLLTOOL"; then
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5022. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5023. else
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5025. $as_echo "no" >&6; }
  5026. fi
  5027. if test "x$ac_ct_DLLTOOL" = x; then
  5028. DLLTOOL="false"
  5029. else
  5030. case $cross_compiling:$ac_tool_warned in
  5031. yes:)
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5033. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5034. ac_tool_warned=yes ;;
  5035. esac
  5036. DLLTOOL=$ac_ct_DLLTOOL
  5037. fi
  5038. else
  5039. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5040. fi
  5041. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5043. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5044. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5045. $as_echo_n "(cached) " >&6
  5046. else
  5047. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5048. case $host_os in
  5049. cygwin* | mingw* | pw32* | cegcc*)
  5050. # two different shell functions defined in ltmain.sh
  5051. # decide which to use based on capabilities of $DLLTOOL
  5052. case `$DLLTOOL --help 2>&1` in
  5053. *--identify-strict*)
  5054. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5055. ;;
  5056. *)
  5057. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5058. ;;
  5059. esac
  5060. ;;
  5061. *)
  5062. # fallback: assume linklib IS sharedlib
  5063. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5064. ;;
  5065. esac
  5066. fi
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5068. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5069. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5070. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5071. if test -n "$ac_tool_prefix"; then
  5072. for ac_prog in ar
  5073. do
  5074. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5075. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5077. $as_echo_n "checking for $ac_word... " >&6; }
  5078. if ${ac_cv_prog_AR+:} false; then :
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. if test -n "$AR"; then
  5082. ac_cv_prog_AR="$AR" # Let the user override the test.
  5083. else
  5084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5085. for as_dir in $PATH
  5086. do
  5087. IFS=$as_save_IFS
  5088. test -z "$as_dir" && as_dir=.
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5091. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5093. break 2
  5094. fi
  5095. done
  5096. done
  5097. IFS=$as_save_IFS
  5098. fi
  5099. fi
  5100. AR=$ac_cv_prog_AR
  5101. if test -n "$AR"; then
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5103. $as_echo "$AR" >&6; }
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5106. $as_echo "no" >&6; }
  5107. fi
  5108. test -n "$AR" && break
  5109. done
  5110. fi
  5111. if test -z "$AR"; then
  5112. ac_ct_AR=$AR
  5113. for ac_prog in ar
  5114. do
  5115. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5116. set dummy $ac_prog; ac_word=$2
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5118. $as_echo_n "checking for $ac_word... " >&6; }
  5119. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5120. $as_echo_n "(cached) " >&6
  5121. else
  5122. if test -n "$ac_ct_AR"; then
  5123. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5124. else
  5125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5126. for as_dir in $PATH
  5127. do
  5128. IFS=$as_save_IFS
  5129. test -z "$as_dir" && as_dir=.
  5130. for ac_exec_ext in '' $ac_executable_extensions; do
  5131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5132. ac_cv_prog_ac_ct_AR="$ac_prog"
  5133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5134. break 2
  5135. fi
  5136. done
  5137. done
  5138. IFS=$as_save_IFS
  5139. fi
  5140. fi
  5141. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5142. if test -n "$ac_ct_AR"; then
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5144. $as_echo "$ac_ct_AR" >&6; }
  5145. else
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5147. $as_echo "no" >&6; }
  5148. fi
  5149. test -n "$ac_ct_AR" && break
  5150. done
  5151. if test "x$ac_ct_AR" = x; then
  5152. AR="false"
  5153. else
  5154. case $cross_compiling:$ac_tool_warned in
  5155. yes:)
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5157. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5158. ac_tool_warned=yes ;;
  5159. esac
  5160. AR=$ac_ct_AR
  5161. fi
  5162. fi
  5163. : ${AR=ar}
  5164. : ${AR_FLAGS=cru}
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5166. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5167. if ${lt_cv_ar_at_file+:} false; then :
  5168. $as_echo_n "(cached) " >&6
  5169. else
  5170. lt_cv_ar_at_file=no
  5171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5172. /* end confdefs.h. */
  5173. int
  5174. main ()
  5175. {
  5176. ;
  5177. return 0;
  5178. }
  5179. _ACEOF
  5180. if ac_fn_cxx_try_compile "$LINENO"; then :
  5181. echo conftest.$ac_objext > conftest.lst
  5182. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5183. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5184. (eval $lt_ar_try) 2>&5
  5185. ac_status=$?
  5186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5187. test $ac_status = 0; }
  5188. if test "$ac_status" -eq 0; then
  5189. # Ensure the archiver fails upon bogus file names.
  5190. rm -f conftest.$ac_objext libconftest.a
  5191. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5192. (eval $lt_ar_try) 2>&5
  5193. ac_status=$?
  5194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5195. test $ac_status = 0; }
  5196. if test "$ac_status" -ne 0; then
  5197. lt_cv_ar_at_file=@
  5198. fi
  5199. fi
  5200. rm -f conftest.* libconftest.a
  5201. fi
  5202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5203. fi
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5205. $as_echo "$lt_cv_ar_at_file" >&6; }
  5206. if test "x$lt_cv_ar_at_file" = xno; then
  5207. archiver_list_spec=
  5208. else
  5209. archiver_list_spec=$lt_cv_ar_at_file
  5210. fi
  5211. if test -n "$ac_tool_prefix"; then
  5212. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5213. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5215. $as_echo_n "checking for $ac_word... " >&6; }
  5216. if ${ac_cv_prog_STRIP+:} false; then :
  5217. $as_echo_n "(cached) " >&6
  5218. else
  5219. if test -n "$STRIP"; then
  5220. ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
  5230. $as_echo "$as_me:${as_lineno-$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. STRIP=$ac_cv_prog_STRIP
  5239. if test -n "$STRIP"; then
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5241. $as_echo "$STRIP" >&6; }
  5242. else
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5244. $as_echo "no" >&6; }
  5245. fi
  5246. fi
  5247. if test -z "$ac_cv_prog_STRIP"; then
  5248. ac_ct_STRIP=$STRIP
  5249. # Extract the first word of "strip", so it can be a program name with args.
  5250. set dummy strip; ac_word=$2
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5252. $as_echo_n "checking for $ac_word... " >&6; }
  5253. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5254. $as_echo_n "(cached) " >&6
  5255. else
  5256. if test -n "$ac_ct_STRIP"; then
  5257. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5258. else
  5259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5260. for as_dir in $PATH
  5261. do
  5262. IFS=$as_save_IFS
  5263. test -z "$as_dir" && as_dir=.
  5264. for ac_exec_ext in '' $ac_executable_extensions; do
  5265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5266. ac_cv_prog_ac_ct_STRIP="strip"
  5267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5268. break 2
  5269. fi
  5270. done
  5271. done
  5272. IFS=$as_save_IFS
  5273. fi
  5274. fi
  5275. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5276. if test -n "$ac_ct_STRIP"; then
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5278. $as_echo "$ac_ct_STRIP" >&6; }
  5279. else
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5281. $as_echo "no" >&6; }
  5282. fi
  5283. if test "x$ac_ct_STRIP" = x; then
  5284. STRIP=":"
  5285. else
  5286. case $cross_compiling:$ac_tool_warned in
  5287. yes:)
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5289. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5290. ac_tool_warned=yes ;;
  5291. esac
  5292. STRIP=$ac_ct_STRIP
  5293. fi
  5294. else
  5295. STRIP="$ac_cv_prog_STRIP"
  5296. fi
  5297. test -z "$STRIP" && STRIP=:
  5298. if test -n "$ac_tool_prefix"; then
  5299. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5300. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5302. $as_echo_n "checking for $ac_word... " >&6; }
  5303. if ${ac_cv_prog_RANLIB+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. if test -n "$RANLIB"; then
  5307. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5308. else
  5309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5310. for as_dir in $PATH
  5311. do
  5312. IFS=$as_save_IFS
  5313. test -z "$as_dir" && as_dir=.
  5314. for ac_exec_ext in '' $ac_executable_extensions; do
  5315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5316. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5318. break 2
  5319. fi
  5320. done
  5321. done
  5322. IFS=$as_save_IFS
  5323. fi
  5324. fi
  5325. RANLIB=$ac_cv_prog_RANLIB
  5326. if test -n "$RANLIB"; then
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5328. $as_echo "$RANLIB" >&6; }
  5329. else
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5331. $as_echo "no" >&6; }
  5332. fi
  5333. fi
  5334. if test -z "$ac_cv_prog_RANLIB"; then
  5335. ac_ct_RANLIB=$RANLIB
  5336. # Extract the first word of "ranlib", so it can be a program name with args.
  5337. set dummy ranlib; ac_word=$2
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5339. $as_echo_n "checking for $ac_word... " >&6; }
  5340. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5341. $as_echo_n "(cached) " >&6
  5342. else
  5343. if test -n "$ac_ct_RANLIB"; then
  5344. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5345. else
  5346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5347. for as_dir in $PATH
  5348. do
  5349. IFS=$as_save_IFS
  5350. test -z "$as_dir" && as_dir=.
  5351. for ac_exec_ext in '' $ac_executable_extensions; do
  5352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5353. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5355. break 2
  5356. fi
  5357. done
  5358. done
  5359. IFS=$as_save_IFS
  5360. fi
  5361. fi
  5362. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5363. if test -n "$ac_ct_RANLIB"; then
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5365. $as_echo "$ac_ct_RANLIB" >&6; }
  5366. else
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5368. $as_echo "no" >&6; }
  5369. fi
  5370. if test "x$ac_ct_RANLIB" = x; then
  5371. RANLIB=":"
  5372. else
  5373. case $cross_compiling:$ac_tool_warned in
  5374. yes:)
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5376. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5377. ac_tool_warned=yes ;;
  5378. esac
  5379. RANLIB=$ac_ct_RANLIB
  5380. fi
  5381. else
  5382. RANLIB="$ac_cv_prog_RANLIB"
  5383. fi
  5384. test -z "$RANLIB" && RANLIB=:
  5385. # Determine commands to create old-style static archives.
  5386. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5387. old_postinstall_cmds='chmod 644 $oldlib'
  5388. old_postuninstall_cmds=
  5389. if test -n "$RANLIB"; then
  5390. case $host_os in
  5391. openbsd*)
  5392. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5393. ;;
  5394. *)
  5395. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5396. ;;
  5397. esac
  5398. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5399. fi
  5400. case $host_os in
  5401. darwin*)
  5402. lock_old_archive_extraction=yes ;;
  5403. *)
  5404. lock_old_archive_extraction=no ;;
  5405. esac
  5406. # If no C compiler was specified, use CC.
  5407. LTCC=${LTCC-"$CC"}
  5408. # If no C compiler flags were specified, use CFLAGS.
  5409. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5410. # Allow CC to be a program name with arguments.
  5411. compiler=$CC
  5412. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5414. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5415. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5416. $as_echo_n "(cached) " >&6
  5417. else
  5418. # These are sane defaults that work on at least a few old systems.
  5419. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5420. # Character class describing NM global symbol codes.
  5421. symcode='[BCDEGRST]'
  5422. # Regexp to match symbols that can be accessed directly from C.
  5423. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5424. # Define system-specific variables.
  5425. case $host_os in
  5426. aix*)
  5427. symcode='[BCDT]'
  5428. ;;
  5429. cygwin* | mingw* | pw32* | cegcc*)
  5430. symcode='[ABCDGISTW]'
  5431. ;;
  5432. hpux*)
  5433. if test "$host_cpu" = ia64; then
  5434. symcode='[ABCDEGRST]'
  5435. fi
  5436. ;;
  5437. irix* | nonstopux*)
  5438. symcode='[BCDEGRST]'
  5439. ;;
  5440. osf*)
  5441. symcode='[BCDEGQRST]'
  5442. ;;
  5443. solaris*)
  5444. symcode='[BDRT]'
  5445. ;;
  5446. sco3.2v5*)
  5447. symcode='[DT]'
  5448. ;;
  5449. sysv4.2uw2*)
  5450. symcode='[DT]'
  5451. ;;
  5452. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5453. symcode='[ABDT]'
  5454. ;;
  5455. sysv4)
  5456. symcode='[DFNSTU]'
  5457. ;;
  5458. esac
  5459. # If we're using GNU nm, then use its standard symbol codes.
  5460. case `$NM -V 2>&1` in
  5461. *GNU* | *'with BFD'*)
  5462. symcode='[ABCDGIRSTW]' ;;
  5463. esac
  5464. # Transform an extracted symbol line into a proper C declaration.
  5465. # Some systems (esp. on ia64) link data and code symbols differently,
  5466. # so use this general approach.
  5467. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5468. # Transform an extracted symbol line into symbol name and symbol address
  5469. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5470. 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'"
  5471. # Handle CRLF in mingw tool chain
  5472. opt_cr=
  5473. case $build_os in
  5474. mingw*)
  5475. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5476. ;;
  5477. esac
  5478. # Try without a prefix underscore, then with it.
  5479. for ac_symprfx in "" "_"; do
  5480. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5481. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5482. # Write the raw and C identifiers.
  5483. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5484. # Fake it for dumpbin and say T for any non-static function
  5485. # and D for any global variable.
  5486. # Also find C++ and __fastcall symbols from MSVC++,
  5487. # which start with @ or ?.
  5488. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5489. " {last_section=section; section=\$ 3};"\
  5490. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5491. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5492. " \$ 0!~/External *\|/{next};"\
  5493. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5494. " {if(hide[section]) next};"\
  5495. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5496. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5497. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5498. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5499. " ' prfx=^$ac_symprfx"
  5500. else
  5501. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5502. fi
  5503. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5504. # Check to see that the pipe works correctly.
  5505. pipe_works=no
  5506. rm -f conftest*
  5507. cat > conftest.$ac_ext <<_LT_EOF
  5508. #ifdef __cplusplus
  5509. extern "C" {
  5510. #endif
  5511. char nm_test_var;
  5512. void nm_test_func(void);
  5513. void nm_test_func(void){}
  5514. #ifdef __cplusplus
  5515. }
  5516. #endif
  5517. int main(){nm_test_var='a';nm_test_func();return(0);}
  5518. _LT_EOF
  5519. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5520. (eval $ac_compile) 2>&5
  5521. ac_status=$?
  5522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5523. test $ac_status = 0; }; then
  5524. # Now try to grab the symbols.
  5525. nlist=conftest.nm
  5526. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5527. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5528. ac_status=$?
  5529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5530. test $ac_status = 0; } && test -s "$nlist"; then
  5531. # Try sorting and uniquifying the output.
  5532. if sort "$nlist" | uniq > "$nlist"T; then
  5533. mv -f "$nlist"T "$nlist"
  5534. else
  5535. rm -f "$nlist"T
  5536. fi
  5537. # Make sure that we snagged all the symbols we need.
  5538. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5539. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5540. cat <<_LT_EOF > conftest.$ac_ext
  5541. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5542. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5543. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5544. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5545. # define LT_DLSYM_CONST
  5546. #elif defined(__osf__)
  5547. /* This system does not cope well with relocations in const data. */
  5548. # define LT_DLSYM_CONST
  5549. #else
  5550. # define LT_DLSYM_CONST const
  5551. #endif
  5552. #ifdef __cplusplus
  5553. extern "C" {
  5554. #endif
  5555. _LT_EOF
  5556. # Now generate the symbol file.
  5557. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5558. cat <<_LT_EOF >> conftest.$ac_ext
  5559. /* The mapping between symbol names and symbols. */
  5560. LT_DLSYM_CONST struct {
  5561. const char *name;
  5562. void *address;
  5563. }
  5564. lt__PROGRAM__LTX_preloaded_symbols[] =
  5565. {
  5566. { "@PROGRAM@", (void *) 0 },
  5567. _LT_EOF
  5568. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5569. cat <<\_LT_EOF >> conftest.$ac_ext
  5570. {0, (void *) 0}
  5571. };
  5572. /* This works around a problem in FreeBSD linker */
  5573. #ifdef FREEBSD_WORKAROUND
  5574. static const void *lt_preloaded_setup() {
  5575. return lt__PROGRAM__LTX_preloaded_symbols;
  5576. }
  5577. #endif
  5578. #ifdef __cplusplus
  5579. }
  5580. #endif
  5581. _LT_EOF
  5582. # Now try linking the two files.
  5583. mv conftest.$ac_objext conftstm.$ac_objext
  5584. lt_globsym_save_LIBS=$LIBS
  5585. lt_globsym_save_CFLAGS=$CFLAGS
  5586. LIBS="conftstm.$ac_objext"
  5587. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5588. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5589. (eval $ac_link) 2>&5
  5590. ac_status=$?
  5591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5592. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5593. pipe_works=yes
  5594. fi
  5595. LIBS=$lt_globsym_save_LIBS
  5596. CFLAGS=$lt_globsym_save_CFLAGS
  5597. else
  5598. echo "cannot find nm_test_func in $nlist" >&5
  5599. fi
  5600. else
  5601. echo "cannot find nm_test_var in $nlist" >&5
  5602. fi
  5603. else
  5604. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5605. fi
  5606. else
  5607. echo "$progname: failed program was:" >&5
  5608. cat conftest.$ac_ext >&5
  5609. fi
  5610. rm -rf conftest* conftst*
  5611. # Do not use the global_symbol_pipe unless it works.
  5612. if test "$pipe_works" = yes; then
  5613. break
  5614. else
  5615. lt_cv_sys_global_symbol_pipe=
  5616. fi
  5617. done
  5618. fi
  5619. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5620. lt_cv_sys_global_symbol_to_cdecl=
  5621. fi
  5622. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5624. $as_echo "failed" >&6; }
  5625. else
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5627. $as_echo "ok" >&6; }
  5628. fi
  5629. # Response file support.
  5630. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5631. nm_file_list_spec='@'
  5632. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5633. nm_file_list_spec='@'
  5634. fi
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5636. $as_echo_n "checking for sysroot... " >&6; }
  5637. # Check whether --with-sysroot was given.
  5638. if test "${with_sysroot+set}" = set; then :
  5639. withval=$with_sysroot;
  5640. else
  5641. with_sysroot=no
  5642. fi
  5643. lt_sysroot=
  5644. case ${with_sysroot} in #(
  5645. yes)
  5646. if test "$GCC" = yes; then
  5647. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5648. fi
  5649. ;; #(
  5650. /*)
  5651. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5652. ;; #(
  5653. no|'')
  5654. ;; #(
  5655. *)
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5657. $as_echo "${with_sysroot}" >&6; }
  5658. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5659. ;;
  5660. esac
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5662. $as_echo "${lt_sysroot:-no}" >&6; }
  5663. # Check whether --enable-libtool-lock was given.
  5664. if test "${enable_libtool_lock+set}" = set; then :
  5665. enableval=$enable_libtool_lock;
  5666. fi
  5667. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5668. # Some flags need to be propagated to the compiler or linker for good
  5669. # libtool support.
  5670. case $host in
  5671. ia64-*-hpux*)
  5672. # Find out which ABI we are using.
  5673. echo 'int i;' > conftest.$ac_ext
  5674. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5675. (eval $ac_compile) 2>&5
  5676. ac_status=$?
  5677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5678. test $ac_status = 0; }; then
  5679. case `/usr/bin/file conftest.$ac_objext` in
  5680. *ELF-32*)
  5681. HPUX_IA64_MODE="32"
  5682. ;;
  5683. *ELF-64*)
  5684. HPUX_IA64_MODE="64"
  5685. ;;
  5686. esac
  5687. fi
  5688. rm -rf conftest*
  5689. ;;
  5690. *-*-irix6*)
  5691. # Find out which ABI we are using.
  5692. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5693. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5694. (eval $ac_compile) 2>&5
  5695. ac_status=$?
  5696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5697. test $ac_status = 0; }; then
  5698. if test "$lt_cv_prog_gnu_ld" = yes; then
  5699. case `/usr/bin/file conftest.$ac_objext` in
  5700. *32-bit*)
  5701. LD="${LD-ld} -melf32bsmip"
  5702. ;;
  5703. *N32*)
  5704. LD="${LD-ld} -melf32bmipn32"
  5705. ;;
  5706. *64-bit*)
  5707. LD="${LD-ld} -melf64bmip"
  5708. ;;
  5709. esac
  5710. else
  5711. case `/usr/bin/file conftest.$ac_objext` in
  5712. *32-bit*)
  5713. LD="${LD-ld} -32"
  5714. ;;
  5715. *N32*)
  5716. LD="${LD-ld} -n32"
  5717. ;;
  5718. *64-bit*)
  5719. LD="${LD-ld} -64"
  5720. ;;
  5721. esac
  5722. fi
  5723. fi
  5724. rm -rf conftest*
  5725. ;;
  5726. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5727. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5728. # Find out which ABI we are using.
  5729. echo 'int i;' > conftest.$ac_ext
  5730. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5731. (eval $ac_compile) 2>&5
  5732. ac_status=$?
  5733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5734. test $ac_status = 0; }; then
  5735. case `/usr/bin/file conftest.o` in
  5736. *32-bit*)
  5737. case $host in
  5738. x86_64-*kfreebsd*-gnu)
  5739. LD="${LD-ld} -m elf_i386_fbsd"
  5740. ;;
  5741. x86_64-*linux*)
  5742. LD="${LD-ld} -m elf_i386"
  5743. ;;
  5744. ppc64-*linux*|powerpc64-*linux*)
  5745. LD="${LD-ld} -m elf32ppclinux"
  5746. ;;
  5747. s390x-*linux*)
  5748. LD="${LD-ld} -m elf_s390"
  5749. ;;
  5750. sparc64-*linux*)
  5751. LD="${LD-ld} -m elf32_sparc"
  5752. ;;
  5753. esac
  5754. ;;
  5755. *64-bit*)
  5756. case $host in
  5757. x86_64-*kfreebsd*-gnu)
  5758. LD="${LD-ld} -m elf_x86_64_fbsd"
  5759. ;;
  5760. x86_64-*linux*)
  5761. LD="${LD-ld} -m elf_x86_64"
  5762. ;;
  5763. ppc*-*linux*|powerpc*-*linux*)
  5764. LD="${LD-ld} -m elf64ppc"
  5765. ;;
  5766. s390*-*linux*|s390*-*tpf*)
  5767. LD="${LD-ld} -m elf64_s390"
  5768. ;;
  5769. sparc*-*linux*)
  5770. LD="${LD-ld} -m elf64_sparc"
  5771. ;;
  5772. esac
  5773. ;;
  5774. esac
  5775. fi
  5776. rm -rf conftest*
  5777. ;;
  5778. *-*-sco3.2v5*)
  5779. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5780. SAVE_CFLAGS="$CFLAGS"
  5781. CFLAGS="$CFLAGS -belf"
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5783. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5784. if ${lt_cv_cc_needs_belf+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. ac_ext=c
  5788. ac_cpp='$CPP $CPPFLAGS'
  5789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5793. /* end confdefs.h. */
  5794. int
  5795. main ()
  5796. {
  5797. ;
  5798. return 0;
  5799. }
  5800. _ACEOF
  5801. if ac_fn_c_try_link "$LINENO"; then :
  5802. lt_cv_cc_needs_belf=yes
  5803. else
  5804. lt_cv_cc_needs_belf=no
  5805. fi
  5806. rm -f core conftest.err conftest.$ac_objext \
  5807. conftest$ac_exeext conftest.$ac_ext
  5808. ac_ext=c
  5809. ac_cpp='$CPP $CPPFLAGS'
  5810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5813. fi
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5815. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5816. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5817. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5818. CFLAGS="$SAVE_CFLAGS"
  5819. fi
  5820. ;;
  5821. *-*solaris*)
  5822. # Find out which ABI we are using.
  5823. echo 'int i;' > conftest.$ac_ext
  5824. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5825. (eval $ac_compile) 2>&5
  5826. ac_status=$?
  5827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5828. test $ac_status = 0; }; then
  5829. case `/usr/bin/file conftest.o` in
  5830. *64-bit*)
  5831. case $lt_cv_prog_gnu_ld in
  5832. yes*)
  5833. case $host in
  5834. i?86-*-solaris*)
  5835. LD="${LD-ld} -m elf_x86_64"
  5836. ;;
  5837. sparc*-*-solaris*)
  5838. LD="${LD-ld} -m elf64_sparc"
  5839. ;;
  5840. esac
  5841. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5842. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5843. LD="${LD-ld}_sol2"
  5844. fi
  5845. ;;
  5846. *)
  5847. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5848. LD="${LD-ld} -64"
  5849. fi
  5850. ;;
  5851. esac
  5852. ;;
  5853. esac
  5854. fi
  5855. rm -rf conftest*
  5856. ;;
  5857. esac
  5858. need_locks="$enable_libtool_lock"
  5859. if test -n "$ac_tool_prefix"; then
  5860. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5861. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. $as_echo_n "checking for $ac_word... " >&6; }
  5864. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. if test -n "$MANIFEST_TOOL"; then
  5868. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. test -z "$as_dir" && as_dir=.
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5877. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5887. if test -n "$MANIFEST_TOOL"; then
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5889. $as_echo "$MANIFEST_TOOL" >&6; }
  5890. else
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. $as_echo "no" >&6; }
  5893. fi
  5894. fi
  5895. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5896. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5897. # Extract the first word of "mt", so it can be a program name with args.
  5898. set dummy mt; ac_word=$2
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5900. $as_echo_n "checking for $ac_word... " >&6; }
  5901. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5905. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5906. else
  5907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5908. for as_dir in $PATH
  5909. do
  5910. IFS=$as_save_IFS
  5911. test -z "$as_dir" && as_dir=.
  5912. for ac_exec_ext in '' $ac_executable_extensions; do
  5913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5914. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5916. break 2
  5917. fi
  5918. done
  5919. done
  5920. IFS=$as_save_IFS
  5921. fi
  5922. fi
  5923. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5924. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5926. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5927. else
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5929. $as_echo "no" >&6; }
  5930. fi
  5931. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5932. MANIFEST_TOOL=":"
  5933. else
  5934. case $cross_compiling:$ac_tool_warned in
  5935. yes:)
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5938. ac_tool_warned=yes ;;
  5939. esac
  5940. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5941. fi
  5942. else
  5943. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5944. fi
  5945. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5947. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5948. if ${lt_cv_path_mainfest_tool+:} false; then :
  5949. $as_echo_n "(cached) " >&6
  5950. else
  5951. lt_cv_path_mainfest_tool=no
  5952. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5953. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5954. cat conftest.err >&5
  5955. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5956. lt_cv_path_mainfest_tool=yes
  5957. fi
  5958. rm -f conftest*
  5959. fi
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5961. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5962. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5963. MANIFEST_TOOL=:
  5964. fi
  5965. case $host_os in
  5966. rhapsody* | darwin*)
  5967. if test -n "$ac_tool_prefix"; then
  5968. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5969. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5971. $as_echo_n "checking for $ac_word... " >&6; }
  5972. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. if test -n "$DSYMUTIL"; then
  5976. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5977. else
  5978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5979. for as_dir in $PATH
  5980. do
  5981. IFS=$as_save_IFS
  5982. test -z "$as_dir" && as_dir=.
  5983. for ac_exec_ext in '' $ac_executable_extensions; do
  5984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5985. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5987. break 2
  5988. fi
  5989. done
  5990. done
  5991. IFS=$as_save_IFS
  5992. fi
  5993. fi
  5994. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5995. if test -n "$DSYMUTIL"; then
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5997. $as_echo "$DSYMUTIL" >&6; }
  5998. else
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6000. $as_echo "no" >&6; }
  6001. fi
  6002. fi
  6003. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6004. ac_ct_DSYMUTIL=$DSYMUTIL
  6005. # Extract the first word of "dsymutil", so it can be a program name with args.
  6006. set dummy dsymutil; ac_word=$2
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6008. $as_echo_n "checking for $ac_word... " >&6; }
  6009. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. if test -n "$ac_ct_DSYMUTIL"; then
  6013. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6014. else
  6015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6016. for as_dir in $PATH
  6017. do
  6018. IFS=$as_save_IFS
  6019. test -z "$as_dir" && as_dir=.
  6020. for ac_exec_ext in '' $ac_executable_extensions; do
  6021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6022. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6024. break 2
  6025. fi
  6026. done
  6027. done
  6028. IFS=$as_save_IFS
  6029. fi
  6030. fi
  6031. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6032. if test -n "$ac_ct_DSYMUTIL"; then
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6034. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6035. else
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6037. $as_echo "no" >&6; }
  6038. fi
  6039. if test "x$ac_ct_DSYMUTIL" = x; then
  6040. DSYMUTIL=":"
  6041. else
  6042. case $cross_compiling:$ac_tool_warned in
  6043. yes:)
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6045. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6046. ac_tool_warned=yes ;;
  6047. esac
  6048. DSYMUTIL=$ac_ct_DSYMUTIL
  6049. fi
  6050. else
  6051. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6052. fi
  6053. if test -n "$ac_tool_prefix"; then
  6054. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6055. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6057. $as_echo_n "checking for $ac_word... " >&6; }
  6058. if ${ac_cv_prog_NMEDIT+:} false; then :
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. if test -n "$NMEDIT"; then
  6062. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6063. else
  6064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6065. for as_dir in $PATH
  6066. do
  6067. IFS=$as_save_IFS
  6068. test -z "$as_dir" && as_dir=.
  6069. for ac_exec_ext in '' $ac_executable_extensions; do
  6070. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6071. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6073. break 2
  6074. fi
  6075. done
  6076. done
  6077. IFS=$as_save_IFS
  6078. fi
  6079. fi
  6080. NMEDIT=$ac_cv_prog_NMEDIT
  6081. if test -n "$NMEDIT"; then
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6083. $as_echo "$NMEDIT" >&6; }
  6084. else
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6086. $as_echo "no" >&6; }
  6087. fi
  6088. fi
  6089. if test -z "$ac_cv_prog_NMEDIT"; then
  6090. ac_ct_NMEDIT=$NMEDIT
  6091. # Extract the first word of "nmedit", so it can be a program name with args.
  6092. set dummy nmedit; ac_word=$2
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6094. $as_echo_n "checking for $ac_word... " >&6; }
  6095. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6096. $as_echo_n "(cached) " >&6
  6097. else
  6098. if test -n "$ac_ct_NMEDIT"; then
  6099. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6100. else
  6101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6102. for as_dir in $PATH
  6103. do
  6104. IFS=$as_save_IFS
  6105. test -z "$as_dir" && as_dir=.
  6106. for ac_exec_ext in '' $ac_executable_extensions; do
  6107. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6108. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6109. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6110. break 2
  6111. fi
  6112. done
  6113. done
  6114. IFS=$as_save_IFS
  6115. fi
  6116. fi
  6117. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6118. if test -n "$ac_ct_NMEDIT"; then
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6120. $as_echo "$ac_ct_NMEDIT" >&6; }
  6121. else
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6123. $as_echo "no" >&6; }
  6124. fi
  6125. if test "x$ac_ct_NMEDIT" = x; then
  6126. NMEDIT=":"
  6127. else
  6128. case $cross_compiling:$ac_tool_warned in
  6129. yes:)
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6131. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6132. ac_tool_warned=yes ;;
  6133. esac
  6134. NMEDIT=$ac_ct_NMEDIT
  6135. fi
  6136. else
  6137. NMEDIT="$ac_cv_prog_NMEDIT"
  6138. fi
  6139. if test -n "$ac_tool_prefix"; then
  6140. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6141. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6143. $as_echo_n "checking for $ac_word... " >&6; }
  6144. if ${ac_cv_prog_LIPO+:} false; then :
  6145. $as_echo_n "(cached) " >&6
  6146. else
  6147. if test -n "$LIPO"; then
  6148. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6149. else
  6150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6151. for as_dir in $PATH
  6152. do
  6153. IFS=$as_save_IFS
  6154. test -z "$as_dir" && as_dir=.
  6155. for ac_exec_ext in '' $ac_executable_extensions; do
  6156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6157. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6159. break 2
  6160. fi
  6161. done
  6162. done
  6163. IFS=$as_save_IFS
  6164. fi
  6165. fi
  6166. LIPO=$ac_cv_prog_LIPO
  6167. if test -n "$LIPO"; then
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6169. $as_echo "$LIPO" >&6; }
  6170. else
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6172. $as_echo "no" >&6; }
  6173. fi
  6174. fi
  6175. if test -z "$ac_cv_prog_LIPO"; then
  6176. ac_ct_LIPO=$LIPO
  6177. # Extract the first word of "lipo", so it can be a program name with args.
  6178. set dummy lipo; ac_word=$2
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6180. $as_echo_n "checking for $ac_word... " >&6; }
  6181. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6182. $as_echo_n "(cached) " >&6
  6183. else
  6184. if test -n "$ac_ct_LIPO"; then
  6185. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6186. else
  6187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6188. for as_dir in $PATH
  6189. do
  6190. IFS=$as_save_IFS
  6191. test -z "$as_dir" && as_dir=.
  6192. for ac_exec_ext in '' $ac_executable_extensions; do
  6193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6194. ac_cv_prog_ac_ct_LIPO="lipo"
  6195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6196. break 2
  6197. fi
  6198. done
  6199. done
  6200. IFS=$as_save_IFS
  6201. fi
  6202. fi
  6203. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6204. if test -n "$ac_ct_LIPO"; then
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6206. $as_echo "$ac_ct_LIPO" >&6; }
  6207. else
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6209. $as_echo "no" >&6; }
  6210. fi
  6211. if test "x$ac_ct_LIPO" = x; then
  6212. LIPO=":"
  6213. else
  6214. case $cross_compiling:$ac_tool_warned in
  6215. yes:)
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6217. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6218. ac_tool_warned=yes ;;
  6219. esac
  6220. LIPO=$ac_ct_LIPO
  6221. fi
  6222. else
  6223. LIPO="$ac_cv_prog_LIPO"
  6224. fi
  6225. if test -n "$ac_tool_prefix"; then
  6226. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6227. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6229. $as_echo_n "checking for $ac_word... " >&6; }
  6230. if ${ac_cv_prog_OTOOL+:} false; then :
  6231. $as_echo_n "(cached) " >&6
  6232. else
  6233. if test -n "$OTOOL"; then
  6234. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6235. else
  6236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6237. for as_dir in $PATH
  6238. do
  6239. IFS=$as_save_IFS
  6240. test -z "$as_dir" && as_dir=.
  6241. for ac_exec_ext in '' $ac_executable_extensions; do
  6242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6243. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6245. break 2
  6246. fi
  6247. done
  6248. done
  6249. IFS=$as_save_IFS
  6250. fi
  6251. fi
  6252. OTOOL=$ac_cv_prog_OTOOL
  6253. if test -n "$OTOOL"; then
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6255. $as_echo "$OTOOL" >&6; }
  6256. else
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6258. $as_echo "no" >&6; }
  6259. fi
  6260. fi
  6261. if test -z "$ac_cv_prog_OTOOL"; then
  6262. ac_ct_OTOOL=$OTOOL
  6263. # Extract the first word of "otool", so it can be a program name with args.
  6264. set dummy otool; ac_word=$2
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6266. $as_echo_n "checking for $ac_word... " >&6; }
  6267. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6268. $as_echo_n "(cached) " >&6
  6269. else
  6270. if test -n "$ac_ct_OTOOL"; then
  6271. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6272. else
  6273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6274. for as_dir in $PATH
  6275. do
  6276. IFS=$as_save_IFS
  6277. test -z "$as_dir" && as_dir=.
  6278. for ac_exec_ext in '' $ac_executable_extensions; do
  6279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6280. ac_cv_prog_ac_ct_OTOOL="otool"
  6281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6282. break 2
  6283. fi
  6284. done
  6285. done
  6286. IFS=$as_save_IFS
  6287. fi
  6288. fi
  6289. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6290. if test -n "$ac_ct_OTOOL"; then
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6292. $as_echo "$ac_ct_OTOOL" >&6; }
  6293. else
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6295. $as_echo "no" >&6; }
  6296. fi
  6297. if test "x$ac_ct_OTOOL" = x; then
  6298. OTOOL=":"
  6299. else
  6300. case $cross_compiling:$ac_tool_warned in
  6301. yes:)
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6303. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6304. ac_tool_warned=yes ;;
  6305. esac
  6306. OTOOL=$ac_ct_OTOOL
  6307. fi
  6308. else
  6309. OTOOL="$ac_cv_prog_OTOOL"
  6310. fi
  6311. if test -n "$ac_tool_prefix"; then
  6312. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6313. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6315. $as_echo_n "checking for $ac_word... " >&6; }
  6316. if ${ac_cv_prog_OTOOL64+:} false; then :
  6317. $as_echo_n "(cached) " >&6
  6318. else
  6319. if test -n "$OTOOL64"; then
  6320. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6321. else
  6322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6323. for as_dir in $PATH
  6324. do
  6325. IFS=$as_save_IFS
  6326. test -z "$as_dir" && as_dir=.
  6327. for ac_exec_ext in '' $ac_executable_extensions; do
  6328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6329. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6331. break 2
  6332. fi
  6333. done
  6334. done
  6335. IFS=$as_save_IFS
  6336. fi
  6337. fi
  6338. OTOOL64=$ac_cv_prog_OTOOL64
  6339. if test -n "$OTOOL64"; then
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6341. $as_echo "$OTOOL64" >&6; }
  6342. else
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6344. $as_echo "no" >&6; }
  6345. fi
  6346. fi
  6347. if test -z "$ac_cv_prog_OTOOL64"; then
  6348. ac_ct_OTOOL64=$OTOOL64
  6349. # Extract the first word of "otool64", so it can be a program name with args.
  6350. set dummy otool64; ac_word=$2
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6352. $as_echo_n "checking for $ac_word... " >&6; }
  6353. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6354. $as_echo_n "(cached) " >&6
  6355. else
  6356. if test -n "$ac_ct_OTOOL64"; then
  6357. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6358. else
  6359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6360. for as_dir in $PATH
  6361. do
  6362. IFS=$as_save_IFS
  6363. test -z "$as_dir" && as_dir=.
  6364. for ac_exec_ext in '' $ac_executable_extensions; do
  6365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6366. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6368. break 2
  6369. fi
  6370. done
  6371. done
  6372. IFS=$as_save_IFS
  6373. fi
  6374. fi
  6375. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6376. if test -n "$ac_ct_OTOOL64"; then
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6378. $as_echo "$ac_ct_OTOOL64" >&6; }
  6379. else
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6381. $as_echo "no" >&6; }
  6382. fi
  6383. if test "x$ac_ct_OTOOL64" = x; then
  6384. OTOOL64=":"
  6385. else
  6386. case $cross_compiling:$ac_tool_warned in
  6387. yes:)
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6390. ac_tool_warned=yes ;;
  6391. esac
  6392. OTOOL64=$ac_ct_OTOOL64
  6393. fi
  6394. else
  6395. OTOOL64="$ac_cv_prog_OTOOL64"
  6396. fi
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6398. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6399. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. lt_cv_apple_cc_single_mod=no
  6403. if test -z "${LT_MULTI_MODULE}"; then
  6404. # By default we will add the -single_module flag. You can override
  6405. # by either setting the environment variable LT_MULTI_MODULE
  6406. # non-empty at configure time, or by adding -multi_module to the
  6407. # link flags.
  6408. rm -rf libconftest.dylib*
  6409. echo "int foo(void){return 1;}" > conftest.c
  6410. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6411. -dynamiclib -Wl,-single_module conftest.c" >&5
  6412. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6413. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6414. _lt_result=$?
  6415. # If there is a non-empty error log, and "single_module"
  6416. # appears in it, assume the flag caused a linker warning
  6417. if test -s conftest.err && $GREP single_module conftest.err; then
  6418. cat conftest.err >&5
  6419. # Otherwise, if the output was created with a 0 exit code from
  6420. # the compiler, it worked.
  6421. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6422. lt_cv_apple_cc_single_mod=yes
  6423. else
  6424. cat conftest.err >&5
  6425. fi
  6426. rm -rf libconftest.dylib*
  6427. rm -f conftest.*
  6428. fi
  6429. fi
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6431. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6433. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6434. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. lt_cv_ld_exported_symbols_list=no
  6438. save_LDFLAGS=$LDFLAGS
  6439. echo "_main" > conftest.sym
  6440. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6442. /* end confdefs.h. */
  6443. int
  6444. main ()
  6445. {
  6446. ;
  6447. return 0;
  6448. }
  6449. _ACEOF
  6450. if ac_fn_c_try_link "$LINENO"; then :
  6451. lt_cv_ld_exported_symbols_list=yes
  6452. else
  6453. lt_cv_ld_exported_symbols_list=no
  6454. fi
  6455. rm -f core conftest.err conftest.$ac_objext \
  6456. conftest$ac_exeext conftest.$ac_ext
  6457. LDFLAGS="$save_LDFLAGS"
  6458. fi
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6460. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6462. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6463. if ${lt_cv_ld_force_load+:} false; then :
  6464. $as_echo_n "(cached) " >&6
  6465. else
  6466. lt_cv_ld_force_load=no
  6467. cat > conftest.c << _LT_EOF
  6468. int forced_loaded() { return 2;}
  6469. _LT_EOF
  6470. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6471. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6472. echo "$AR cru libconftest.a conftest.o" >&5
  6473. $AR cru libconftest.a conftest.o 2>&5
  6474. echo "$RANLIB libconftest.a" >&5
  6475. $RANLIB libconftest.a 2>&5
  6476. cat > conftest.c << _LT_EOF
  6477. int main() { return 0;}
  6478. _LT_EOF
  6479. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6480. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6481. _lt_result=$?
  6482. if test -s conftest.err && $GREP force_load conftest.err; then
  6483. cat conftest.err >&5
  6484. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6485. lt_cv_ld_force_load=yes
  6486. else
  6487. cat conftest.err >&5
  6488. fi
  6489. rm -f conftest.err libconftest.a conftest conftest.c
  6490. rm -rf conftest.dSYM
  6491. fi
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6493. $as_echo "$lt_cv_ld_force_load" >&6; }
  6494. case $host_os in
  6495. rhapsody* | darwin1.[012])
  6496. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6497. darwin1.*)
  6498. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6499. darwin*) # darwin 5.x on
  6500. # if running on 10.5 or later, the deployment target defaults
  6501. # to the OS version, if on x86, and 10.4, the deployment
  6502. # target defaults to 10.4. Don't you love it?
  6503. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6504. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6505. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6506. 10.[012]*)
  6507. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6508. 10.*)
  6509. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6510. esac
  6511. ;;
  6512. esac
  6513. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6514. _lt_dar_single_mod='$single_module'
  6515. fi
  6516. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6517. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6518. else
  6519. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6520. fi
  6521. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6522. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6523. else
  6524. _lt_dsymutil=
  6525. fi
  6526. ;;
  6527. esac
  6528. ac_ext=c
  6529. ac_cpp='$CPP $CPPFLAGS'
  6530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6534. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6535. # On Suns, sometimes $CPP names a directory.
  6536. if test -n "$CPP" && test -d "$CPP"; then
  6537. CPP=
  6538. fi
  6539. if test -z "$CPP"; then
  6540. if ${ac_cv_prog_CPP+:} false; then :
  6541. $as_echo_n "(cached) " >&6
  6542. else
  6543. # Double quotes because CPP needs to be expanded
  6544. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6545. do
  6546. ac_preproc_ok=false
  6547. for ac_c_preproc_warn_flag in '' yes
  6548. do
  6549. # Use a header file that comes with gcc, so configuring glibc
  6550. # with a fresh cross-compiler works.
  6551. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6552. # <limits.h> exists even on freestanding compilers.
  6553. # On the NeXT, cc -E runs the code through the compiler's parser,
  6554. # not just through cpp. "Syntax error" is here to catch this case.
  6555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6556. /* end confdefs.h. */
  6557. #ifdef __STDC__
  6558. # include <limits.h>
  6559. #else
  6560. # include <assert.h>
  6561. #endif
  6562. Syntax error
  6563. _ACEOF
  6564. if ac_fn_c_try_cpp "$LINENO"; then :
  6565. else
  6566. # Broken: fails on valid input.
  6567. continue
  6568. fi
  6569. rm -f conftest.err conftest.i conftest.$ac_ext
  6570. # OK, works on sane cases. Now check whether nonexistent headers
  6571. # can be detected and how.
  6572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6573. /* end confdefs.h. */
  6574. #include <ac_nonexistent.h>
  6575. _ACEOF
  6576. if ac_fn_c_try_cpp "$LINENO"; then :
  6577. # Broken: success on invalid input.
  6578. continue
  6579. else
  6580. # Passes both tests.
  6581. ac_preproc_ok=:
  6582. break
  6583. fi
  6584. rm -f conftest.err conftest.i conftest.$ac_ext
  6585. done
  6586. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6587. rm -f conftest.i conftest.err conftest.$ac_ext
  6588. if $ac_preproc_ok; then :
  6589. break
  6590. fi
  6591. done
  6592. ac_cv_prog_CPP=$CPP
  6593. fi
  6594. CPP=$ac_cv_prog_CPP
  6595. else
  6596. ac_cv_prog_CPP=$CPP
  6597. fi
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6599. $as_echo "$CPP" >&6; }
  6600. ac_preproc_ok=false
  6601. for ac_c_preproc_warn_flag in '' yes
  6602. do
  6603. # Use a header file that comes with gcc, so configuring glibc
  6604. # with a fresh cross-compiler works.
  6605. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6606. # <limits.h> exists even on freestanding compilers.
  6607. # On the NeXT, cc -E runs the code through the compiler's parser,
  6608. # not just through cpp. "Syntax error" is here to catch this case.
  6609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6610. /* end confdefs.h. */
  6611. #ifdef __STDC__
  6612. # include <limits.h>
  6613. #else
  6614. # include <assert.h>
  6615. #endif
  6616. Syntax error
  6617. _ACEOF
  6618. if ac_fn_c_try_cpp "$LINENO"; then :
  6619. else
  6620. # Broken: fails on valid input.
  6621. continue
  6622. fi
  6623. rm -f conftest.err conftest.i conftest.$ac_ext
  6624. # OK, works on sane cases. Now check whether nonexistent headers
  6625. # can be detected and how.
  6626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6627. /* end confdefs.h. */
  6628. #include <ac_nonexistent.h>
  6629. _ACEOF
  6630. if ac_fn_c_try_cpp "$LINENO"; then :
  6631. # Broken: success on invalid input.
  6632. continue
  6633. else
  6634. # Passes both tests.
  6635. ac_preproc_ok=:
  6636. break
  6637. fi
  6638. rm -f conftest.err conftest.i conftest.$ac_ext
  6639. done
  6640. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6641. rm -f conftest.i conftest.err conftest.$ac_ext
  6642. if $ac_preproc_ok; then :
  6643. else
  6644. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6645. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6646. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6647. See \`config.log' for more details" "$LINENO" 5; }
  6648. fi
  6649. ac_ext=c
  6650. ac_cpp='$CPP $CPPFLAGS'
  6651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6655. $as_echo_n "checking for ANSI C header files... " >&6; }
  6656. if ${ac_cv_header_stdc+:} false; then :
  6657. $as_echo_n "(cached) " >&6
  6658. else
  6659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6660. /* end confdefs.h. */
  6661. #include <stdlib.h>
  6662. #include <stdarg.h>
  6663. #include <string.h>
  6664. #include <float.h>
  6665. int
  6666. main ()
  6667. {
  6668. ;
  6669. return 0;
  6670. }
  6671. _ACEOF
  6672. if ac_fn_c_try_compile "$LINENO"; then :
  6673. ac_cv_header_stdc=yes
  6674. else
  6675. ac_cv_header_stdc=no
  6676. fi
  6677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6678. if test $ac_cv_header_stdc = yes; then
  6679. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6681. /* end confdefs.h. */
  6682. #include <string.h>
  6683. _ACEOF
  6684. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6685. $EGREP "memchr" >/dev/null 2>&1; then :
  6686. else
  6687. ac_cv_header_stdc=no
  6688. fi
  6689. rm -f conftest*
  6690. fi
  6691. if test $ac_cv_header_stdc = yes; then
  6692. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6694. /* end confdefs.h. */
  6695. #include <stdlib.h>
  6696. _ACEOF
  6697. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6698. $EGREP "free" >/dev/null 2>&1; then :
  6699. else
  6700. ac_cv_header_stdc=no
  6701. fi
  6702. rm -f conftest*
  6703. fi
  6704. if test $ac_cv_header_stdc = yes; then
  6705. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6706. if test "$cross_compiling" = yes; then :
  6707. :
  6708. else
  6709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6710. /* end confdefs.h. */
  6711. #include <ctype.h>
  6712. #include <stdlib.h>
  6713. #if ((' ' & 0x0FF) == 0x020)
  6714. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6715. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6716. #else
  6717. # define ISLOWER(c) \
  6718. (('a' <= (c) && (c) <= 'i') \
  6719. || ('j' <= (c) && (c) <= 'r') \
  6720. || ('s' <= (c) && (c) <= 'z'))
  6721. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6722. #endif
  6723. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6724. int
  6725. main ()
  6726. {
  6727. int i;
  6728. for (i = 0; i < 256; i++)
  6729. if (XOR (islower (i), ISLOWER (i))
  6730. || toupper (i) != TOUPPER (i))
  6731. return 2;
  6732. return 0;
  6733. }
  6734. _ACEOF
  6735. if ac_fn_c_try_run "$LINENO"; then :
  6736. else
  6737. ac_cv_header_stdc=no
  6738. fi
  6739. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6740. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6741. fi
  6742. fi
  6743. fi
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6745. $as_echo "$ac_cv_header_stdc" >&6; }
  6746. if test $ac_cv_header_stdc = yes; then
  6747. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6748. fi
  6749. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6750. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6751. inttypes.h stdint.h unistd.h
  6752. do :
  6753. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6754. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6755. "
  6756. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6757. cat >>confdefs.h <<_ACEOF
  6758. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6759. _ACEOF
  6760. fi
  6761. done
  6762. for ac_header in dlfcn.h
  6763. do :
  6764. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6765. "
  6766. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6767. cat >>confdefs.h <<_ACEOF
  6768. #define HAVE_DLFCN_H 1
  6769. _ACEOF
  6770. fi
  6771. done
  6772. func_stripname_cnf ()
  6773. {
  6774. case ${2} in
  6775. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6776. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6777. esac
  6778. } # func_stripname_cnf
  6779. # Set options
  6780. enable_dlopen=no
  6781. enable_win32_dll=no
  6782. # Check whether --enable-shared was given.
  6783. if test "${enable_shared+set}" = set; then :
  6784. enableval=$enable_shared; p=${PACKAGE-default}
  6785. case $enableval in
  6786. yes) enable_shared=yes ;;
  6787. no) enable_shared=no ;;
  6788. *)
  6789. enable_shared=no
  6790. # Look at the argument we got. We use all the common list separators.
  6791. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6792. for pkg in $enableval; do
  6793. IFS="$lt_save_ifs"
  6794. if test "X$pkg" = "X$p"; then
  6795. enable_shared=yes
  6796. fi
  6797. done
  6798. IFS="$lt_save_ifs"
  6799. ;;
  6800. esac
  6801. else
  6802. enable_shared=yes
  6803. fi
  6804. # Check whether --enable-static was given.
  6805. if test "${enable_static+set}" = set; then :
  6806. enableval=$enable_static; p=${PACKAGE-default}
  6807. case $enableval in
  6808. yes) enable_static=yes ;;
  6809. no) enable_static=no ;;
  6810. *)
  6811. enable_static=no
  6812. # Look at the argument we got. We use all the common list separators.
  6813. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6814. for pkg in $enableval; do
  6815. IFS="$lt_save_ifs"
  6816. if test "X$pkg" = "X$p"; then
  6817. enable_static=yes
  6818. fi
  6819. done
  6820. IFS="$lt_save_ifs"
  6821. ;;
  6822. esac
  6823. else
  6824. enable_static=yes
  6825. fi
  6826. # Check whether --with-pic was given.
  6827. if test "${with_pic+set}" = set; then :
  6828. withval=$with_pic; lt_p=${PACKAGE-default}
  6829. case $withval in
  6830. yes|no) pic_mode=$withval ;;
  6831. *)
  6832. pic_mode=default
  6833. # Look at the argument we got. We use all the common list separators.
  6834. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6835. for lt_pkg in $withval; do
  6836. IFS="$lt_save_ifs"
  6837. if test "X$lt_pkg" = "X$lt_p"; then
  6838. pic_mode=yes
  6839. fi
  6840. done
  6841. IFS="$lt_save_ifs"
  6842. ;;
  6843. esac
  6844. else
  6845. pic_mode=default
  6846. fi
  6847. test -z "$pic_mode" && pic_mode=default
  6848. # Check whether --enable-fast-install was given.
  6849. if test "${enable_fast_install+set}" = set; then :
  6850. enableval=$enable_fast_install; p=${PACKAGE-default}
  6851. case $enableval in
  6852. yes) enable_fast_install=yes ;;
  6853. no) enable_fast_install=no ;;
  6854. *)
  6855. enable_fast_install=no
  6856. # Look at the argument we got. We use all the common list separators.
  6857. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6858. for pkg in $enableval; do
  6859. IFS="$lt_save_ifs"
  6860. if test "X$pkg" = "X$p"; then
  6861. enable_fast_install=yes
  6862. fi
  6863. done
  6864. IFS="$lt_save_ifs"
  6865. ;;
  6866. esac
  6867. else
  6868. enable_fast_install=yes
  6869. fi
  6870. # This can be used to rebuild libtool when needed
  6871. LIBTOOL_DEPS="$ltmain"
  6872. # Always use our own libtool.
  6873. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6874. test -z "$LN_S" && LN_S="ln -s"
  6875. if test -n "${ZSH_VERSION+set}" ; then
  6876. setopt NO_GLOB_SUBST
  6877. fi
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6879. $as_echo_n "checking for objdir... " >&6; }
  6880. if ${lt_cv_objdir+:} false; then :
  6881. $as_echo_n "(cached) " >&6
  6882. else
  6883. rm -f .libs 2>/dev/null
  6884. mkdir .libs 2>/dev/null
  6885. if test -d .libs; then
  6886. lt_cv_objdir=.libs
  6887. else
  6888. # MS-DOS does not allow filenames that begin with a dot.
  6889. lt_cv_objdir=_libs
  6890. fi
  6891. rmdir .libs 2>/dev/null
  6892. fi
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6894. $as_echo "$lt_cv_objdir" >&6; }
  6895. objdir=$lt_cv_objdir
  6896. cat >>confdefs.h <<_ACEOF
  6897. #define LT_OBJDIR "$lt_cv_objdir/"
  6898. _ACEOF
  6899. case $host_os in
  6900. aix3*)
  6901. # AIX sometimes has problems with the GCC collect2 program. For some
  6902. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6903. # vanish in a puff of smoke.
  6904. if test "X${COLLECT_NAMES+set}" != Xset; then
  6905. COLLECT_NAMES=
  6906. export COLLECT_NAMES
  6907. fi
  6908. ;;
  6909. esac
  6910. # Global variables:
  6911. ofile=libtool
  6912. can_build_shared=yes
  6913. # All known linkers require a `.a' archive for static linking (except MSVC,
  6914. # which needs '.lib').
  6915. libext=a
  6916. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6917. old_CC="$CC"
  6918. old_CFLAGS="$CFLAGS"
  6919. # Set sane defaults for various variables
  6920. test -z "$CC" && CC=cc
  6921. test -z "$LTCC" && LTCC=$CC
  6922. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6923. test -z "$LD" && LD=ld
  6924. test -z "$ac_objext" && ac_objext=o
  6925. for cc_temp in $compiler""; do
  6926. case $cc_temp in
  6927. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6928. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6929. \-*) ;;
  6930. *) break;;
  6931. esac
  6932. done
  6933. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6934. # Only perform the check for file, if the check method requires it
  6935. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6936. case $deplibs_check_method in
  6937. file_magic*)
  6938. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6940. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6941. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. case $MAGIC_CMD in
  6945. [\\/*] | ?:[\\/]*)
  6946. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6947. ;;
  6948. *)
  6949. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6950. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6951. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6952. for ac_dir in $ac_dummy; do
  6953. IFS="$lt_save_ifs"
  6954. test -z "$ac_dir" && ac_dir=.
  6955. if test -f $ac_dir/${ac_tool_prefix}file; then
  6956. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6957. if test -n "$file_magic_test_file"; then
  6958. case $deplibs_check_method in
  6959. "file_magic "*)
  6960. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6961. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6962. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6963. $EGREP "$file_magic_regex" > /dev/null; then
  6964. :
  6965. else
  6966. cat <<_LT_EOF 1>&2
  6967. *** Warning: the command libtool uses to detect shared libraries,
  6968. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6969. *** The result is that libtool may fail to recognize shared libraries
  6970. *** as such. This will affect the creation of libtool libraries that
  6971. *** depend on shared libraries, but programs linked with such libtool
  6972. *** libraries will work regardless of this problem. Nevertheless, you
  6973. *** may want to report the problem to your system manager and/or to
  6974. *** bug-libtool@gnu.org
  6975. _LT_EOF
  6976. fi ;;
  6977. esac
  6978. fi
  6979. break
  6980. fi
  6981. done
  6982. IFS="$lt_save_ifs"
  6983. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6984. ;;
  6985. esac
  6986. fi
  6987. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6988. if test -n "$MAGIC_CMD"; then
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6990. $as_echo "$MAGIC_CMD" >&6; }
  6991. else
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6993. $as_echo "no" >&6; }
  6994. fi
  6995. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6996. if test -n "$ac_tool_prefix"; then
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6998. $as_echo_n "checking for file... " >&6; }
  6999. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7000. $as_echo_n "(cached) " >&6
  7001. else
  7002. case $MAGIC_CMD in
  7003. [\\/*] | ?:[\\/]*)
  7004. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7005. ;;
  7006. *)
  7007. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7008. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7009. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7010. for ac_dir in $ac_dummy; do
  7011. IFS="$lt_save_ifs"
  7012. test -z "$ac_dir" && ac_dir=.
  7013. if test -f $ac_dir/file; then
  7014. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7015. if test -n "$file_magic_test_file"; then
  7016. case $deplibs_check_method in
  7017. "file_magic "*)
  7018. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7019. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7020. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7021. $EGREP "$file_magic_regex" > /dev/null; then
  7022. :
  7023. else
  7024. cat <<_LT_EOF 1>&2
  7025. *** Warning: the command libtool uses to detect shared libraries,
  7026. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7027. *** The result is that libtool may fail to recognize shared libraries
  7028. *** as such. This will affect the creation of libtool libraries that
  7029. *** depend on shared libraries, but programs linked with such libtool
  7030. *** libraries will work regardless of this problem. Nevertheless, you
  7031. *** may want to report the problem to your system manager and/or to
  7032. *** bug-libtool@gnu.org
  7033. _LT_EOF
  7034. fi ;;
  7035. esac
  7036. fi
  7037. break
  7038. fi
  7039. done
  7040. IFS="$lt_save_ifs"
  7041. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7042. ;;
  7043. esac
  7044. fi
  7045. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7046. if test -n "$MAGIC_CMD"; then
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7048. $as_echo "$MAGIC_CMD" >&6; }
  7049. else
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7051. $as_echo "no" >&6; }
  7052. fi
  7053. else
  7054. MAGIC_CMD=:
  7055. fi
  7056. fi
  7057. fi
  7058. ;;
  7059. esac
  7060. # Use C for the default configuration in the libtool script
  7061. lt_save_CC="$CC"
  7062. ac_ext=c
  7063. ac_cpp='$CPP $CPPFLAGS'
  7064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7067. # Source file extension for C test sources.
  7068. ac_ext=c
  7069. # Object file extension for compiled C test sources.
  7070. objext=o
  7071. objext=$objext
  7072. # Code to be used in simple compile tests
  7073. lt_simple_compile_test_code="int some_variable = 0;"
  7074. # Code to be used in simple link tests
  7075. lt_simple_link_test_code='int main(){return(0);}'
  7076. # If no C compiler was specified, use CC.
  7077. LTCC=${LTCC-"$CC"}
  7078. # If no C compiler flags were specified, use CFLAGS.
  7079. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7080. # Allow CC to be a program name with arguments.
  7081. compiler=$CC
  7082. # Save the default compiler, since it gets overwritten when the other
  7083. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7084. compiler_DEFAULT=$CC
  7085. # save warnings/boilerplate of simple test code
  7086. ac_outfile=conftest.$ac_objext
  7087. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7088. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7089. _lt_compiler_boilerplate=`cat conftest.err`
  7090. $RM conftest*
  7091. ac_outfile=conftest.$ac_objext
  7092. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7093. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7094. _lt_linker_boilerplate=`cat conftest.err`
  7095. $RM -r conftest*
  7096. ## CAVEAT EMPTOR:
  7097. ## There is no encapsulation within the following macros, do not change
  7098. ## the running order or otherwise move them around unless you know exactly
  7099. ## what you are doing...
  7100. if test -n "$compiler"; then
  7101. lt_prog_compiler_no_builtin_flag=
  7102. if test "$GCC" = yes; then
  7103. case $cc_basename in
  7104. nvcc*)
  7105. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7106. *)
  7107. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7108. esac
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7110. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7111. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7112. $as_echo_n "(cached) " >&6
  7113. else
  7114. lt_cv_prog_compiler_rtti_exceptions=no
  7115. ac_outfile=conftest.$ac_objext
  7116. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7117. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7118. # Insert the option either (1) after the last *FLAGS variable, or
  7119. # (2) before a word containing "conftest.", or (3) at the end.
  7120. # Note that $ac_compile itself does not contain backslashes and begins
  7121. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7122. # The option is referenced via a variable to avoid confusing sed.
  7123. lt_compile=`echo "$ac_compile" | $SED \
  7124. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7125. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7126. -e 's:$: $lt_compiler_flag:'`
  7127. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7128. (eval "$lt_compile" 2>conftest.err)
  7129. ac_status=$?
  7130. cat conftest.err >&5
  7131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7132. if (exit $ac_status) && test -s "$ac_outfile"; then
  7133. # The compiler can only warn and ignore the option if not recognized
  7134. # So say no if there are warnings other than the usual output.
  7135. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7136. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7137. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7138. lt_cv_prog_compiler_rtti_exceptions=yes
  7139. fi
  7140. fi
  7141. $RM conftest*
  7142. fi
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7144. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7145. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7146. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7147. else
  7148. :
  7149. fi
  7150. fi
  7151. lt_prog_compiler_wl=
  7152. lt_prog_compiler_pic=
  7153. lt_prog_compiler_static=
  7154. if test "$GCC" = yes; then
  7155. lt_prog_compiler_wl='-Wl,'
  7156. lt_prog_compiler_static='-static'
  7157. case $host_os in
  7158. aix*)
  7159. # All AIX code is PIC.
  7160. if test "$host_cpu" = ia64; then
  7161. # AIX 5 now supports IA64 processor
  7162. lt_prog_compiler_static='-Bstatic'
  7163. fi
  7164. ;;
  7165. amigaos*)
  7166. case $host_cpu in
  7167. powerpc)
  7168. # see comment about AmigaOS4 .so support
  7169. lt_prog_compiler_pic='-fPIC'
  7170. ;;
  7171. m68k)
  7172. # FIXME: we need at least 68020 code to build shared libraries, but
  7173. # adding the `-m68020' flag to GCC prevents building anything better,
  7174. # like `-m68040'.
  7175. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7176. ;;
  7177. esac
  7178. ;;
  7179. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7180. # PIC is the default for these OSes.
  7181. ;;
  7182. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7183. # This hack is so that the source file can tell whether it is being
  7184. # built for inclusion in a dll (and should export symbols for example).
  7185. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7186. # (--disable-auto-import) libraries
  7187. lt_prog_compiler_pic='-DDLL_EXPORT'
  7188. ;;
  7189. darwin* | rhapsody*)
  7190. # PIC is the default on this platform
  7191. # Common symbols not allowed in MH_DYLIB files
  7192. lt_prog_compiler_pic='-fno-common'
  7193. ;;
  7194. haiku*)
  7195. # PIC is the default for Haiku.
  7196. # The "-static" flag exists, but is broken.
  7197. lt_prog_compiler_static=
  7198. ;;
  7199. hpux*)
  7200. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7201. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7202. # sets the default TLS model and affects inlining.
  7203. case $host_cpu in
  7204. hppa*64*)
  7205. # +Z the default
  7206. ;;
  7207. *)
  7208. lt_prog_compiler_pic='-fPIC'
  7209. ;;
  7210. esac
  7211. ;;
  7212. interix[3-9]*)
  7213. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7214. # Instead, we relocate shared libraries at runtime.
  7215. ;;
  7216. msdosdjgpp*)
  7217. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7218. # on systems that don't support them.
  7219. lt_prog_compiler_can_build_shared=no
  7220. enable_shared=no
  7221. ;;
  7222. *nto* | *qnx*)
  7223. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7224. # it will coredump.
  7225. lt_prog_compiler_pic='-fPIC -shared'
  7226. ;;
  7227. sysv4*MP*)
  7228. if test -d /usr/nec; then
  7229. lt_prog_compiler_pic=-Kconform_pic
  7230. fi
  7231. ;;
  7232. *)
  7233. lt_prog_compiler_pic='-fPIC'
  7234. ;;
  7235. esac
  7236. case $cc_basename in
  7237. nvcc*) # Cuda Compiler Driver 2.2
  7238. lt_prog_compiler_wl='-Xlinker '
  7239. if test -n "$lt_prog_compiler_pic"; then
  7240. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7241. fi
  7242. ;;
  7243. esac
  7244. else
  7245. # PORTME Check for flag to pass linker flags through the system compiler.
  7246. case $host_os in
  7247. aix*)
  7248. lt_prog_compiler_wl='-Wl,'
  7249. if test "$host_cpu" = ia64; then
  7250. # AIX 5 now supports IA64 processor
  7251. lt_prog_compiler_static='-Bstatic'
  7252. else
  7253. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7254. fi
  7255. ;;
  7256. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7257. # This hack is so that the source file can tell whether it is being
  7258. # built for inclusion in a dll (and should export symbols for example).
  7259. lt_prog_compiler_pic='-DDLL_EXPORT'
  7260. ;;
  7261. hpux9* | hpux10* | hpux11*)
  7262. lt_prog_compiler_wl='-Wl,'
  7263. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7264. # not for PA HP-UX.
  7265. case $host_cpu in
  7266. hppa*64*|ia64*)
  7267. # +Z the default
  7268. ;;
  7269. *)
  7270. lt_prog_compiler_pic='+Z'
  7271. ;;
  7272. esac
  7273. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7274. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7275. ;;
  7276. irix5* | irix6* | nonstopux*)
  7277. lt_prog_compiler_wl='-Wl,'
  7278. # PIC (with -KPIC) is the default.
  7279. lt_prog_compiler_static='-non_shared'
  7280. ;;
  7281. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7282. case $cc_basename in
  7283. # old Intel for x86_64 which still supported -KPIC.
  7284. ecc*)
  7285. lt_prog_compiler_wl='-Wl,'
  7286. lt_prog_compiler_pic='-KPIC'
  7287. lt_prog_compiler_static='-static'
  7288. ;;
  7289. # icc used to be incompatible with GCC.
  7290. # ICC 10 doesn't accept -KPIC any more.
  7291. icc* | ifort*)
  7292. lt_prog_compiler_wl='-Wl,'
  7293. lt_prog_compiler_pic='-fPIC'
  7294. lt_prog_compiler_static='-static'
  7295. ;;
  7296. # Lahey Fortran 8.1.
  7297. lf95*)
  7298. lt_prog_compiler_wl='-Wl,'
  7299. lt_prog_compiler_pic='--shared'
  7300. lt_prog_compiler_static='--static'
  7301. ;;
  7302. nagfor*)
  7303. # NAG Fortran compiler
  7304. lt_prog_compiler_wl='-Wl,-Wl,,'
  7305. lt_prog_compiler_pic='-PIC'
  7306. lt_prog_compiler_static='-Bstatic'
  7307. ;;
  7308. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7309. # Portland Group compilers (*not* the Pentium gcc compiler,
  7310. # which looks to be a dead project)
  7311. lt_prog_compiler_wl='-Wl,'
  7312. lt_prog_compiler_pic='-fpic'
  7313. lt_prog_compiler_static='-Bstatic'
  7314. ;;
  7315. ccc*)
  7316. lt_prog_compiler_wl='-Wl,'
  7317. # All Alpha code is PIC.
  7318. lt_prog_compiler_static='-non_shared'
  7319. ;;
  7320. xl* | bgxl* | bgf* | mpixl*)
  7321. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7322. lt_prog_compiler_wl='-Wl,'
  7323. lt_prog_compiler_pic='-qpic'
  7324. lt_prog_compiler_static='-qstaticlink'
  7325. ;;
  7326. *)
  7327. case `$CC -V 2>&1 | sed 5q` in
  7328. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7329. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7330. lt_prog_compiler_pic='-KPIC'
  7331. lt_prog_compiler_static='-Bstatic'
  7332. lt_prog_compiler_wl=''
  7333. ;;
  7334. *Sun\ F* | *Sun*Fortran*)
  7335. lt_prog_compiler_pic='-KPIC'
  7336. lt_prog_compiler_static='-Bstatic'
  7337. lt_prog_compiler_wl='-Qoption ld '
  7338. ;;
  7339. *Sun\ C*)
  7340. # Sun C 5.9
  7341. lt_prog_compiler_pic='-KPIC'
  7342. lt_prog_compiler_static='-Bstatic'
  7343. lt_prog_compiler_wl='-Wl,'
  7344. ;;
  7345. *Intel*\ [CF]*Compiler*)
  7346. lt_prog_compiler_wl='-Wl,'
  7347. lt_prog_compiler_pic='-fPIC'
  7348. lt_prog_compiler_static='-static'
  7349. ;;
  7350. *Portland\ Group*)
  7351. lt_prog_compiler_wl='-Wl,'
  7352. lt_prog_compiler_pic='-fpic'
  7353. lt_prog_compiler_static='-Bstatic'
  7354. ;;
  7355. esac
  7356. ;;
  7357. esac
  7358. ;;
  7359. newsos6)
  7360. lt_prog_compiler_pic='-KPIC'
  7361. lt_prog_compiler_static='-Bstatic'
  7362. ;;
  7363. *nto* | *qnx*)
  7364. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7365. # it will coredump.
  7366. lt_prog_compiler_pic='-fPIC -shared'
  7367. ;;
  7368. osf3* | osf4* | osf5*)
  7369. lt_prog_compiler_wl='-Wl,'
  7370. # All OSF/1 code is PIC.
  7371. lt_prog_compiler_static='-non_shared'
  7372. ;;
  7373. rdos*)
  7374. lt_prog_compiler_static='-non_shared'
  7375. ;;
  7376. solaris*)
  7377. lt_prog_compiler_pic='-KPIC'
  7378. lt_prog_compiler_static='-Bstatic'
  7379. case $cc_basename in
  7380. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7381. lt_prog_compiler_wl='-Qoption ld ';;
  7382. *)
  7383. lt_prog_compiler_wl='-Wl,';;
  7384. esac
  7385. ;;
  7386. sunos4*)
  7387. lt_prog_compiler_wl='-Qoption ld '
  7388. lt_prog_compiler_pic='-PIC'
  7389. lt_prog_compiler_static='-Bstatic'
  7390. ;;
  7391. sysv4 | sysv4.2uw2* | sysv4.3*)
  7392. lt_prog_compiler_wl='-Wl,'
  7393. lt_prog_compiler_pic='-KPIC'
  7394. lt_prog_compiler_static='-Bstatic'
  7395. ;;
  7396. sysv4*MP*)
  7397. if test -d /usr/nec ;then
  7398. lt_prog_compiler_pic='-Kconform_pic'
  7399. lt_prog_compiler_static='-Bstatic'
  7400. fi
  7401. ;;
  7402. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7403. lt_prog_compiler_wl='-Wl,'
  7404. lt_prog_compiler_pic='-KPIC'
  7405. lt_prog_compiler_static='-Bstatic'
  7406. ;;
  7407. unicos*)
  7408. lt_prog_compiler_wl='-Wl,'
  7409. lt_prog_compiler_can_build_shared=no
  7410. ;;
  7411. uts4*)
  7412. lt_prog_compiler_pic='-pic'
  7413. lt_prog_compiler_static='-Bstatic'
  7414. ;;
  7415. *)
  7416. lt_prog_compiler_can_build_shared=no
  7417. ;;
  7418. esac
  7419. fi
  7420. case $host_os in
  7421. # For platforms which do not support PIC, -DPIC is meaningless:
  7422. *djgpp*)
  7423. lt_prog_compiler_pic=
  7424. ;;
  7425. *)
  7426. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7427. ;;
  7428. esac
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7430. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7431. if ${lt_cv_prog_compiler_pic+:} false; then :
  7432. $as_echo_n "(cached) " >&6
  7433. else
  7434. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7435. fi
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7437. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7438. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7439. #
  7440. # Check to make sure the PIC flag actually works.
  7441. #
  7442. if test -n "$lt_prog_compiler_pic"; then
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7444. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7445. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7446. $as_echo_n "(cached) " >&6
  7447. else
  7448. lt_cv_prog_compiler_pic_works=no
  7449. ac_outfile=conftest.$ac_objext
  7450. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7451. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7452. # Insert the option either (1) after the last *FLAGS variable, or
  7453. # (2) before a word containing "conftest.", or (3) at the end.
  7454. # Note that $ac_compile itself does not contain backslashes and begins
  7455. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7456. # The option is referenced via a variable to avoid confusing sed.
  7457. lt_compile=`echo "$ac_compile" | $SED \
  7458. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7459. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7460. -e 's:$: $lt_compiler_flag:'`
  7461. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7462. (eval "$lt_compile" 2>conftest.err)
  7463. ac_status=$?
  7464. cat conftest.err >&5
  7465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7466. if (exit $ac_status) && test -s "$ac_outfile"; then
  7467. # The compiler can only warn and ignore the option if not recognized
  7468. # So say no if there are warnings other than the usual output.
  7469. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7470. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7471. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7472. lt_cv_prog_compiler_pic_works=yes
  7473. fi
  7474. fi
  7475. $RM conftest*
  7476. fi
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7478. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7479. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7480. case $lt_prog_compiler_pic in
  7481. "" | " "*) ;;
  7482. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7483. esac
  7484. else
  7485. lt_prog_compiler_pic=
  7486. lt_prog_compiler_can_build_shared=no
  7487. fi
  7488. fi
  7489. #
  7490. # Check to make sure the static flag actually works.
  7491. #
  7492. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7494. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7495. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7496. $as_echo_n "(cached) " >&6
  7497. else
  7498. lt_cv_prog_compiler_static_works=no
  7499. save_LDFLAGS="$LDFLAGS"
  7500. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7501. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7502. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7503. # The linker can only warn and ignore the option if not recognized
  7504. # So say no if there are warnings
  7505. if test -s conftest.err; then
  7506. # Append any errors to the config.log.
  7507. cat conftest.err 1>&5
  7508. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7509. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7510. if diff conftest.exp conftest.er2 >/dev/null; then
  7511. lt_cv_prog_compiler_static_works=yes
  7512. fi
  7513. else
  7514. lt_cv_prog_compiler_static_works=yes
  7515. fi
  7516. fi
  7517. $RM -r conftest*
  7518. LDFLAGS="$save_LDFLAGS"
  7519. fi
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7521. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7522. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7523. :
  7524. else
  7525. lt_prog_compiler_static=
  7526. fi
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7528. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7529. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7530. $as_echo_n "(cached) " >&6
  7531. else
  7532. lt_cv_prog_compiler_c_o=no
  7533. $RM -r conftest 2>/dev/null
  7534. mkdir conftest
  7535. cd conftest
  7536. mkdir out
  7537. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7538. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7539. # Insert the option either (1) after the last *FLAGS variable, or
  7540. # (2) before a word containing "conftest.", or (3) at the end.
  7541. # Note that $ac_compile itself does not contain backslashes and begins
  7542. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7543. lt_compile=`echo "$ac_compile" | $SED \
  7544. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7545. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7546. -e 's:$: $lt_compiler_flag:'`
  7547. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7548. (eval "$lt_compile" 2>out/conftest.err)
  7549. ac_status=$?
  7550. cat out/conftest.err >&5
  7551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7552. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7553. then
  7554. # The compiler can only warn and ignore the option if not recognized
  7555. # So say no if there are warnings
  7556. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7557. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7558. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7559. lt_cv_prog_compiler_c_o=yes
  7560. fi
  7561. fi
  7562. chmod u+w . 2>&5
  7563. $RM conftest*
  7564. # SGI C++ compiler will create directory out/ii_files/ for
  7565. # template instantiation
  7566. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7567. $RM out/* && rmdir out
  7568. cd ..
  7569. $RM -r conftest
  7570. $RM conftest*
  7571. fi
  7572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7573. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7575. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7576. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7577. $as_echo_n "(cached) " >&6
  7578. else
  7579. lt_cv_prog_compiler_c_o=no
  7580. $RM -r conftest 2>/dev/null
  7581. mkdir conftest
  7582. cd conftest
  7583. mkdir out
  7584. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7585. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7586. # Insert the option either (1) after the last *FLAGS variable, or
  7587. # (2) before a word containing "conftest.", or (3) at the end.
  7588. # Note that $ac_compile itself does not contain backslashes and begins
  7589. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7590. lt_compile=`echo "$ac_compile" | $SED \
  7591. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7592. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7593. -e 's:$: $lt_compiler_flag:'`
  7594. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7595. (eval "$lt_compile" 2>out/conftest.err)
  7596. ac_status=$?
  7597. cat out/conftest.err >&5
  7598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7599. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7600. then
  7601. # The compiler can only warn and ignore the option if not recognized
  7602. # So say no if there are warnings
  7603. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7604. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7605. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7606. lt_cv_prog_compiler_c_o=yes
  7607. fi
  7608. fi
  7609. chmod u+w . 2>&5
  7610. $RM conftest*
  7611. # SGI C++ compiler will create directory out/ii_files/ for
  7612. # template instantiation
  7613. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7614. $RM out/* && rmdir out
  7615. cd ..
  7616. $RM -r conftest
  7617. $RM conftest*
  7618. fi
  7619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7620. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7621. hard_links="nottested"
  7622. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7623. # do not overwrite the value of need_locks provided by the user
  7624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7625. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7626. hard_links=yes
  7627. $RM conftest*
  7628. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7629. touch conftest.a
  7630. ln conftest.a conftest.b 2>&5 || hard_links=no
  7631. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7633. $as_echo "$hard_links" >&6; }
  7634. if test "$hard_links" = no; then
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7636. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7637. need_locks=warn
  7638. fi
  7639. else
  7640. need_locks=no
  7641. fi
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7643. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7644. runpath_var=
  7645. allow_undefined_flag=
  7646. always_export_symbols=no
  7647. archive_cmds=
  7648. archive_expsym_cmds=
  7649. compiler_needs_object=no
  7650. enable_shared_with_static_runtimes=no
  7651. export_dynamic_flag_spec=
  7652. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7653. hardcode_automatic=no
  7654. hardcode_direct=no
  7655. hardcode_direct_absolute=no
  7656. hardcode_libdir_flag_spec=
  7657. hardcode_libdir_separator=
  7658. hardcode_minus_L=no
  7659. hardcode_shlibpath_var=unsupported
  7660. inherit_rpath=no
  7661. link_all_deplibs=unknown
  7662. module_cmds=
  7663. module_expsym_cmds=
  7664. old_archive_from_new_cmds=
  7665. old_archive_from_expsyms_cmds=
  7666. thread_safe_flag_spec=
  7667. whole_archive_flag_spec=
  7668. # include_expsyms should be a list of space-separated symbols to be *always*
  7669. # included in the symbol list
  7670. include_expsyms=
  7671. # exclude_expsyms can be an extended regexp of symbols to exclude
  7672. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7673. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7674. # as well as any symbol that contains `d'.
  7675. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7676. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7677. # platforms (ab)use it in PIC code, but their linkers get confused if
  7678. # the symbol is explicitly referenced. Since portable code cannot
  7679. # rely on this symbol name, it's probably fine to never include it in
  7680. # preloaded symbol tables.
  7681. # Exclude shared library initialization/finalization symbols.
  7682. extract_expsyms_cmds=
  7683. case $host_os in
  7684. cygwin* | mingw* | pw32* | cegcc*)
  7685. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7686. # When not using gcc, we currently assume that we are using
  7687. # Microsoft Visual C++.
  7688. if test "$GCC" != yes; then
  7689. with_gnu_ld=no
  7690. fi
  7691. ;;
  7692. interix*)
  7693. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7694. with_gnu_ld=yes
  7695. ;;
  7696. openbsd*)
  7697. with_gnu_ld=no
  7698. ;;
  7699. linux* | k*bsd*-gnu | gnu*)
  7700. link_all_deplibs=no
  7701. ;;
  7702. esac
  7703. ld_shlibs=yes
  7704. # On some targets, GNU ld is compatible enough with the native linker
  7705. # that we're better off using the native interface for both.
  7706. lt_use_gnu_ld_interface=no
  7707. if test "$with_gnu_ld" = yes; then
  7708. case $host_os in
  7709. aix*)
  7710. # The AIX port of GNU ld has always aspired to compatibility
  7711. # with the native linker. However, as the warning in the GNU ld
  7712. # block says, versions before 2.19.5* couldn't really create working
  7713. # shared libraries, regardless of the interface used.
  7714. case `$LD -v 2>&1` in
  7715. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7716. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7717. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7718. *)
  7719. lt_use_gnu_ld_interface=yes
  7720. ;;
  7721. esac
  7722. ;;
  7723. *)
  7724. lt_use_gnu_ld_interface=yes
  7725. ;;
  7726. esac
  7727. fi
  7728. if test "$lt_use_gnu_ld_interface" = yes; then
  7729. # If archive_cmds runs LD, not CC, wlarc should be empty
  7730. wlarc='${wl}'
  7731. # Set some defaults for GNU ld with shared library support. These
  7732. # are reset later if shared libraries are not supported. Putting them
  7733. # here allows them to be overridden if necessary.
  7734. runpath_var=LD_RUN_PATH
  7735. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7736. export_dynamic_flag_spec='${wl}--export-dynamic'
  7737. # ancient GNU ld didn't support --whole-archive et. al.
  7738. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7739. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7740. else
  7741. whole_archive_flag_spec=
  7742. fi
  7743. supports_anon_versioning=no
  7744. case `$LD -v 2>&1` in
  7745. *GNU\ gold*) supports_anon_versioning=yes ;;
  7746. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7747. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7748. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7749. *\ 2.11.*) ;; # other 2.11 versions
  7750. *) supports_anon_versioning=yes ;;
  7751. esac
  7752. # See if GNU ld supports shared libraries.
  7753. case $host_os in
  7754. aix[3-9]*)
  7755. # On AIX/PPC, the GNU linker is very broken
  7756. if test "$host_cpu" != ia64; then
  7757. ld_shlibs=no
  7758. cat <<_LT_EOF 1>&2
  7759. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7760. *** to be unable to reliably create shared libraries on AIX.
  7761. *** Therefore, libtool is disabling shared libraries support. If you
  7762. *** really care for shared libraries, you may want to install binutils
  7763. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7764. *** You will then need to restart the configuration process.
  7765. _LT_EOF
  7766. fi
  7767. ;;
  7768. amigaos*)
  7769. case $host_cpu in
  7770. powerpc)
  7771. # see comment about AmigaOS4 .so support
  7772. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7773. archive_expsym_cmds=''
  7774. ;;
  7775. m68k)
  7776. 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)'
  7777. hardcode_libdir_flag_spec='-L$libdir'
  7778. hardcode_minus_L=yes
  7779. ;;
  7780. esac
  7781. ;;
  7782. beos*)
  7783. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7784. allow_undefined_flag=unsupported
  7785. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7786. # support --undefined. This deserves some investigation. FIXME
  7787. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7788. else
  7789. ld_shlibs=no
  7790. fi
  7791. ;;
  7792. cygwin* | mingw* | pw32* | cegcc*)
  7793. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7794. # as there is no search path for DLLs.
  7795. hardcode_libdir_flag_spec='-L$libdir'
  7796. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7797. allow_undefined_flag=unsupported
  7798. always_export_symbols=no
  7799. enable_shared_with_static_runtimes=yes
  7800. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7801. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7802. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7803. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7804. # If the export-symbols file already is a .def file (1st line
  7805. # is EXPORTS), use it as is; otherwise, prepend...
  7806. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7807. cp $export_symbols $output_objdir/$soname.def;
  7808. else
  7809. echo EXPORTS > $output_objdir/$soname.def;
  7810. cat $export_symbols >> $output_objdir/$soname.def;
  7811. fi~
  7812. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7813. else
  7814. ld_shlibs=no
  7815. fi
  7816. ;;
  7817. haiku*)
  7818. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7819. link_all_deplibs=yes
  7820. ;;
  7821. interix[3-9]*)
  7822. hardcode_direct=no
  7823. hardcode_shlibpath_var=no
  7824. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7825. export_dynamic_flag_spec='${wl}-E'
  7826. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7827. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7828. # default) and relocated if they conflict, which is a slow very memory
  7829. # consuming and fragmenting process. To avoid this, we pick a random,
  7830. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7831. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7832. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7833. 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'
  7834. ;;
  7835. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7836. tmp_diet=no
  7837. if test "$host_os" = linux-dietlibc; then
  7838. case $cc_basename in
  7839. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7840. esac
  7841. fi
  7842. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7843. && test "$tmp_diet" = no
  7844. then
  7845. tmp_addflag=' $pic_flag'
  7846. tmp_sharedflag='-shared'
  7847. case $cc_basename,$host_cpu in
  7848. pgcc*) # Portland Group C compiler
  7849. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7850. tmp_addflag=' $pic_flag'
  7851. ;;
  7852. pgf77* | pgf90* | pgf95* | pgfortran*)
  7853. # Portland Group f77 and f90 compilers
  7854. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7855. tmp_addflag=' $pic_flag -Mnomain' ;;
  7856. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7857. tmp_addflag=' -i_dynamic' ;;
  7858. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7859. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7860. ifc* | ifort*) # Intel Fortran compiler
  7861. tmp_addflag=' -nofor_main' ;;
  7862. lf95*) # Lahey Fortran 8.1
  7863. whole_archive_flag_spec=
  7864. tmp_sharedflag='--shared' ;;
  7865. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7866. tmp_sharedflag='-qmkshrobj'
  7867. tmp_addflag= ;;
  7868. nvcc*) # Cuda Compiler Driver 2.2
  7869. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7870. compiler_needs_object=yes
  7871. ;;
  7872. esac
  7873. case `$CC -V 2>&1 | sed 5q` in
  7874. *Sun\ C*) # Sun C 5.9
  7875. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7876. compiler_needs_object=yes
  7877. tmp_sharedflag='-G' ;;
  7878. *Sun\ F*) # Sun Fortran 8.3
  7879. tmp_sharedflag='-G' ;;
  7880. esac
  7881. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7882. if test "x$supports_anon_versioning" = xyes; then
  7883. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7884. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7885. echo "local: *; };" >> $output_objdir/$libname.ver~
  7886. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7887. fi
  7888. case $cc_basename in
  7889. xlf* | bgf* | bgxlf* | mpixlf*)
  7890. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7891. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7892. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7893. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7894. if test "x$supports_anon_versioning" = xyes; then
  7895. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7896. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7897. echo "local: *; };" >> $output_objdir/$libname.ver~
  7898. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7899. fi
  7900. ;;
  7901. esac
  7902. else
  7903. ld_shlibs=no
  7904. fi
  7905. ;;
  7906. netbsd* | netbsdelf*-gnu)
  7907. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7908. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7909. wlarc=
  7910. else
  7911. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7912. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7913. fi
  7914. ;;
  7915. solaris*)
  7916. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7917. ld_shlibs=no
  7918. cat <<_LT_EOF 1>&2
  7919. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7920. *** create shared libraries on Solaris systems. Therefore, libtool
  7921. *** is disabling shared libraries support. We urge you to upgrade GNU
  7922. *** binutils to release 2.9.1 or newer. Another option is to modify
  7923. *** your PATH or compiler configuration so that the native linker is
  7924. *** used, and then restart.
  7925. _LT_EOF
  7926. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7927. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7928. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7929. else
  7930. ld_shlibs=no
  7931. fi
  7932. ;;
  7933. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7934. case `$LD -v 2>&1` in
  7935. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7936. ld_shlibs=no
  7937. cat <<_LT_EOF 1>&2
  7938. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7939. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7940. *** is disabling shared libraries support. We urge you to upgrade GNU
  7941. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7942. *** your PATH or compiler configuration so that the native linker is
  7943. *** used, and then restart.
  7944. _LT_EOF
  7945. ;;
  7946. *)
  7947. # For security reasons, it is highly recommended that you always
  7948. # use absolute paths for naming shared libraries, and exclude the
  7949. # DT_RUNPATH tag from executables and libraries. But doing so
  7950. # requires that you compile everything twice, which is a pain.
  7951. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7952. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7953. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7954. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7955. else
  7956. ld_shlibs=no
  7957. fi
  7958. ;;
  7959. esac
  7960. ;;
  7961. sunos4*)
  7962. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7963. wlarc=
  7964. hardcode_direct=yes
  7965. hardcode_shlibpath_var=no
  7966. ;;
  7967. *)
  7968. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7969. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7970. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7971. else
  7972. ld_shlibs=no
  7973. fi
  7974. ;;
  7975. esac
  7976. if test "$ld_shlibs" = no; then
  7977. runpath_var=
  7978. hardcode_libdir_flag_spec=
  7979. export_dynamic_flag_spec=
  7980. whole_archive_flag_spec=
  7981. fi
  7982. else
  7983. # PORTME fill in a description of your system's linker (not GNU ld)
  7984. case $host_os in
  7985. aix3*)
  7986. allow_undefined_flag=unsupported
  7987. always_export_symbols=yes
  7988. 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'
  7989. # Note: this linker hardcodes the directories in LIBPATH if there
  7990. # are no directories specified by -L.
  7991. hardcode_minus_L=yes
  7992. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7993. # Neither direct hardcoding nor static linking is supported with a
  7994. # broken collect2.
  7995. hardcode_direct=unsupported
  7996. fi
  7997. ;;
  7998. aix[4-9]*)
  7999. if test "$host_cpu" = ia64; then
  8000. # On IA64, the linker does run time linking by default, so we don't
  8001. # have to do anything special.
  8002. aix_use_runtimelinking=no
  8003. exp_sym_flag='-Bexport'
  8004. no_entry_flag=""
  8005. else
  8006. # If we're using GNU nm, then we don't want the "-C" option.
  8007. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8008. # Also, AIX nm treats weak defined symbols like other global
  8009. # defined symbols, whereas GNU nm marks them as "W".
  8010. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8011. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8012. else
  8013. 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'
  8014. fi
  8015. aix_use_runtimelinking=no
  8016. # Test if we are trying to use run time linking or normal
  8017. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8018. # need to do runtime linking.
  8019. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8020. for ld_flag in $LDFLAGS; do
  8021. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8022. aix_use_runtimelinking=yes
  8023. break
  8024. fi
  8025. done
  8026. ;;
  8027. esac
  8028. exp_sym_flag='-bexport'
  8029. no_entry_flag='-bnoentry'
  8030. fi
  8031. # When large executables or shared objects are built, AIX ld can
  8032. # have problems creating the table of contents. If linking a library
  8033. # or program results in "error TOC overflow" add -mminimal-toc to
  8034. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8035. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8036. archive_cmds=''
  8037. hardcode_direct=yes
  8038. hardcode_direct_absolute=yes
  8039. hardcode_libdir_separator=':'
  8040. link_all_deplibs=yes
  8041. file_list_spec='${wl}-f,'
  8042. if test "$GCC" = yes; then
  8043. case $host_os in aix4.[012]|aix4.[012].*)
  8044. # We only want to do this on AIX 4.2 and lower, the check
  8045. # below for broken collect2 doesn't work under 4.3+
  8046. collect2name=`${CC} -print-prog-name=collect2`
  8047. if test -f "$collect2name" &&
  8048. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8049. then
  8050. # We have reworked collect2
  8051. :
  8052. else
  8053. # We have old collect2
  8054. hardcode_direct=unsupported
  8055. # It fails to find uninstalled libraries when the uninstalled
  8056. # path is not listed in the libpath. Setting hardcode_minus_L
  8057. # to unsupported forces relinking
  8058. hardcode_minus_L=yes
  8059. hardcode_libdir_flag_spec='-L$libdir'
  8060. hardcode_libdir_separator=
  8061. fi
  8062. ;;
  8063. esac
  8064. shared_flag='-shared'
  8065. if test "$aix_use_runtimelinking" = yes; then
  8066. shared_flag="$shared_flag "'${wl}-G'
  8067. fi
  8068. link_all_deplibs=no
  8069. else
  8070. # not using gcc
  8071. if test "$host_cpu" = ia64; then
  8072. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8073. # chokes on -Wl,-G. The following line is correct:
  8074. shared_flag='-G'
  8075. else
  8076. if test "$aix_use_runtimelinking" = yes; then
  8077. shared_flag='${wl}-G'
  8078. else
  8079. shared_flag='${wl}-bM:SRE'
  8080. fi
  8081. fi
  8082. fi
  8083. export_dynamic_flag_spec='${wl}-bexpall'
  8084. # It seems that -bexpall does not export symbols beginning with
  8085. # underscore (_), so it is better to generate a list of symbols to export.
  8086. always_export_symbols=yes
  8087. if test "$aix_use_runtimelinking" = yes; then
  8088. # Warning - without using the other runtime loading flags (-brtl),
  8089. # -berok will link without error, but may produce a broken library.
  8090. allow_undefined_flag='-berok'
  8091. # Determine the default libpath from the value encoded in an
  8092. # empty executable.
  8093. if test "${lt_cv_aix_libpath+set}" = set; then
  8094. aix_libpath=$lt_cv_aix_libpath
  8095. else
  8096. if ${lt_cv_aix_libpath_+:} false; then :
  8097. $as_echo_n "(cached) " >&6
  8098. else
  8099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8100. /* end confdefs.h. */
  8101. int
  8102. main ()
  8103. {
  8104. ;
  8105. return 0;
  8106. }
  8107. _ACEOF
  8108. if ac_fn_c_try_link "$LINENO"; then :
  8109. lt_aix_libpath_sed='
  8110. /Import File Strings/,/^$/ {
  8111. /^0/ {
  8112. s/^0 *\([^ ]*\) *$/\1/
  8113. p
  8114. }
  8115. }'
  8116. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8117. # Check for a 64-bit object if we didn't find anything.
  8118. if test -z "$lt_cv_aix_libpath_"; then
  8119. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8120. fi
  8121. fi
  8122. rm -f core conftest.err conftest.$ac_objext \
  8123. conftest$ac_exeext conftest.$ac_ext
  8124. if test -z "$lt_cv_aix_libpath_"; then
  8125. lt_cv_aix_libpath_="/usr/lib:/lib"
  8126. fi
  8127. fi
  8128. aix_libpath=$lt_cv_aix_libpath_
  8129. fi
  8130. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8131. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8132. else
  8133. if test "$host_cpu" = ia64; then
  8134. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8135. allow_undefined_flag="-z nodefs"
  8136. 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"
  8137. else
  8138. # Determine the default libpath from the value encoded in an
  8139. # empty executable.
  8140. if test "${lt_cv_aix_libpath+set}" = set; then
  8141. aix_libpath=$lt_cv_aix_libpath
  8142. else
  8143. if ${lt_cv_aix_libpath_+:} false; then :
  8144. $as_echo_n "(cached) " >&6
  8145. else
  8146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8147. /* end confdefs.h. */
  8148. int
  8149. main ()
  8150. {
  8151. ;
  8152. return 0;
  8153. }
  8154. _ACEOF
  8155. if ac_fn_c_try_link "$LINENO"; then :
  8156. lt_aix_libpath_sed='
  8157. /Import File Strings/,/^$/ {
  8158. /^0/ {
  8159. s/^0 *\([^ ]*\) *$/\1/
  8160. p
  8161. }
  8162. }'
  8163. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8164. # Check for a 64-bit object if we didn't find anything.
  8165. if test -z "$lt_cv_aix_libpath_"; then
  8166. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8167. fi
  8168. fi
  8169. rm -f core conftest.err conftest.$ac_objext \
  8170. conftest$ac_exeext conftest.$ac_ext
  8171. if test -z "$lt_cv_aix_libpath_"; then
  8172. lt_cv_aix_libpath_="/usr/lib:/lib"
  8173. fi
  8174. fi
  8175. aix_libpath=$lt_cv_aix_libpath_
  8176. fi
  8177. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8178. # Warning - without using the other run time loading flags,
  8179. # -berok will link without error, but may produce a broken library.
  8180. no_undefined_flag=' ${wl}-bernotok'
  8181. allow_undefined_flag=' ${wl}-berok'
  8182. if test "$with_gnu_ld" = yes; then
  8183. # We only use this code for GNU lds that support --whole-archive.
  8184. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8185. else
  8186. # Exported symbols can be pulled into shared objects from archives
  8187. whole_archive_flag_spec='$convenience'
  8188. fi
  8189. archive_cmds_need_lc=yes
  8190. # This is similar to how AIX traditionally builds its shared libraries.
  8191. 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'
  8192. fi
  8193. fi
  8194. ;;
  8195. amigaos*)
  8196. case $host_cpu in
  8197. powerpc)
  8198. # see comment about AmigaOS4 .so support
  8199. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8200. archive_expsym_cmds=''
  8201. ;;
  8202. m68k)
  8203. 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)'
  8204. hardcode_libdir_flag_spec='-L$libdir'
  8205. hardcode_minus_L=yes
  8206. ;;
  8207. esac
  8208. ;;
  8209. bsdi[45]*)
  8210. export_dynamic_flag_spec=-rdynamic
  8211. ;;
  8212. cygwin* | mingw* | pw32* | cegcc*)
  8213. # When not using gcc, we currently assume that we are using
  8214. # Microsoft Visual C++.
  8215. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8216. # no search path for DLLs.
  8217. case $cc_basename in
  8218. cl*)
  8219. # Native MSVC
  8220. hardcode_libdir_flag_spec=' '
  8221. allow_undefined_flag=unsupported
  8222. always_export_symbols=yes
  8223. file_list_spec='@'
  8224. # Tell ltmain to make .lib files, not .a files.
  8225. libext=lib
  8226. # Tell ltmain to make .dll files, not .so files.
  8227. shrext_cmds=".dll"
  8228. # FIXME: Setting linknames here is a bad hack.
  8229. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8230. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8231. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8232. else
  8233. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8234. fi~
  8235. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8236. linknames='
  8237. # The linker will not automatically build a static lib if we build a DLL.
  8238. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8239. enable_shared_with_static_runtimes=yes
  8240. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8241. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8242. # Don't use ranlib
  8243. old_postinstall_cmds='chmod 644 $oldlib'
  8244. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8245. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8246. case $lt_outputfile in
  8247. *.exe|*.EXE) ;;
  8248. *)
  8249. lt_outputfile="$lt_outputfile.exe"
  8250. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8251. ;;
  8252. esac~
  8253. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8254. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8255. $RM "$lt_outputfile.manifest";
  8256. fi'
  8257. ;;
  8258. *)
  8259. # Assume MSVC wrapper
  8260. hardcode_libdir_flag_spec=' '
  8261. allow_undefined_flag=unsupported
  8262. # Tell ltmain to make .lib files, not .a files.
  8263. libext=lib
  8264. # Tell ltmain to make .dll files, not .so files.
  8265. shrext_cmds=".dll"
  8266. # FIXME: Setting linknames here is a bad hack.
  8267. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8268. # The linker will automatically build a .lib file if we build a DLL.
  8269. old_archive_from_new_cmds='true'
  8270. # FIXME: Should let the user specify the lib program.
  8271. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8272. enable_shared_with_static_runtimes=yes
  8273. ;;
  8274. esac
  8275. ;;
  8276. darwin* | rhapsody*)
  8277. archive_cmds_need_lc=no
  8278. hardcode_direct=no
  8279. hardcode_automatic=yes
  8280. hardcode_shlibpath_var=unsupported
  8281. if test "$lt_cv_ld_force_load" = "yes"; then
  8282. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8283. else
  8284. whole_archive_flag_spec=''
  8285. fi
  8286. link_all_deplibs=yes
  8287. allow_undefined_flag="$_lt_dar_allow_undefined"
  8288. case $cc_basename in
  8289. ifort*) _lt_dar_can_shared=yes ;;
  8290. *) _lt_dar_can_shared=$GCC ;;
  8291. esac
  8292. if test "$_lt_dar_can_shared" = "yes"; then
  8293. output_verbose_link_cmd=func_echo_all
  8294. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8295. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8296. 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}"
  8297. 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}"
  8298. else
  8299. ld_shlibs=no
  8300. fi
  8301. ;;
  8302. dgux*)
  8303. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8304. hardcode_libdir_flag_spec='-L$libdir'
  8305. hardcode_shlibpath_var=no
  8306. ;;
  8307. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8308. # support. Future versions do this automatically, but an explicit c++rt0.o
  8309. # does not break anything, and helps significantly (at the cost of a little
  8310. # extra space).
  8311. freebsd2.2*)
  8312. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8313. hardcode_libdir_flag_spec='-R$libdir'
  8314. hardcode_direct=yes
  8315. hardcode_shlibpath_var=no
  8316. ;;
  8317. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8318. freebsd2.*)
  8319. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8320. hardcode_direct=yes
  8321. hardcode_minus_L=yes
  8322. hardcode_shlibpath_var=no
  8323. ;;
  8324. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8325. freebsd* | dragonfly*)
  8326. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8327. hardcode_libdir_flag_spec='-R$libdir'
  8328. hardcode_direct=yes
  8329. hardcode_shlibpath_var=no
  8330. ;;
  8331. hpux9*)
  8332. if test "$GCC" = yes; then
  8333. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8334. else
  8335. 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'
  8336. fi
  8337. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8338. hardcode_libdir_separator=:
  8339. hardcode_direct=yes
  8340. # hardcode_minus_L: Not really in the search PATH,
  8341. # but as the default location of the library.
  8342. hardcode_minus_L=yes
  8343. export_dynamic_flag_spec='${wl}-E'
  8344. ;;
  8345. hpux10*)
  8346. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8347. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8348. else
  8349. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8350. fi
  8351. if test "$with_gnu_ld" = no; then
  8352. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8353. hardcode_libdir_separator=:
  8354. hardcode_direct=yes
  8355. hardcode_direct_absolute=yes
  8356. export_dynamic_flag_spec='${wl}-E'
  8357. # hardcode_minus_L: Not really in the search PATH,
  8358. # but as the default location of the library.
  8359. hardcode_minus_L=yes
  8360. fi
  8361. ;;
  8362. hpux11*)
  8363. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8364. case $host_cpu in
  8365. hppa*64*)
  8366. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8367. ;;
  8368. ia64*)
  8369. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8370. ;;
  8371. *)
  8372. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8373. ;;
  8374. esac
  8375. else
  8376. case $host_cpu in
  8377. hppa*64*)
  8378. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8379. ;;
  8380. ia64*)
  8381. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8382. ;;
  8383. *)
  8384. # Older versions of the 11.00 compiler do not understand -b yet
  8385. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8387. $as_echo_n "checking if $CC understands -b... " >&6; }
  8388. if ${lt_cv_prog_compiler__b+:} false; then :
  8389. $as_echo_n "(cached) " >&6
  8390. else
  8391. lt_cv_prog_compiler__b=no
  8392. save_LDFLAGS="$LDFLAGS"
  8393. LDFLAGS="$LDFLAGS -b"
  8394. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8395. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8396. # The linker can only warn and ignore the option if not recognized
  8397. # So say no if there are warnings
  8398. if test -s conftest.err; then
  8399. # Append any errors to the config.log.
  8400. cat conftest.err 1>&5
  8401. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8402. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8403. if diff conftest.exp conftest.er2 >/dev/null; then
  8404. lt_cv_prog_compiler__b=yes
  8405. fi
  8406. else
  8407. lt_cv_prog_compiler__b=yes
  8408. fi
  8409. fi
  8410. $RM -r conftest*
  8411. LDFLAGS="$save_LDFLAGS"
  8412. fi
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8414. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8415. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8416. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8417. else
  8418. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8419. fi
  8420. ;;
  8421. esac
  8422. fi
  8423. if test "$with_gnu_ld" = no; then
  8424. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8425. hardcode_libdir_separator=:
  8426. case $host_cpu in
  8427. hppa*64*|ia64*)
  8428. hardcode_direct=no
  8429. hardcode_shlibpath_var=no
  8430. ;;
  8431. *)
  8432. hardcode_direct=yes
  8433. hardcode_direct_absolute=yes
  8434. export_dynamic_flag_spec='${wl}-E'
  8435. # hardcode_minus_L: Not really in the search PATH,
  8436. # but as the default location of the library.
  8437. hardcode_minus_L=yes
  8438. ;;
  8439. esac
  8440. fi
  8441. ;;
  8442. irix5* | irix6* | nonstopux*)
  8443. if test "$GCC" = yes; then
  8444. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8445. # Try to use the -exported_symbol ld option, if it does not
  8446. # work, assume that -exports_file does not work either and
  8447. # implicitly export all symbols.
  8448. # This should be the same for all languages, so no per-tag cache variable.
  8449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8450. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8451. if ${lt_cv_irix_exported_symbol+:} false; then :
  8452. $as_echo_n "(cached) " >&6
  8453. else
  8454. save_LDFLAGS="$LDFLAGS"
  8455. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8457. /* end confdefs.h. */
  8458. int foo (void) { return 0; }
  8459. _ACEOF
  8460. if ac_fn_c_try_link "$LINENO"; then :
  8461. lt_cv_irix_exported_symbol=yes
  8462. else
  8463. lt_cv_irix_exported_symbol=no
  8464. fi
  8465. rm -f core conftest.err conftest.$ac_objext \
  8466. conftest$ac_exeext conftest.$ac_ext
  8467. LDFLAGS="$save_LDFLAGS"
  8468. fi
  8469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8470. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8471. if test "$lt_cv_irix_exported_symbol" = yes; then
  8472. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8473. fi
  8474. else
  8475. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8476. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8477. fi
  8478. archive_cmds_need_lc='no'
  8479. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8480. hardcode_libdir_separator=:
  8481. inherit_rpath=yes
  8482. link_all_deplibs=yes
  8483. ;;
  8484. netbsd* | netbsdelf*-gnu)
  8485. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8486. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8487. else
  8488. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8489. fi
  8490. hardcode_libdir_flag_spec='-R$libdir'
  8491. hardcode_direct=yes
  8492. hardcode_shlibpath_var=no
  8493. ;;
  8494. newsos6)
  8495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8496. hardcode_direct=yes
  8497. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8498. hardcode_libdir_separator=:
  8499. hardcode_shlibpath_var=no
  8500. ;;
  8501. *nto* | *qnx*)
  8502. ;;
  8503. openbsd*)
  8504. if test -f /usr/libexec/ld.so; then
  8505. hardcode_direct=yes
  8506. hardcode_shlibpath_var=no
  8507. hardcode_direct_absolute=yes
  8508. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8509. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8510. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8511. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8512. export_dynamic_flag_spec='${wl}-E'
  8513. else
  8514. case $host_os in
  8515. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8516. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8517. hardcode_libdir_flag_spec='-R$libdir'
  8518. ;;
  8519. *)
  8520. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8521. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8522. ;;
  8523. esac
  8524. fi
  8525. else
  8526. ld_shlibs=no
  8527. fi
  8528. ;;
  8529. os2*)
  8530. hardcode_libdir_flag_spec='-L$libdir'
  8531. hardcode_minus_L=yes
  8532. allow_undefined_flag=unsupported
  8533. 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'
  8534. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8535. ;;
  8536. osf3*)
  8537. if test "$GCC" = yes; then
  8538. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8539. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8540. else
  8541. allow_undefined_flag=' -expect_unresolved \*'
  8542. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8543. fi
  8544. archive_cmds_need_lc='no'
  8545. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8546. hardcode_libdir_separator=:
  8547. ;;
  8548. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8549. if test "$GCC" = yes; then
  8550. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8551. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8552. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8553. else
  8554. allow_undefined_flag=' -expect_unresolved \*'
  8555. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8556. 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~
  8557. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8558. # Both c and cxx compiler support -rpath directly
  8559. hardcode_libdir_flag_spec='-rpath $libdir'
  8560. fi
  8561. archive_cmds_need_lc='no'
  8562. hardcode_libdir_separator=:
  8563. ;;
  8564. solaris*)
  8565. no_undefined_flag=' -z defs'
  8566. if test "$GCC" = yes; then
  8567. wlarc='${wl}'
  8568. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8569. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8570. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8571. else
  8572. case `$CC -V 2>&1` in
  8573. *"Compilers 5.0"*)
  8574. wlarc=''
  8575. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8576. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8577. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8578. ;;
  8579. *)
  8580. wlarc='${wl}'
  8581. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8582. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8583. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8584. ;;
  8585. esac
  8586. fi
  8587. hardcode_libdir_flag_spec='-R$libdir'
  8588. hardcode_shlibpath_var=no
  8589. case $host_os in
  8590. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8591. *)
  8592. # The compiler driver will combine and reorder linker options,
  8593. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8594. # but is careful enough not to reorder.
  8595. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8596. if test "$GCC" = yes; then
  8597. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8598. else
  8599. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8600. fi
  8601. ;;
  8602. esac
  8603. link_all_deplibs=yes
  8604. ;;
  8605. sunos4*)
  8606. if test "x$host_vendor" = xsequent; then
  8607. # Use $CC to link under sequent, because it throws in some extra .o
  8608. # files that make .init and .fini sections work.
  8609. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8610. else
  8611. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8612. fi
  8613. hardcode_libdir_flag_spec='-L$libdir'
  8614. hardcode_direct=yes
  8615. hardcode_minus_L=yes
  8616. hardcode_shlibpath_var=no
  8617. ;;
  8618. sysv4)
  8619. case $host_vendor in
  8620. sni)
  8621. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8622. hardcode_direct=yes # is this really true???
  8623. ;;
  8624. siemens)
  8625. ## LD is ld it makes a PLAMLIB
  8626. ## CC just makes a GrossModule.
  8627. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8628. reload_cmds='$CC -r -o $output$reload_objs'
  8629. hardcode_direct=no
  8630. ;;
  8631. motorola)
  8632. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8633. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8634. ;;
  8635. esac
  8636. runpath_var='LD_RUN_PATH'
  8637. hardcode_shlibpath_var=no
  8638. ;;
  8639. sysv4.3*)
  8640. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8641. hardcode_shlibpath_var=no
  8642. export_dynamic_flag_spec='-Bexport'
  8643. ;;
  8644. sysv4*MP*)
  8645. if test -d /usr/nec; then
  8646. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8647. hardcode_shlibpath_var=no
  8648. runpath_var=LD_RUN_PATH
  8649. hardcode_runpath_var=yes
  8650. ld_shlibs=yes
  8651. fi
  8652. ;;
  8653. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8654. no_undefined_flag='${wl}-z,text'
  8655. archive_cmds_need_lc=no
  8656. hardcode_shlibpath_var=no
  8657. runpath_var='LD_RUN_PATH'
  8658. if test "$GCC" = yes; then
  8659. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8660. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8661. else
  8662. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8663. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8664. fi
  8665. ;;
  8666. sysv5* | sco3.2v5* | sco5v6*)
  8667. # Note: We can NOT use -z defs as we might desire, because we do not
  8668. # link with -lc, and that would cause any symbols used from libc to
  8669. # always be unresolved, which means just about no library would
  8670. # ever link correctly. If we're not using GNU ld we use -z text
  8671. # though, which does catch some bad symbols but isn't as heavy-handed
  8672. # as -z defs.
  8673. no_undefined_flag='${wl}-z,text'
  8674. allow_undefined_flag='${wl}-z,nodefs'
  8675. archive_cmds_need_lc=no
  8676. hardcode_shlibpath_var=no
  8677. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8678. hardcode_libdir_separator=':'
  8679. link_all_deplibs=yes
  8680. export_dynamic_flag_spec='${wl}-Bexport'
  8681. runpath_var='LD_RUN_PATH'
  8682. if test "$GCC" = yes; then
  8683. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8684. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8685. else
  8686. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8687. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8688. fi
  8689. ;;
  8690. uts4*)
  8691. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8692. hardcode_libdir_flag_spec='-L$libdir'
  8693. hardcode_shlibpath_var=no
  8694. ;;
  8695. *)
  8696. ld_shlibs=no
  8697. ;;
  8698. esac
  8699. if test x$host_vendor = xsni; then
  8700. case $host in
  8701. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8702. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8703. ;;
  8704. esac
  8705. fi
  8706. fi
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8708. $as_echo "$ld_shlibs" >&6; }
  8709. test "$ld_shlibs" = no && can_build_shared=no
  8710. with_gnu_ld=$with_gnu_ld
  8711. #
  8712. # Do we need to explicitly link libc?
  8713. #
  8714. case "x$archive_cmds_need_lc" in
  8715. x|xyes)
  8716. # Assume -lc should be added
  8717. archive_cmds_need_lc=yes
  8718. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8719. case $archive_cmds in
  8720. *'~'*)
  8721. # FIXME: we may have to deal with multi-command sequences.
  8722. ;;
  8723. '$CC '*)
  8724. # Test whether the compiler implicitly links with -lc since on some
  8725. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8726. # to ld, don't add -lc before -lgcc.
  8727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8728. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8729. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8730. $as_echo_n "(cached) " >&6
  8731. else
  8732. $RM conftest*
  8733. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8734. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8735. (eval $ac_compile) 2>&5
  8736. ac_status=$?
  8737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8738. test $ac_status = 0; } 2>conftest.err; then
  8739. soname=conftest
  8740. lib=conftest
  8741. libobjs=conftest.$ac_objext
  8742. deplibs=
  8743. wl=$lt_prog_compiler_wl
  8744. pic_flag=$lt_prog_compiler_pic
  8745. compiler_flags=-v
  8746. linker_flags=-v
  8747. verstring=
  8748. output_objdir=.
  8749. libname=conftest
  8750. lt_save_allow_undefined_flag=$allow_undefined_flag
  8751. allow_undefined_flag=
  8752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8753. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8754. ac_status=$?
  8755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8756. test $ac_status = 0; }
  8757. then
  8758. lt_cv_archive_cmds_need_lc=no
  8759. else
  8760. lt_cv_archive_cmds_need_lc=yes
  8761. fi
  8762. allow_undefined_flag=$lt_save_allow_undefined_flag
  8763. else
  8764. cat conftest.err 1>&5
  8765. fi
  8766. $RM conftest*
  8767. fi
  8768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8769. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8770. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8771. ;;
  8772. esac
  8773. fi
  8774. ;;
  8775. esac
  8776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8777. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8778. if test "$GCC" = yes; then
  8779. case $host_os in
  8780. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8781. *) lt_awk_arg="/^libraries:/" ;;
  8782. esac
  8783. case $host_os in
  8784. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8785. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8786. esac
  8787. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8788. case $lt_search_path_spec in
  8789. *\;*)
  8790. # if the path contains ";" then we assume it to be the separator
  8791. # otherwise default to the standard path separator (i.e. ":") - it is
  8792. # assumed that no part of a normal pathname contains ";" but that should
  8793. # okay in the real world where ";" in dirpaths is itself problematic.
  8794. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8795. ;;
  8796. *)
  8797. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8798. ;;
  8799. esac
  8800. # Ok, now we have the path, separated by spaces, we can step through it
  8801. # and add multilib dir if necessary.
  8802. lt_tmp_lt_search_path_spec=
  8803. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8804. for lt_sys_path in $lt_search_path_spec; do
  8805. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8806. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8807. else
  8808. test -d "$lt_sys_path" && \
  8809. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8810. fi
  8811. done
  8812. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8813. BEGIN {RS=" "; FS="/|\n";} {
  8814. lt_foo="";
  8815. lt_count=0;
  8816. for (lt_i = NF; lt_i > 0; lt_i--) {
  8817. if ($lt_i != "" && $lt_i != ".") {
  8818. if ($lt_i == "..") {
  8819. lt_count++;
  8820. } else {
  8821. if (lt_count == 0) {
  8822. lt_foo="/" $lt_i lt_foo;
  8823. } else {
  8824. lt_count--;
  8825. }
  8826. }
  8827. }
  8828. }
  8829. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8830. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8831. }'`
  8832. # AWK program above erroneously prepends '/' to C:/dos/paths
  8833. # for these hosts.
  8834. case $host_os in
  8835. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8836. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8837. esac
  8838. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8839. else
  8840. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8841. fi
  8842. library_names_spec=
  8843. libname_spec='lib$name'
  8844. soname_spec=
  8845. shrext_cmds=".so"
  8846. postinstall_cmds=
  8847. postuninstall_cmds=
  8848. finish_cmds=
  8849. finish_eval=
  8850. shlibpath_var=
  8851. shlibpath_overrides_runpath=unknown
  8852. version_type=none
  8853. dynamic_linker="$host_os ld.so"
  8854. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8855. need_lib_prefix=unknown
  8856. hardcode_into_libs=no
  8857. # when you set need_version to no, make sure it does not cause -set_version
  8858. # flags to be left without arguments
  8859. need_version=unknown
  8860. case $host_os in
  8861. aix3*)
  8862. version_type=linux # correct to gnu/linux during the next big refactor
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8864. shlibpath_var=LIBPATH
  8865. # AIX 3 has no versioning support, so we append a major version to the name.
  8866. soname_spec='${libname}${release}${shared_ext}$major'
  8867. ;;
  8868. aix[4-9]*)
  8869. version_type=linux # correct to gnu/linux during the next big refactor
  8870. need_lib_prefix=no
  8871. need_version=no
  8872. hardcode_into_libs=yes
  8873. if test "$host_cpu" = ia64; then
  8874. # AIX 5 supports IA64
  8875. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8876. shlibpath_var=LD_LIBRARY_PATH
  8877. else
  8878. # With GCC up to 2.95.x, collect2 would create an import file
  8879. # for dependence libraries. The import file would start with
  8880. # the line `#! .'. This would cause the generated library to
  8881. # depend on `.', always an invalid library. This was fixed in
  8882. # development snapshots of GCC prior to 3.0.
  8883. case $host_os in
  8884. aix4 | aix4.[01] | aix4.[01].*)
  8885. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8886. echo ' yes '
  8887. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8888. :
  8889. else
  8890. can_build_shared=no
  8891. fi
  8892. ;;
  8893. esac
  8894. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8895. # soname into executable. Probably we can add versioning support to
  8896. # collect2, so additional links can be useful in future.
  8897. if test "$aix_use_runtimelinking" = yes; then
  8898. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8899. # instead of lib<name>.a to let people know that these are not
  8900. # typical AIX shared libraries.
  8901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8902. else
  8903. # We preserve .a as extension for shared libraries through AIX4.2
  8904. # and later when we are not doing run time linking.
  8905. library_names_spec='${libname}${release}.a $libname.a'
  8906. soname_spec='${libname}${release}${shared_ext}$major'
  8907. fi
  8908. shlibpath_var=LIBPATH
  8909. fi
  8910. ;;
  8911. amigaos*)
  8912. case $host_cpu in
  8913. powerpc)
  8914. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8915. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8917. ;;
  8918. m68k)
  8919. library_names_spec='$libname.ixlibrary $libname.a'
  8920. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8921. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  8922. ;;
  8923. esac
  8924. ;;
  8925. beos*)
  8926. library_names_spec='${libname}${shared_ext}'
  8927. dynamic_linker="$host_os ld.so"
  8928. shlibpath_var=LIBRARY_PATH
  8929. ;;
  8930. bsdi[45]*)
  8931. version_type=linux # correct to gnu/linux during the next big refactor
  8932. need_version=no
  8933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8934. soname_spec='${libname}${release}${shared_ext}$major'
  8935. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8936. shlibpath_var=LD_LIBRARY_PATH
  8937. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8938. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8939. # the default ld.so.conf also contains /usr/contrib/lib and
  8940. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8941. # libtool to hard-code these into programs
  8942. ;;
  8943. cygwin* | mingw* | pw32* | cegcc*)
  8944. version_type=windows
  8945. shrext_cmds=".dll"
  8946. need_version=no
  8947. need_lib_prefix=no
  8948. case $GCC,$cc_basename in
  8949. yes,*)
  8950. # gcc
  8951. library_names_spec='$libname.dll.a'
  8952. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8953. postinstall_cmds='base_file=`basename \${file}`~
  8954. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8955. dldir=$destdir/`dirname \$dlpath`~
  8956. test -d \$dldir || mkdir -p \$dldir~
  8957. $install_prog $dir/$dlname \$dldir/$dlname~
  8958. chmod a+x \$dldir/$dlname~
  8959. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8960. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8961. fi'
  8962. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8963. dlpath=$dir/\$dldll~
  8964. $RM \$dlpath'
  8965. shlibpath_overrides_runpath=yes
  8966. case $host_os in
  8967. cygwin*)
  8968. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8969. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8970. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8971. ;;
  8972. mingw* | cegcc*)
  8973. # MinGW DLLs use traditional 'lib' prefix
  8974. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8975. ;;
  8976. pw32*)
  8977. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8978. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8979. ;;
  8980. esac
  8981. dynamic_linker='Win32 ld.exe'
  8982. ;;
  8983. *,cl*)
  8984. # Native MSVC
  8985. libname_spec='$name'
  8986. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8987. library_names_spec='${libname}.dll.lib'
  8988. case $build_os in
  8989. mingw*)
  8990. sys_lib_search_path_spec=
  8991. lt_save_ifs=$IFS
  8992. IFS=';'
  8993. for lt_path in $LIB
  8994. do
  8995. IFS=$lt_save_ifs
  8996. # Let DOS variable expansion print the short 8.3 style file name.
  8997. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8998. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8999. done
  9000. IFS=$lt_save_ifs
  9001. # Convert to MSYS style.
  9002. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9003. ;;
  9004. cygwin*)
  9005. # Convert to unix form, then to dos form, then back to unix form
  9006. # but this time dos style (no spaces!) so that the unix form looks
  9007. # like /cygdrive/c/PROGRA~1:/cygdr...
  9008. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9009. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9010. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9011. ;;
  9012. *)
  9013. sys_lib_search_path_spec="$LIB"
  9014. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9015. # It is most probably a Windows format PATH.
  9016. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9017. else
  9018. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9019. fi
  9020. # FIXME: find the short name or the path components, as spaces are
  9021. # common. (e.g. "Program Files" -> "PROGRA~1")
  9022. ;;
  9023. esac
  9024. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9025. postinstall_cmds='base_file=`basename \${file}`~
  9026. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9027. dldir=$destdir/`dirname \$dlpath`~
  9028. test -d \$dldir || mkdir -p \$dldir~
  9029. $install_prog $dir/$dlname \$dldir/$dlname'
  9030. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9031. dlpath=$dir/\$dldll~
  9032. $RM \$dlpath'
  9033. shlibpath_overrides_runpath=yes
  9034. dynamic_linker='Win32 link.exe'
  9035. ;;
  9036. *)
  9037. # Assume MSVC wrapper
  9038. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9039. dynamic_linker='Win32 ld.exe'
  9040. ;;
  9041. esac
  9042. # FIXME: first we should search . and the directory the executable is in
  9043. shlibpath_var=PATH
  9044. ;;
  9045. darwin* | rhapsody*)
  9046. dynamic_linker="$host_os dyld"
  9047. version_type=darwin
  9048. need_lib_prefix=no
  9049. need_version=no
  9050. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9051. soname_spec='${libname}${release}${major}$shared_ext'
  9052. shlibpath_overrides_runpath=yes
  9053. shlibpath_var=DYLD_LIBRARY_PATH
  9054. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9055. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9056. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9057. ;;
  9058. dgux*)
  9059. version_type=linux # correct to gnu/linux during the next big refactor
  9060. need_lib_prefix=no
  9061. need_version=no
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. shlibpath_var=LD_LIBRARY_PATH
  9065. ;;
  9066. freebsd* | dragonfly*)
  9067. # DragonFly does not have aout. When/if they implement a new
  9068. # versioning mechanism, adjust this.
  9069. if test -x /usr/bin/objformat; then
  9070. objformat=`/usr/bin/objformat`
  9071. else
  9072. case $host_os in
  9073. freebsd[23].*) objformat=aout ;;
  9074. *) objformat=elf ;;
  9075. esac
  9076. fi
  9077. version_type=freebsd-$objformat
  9078. case $version_type in
  9079. freebsd-elf*)
  9080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9081. need_version=no
  9082. need_lib_prefix=no
  9083. ;;
  9084. freebsd-*)
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9086. need_version=yes
  9087. ;;
  9088. esac
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. case $host_os in
  9091. freebsd2.*)
  9092. shlibpath_overrides_runpath=yes
  9093. ;;
  9094. freebsd3.[01]* | freebsdelf3.[01]*)
  9095. shlibpath_overrides_runpath=yes
  9096. hardcode_into_libs=yes
  9097. ;;
  9098. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9099. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9100. shlibpath_overrides_runpath=no
  9101. hardcode_into_libs=yes
  9102. ;;
  9103. *) # from 4.6 on, and DragonFly
  9104. shlibpath_overrides_runpath=yes
  9105. hardcode_into_libs=yes
  9106. ;;
  9107. esac
  9108. ;;
  9109. gnu*)
  9110. version_type=linux # correct to gnu/linux during the next big refactor
  9111. need_lib_prefix=no
  9112. need_version=no
  9113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9114. soname_spec='${libname}${release}${shared_ext}$major'
  9115. shlibpath_var=LD_LIBRARY_PATH
  9116. shlibpath_overrides_runpath=no
  9117. hardcode_into_libs=yes
  9118. ;;
  9119. haiku*)
  9120. version_type=linux # correct to gnu/linux during the next big refactor
  9121. need_lib_prefix=no
  9122. need_version=no
  9123. dynamic_linker="$host_os runtime_loader"
  9124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9125. soname_spec='${libname}${release}${shared_ext}$major'
  9126. shlibpath_var=LIBRARY_PATH
  9127. shlibpath_overrides_runpath=yes
  9128. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9129. hardcode_into_libs=yes
  9130. ;;
  9131. hpux9* | hpux10* | hpux11*)
  9132. # Give a soname corresponding to the major version so that dld.sl refuses to
  9133. # link against other versions.
  9134. version_type=sunos
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. case $host_cpu in
  9138. ia64*)
  9139. shrext_cmds='.so'
  9140. hardcode_into_libs=yes
  9141. dynamic_linker="$host_os dld.so"
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9145. soname_spec='${libname}${release}${shared_ext}$major'
  9146. if test "X$HPUX_IA64_MODE" = X32; then
  9147. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9148. else
  9149. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9150. fi
  9151. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9152. ;;
  9153. hppa*64*)
  9154. shrext_cmds='.sl'
  9155. hardcode_into_libs=yes
  9156. dynamic_linker="$host_os dld.sl"
  9157. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9158. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9160. soname_spec='${libname}${release}${shared_ext}$major'
  9161. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9162. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9163. ;;
  9164. *)
  9165. shrext_cmds='.sl'
  9166. dynamic_linker="$host_os dld.sl"
  9167. shlibpath_var=SHLIB_PATH
  9168. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9170. soname_spec='${libname}${release}${shared_ext}$major'
  9171. ;;
  9172. esac
  9173. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9174. postinstall_cmds='chmod 555 $lib'
  9175. # or fails outright, so override atomically:
  9176. install_override_mode=555
  9177. ;;
  9178. interix[3-9]*)
  9179. version_type=linux # correct to gnu/linux during the next big refactor
  9180. need_lib_prefix=no
  9181. need_version=no
  9182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9183. soname_spec='${libname}${release}${shared_ext}$major'
  9184. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9185. shlibpath_var=LD_LIBRARY_PATH
  9186. shlibpath_overrides_runpath=no
  9187. hardcode_into_libs=yes
  9188. ;;
  9189. irix5* | irix6* | nonstopux*)
  9190. case $host_os in
  9191. nonstopux*) version_type=nonstopux ;;
  9192. *)
  9193. if test "$lt_cv_prog_gnu_ld" = yes; then
  9194. version_type=linux # correct to gnu/linux during the next big refactor
  9195. else
  9196. version_type=irix
  9197. fi ;;
  9198. esac
  9199. need_lib_prefix=no
  9200. need_version=no
  9201. soname_spec='${libname}${release}${shared_ext}$major'
  9202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9203. case $host_os in
  9204. irix5* | nonstopux*)
  9205. libsuff= shlibsuff=
  9206. ;;
  9207. *)
  9208. case $LD in # libtool.m4 will add one of these switches to LD
  9209. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9210. libsuff= shlibsuff= libmagic=32-bit;;
  9211. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9212. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9213. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9214. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9215. *) libsuff= shlibsuff= libmagic=never-match;;
  9216. esac
  9217. ;;
  9218. esac
  9219. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9220. shlibpath_overrides_runpath=no
  9221. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9222. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9223. hardcode_into_libs=yes
  9224. ;;
  9225. # No shared lib support for Linux oldld, aout, or coff.
  9226. linux*oldld* | linux*aout* | linux*coff*)
  9227. dynamic_linker=no
  9228. ;;
  9229. # This must be glibc/ELF.
  9230. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9231. version_type=linux # correct to gnu/linux during the next big refactor
  9232. need_lib_prefix=no
  9233. need_version=no
  9234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9235. soname_spec='${libname}${release}${shared_ext}$major'
  9236. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9237. shlibpath_var=LD_LIBRARY_PATH
  9238. shlibpath_overrides_runpath=no
  9239. # Some binutils ld are patched to set DT_RUNPATH
  9240. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9241. $as_echo_n "(cached) " >&6
  9242. else
  9243. lt_cv_shlibpath_overrides_runpath=no
  9244. save_LDFLAGS=$LDFLAGS
  9245. save_libdir=$libdir
  9246. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9247. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9249. /* end confdefs.h. */
  9250. int
  9251. main ()
  9252. {
  9253. ;
  9254. return 0;
  9255. }
  9256. _ACEOF
  9257. if ac_fn_c_try_link "$LINENO"; then :
  9258. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9259. lt_cv_shlibpath_overrides_runpath=yes
  9260. fi
  9261. fi
  9262. rm -f core conftest.err conftest.$ac_objext \
  9263. conftest$ac_exeext conftest.$ac_ext
  9264. LDFLAGS=$save_LDFLAGS
  9265. libdir=$save_libdir
  9266. fi
  9267. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9268. # This implies no fast_install, which is unacceptable.
  9269. # Some rework will be needed to allow for fast_install
  9270. # before this can be enabled.
  9271. hardcode_into_libs=yes
  9272. # Append ld.so.conf contents to the search path
  9273. if test -f /etc/ld.so.conf; then
  9274. 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;s/"//g;/^$/d' | tr '\n' ' '`
  9275. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9276. fi
  9277. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9278. # powerpc, because MkLinux only supported shared libraries with the
  9279. # GNU dynamic linker. Since this was broken with cross compilers,
  9280. # most powerpc-linux boxes support dynamic linking these days and
  9281. # people can always --disable-shared, the test was removed, and we
  9282. # assume the GNU/Linux dynamic linker is in use.
  9283. dynamic_linker='GNU/Linux ld.so'
  9284. ;;
  9285. netbsdelf*-gnu)
  9286. version_type=linux
  9287. need_lib_prefix=no
  9288. need_version=no
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9290. soname_spec='${libname}${release}${shared_ext}$major'
  9291. shlibpath_var=LD_LIBRARY_PATH
  9292. shlibpath_overrides_runpath=no
  9293. hardcode_into_libs=yes
  9294. dynamic_linker='NetBSD ld.elf_so'
  9295. ;;
  9296. netbsd*)
  9297. version_type=sunos
  9298. need_lib_prefix=no
  9299. need_version=no
  9300. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9302. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9303. dynamic_linker='NetBSD (a.out) ld.so'
  9304. else
  9305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9306. soname_spec='${libname}${release}${shared_ext}$major'
  9307. dynamic_linker='NetBSD ld.elf_so'
  9308. fi
  9309. shlibpath_var=LD_LIBRARY_PATH
  9310. shlibpath_overrides_runpath=yes
  9311. hardcode_into_libs=yes
  9312. ;;
  9313. newsos6)
  9314. version_type=linux # correct to gnu/linux during the next big refactor
  9315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9316. shlibpath_var=LD_LIBRARY_PATH
  9317. shlibpath_overrides_runpath=yes
  9318. ;;
  9319. *nto* | *qnx*)
  9320. version_type=qnx
  9321. need_lib_prefix=no
  9322. need_version=no
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9324. soname_spec='${libname}${release}${shared_ext}$major'
  9325. shlibpath_var=LD_LIBRARY_PATH
  9326. shlibpath_overrides_runpath=no
  9327. hardcode_into_libs=yes
  9328. dynamic_linker='ldqnx.so'
  9329. ;;
  9330. openbsd*)
  9331. version_type=sunos
  9332. sys_lib_dlsearch_path_spec="/usr/lib"
  9333. need_lib_prefix=no
  9334. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9335. case $host_os in
  9336. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9337. *) need_version=no ;;
  9338. esac
  9339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9340. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9341. shlibpath_var=LD_LIBRARY_PATH
  9342. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9343. case $host_os in
  9344. openbsd2.[89] | openbsd2.[89].*)
  9345. shlibpath_overrides_runpath=no
  9346. ;;
  9347. *)
  9348. shlibpath_overrides_runpath=yes
  9349. ;;
  9350. esac
  9351. else
  9352. shlibpath_overrides_runpath=yes
  9353. fi
  9354. ;;
  9355. os2*)
  9356. libname_spec='$name'
  9357. shrext_cmds=".dll"
  9358. need_lib_prefix=no
  9359. library_names_spec='$libname${shared_ext} $libname.a'
  9360. dynamic_linker='OS/2 ld.exe'
  9361. shlibpath_var=LIBPATH
  9362. ;;
  9363. osf3* | osf4* | osf5*)
  9364. version_type=osf
  9365. need_lib_prefix=no
  9366. need_version=no
  9367. soname_spec='${libname}${release}${shared_ext}$major'
  9368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9369. shlibpath_var=LD_LIBRARY_PATH
  9370. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9371. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9372. ;;
  9373. rdos*)
  9374. dynamic_linker=no
  9375. ;;
  9376. solaris*)
  9377. version_type=linux # correct to gnu/linux during the next big refactor
  9378. need_lib_prefix=no
  9379. need_version=no
  9380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9381. soname_spec='${libname}${release}${shared_ext}$major'
  9382. shlibpath_var=LD_LIBRARY_PATH
  9383. shlibpath_overrides_runpath=yes
  9384. hardcode_into_libs=yes
  9385. # ldd complains unless libraries are executable
  9386. postinstall_cmds='chmod +x $lib'
  9387. ;;
  9388. sunos4*)
  9389. version_type=sunos
  9390. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9391. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9392. shlibpath_var=LD_LIBRARY_PATH
  9393. shlibpath_overrides_runpath=yes
  9394. if test "$with_gnu_ld" = yes; then
  9395. need_lib_prefix=no
  9396. fi
  9397. need_version=yes
  9398. ;;
  9399. sysv4 | sysv4.3*)
  9400. version_type=linux # correct to gnu/linux during the next big refactor
  9401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9402. soname_spec='${libname}${release}${shared_ext}$major'
  9403. shlibpath_var=LD_LIBRARY_PATH
  9404. case $host_vendor in
  9405. sni)
  9406. shlibpath_overrides_runpath=no
  9407. need_lib_prefix=no
  9408. runpath_var=LD_RUN_PATH
  9409. ;;
  9410. siemens)
  9411. need_lib_prefix=no
  9412. ;;
  9413. motorola)
  9414. need_lib_prefix=no
  9415. need_version=no
  9416. shlibpath_overrides_runpath=no
  9417. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9418. ;;
  9419. esac
  9420. ;;
  9421. sysv4*MP*)
  9422. if test -d /usr/nec ;then
  9423. version_type=linux # correct to gnu/linux during the next big refactor
  9424. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9425. soname_spec='$libname${shared_ext}.$major'
  9426. shlibpath_var=LD_LIBRARY_PATH
  9427. fi
  9428. ;;
  9429. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9430. version_type=freebsd-elf
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9434. soname_spec='${libname}${release}${shared_ext}$major'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. shlibpath_overrides_runpath=yes
  9437. hardcode_into_libs=yes
  9438. if test "$with_gnu_ld" = yes; then
  9439. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9440. else
  9441. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9442. case $host_os in
  9443. sco3.2v5*)
  9444. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9445. ;;
  9446. esac
  9447. fi
  9448. sys_lib_dlsearch_path_spec='/usr/lib'
  9449. ;;
  9450. tpf*)
  9451. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9452. version_type=linux # correct to gnu/linux during the next big refactor
  9453. need_lib_prefix=no
  9454. need_version=no
  9455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. shlibpath_overrides_runpath=no
  9458. hardcode_into_libs=yes
  9459. ;;
  9460. uts4*)
  9461. version_type=linux # correct to gnu/linux during the next big refactor
  9462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9463. soname_spec='${libname}${release}${shared_ext}$major'
  9464. shlibpath_var=LD_LIBRARY_PATH
  9465. ;;
  9466. *)
  9467. dynamic_linker=no
  9468. ;;
  9469. esac
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9471. $as_echo "$dynamic_linker" >&6; }
  9472. test "$dynamic_linker" = no && can_build_shared=no
  9473. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9474. if test "$GCC" = yes; then
  9475. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9476. fi
  9477. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9478. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9479. fi
  9480. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9481. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9482. fi
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9484. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9485. hardcode_action=
  9486. if test -n "$hardcode_libdir_flag_spec" ||
  9487. test -n "$runpath_var" ||
  9488. test "X$hardcode_automatic" = "Xyes" ; then
  9489. # We can hardcode non-existent directories.
  9490. if test "$hardcode_direct" != no &&
  9491. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9492. # have to relink, otherwise we might link with an installed library
  9493. # when we should be linking with a yet-to-be-installed one
  9494. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9495. test "$hardcode_minus_L" != no; then
  9496. # Linking always hardcodes the temporary library directory.
  9497. hardcode_action=relink
  9498. else
  9499. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9500. hardcode_action=immediate
  9501. fi
  9502. else
  9503. # We cannot hardcode anything, or else we can only hardcode existing
  9504. # directories.
  9505. hardcode_action=unsupported
  9506. fi
  9507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9508. $as_echo "$hardcode_action" >&6; }
  9509. if test "$hardcode_action" = relink ||
  9510. test "$inherit_rpath" = yes; then
  9511. # Fast installation is not supported
  9512. enable_fast_install=no
  9513. elif test "$shlibpath_overrides_runpath" = yes ||
  9514. test "$enable_shared" = no; then
  9515. # Fast installation is not necessary
  9516. enable_fast_install=needless
  9517. fi
  9518. if test "x$enable_dlopen" != xyes; then
  9519. enable_dlopen=unknown
  9520. enable_dlopen_self=unknown
  9521. enable_dlopen_self_static=unknown
  9522. else
  9523. lt_cv_dlopen=no
  9524. lt_cv_dlopen_libs=
  9525. case $host_os in
  9526. beos*)
  9527. lt_cv_dlopen="load_add_on"
  9528. lt_cv_dlopen_libs=
  9529. lt_cv_dlopen_self=yes
  9530. ;;
  9531. mingw* | pw32* | cegcc*)
  9532. lt_cv_dlopen="LoadLibrary"
  9533. lt_cv_dlopen_libs=
  9534. ;;
  9535. cygwin*)
  9536. lt_cv_dlopen="dlopen"
  9537. lt_cv_dlopen_libs=
  9538. ;;
  9539. darwin*)
  9540. # if libdl is installed we need to link against it
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9542. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9543. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9544. $as_echo_n "(cached) " >&6
  9545. else
  9546. ac_check_lib_save_LIBS=$LIBS
  9547. LIBS="-ldl $LIBS"
  9548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9549. /* end confdefs.h. */
  9550. /* Override any GCC internal prototype to avoid an error.
  9551. Use char because int might match the return type of a GCC
  9552. builtin and then its argument prototype would still apply. */
  9553. #ifdef __cplusplus
  9554. extern "C"
  9555. #endif
  9556. char dlopen ();
  9557. int
  9558. main ()
  9559. {
  9560. return dlopen ();
  9561. ;
  9562. return 0;
  9563. }
  9564. _ACEOF
  9565. if ac_fn_c_try_link "$LINENO"; then :
  9566. ac_cv_lib_dl_dlopen=yes
  9567. else
  9568. ac_cv_lib_dl_dlopen=no
  9569. fi
  9570. rm -f core conftest.err conftest.$ac_objext \
  9571. conftest$ac_exeext conftest.$ac_ext
  9572. LIBS=$ac_check_lib_save_LIBS
  9573. fi
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9575. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9576. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9577. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9578. else
  9579. lt_cv_dlopen="dyld"
  9580. lt_cv_dlopen_libs=
  9581. lt_cv_dlopen_self=yes
  9582. fi
  9583. ;;
  9584. *)
  9585. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9586. if test "x$ac_cv_func_shl_load" = xyes; then :
  9587. lt_cv_dlopen="shl_load"
  9588. else
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9590. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9591. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9592. $as_echo_n "(cached) " >&6
  9593. else
  9594. ac_check_lib_save_LIBS=$LIBS
  9595. LIBS="-ldld $LIBS"
  9596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9597. /* end confdefs.h. */
  9598. /* Override any GCC internal prototype to avoid an error.
  9599. Use char because int might match the return type of a GCC
  9600. builtin and then its argument prototype would still apply. */
  9601. #ifdef __cplusplus
  9602. extern "C"
  9603. #endif
  9604. char shl_load ();
  9605. int
  9606. main ()
  9607. {
  9608. return shl_load ();
  9609. ;
  9610. return 0;
  9611. }
  9612. _ACEOF
  9613. if ac_fn_c_try_link "$LINENO"; then :
  9614. ac_cv_lib_dld_shl_load=yes
  9615. else
  9616. ac_cv_lib_dld_shl_load=no
  9617. fi
  9618. rm -f core conftest.err conftest.$ac_objext \
  9619. conftest$ac_exeext conftest.$ac_ext
  9620. LIBS=$ac_check_lib_save_LIBS
  9621. fi
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9623. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9624. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9625. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9626. else
  9627. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9628. if test "x$ac_cv_func_dlopen" = xyes; then :
  9629. lt_cv_dlopen="dlopen"
  9630. else
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9632. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9633. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9634. $as_echo_n "(cached) " >&6
  9635. else
  9636. ac_check_lib_save_LIBS=$LIBS
  9637. LIBS="-ldl $LIBS"
  9638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9639. /* end confdefs.h. */
  9640. /* Override any GCC internal prototype to avoid an error.
  9641. Use char because int might match the return type of a GCC
  9642. builtin and then its argument prototype would still apply. */
  9643. #ifdef __cplusplus
  9644. extern "C"
  9645. #endif
  9646. char dlopen ();
  9647. int
  9648. main ()
  9649. {
  9650. return dlopen ();
  9651. ;
  9652. return 0;
  9653. }
  9654. _ACEOF
  9655. if ac_fn_c_try_link "$LINENO"; then :
  9656. ac_cv_lib_dl_dlopen=yes
  9657. else
  9658. ac_cv_lib_dl_dlopen=no
  9659. fi
  9660. rm -f core conftest.err conftest.$ac_objext \
  9661. conftest$ac_exeext conftest.$ac_ext
  9662. LIBS=$ac_check_lib_save_LIBS
  9663. fi
  9664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9665. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9666. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9667. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9668. else
  9669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9670. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9671. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9672. $as_echo_n "(cached) " >&6
  9673. else
  9674. ac_check_lib_save_LIBS=$LIBS
  9675. LIBS="-lsvld $LIBS"
  9676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9677. /* end confdefs.h. */
  9678. /* Override any GCC internal prototype to avoid an error.
  9679. Use char because int might match the return type of a GCC
  9680. builtin and then its argument prototype would still apply. */
  9681. #ifdef __cplusplus
  9682. extern "C"
  9683. #endif
  9684. char dlopen ();
  9685. int
  9686. main ()
  9687. {
  9688. return dlopen ();
  9689. ;
  9690. return 0;
  9691. }
  9692. _ACEOF
  9693. if ac_fn_c_try_link "$LINENO"; then :
  9694. ac_cv_lib_svld_dlopen=yes
  9695. else
  9696. ac_cv_lib_svld_dlopen=no
  9697. fi
  9698. rm -f core conftest.err conftest.$ac_objext \
  9699. conftest$ac_exeext conftest.$ac_ext
  9700. LIBS=$ac_check_lib_save_LIBS
  9701. fi
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9703. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9704. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9705. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9706. else
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9708. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9709. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9710. $as_echo_n "(cached) " >&6
  9711. else
  9712. ac_check_lib_save_LIBS=$LIBS
  9713. LIBS="-ldld $LIBS"
  9714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9715. /* end confdefs.h. */
  9716. /* Override any GCC internal prototype to avoid an error.
  9717. Use char because int might match the return type of a GCC
  9718. builtin and then its argument prototype would still apply. */
  9719. #ifdef __cplusplus
  9720. extern "C"
  9721. #endif
  9722. char dld_link ();
  9723. int
  9724. main ()
  9725. {
  9726. return dld_link ();
  9727. ;
  9728. return 0;
  9729. }
  9730. _ACEOF
  9731. if ac_fn_c_try_link "$LINENO"; then :
  9732. ac_cv_lib_dld_dld_link=yes
  9733. else
  9734. ac_cv_lib_dld_dld_link=no
  9735. fi
  9736. rm -f core conftest.err conftest.$ac_objext \
  9737. conftest$ac_exeext conftest.$ac_ext
  9738. LIBS=$ac_check_lib_save_LIBS
  9739. fi
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9741. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9742. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9743. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9744. fi
  9745. fi
  9746. fi
  9747. fi
  9748. fi
  9749. fi
  9750. ;;
  9751. esac
  9752. if test "x$lt_cv_dlopen" != xno; then
  9753. enable_dlopen=yes
  9754. else
  9755. enable_dlopen=no
  9756. fi
  9757. case $lt_cv_dlopen in
  9758. dlopen)
  9759. save_CPPFLAGS="$CPPFLAGS"
  9760. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9761. save_LDFLAGS="$LDFLAGS"
  9762. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9763. save_LIBS="$LIBS"
  9764. LIBS="$lt_cv_dlopen_libs $LIBS"
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9766. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9767. if ${lt_cv_dlopen_self+:} false; then :
  9768. $as_echo_n "(cached) " >&6
  9769. else
  9770. if test "$cross_compiling" = yes; then :
  9771. lt_cv_dlopen_self=cross
  9772. else
  9773. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9774. lt_status=$lt_dlunknown
  9775. cat > conftest.$ac_ext <<_LT_EOF
  9776. #line $LINENO "configure"
  9777. #include "confdefs.h"
  9778. #if HAVE_DLFCN_H
  9779. #include <dlfcn.h>
  9780. #endif
  9781. #include <stdio.h>
  9782. #ifdef RTLD_GLOBAL
  9783. # define LT_DLGLOBAL RTLD_GLOBAL
  9784. #else
  9785. # ifdef DL_GLOBAL
  9786. # define LT_DLGLOBAL DL_GLOBAL
  9787. # else
  9788. # define LT_DLGLOBAL 0
  9789. # endif
  9790. #endif
  9791. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9792. find out it does not work in some platform. */
  9793. #ifndef LT_DLLAZY_OR_NOW
  9794. # ifdef RTLD_LAZY
  9795. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9796. # else
  9797. # ifdef DL_LAZY
  9798. # define LT_DLLAZY_OR_NOW DL_LAZY
  9799. # else
  9800. # ifdef RTLD_NOW
  9801. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9802. # else
  9803. # ifdef DL_NOW
  9804. # define LT_DLLAZY_OR_NOW DL_NOW
  9805. # else
  9806. # define LT_DLLAZY_OR_NOW 0
  9807. # endif
  9808. # endif
  9809. # endif
  9810. # endif
  9811. #endif
  9812. /* When -fvisbility=hidden is used, assume the code has been annotated
  9813. correspondingly for the symbols needed. */
  9814. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9815. int fnord () __attribute__((visibility("default")));
  9816. #endif
  9817. int fnord () { return 42; }
  9818. int main ()
  9819. {
  9820. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9821. int status = $lt_dlunknown;
  9822. if (self)
  9823. {
  9824. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9825. else
  9826. {
  9827. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9828. else puts (dlerror ());
  9829. }
  9830. /* dlclose (self); */
  9831. }
  9832. else
  9833. puts (dlerror ());
  9834. return status;
  9835. }
  9836. _LT_EOF
  9837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9838. (eval $ac_link) 2>&5
  9839. ac_status=$?
  9840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9841. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9842. (./conftest; exit; ) >&5 2>/dev/null
  9843. lt_status=$?
  9844. case x$lt_status in
  9845. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9846. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9847. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9848. esac
  9849. else :
  9850. # compilation failed
  9851. lt_cv_dlopen_self=no
  9852. fi
  9853. fi
  9854. rm -fr conftest*
  9855. fi
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9857. $as_echo "$lt_cv_dlopen_self" >&6; }
  9858. if test "x$lt_cv_dlopen_self" = xyes; then
  9859. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9861. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9862. if ${lt_cv_dlopen_self_static+:} false; then :
  9863. $as_echo_n "(cached) " >&6
  9864. else
  9865. if test "$cross_compiling" = yes; then :
  9866. lt_cv_dlopen_self_static=cross
  9867. else
  9868. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9869. lt_status=$lt_dlunknown
  9870. cat > conftest.$ac_ext <<_LT_EOF
  9871. #line $LINENO "configure"
  9872. #include "confdefs.h"
  9873. #if HAVE_DLFCN_H
  9874. #include <dlfcn.h>
  9875. #endif
  9876. #include <stdio.h>
  9877. #ifdef RTLD_GLOBAL
  9878. # define LT_DLGLOBAL RTLD_GLOBAL
  9879. #else
  9880. # ifdef DL_GLOBAL
  9881. # define LT_DLGLOBAL DL_GLOBAL
  9882. # else
  9883. # define LT_DLGLOBAL 0
  9884. # endif
  9885. #endif
  9886. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9887. find out it does not work in some platform. */
  9888. #ifndef LT_DLLAZY_OR_NOW
  9889. # ifdef RTLD_LAZY
  9890. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9891. # else
  9892. # ifdef DL_LAZY
  9893. # define LT_DLLAZY_OR_NOW DL_LAZY
  9894. # else
  9895. # ifdef RTLD_NOW
  9896. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9897. # else
  9898. # ifdef DL_NOW
  9899. # define LT_DLLAZY_OR_NOW DL_NOW
  9900. # else
  9901. # define LT_DLLAZY_OR_NOW 0
  9902. # endif
  9903. # endif
  9904. # endif
  9905. # endif
  9906. #endif
  9907. /* When -fvisbility=hidden is used, assume the code has been annotated
  9908. correspondingly for the symbols needed. */
  9909. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9910. int fnord () __attribute__((visibility("default")));
  9911. #endif
  9912. int fnord () { return 42; }
  9913. int main ()
  9914. {
  9915. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9916. int status = $lt_dlunknown;
  9917. if (self)
  9918. {
  9919. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9920. else
  9921. {
  9922. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9923. else puts (dlerror ());
  9924. }
  9925. /* dlclose (self); */
  9926. }
  9927. else
  9928. puts (dlerror ());
  9929. return status;
  9930. }
  9931. _LT_EOF
  9932. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9933. (eval $ac_link) 2>&5
  9934. ac_status=$?
  9935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9936. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9937. (./conftest; exit; ) >&5 2>/dev/null
  9938. lt_status=$?
  9939. case x$lt_status in
  9940. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9941. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9942. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9943. esac
  9944. else :
  9945. # compilation failed
  9946. lt_cv_dlopen_self_static=no
  9947. fi
  9948. fi
  9949. rm -fr conftest*
  9950. fi
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9952. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9953. fi
  9954. CPPFLAGS="$save_CPPFLAGS"
  9955. LDFLAGS="$save_LDFLAGS"
  9956. LIBS="$save_LIBS"
  9957. ;;
  9958. esac
  9959. case $lt_cv_dlopen_self in
  9960. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9961. *) enable_dlopen_self=unknown ;;
  9962. esac
  9963. case $lt_cv_dlopen_self_static in
  9964. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9965. *) enable_dlopen_self_static=unknown ;;
  9966. esac
  9967. fi
  9968. striplib=
  9969. old_striplib=
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9971. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9972. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9973. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9974. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9976. $as_echo "yes" >&6; }
  9977. else
  9978. # FIXME - insert some real tests, host_os isn't really good enough
  9979. case $host_os in
  9980. darwin*)
  9981. if test -n "$STRIP" ; then
  9982. striplib="$STRIP -x"
  9983. old_striplib="$STRIP -S"
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9985. $as_echo "yes" >&6; }
  9986. else
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9988. $as_echo "no" >&6; }
  9989. fi
  9990. ;;
  9991. *)
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9993. $as_echo "no" >&6; }
  9994. ;;
  9995. esac
  9996. fi
  9997. # Report which library types will actually be built
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9999. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10001. $as_echo "$can_build_shared" >&6; }
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10003. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10004. test "$can_build_shared" = "no" && enable_shared=no
  10005. # On AIX, shared libraries and static libraries use the same namespace, and
  10006. # are all built from PIC.
  10007. case $host_os in
  10008. aix3*)
  10009. test "$enable_shared" = yes && enable_static=no
  10010. if test -n "$RANLIB"; then
  10011. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10012. postinstall_cmds='$RANLIB $lib'
  10013. fi
  10014. ;;
  10015. aix[4-9]*)
  10016. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10017. test "$enable_shared" = yes && enable_static=no
  10018. fi
  10019. ;;
  10020. esac
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10022. $as_echo "$enable_shared" >&6; }
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10024. $as_echo_n "checking whether to build static libraries... " >&6; }
  10025. # Make sure either enable_shared or enable_static is yes.
  10026. test "$enable_shared" = yes || enable_static=yes
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10028. $as_echo "$enable_static" >&6; }
  10029. fi
  10030. ac_ext=cpp
  10031. ac_cpp='$CXXCPP $CPPFLAGS'
  10032. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10033. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10034. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10035. CC="$lt_save_CC"
  10036. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10037. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10038. (test "X$CXX" != "Xg++"))) ; then
  10039. ac_ext=cpp
  10040. ac_cpp='$CXXCPP $CPPFLAGS'
  10041. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10042. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10043. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10045. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10046. if test -z "$CXXCPP"; then
  10047. if ${ac_cv_prog_CXXCPP+:} false; then :
  10048. $as_echo_n "(cached) " >&6
  10049. else
  10050. # Double quotes because CXXCPP needs to be expanded
  10051. for CXXCPP in "$CXX -E" "/lib/cpp"
  10052. do
  10053. ac_preproc_ok=false
  10054. for ac_cxx_preproc_warn_flag in '' yes
  10055. do
  10056. # Use a header file that comes with gcc, so configuring glibc
  10057. # with a fresh cross-compiler works.
  10058. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10059. # <limits.h> exists even on freestanding compilers.
  10060. # On the NeXT, cc -E runs the code through the compiler's parser,
  10061. # not just through cpp. "Syntax error" is here to catch this case.
  10062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10063. /* end confdefs.h. */
  10064. #ifdef __STDC__
  10065. # include <limits.h>
  10066. #else
  10067. # include <assert.h>
  10068. #endif
  10069. Syntax error
  10070. _ACEOF
  10071. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10072. else
  10073. # Broken: fails on valid input.
  10074. continue
  10075. fi
  10076. rm -f conftest.err conftest.i conftest.$ac_ext
  10077. # OK, works on sane cases. Now check whether nonexistent headers
  10078. # can be detected and how.
  10079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10080. /* end confdefs.h. */
  10081. #include <ac_nonexistent.h>
  10082. _ACEOF
  10083. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10084. # Broken: success on invalid input.
  10085. continue
  10086. else
  10087. # Passes both tests.
  10088. ac_preproc_ok=:
  10089. break
  10090. fi
  10091. rm -f conftest.err conftest.i conftest.$ac_ext
  10092. done
  10093. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10094. rm -f conftest.i conftest.err conftest.$ac_ext
  10095. if $ac_preproc_ok; then :
  10096. break
  10097. fi
  10098. done
  10099. ac_cv_prog_CXXCPP=$CXXCPP
  10100. fi
  10101. CXXCPP=$ac_cv_prog_CXXCPP
  10102. else
  10103. ac_cv_prog_CXXCPP=$CXXCPP
  10104. fi
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10106. $as_echo "$CXXCPP" >&6; }
  10107. ac_preproc_ok=false
  10108. for ac_cxx_preproc_warn_flag in '' yes
  10109. do
  10110. # Use a header file that comes with gcc, so configuring glibc
  10111. # with a fresh cross-compiler works.
  10112. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10113. # <limits.h> exists even on freestanding compilers.
  10114. # On the NeXT, cc -E runs the code through the compiler's parser,
  10115. # not just through cpp. "Syntax error" is here to catch this case.
  10116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10117. /* end confdefs.h. */
  10118. #ifdef __STDC__
  10119. # include <limits.h>
  10120. #else
  10121. # include <assert.h>
  10122. #endif
  10123. Syntax error
  10124. _ACEOF
  10125. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10126. else
  10127. # Broken: fails on valid input.
  10128. continue
  10129. fi
  10130. rm -f conftest.err conftest.i conftest.$ac_ext
  10131. # OK, works on sane cases. Now check whether nonexistent headers
  10132. # can be detected and how.
  10133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10134. /* end confdefs.h. */
  10135. #include <ac_nonexistent.h>
  10136. _ACEOF
  10137. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10138. # Broken: success on invalid input.
  10139. continue
  10140. else
  10141. # Passes both tests.
  10142. ac_preproc_ok=:
  10143. break
  10144. fi
  10145. rm -f conftest.err conftest.i conftest.$ac_ext
  10146. done
  10147. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10148. rm -f conftest.i conftest.err conftest.$ac_ext
  10149. if $ac_preproc_ok; then :
  10150. else
  10151. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10152. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10153. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10154. See \`config.log' for more details" "$LINENO" 5; }
  10155. fi
  10156. ac_ext=cpp
  10157. ac_cpp='$CXXCPP $CPPFLAGS'
  10158. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10159. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10160. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10161. else
  10162. _lt_caught_CXX_error=yes
  10163. fi
  10164. ac_ext=cpp
  10165. ac_cpp='$CXXCPP $CPPFLAGS'
  10166. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10167. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10168. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10169. archive_cmds_need_lc_CXX=no
  10170. allow_undefined_flag_CXX=
  10171. always_export_symbols_CXX=no
  10172. archive_expsym_cmds_CXX=
  10173. compiler_needs_object_CXX=no
  10174. export_dynamic_flag_spec_CXX=
  10175. hardcode_direct_CXX=no
  10176. hardcode_direct_absolute_CXX=no
  10177. hardcode_libdir_flag_spec_CXX=
  10178. hardcode_libdir_separator_CXX=
  10179. hardcode_minus_L_CXX=no
  10180. hardcode_shlibpath_var_CXX=unsupported
  10181. hardcode_automatic_CXX=no
  10182. inherit_rpath_CXX=no
  10183. module_cmds_CXX=
  10184. module_expsym_cmds_CXX=
  10185. link_all_deplibs_CXX=unknown
  10186. old_archive_cmds_CXX=$old_archive_cmds
  10187. reload_flag_CXX=$reload_flag
  10188. reload_cmds_CXX=$reload_cmds
  10189. no_undefined_flag_CXX=
  10190. whole_archive_flag_spec_CXX=
  10191. enable_shared_with_static_runtimes_CXX=no
  10192. # Source file extension for C++ test sources.
  10193. ac_ext=cpp
  10194. # Object file extension for compiled C++ test sources.
  10195. objext=o
  10196. objext_CXX=$objext
  10197. # No sense in running all these tests if we already determined that
  10198. # the CXX compiler isn't working. Some variables (like enable_shared)
  10199. # are currently assumed to apply to all compilers on this platform,
  10200. # and will be corrupted by setting them based on a non-working compiler.
  10201. if test "$_lt_caught_CXX_error" != yes; then
  10202. # Code to be used in simple compile tests
  10203. lt_simple_compile_test_code="int some_variable = 0;"
  10204. # Code to be used in simple link tests
  10205. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10206. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10207. # If no C compiler was specified, use CC.
  10208. LTCC=${LTCC-"$CC"}
  10209. # If no C compiler flags were specified, use CFLAGS.
  10210. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10211. # Allow CC to be a program name with arguments.
  10212. compiler=$CC
  10213. # save warnings/boilerplate of simple test code
  10214. ac_outfile=conftest.$ac_objext
  10215. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10216. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10217. _lt_compiler_boilerplate=`cat conftest.err`
  10218. $RM conftest*
  10219. ac_outfile=conftest.$ac_objext
  10220. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10221. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10222. _lt_linker_boilerplate=`cat conftest.err`
  10223. $RM -r conftest*
  10224. # Allow CC to be a program name with arguments.
  10225. lt_save_CC=$CC
  10226. lt_save_CFLAGS=$CFLAGS
  10227. lt_save_LD=$LD
  10228. lt_save_GCC=$GCC
  10229. GCC=$GXX
  10230. lt_save_with_gnu_ld=$with_gnu_ld
  10231. lt_save_path_LD=$lt_cv_path_LD
  10232. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10233. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10234. else
  10235. $as_unset lt_cv_prog_gnu_ld
  10236. fi
  10237. if test -n "${lt_cv_path_LDCXX+set}"; then
  10238. lt_cv_path_LD=$lt_cv_path_LDCXX
  10239. else
  10240. $as_unset lt_cv_path_LD
  10241. fi
  10242. test -z "${LDCXX+set}" || LD=$LDCXX
  10243. CC=${CXX-"c++"}
  10244. CFLAGS=$CXXFLAGS
  10245. compiler=$CC
  10246. compiler_CXX=$CC
  10247. for cc_temp in $compiler""; do
  10248. case $cc_temp in
  10249. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10250. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10251. \-*) ;;
  10252. *) break;;
  10253. esac
  10254. done
  10255. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10256. if test -n "$compiler"; then
  10257. # We don't want -fno-exception when compiling C++ code, so set the
  10258. # no_builtin_flag separately
  10259. if test "$GXX" = yes; then
  10260. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10261. else
  10262. lt_prog_compiler_no_builtin_flag_CXX=
  10263. fi
  10264. if test "$GXX" = yes; then
  10265. # Set up default GNU C++ configuration
  10266. # Check whether --with-gnu-ld was given.
  10267. if test "${with_gnu_ld+set}" = set; then :
  10268. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10269. else
  10270. with_gnu_ld=no
  10271. fi
  10272. ac_prog=ld
  10273. if test "$GCC" = yes; then
  10274. # Check if gcc -print-prog-name=ld gives a path.
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10276. $as_echo_n "checking for ld used by $CC... " >&6; }
  10277. case $host in
  10278. *-*-mingw*)
  10279. # gcc leaves a trailing carriage return which upsets mingw
  10280. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10281. *)
  10282. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10283. esac
  10284. case $ac_prog in
  10285. # Accept absolute paths.
  10286. [\\/]* | ?:[\\/]*)
  10287. re_direlt='/[^/][^/]*/\.\./'
  10288. # Canonicalize the pathname of ld
  10289. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10290. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10291. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10292. done
  10293. test -z "$LD" && LD="$ac_prog"
  10294. ;;
  10295. "")
  10296. # If it fails, then pretend we aren't using GCC.
  10297. ac_prog=ld
  10298. ;;
  10299. *)
  10300. # If it is relative, then search for the first ld in PATH.
  10301. with_gnu_ld=unknown
  10302. ;;
  10303. esac
  10304. elif test "$with_gnu_ld" = yes; then
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10306. $as_echo_n "checking for GNU ld... " >&6; }
  10307. else
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10309. $as_echo_n "checking for non-GNU ld... " >&6; }
  10310. fi
  10311. if ${lt_cv_path_LD+:} false; then :
  10312. $as_echo_n "(cached) " >&6
  10313. else
  10314. if test -z "$LD"; then
  10315. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10316. for ac_dir in $PATH; do
  10317. IFS="$lt_save_ifs"
  10318. test -z "$ac_dir" && ac_dir=.
  10319. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10320. lt_cv_path_LD="$ac_dir/$ac_prog"
  10321. # Check to see if the program is GNU ld. I'd rather use --version,
  10322. # but apparently some variants of GNU ld only accept -v.
  10323. # Break only if it was the GNU/non-GNU ld that we prefer.
  10324. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10325. *GNU* | *'with BFD'*)
  10326. test "$with_gnu_ld" != no && break
  10327. ;;
  10328. *)
  10329. test "$with_gnu_ld" != yes && break
  10330. ;;
  10331. esac
  10332. fi
  10333. done
  10334. IFS="$lt_save_ifs"
  10335. else
  10336. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10337. fi
  10338. fi
  10339. LD="$lt_cv_path_LD"
  10340. if test -n "$LD"; then
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10342. $as_echo "$LD" >&6; }
  10343. else
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10345. $as_echo "no" >&6; }
  10346. fi
  10347. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10349. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10350. if ${lt_cv_prog_gnu_ld+:} false; then :
  10351. $as_echo_n "(cached) " >&6
  10352. else
  10353. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10354. case `$LD -v 2>&1 </dev/null` in
  10355. *GNU* | *'with BFD'*)
  10356. lt_cv_prog_gnu_ld=yes
  10357. ;;
  10358. *)
  10359. lt_cv_prog_gnu_ld=no
  10360. ;;
  10361. esac
  10362. fi
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10364. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10365. with_gnu_ld=$lt_cv_prog_gnu_ld
  10366. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10367. # archiving commands below assume that GNU ld is being used.
  10368. if test "$with_gnu_ld" = yes; then
  10369. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10370. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10371. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10372. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10373. # If archive_cmds runs LD, not CC, wlarc should be empty
  10374. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10375. # investigate it a little bit more. (MM)
  10376. wlarc='${wl}'
  10377. # ancient GNU ld didn't support --whole-archive et. al.
  10378. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10379. $GREP 'no-whole-archive' > /dev/null; then
  10380. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10381. else
  10382. whole_archive_flag_spec_CXX=
  10383. fi
  10384. else
  10385. with_gnu_ld=no
  10386. wlarc=
  10387. # A generic and very simple default shared library creation
  10388. # command for GNU C++ for the case where it uses the native
  10389. # linker, instead of GNU ld. If possible, this setting should
  10390. # overridden to take advantage of the native linker features on
  10391. # the platform it is being used on.
  10392. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10393. fi
  10394. # Commands to make compiler produce verbose output that lists
  10395. # what "hidden" libraries, object files and flags are used when
  10396. # linking a shared library.
  10397. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10398. else
  10399. GXX=no
  10400. with_gnu_ld=no
  10401. wlarc=
  10402. fi
  10403. # PORTME: fill in a description of your system's C++ link characteristics
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10405. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10406. ld_shlibs_CXX=yes
  10407. case $host_os in
  10408. aix3*)
  10409. # FIXME: insert proper C++ library support
  10410. ld_shlibs_CXX=no
  10411. ;;
  10412. aix[4-9]*)
  10413. if test "$host_cpu" = ia64; then
  10414. # On IA64, the linker does run time linking by default, so we don't
  10415. # have to do anything special.
  10416. aix_use_runtimelinking=no
  10417. exp_sym_flag='-Bexport'
  10418. no_entry_flag=""
  10419. else
  10420. aix_use_runtimelinking=no
  10421. # Test if we are trying to use run time linking or normal
  10422. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10423. # need to do runtime linking.
  10424. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10425. for ld_flag in $LDFLAGS; do
  10426. case $ld_flag in
  10427. *-brtl*)
  10428. aix_use_runtimelinking=yes
  10429. break
  10430. ;;
  10431. esac
  10432. done
  10433. ;;
  10434. esac
  10435. exp_sym_flag='-bexport'
  10436. no_entry_flag='-bnoentry'
  10437. fi
  10438. # When large executables or shared objects are built, AIX ld can
  10439. # have problems creating the table of contents. If linking a library
  10440. # or program results in "error TOC overflow" add -mminimal-toc to
  10441. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10442. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10443. archive_cmds_CXX=''
  10444. hardcode_direct_CXX=yes
  10445. hardcode_direct_absolute_CXX=yes
  10446. hardcode_libdir_separator_CXX=':'
  10447. link_all_deplibs_CXX=yes
  10448. file_list_spec_CXX='${wl}-f,'
  10449. if test "$GXX" = yes; then
  10450. case $host_os in aix4.[012]|aix4.[012].*)
  10451. # We only want to do this on AIX 4.2 and lower, the check
  10452. # below for broken collect2 doesn't work under 4.3+
  10453. collect2name=`${CC} -print-prog-name=collect2`
  10454. if test -f "$collect2name" &&
  10455. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10456. then
  10457. # We have reworked collect2
  10458. :
  10459. else
  10460. # We have old collect2
  10461. hardcode_direct_CXX=unsupported
  10462. # It fails to find uninstalled libraries when the uninstalled
  10463. # path is not listed in the libpath. Setting hardcode_minus_L
  10464. # to unsupported forces relinking
  10465. hardcode_minus_L_CXX=yes
  10466. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10467. hardcode_libdir_separator_CXX=
  10468. fi
  10469. esac
  10470. shared_flag='-shared'
  10471. if test "$aix_use_runtimelinking" = yes; then
  10472. shared_flag="$shared_flag "'${wl}-G'
  10473. fi
  10474. else
  10475. # not using gcc
  10476. if test "$host_cpu" = ia64; then
  10477. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10478. # chokes on -Wl,-G. The following line is correct:
  10479. shared_flag='-G'
  10480. else
  10481. if test "$aix_use_runtimelinking" = yes; then
  10482. shared_flag='${wl}-G'
  10483. else
  10484. shared_flag='${wl}-bM:SRE'
  10485. fi
  10486. fi
  10487. fi
  10488. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10489. # It seems that -bexpall does not export symbols beginning with
  10490. # underscore (_), so it is better to generate a list of symbols to
  10491. # export.
  10492. always_export_symbols_CXX=yes
  10493. if test "$aix_use_runtimelinking" = yes; then
  10494. # Warning - without using the other runtime loading flags (-brtl),
  10495. # -berok will link without error, but may produce a broken library.
  10496. allow_undefined_flag_CXX='-berok'
  10497. # Determine the default libpath from the value encoded in an empty
  10498. # executable.
  10499. if test "${lt_cv_aix_libpath+set}" = set; then
  10500. aix_libpath=$lt_cv_aix_libpath
  10501. else
  10502. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10503. $as_echo_n "(cached) " >&6
  10504. else
  10505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10506. /* end confdefs.h. */
  10507. int
  10508. main ()
  10509. {
  10510. ;
  10511. return 0;
  10512. }
  10513. _ACEOF
  10514. if ac_fn_cxx_try_link "$LINENO"; then :
  10515. lt_aix_libpath_sed='
  10516. /Import File Strings/,/^$/ {
  10517. /^0/ {
  10518. s/^0 *\([^ ]*\) *$/\1/
  10519. p
  10520. }
  10521. }'
  10522. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10523. # Check for a 64-bit object if we didn't find anything.
  10524. if test -z "$lt_cv_aix_libpath__CXX"; then
  10525. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10526. fi
  10527. fi
  10528. rm -f core conftest.err conftest.$ac_objext \
  10529. conftest$ac_exeext conftest.$ac_ext
  10530. if test -z "$lt_cv_aix_libpath__CXX"; then
  10531. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10532. fi
  10533. fi
  10534. aix_libpath=$lt_cv_aix_libpath__CXX
  10535. fi
  10536. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10537. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10538. else
  10539. if test "$host_cpu" = ia64; then
  10540. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10541. allow_undefined_flag_CXX="-z nodefs"
  10542. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10543. else
  10544. # Determine the default libpath from the value encoded in an
  10545. # empty executable.
  10546. if test "${lt_cv_aix_libpath+set}" = set; then
  10547. aix_libpath=$lt_cv_aix_libpath
  10548. else
  10549. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10550. $as_echo_n "(cached) " >&6
  10551. else
  10552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10553. /* end confdefs.h. */
  10554. int
  10555. main ()
  10556. {
  10557. ;
  10558. return 0;
  10559. }
  10560. _ACEOF
  10561. if ac_fn_cxx_try_link "$LINENO"; then :
  10562. lt_aix_libpath_sed='
  10563. /Import File Strings/,/^$/ {
  10564. /^0/ {
  10565. s/^0 *\([^ ]*\) *$/\1/
  10566. p
  10567. }
  10568. }'
  10569. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10570. # Check for a 64-bit object if we didn't find anything.
  10571. if test -z "$lt_cv_aix_libpath__CXX"; then
  10572. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10573. fi
  10574. fi
  10575. rm -f core conftest.err conftest.$ac_objext \
  10576. conftest$ac_exeext conftest.$ac_ext
  10577. if test -z "$lt_cv_aix_libpath__CXX"; then
  10578. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10579. fi
  10580. fi
  10581. aix_libpath=$lt_cv_aix_libpath__CXX
  10582. fi
  10583. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10584. # Warning - without using the other run time loading flags,
  10585. # -berok will link without error, but may produce a broken library.
  10586. no_undefined_flag_CXX=' ${wl}-bernotok'
  10587. allow_undefined_flag_CXX=' ${wl}-berok'
  10588. if test "$with_gnu_ld" = yes; then
  10589. # We only use this code for GNU lds that support --whole-archive.
  10590. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10591. else
  10592. # Exported symbols can be pulled into shared objects from archives
  10593. whole_archive_flag_spec_CXX='$convenience'
  10594. fi
  10595. archive_cmds_need_lc_CXX=yes
  10596. # This is similar to how AIX traditionally builds its shared
  10597. # libraries.
  10598. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10599. fi
  10600. fi
  10601. ;;
  10602. beos*)
  10603. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10604. allow_undefined_flag_CXX=unsupported
  10605. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10606. # support --undefined. This deserves some investigation. FIXME
  10607. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10608. else
  10609. ld_shlibs_CXX=no
  10610. fi
  10611. ;;
  10612. chorus*)
  10613. case $cc_basename in
  10614. *)
  10615. # FIXME: insert proper C++ library support
  10616. ld_shlibs_CXX=no
  10617. ;;
  10618. esac
  10619. ;;
  10620. cygwin* | mingw* | pw32* | cegcc*)
  10621. case $GXX,$cc_basename in
  10622. ,cl* | no,cl*)
  10623. # Native MSVC
  10624. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10625. # no search path for DLLs.
  10626. hardcode_libdir_flag_spec_CXX=' '
  10627. allow_undefined_flag_CXX=unsupported
  10628. always_export_symbols_CXX=yes
  10629. file_list_spec_CXX='@'
  10630. # Tell ltmain to make .lib files, not .a files.
  10631. libext=lib
  10632. # Tell ltmain to make .dll files, not .so files.
  10633. shrext_cmds=".dll"
  10634. # FIXME: Setting linknames here is a bad hack.
  10635. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10636. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10637. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10638. else
  10639. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10640. fi~
  10641. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10642. linknames='
  10643. # The linker will not automatically build a static lib if we build a DLL.
  10644. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10645. enable_shared_with_static_runtimes_CXX=yes
  10646. # Don't use ranlib
  10647. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10648. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10649. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10650. case $lt_outputfile in
  10651. *.exe|*.EXE) ;;
  10652. *)
  10653. lt_outputfile="$lt_outputfile.exe"
  10654. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10655. ;;
  10656. esac~
  10657. func_to_tool_file "$lt_outputfile"~
  10658. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10659. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10660. $RM "$lt_outputfile.manifest";
  10661. fi'
  10662. ;;
  10663. *)
  10664. # g++
  10665. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10666. # as there is no search path for DLLs.
  10667. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10668. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10669. allow_undefined_flag_CXX=unsupported
  10670. always_export_symbols_CXX=no
  10671. enable_shared_with_static_runtimes_CXX=yes
  10672. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10673. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10674. # If the export-symbols file already is a .def file (1st line
  10675. # is EXPORTS), use it as is; otherwise, prepend...
  10676. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10677. cp $export_symbols $output_objdir/$soname.def;
  10678. else
  10679. echo EXPORTS > $output_objdir/$soname.def;
  10680. cat $export_symbols >> $output_objdir/$soname.def;
  10681. fi~
  10682. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10683. else
  10684. ld_shlibs_CXX=no
  10685. fi
  10686. ;;
  10687. esac
  10688. ;;
  10689. darwin* | rhapsody*)
  10690. archive_cmds_need_lc_CXX=no
  10691. hardcode_direct_CXX=no
  10692. hardcode_automatic_CXX=yes
  10693. hardcode_shlibpath_var_CXX=unsupported
  10694. if test "$lt_cv_ld_force_load" = "yes"; then
  10695. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10696. else
  10697. whole_archive_flag_spec_CXX=''
  10698. fi
  10699. link_all_deplibs_CXX=yes
  10700. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10701. case $cc_basename in
  10702. ifort*) _lt_dar_can_shared=yes ;;
  10703. *) _lt_dar_can_shared=$GCC ;;
  10704. esac
  10705. if test "$_lt_dar_can_shared" = "yes"; then
  10706. output_verbose_link_cmd=func_echo_all
  10707. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10708. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10709. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10710. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10711. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10712. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  10713. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  10714. fi
  10715. else
  10716. ld_shlibs_CXX=no
  10717. fi
  10718. ;;
  10719. dgux*)
  10720. case $cc_basename in
  10721. ec++*)
  10722. # FIXME: insert proper C++ library support
  10723. ld_shlibs_CXX=no
  10724. ;;
  10725. ghcx*)
  10726. # Green Hills C++ Compiler
  10727. # FIXME: insert proper C++ library support
  10728. ld_shlibs_CXX=no
  10729. ;;
  10730. *)
  10731. # FIXME: insert proper C++ library support
  10732. ld_shlibs_CXX=no
  10733. ;;
  10734. esac
  10735. ;;
  10736. freebsd2.*)
  10737. # C++ shared libraries reported to be fairly broken before
  10738. # switch to ELF
  10739. ld_shlibs_CXX=no
  10740. ;;
  10741. freebsd-elf*)
  10742. archive_cmds_need_lc_CXX=no
  10743. ;;
  10744. freebsd* | dragonfly*)
  10745. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10746. # conventions
  10747. ld_shlibs_CXX=yes
  10748. ;;
  10749. gnu*)
  10750. ;;
  10751. haiku*)
  10752. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10753. link_all_deplibs_CXX=yes
  10754. ;;
  10755. hpux9*)
  10756. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10757. hardcode_libdir_separator_CXX=:
  10758. export_dynamic_flag_spec_CXX='${wl}-E'
  10759. hardcode_direct_CXX=yes
  10760. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10761. # but as the default
  10762. # location of the library.
  10763. case $cc_basename in
  10764. CC*)
  10765. # FIXME: insert proper C++ library support
  10766. ld_shlibs_CXX=no
  10767. ;;
  10768. aCC*)
  10769. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10770. # Commands to make compiler produce verbose output that lists
  10771. # what "hidden" libraries, object files and flags are used when
  10772. # linking a shared library.
  10773. #
  10774. # There doesn't appear to be a way to prevent this compiler from
  10775. # explicitly linking system object files so we need to strip them
  10776. # from the output so that they don't get included in the library
  10777. # dependencies.
  10778. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10779. ;;
  10780. *)
  10781. if test "$GXX" = yes; then
  10782. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10783. else
  10784. # FIXME: insert proper C++ library support
  10785. ld_shlibs_CXX=no
  10786. fi
  10787. ;;
  10788. esac
  10789. ;;
  10790. hpux10*|hpux11*)
  10791. if test $with_gnu_ld = no; then
  10792. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10793. hardcode_libdir_separator_CXX=:
  10794. case $host_cpu in
  10795. hppa*64*|ia64*)
  10796. ;;
  10797. *)
  10798. export_dynamic_flag_spec_CXX='${wl}-E'
  10799. ;;
  10800. esac
  10801. fi
  10802. case $host_cpu in
  10803. hppa*64*|ia64*)
  10804. hardcode_direct_CXX=no
  10805. hardcode_shlibpath_var_CXX=no
  10806. ;;
  10807. *)
  10808. hardcode_direct_CXX=yes
  10809. hardcode_direct_absolute_CXX=yes
  10810. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10811. # but as the default
  10812. # location of the library.
  10813. ;;
  10814. esac
  10815. case $cc_basename in
  10816. CC*)
  10817. # FIXME: insert proper C++ library support
  10818. ld_shlibs_CXX=no
  10819. ;;
  10820. aCC*)
  10821. case $host_cpu in
  10822. hppa*64*)
  10823. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10824. ;;
  10825. ia64*)
  10826. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10827. ;;
  10828. *)
  10829. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10830. ;;
  10831. esac
  10832. # Commands to make compiler produce verbose output that lists
  10833. # what "hidden" libraries, object files and flags are used when
  10834. # linking a shared library.
  10835. #
  10836. # There doesn't appear to be a way to prevent this compiler from
  10837. # explicitly linking system object files so we need to strip them
  10838. # from the output so that they don't get included in the library
  10839. # dependencies.
  10840. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10841. ;;
  10842. *)
  10843. if test "$GXX" = yes; then
  10844. if test $with_gnu_ld = no; then
  10845. case $host_cpu in
  10846. hppa*64*)
  10847. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10848. ;;
  10849. ia64*)
  10850. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10851. ;;
  10852. *)
  10853. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10854. ;;
  10855. esac
  10856. fi
  10857. else
  10858. # FIXME: insert proper C++ library support
  10859. ld_shlibs_CXX=no
  10860. fi
  10861. ;;
  10862. esac
  10863. ;;
  10864. interix[3-9]*)
  10865. hardcode_direct_CXX=no
  10866. hardcode_shlibpath_var_CXX=no
  10867. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10868. export_dynamic_flag_spec_CXX='${wl}-E'
  10869. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10870. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10871. # default) and relocated if they conflict, which is a slow very memory
  10872. # consuming and fragmenting process. To avoid this, we pick a random,
  10873. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10874. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10875. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10876. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10877. ;;
  10878. irix5* | irix6*)
  10879. case $cc_basename in
  10880. CC*)
  10881. # SGI C++
  10882. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10883. # Archives containing C++ object files must be created using
  10884. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10885. # necessary to make sure instantiated templates are included
  10886. # in the archive.
  10887. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10888. ;;
  10889. *)
  10890. if test "$GXX" = yes; then
  10891. if test "$with_gnu_ld" = no; then
  10892. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10893. else
  10894. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  10895. fi
  10896. fi
  10897. link_all_deplibs_CXX=yes
  10898. ;;
  10899. esac
  10900. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10901. hardcode_libdir_separator_CXX=:
  10902. inherit_rpath_CXX=yes
  10903. ;;
  10904. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10905. case $cc_basename in
  10906. KCC*)
  10907. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10908. # KCC will only create a shared library if the output file
  10909. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10910. # to its proper name (with version) after linking.
  10911. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10912. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10913. # Commands to make compiler produce verbose output that lists
  10914. # what "hidden" libraries, object files and flags are used when
  10915. # linking a shared library.
  10916. #
  10917. # There doesn't appear to be a way to prevent this compiler from
  10918. # explicitly linking system object files so we need to strip them
  10919. # from the output so that they don't get included in the library
  10920. # dependencies.
  10921. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10922. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10923. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10924. # Archives containing C++ object files must be created using
  10925. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10926. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10927. ;;
  10928. icpc* | ecpc* )
  10929. # Intel C++
  10930. with_gnu_ld=yes
  10931. # version 8.0 and above of icpc choke on multiply defined symbols
  10932. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10933. # earlier do not add the objects themselves.
  10934. case `$CC -V 2>&1` in
  10935. *"Version 7."*)
  10936. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10937. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10938. ;;
  10939. *) # Version 8.0 or newer
  10940. tmp_idyn=
  10941. case $host_cpu in
  10942. ia64*) tmp_idyn=' -i_dynamic';;
  10943. esac
  10944. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10945. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10946. ;;
  10947. esac
  10948. archive_cmds_need_lc_CXX=no
  10949. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10950. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10951. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10952. ;;
  10953. pgCC* | pgcpp*)
  10954. # Portland Group C++ compiler
  10955. case `$CC -V` in
  10956. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10957. prelink_cmds_CXX='tpldir=Template.dir~
  10958. rm -rf $tpldir~
  10959. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10960. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10961. old_archive_cmds_CXX='tpldir=Template.dir~
  10962. rm -rf $tpldir~
  10963. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10964. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10965. $RANLIB $oldlib'
  10966. archive_cmds_CXX='tpldir=Template.dir~
  10967. rm -rf $tpldir~
  10968. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10969. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10970. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10971. rm -rf $tpldir~
  10972. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10973. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10974. ;;
  10975. *) # Version 6 and above use weak symbols
  10976. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10977. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10978. ;;
  10979. esac
  10980. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10981. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10982. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10983. ;;
  10984. cxx*)
  10985. # Compaq C++
  10986. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10987. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10988. runpath_var=LD_RUN_PATH
  10989. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10990. hardcode_libdir_separator_CXX=:
  10991. # Commands to make compiler produce verbose output that lists
  10992. # what "hidden" libraries, object files and flags are used when
  10993. # linking a shared library.
  10994. #
  10995. # There doesn't appear to be a way to prevent this compiler from
  10996. # explicitly linking system object files so we need to strip them
  10997. # from the output so that they don't get included in the library
  10998. # dependencies.
  10999. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11000. ;;
  11001. xl* | mpixl* | bgxl*)
  11002. # IBM XL 8.0 on PPC, with GNU ld
  11003. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11004. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11005. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11006. if test "x$supports_anon_versioning" = xyes; then
  11007. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11008. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11009. echo "local: *; };" >> $output_objdir/$libname.ver~
  11010. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11011. fi
  11012. ;;
  11013. *)
  11014. case `$CC -V 2>&1 | sed 5q` in
  11015. *Sun\ C*)
  11016. # Sun C++ 5.9
  11017. no_undefined_flag_CXX=' -zdefs'
  11018. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11019. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11020. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11021. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11022. compiler_needs_object_CXX=yes
  11023. # Not sure whether something based on
  11024. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11025. # would be better.
  11026. output_verbose_link_cmd='func_echo_all'
  11027. # Archives containing C++ object files must be created using
  11028. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11029. # necessary to make sure instantiated templates are included
  11030. # in the archive.
  11031. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11032. ;;
  11033. esac
  11034. ;;
  11035. esac
  11036. ;;
  11037. lynxos*)
  11038. # FIXME: insert proper C++ library support
  11039. ld_shlibs_CXX=no
  11040. ;;
  11041. m88k*)
  11042. # FIXME: insert proper C++ library support
  11043. ld_shlibs_CXX=no
  11044. ;;
  11045. mvs*)
  11046. case $cc_basename in
  11047. cxx*)
  11048. # FIXME: insert proper C++ library support
  11049. ld_shlibs_CXX=no
  11050. ;;
  11051. *)
  11052. # FIXME: insert proper C++ library support
  11053. ld_shlibs_CXX=no
  11054. ;;
  11055. esac
  11056. ;;
  11057. netbsd*)
  11058. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11059. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11060. wlarc=
  11061. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11062. hardcode_direct_CXX=yes
  11063. hardcode_shlibpath_var_CXX=no
  11064. fi
  11065. # Workaround some broken pre-1.5 toolchains
  11066. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11067. ;;
  11068. *nto* | *qnx*)
  11069. ld_shlibs_CXX=yes
  11070. ;;
  11071. openbsd2*)
  11072. # C++ shared libraries are fairly broken
  11073. ld_shlibs_CXX=no
  11074. ;;
  11075. openbsd*)
  11076. if test -f /usr/libexec/ld.so; then
  11077. hardcode_direct_CXX=yes
  11078. hardcode_shlibpath_var_CXX=no
  11079. hardcode_direct_absolute_CXX=yes
  11080. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11081. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11082. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11083. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11084. export_dynamic_flag_spec_CXX='${wl}-E'
  11085. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11086. fi
  11087. output_verbose_link_cmd=func_echo_all
  11088. else
  11089. ld_shlibs_CXX=no
  11090. fi
  11091. ;;
  11092. osf3* | osf4* | osf5*)
  11093. case $cc_basename in
  11094. KCC*)
  11095. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11096. # KCC will only create a shared library if the output file
  11097. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11098. # to its proper name (with version) after linking.
  11099. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11100. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11101. hardcode_libdir_separator_CXX=:
  11102. # Archives containing C++ object files must be created using
  11103. # the KAI C++ compiler.
  11104. case $host in
  11105. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11106. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11107. esac
  11108. ;;
  11109. RCC*)
  11110. # Rational C++ 2.4.1
  11111. # FIXME: insert proper C++ library support
  11112. ld_shlibs_CXX=no
  11113. ;;
  11114. cxx*)
  11115. case $host in
  11116. osf3*)
  11117. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11118. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11119. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11120. ;;
  11121. *)
  11122. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11123. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11124. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11125. echo "-hidden">> $lib.exp~
  11126. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11127. $RM $lib.exp'
  11128. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11129. ;;
  11130. esac
  11131. hardcode_libdir_separator_CXX=:
  11132. # Commands to make compiler produce verbose output that lists
  11133. # what "hidden" libraries, object files and flags are used when
  11134. # linking a shared library.
  11135. #
  11136. # There doesn't appear to be a way to prevent this compiler from
  11137. # explicitly linking system object files so we need to strip them
  11138. # from the output so that they don't get included in the library
  11139. # dependencies.
  11140. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11141. ;;
  11142. *)
  11143. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11144. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11145. case $host in
  11146. osf3*)
  11147. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11148. ;;
  11149. *)
  11150. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11151. ;;
  11152. esac
  11153. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11154. hardcode_libdir_separator_CXX=:
  11155. # Commands to make compiler produce verbose output that lists
  11156. # what "hidden" libraries, object files and flags are used when
  11157. # linking a shared library.
  11158. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11159. else
  11160. # FIXME: insert proper C++ library support
  11161. ld_shlibs_CXX=no
  11162. fi
  11163. ;;
  11164. esac
  11165. ;;
  11166. psos*)
  11167. # FIXME: insert proper C++ library support
  11168. ld_shlibs_CXX=no
  11169. ;;
  11170. sunos4*)
  11171. case $cc_basename in
  11172. CC*)
  11173. # Sun C++ 4.x
  11174. # FIXME: insert proper C++ library support
  11175. ld_shlibs_CXX=no
  11176. ;;
  11177. lcc*)
  11178. # Lucid
  11179. # FIXME: insert proper C++ library support
  11180. ld_shlibs_CXX=no
  11181. ;;
  11182. *)
  11183. # FIXME: insert proper C++ library support
  11184. ld_shlibs_CXX=no
  11185. ;;
  11186. esac
  11187. ;;
  11188. solaris*)
  11189. case $cc_basename in
  11190. CC* | sunCC*)
  11191. # Sun C++ 4.2, 5.x and Centerline C++
  11192. archive_cmds_need_lc_CXX=yes
  11193. no_undefined_flag_CXX=' -zdefs'
  11194. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11195. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11196. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11197. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11198. hardcode_shlibpath_var_CXX=no
  11199. case $host_os in
  11200. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11201. *)
  11202. # The compiler driver will combine and reorder linker options,
  11203. # but understands `-z linker_flag'.
  11204. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11205. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11206. ;;
  11207. esac
  11208. link_all_deplibs_CXX=yes
  11209. output_verbose_link_cmd='func_echo_all'
  11210. # Archives containing C++ object files must be created using
  11211. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11212. # necessary to make sure instantiated templates are included
  11213. # in the archive.
  11214. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11215. ;;
  11216. gcx*)
  11217. # Green Hills C++ Compiler
  11218. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11219. # The C++ compiler must be used to create the archive.
  11220. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11221. ;;
  11222. *)
  11223. # GNU C++ compiler with Solaris linker
  11224. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11225. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11226. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11227. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11228. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11229. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11230. # Commands to make compiler produce verbose output that lists
  11231. # what "hidden" libraries, object files and flags are used when
  11232. # linking a shared library.
  11233. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11234. else
  11235. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11236. # platform.
  11237. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11238. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11239. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11240. # Commands to make compiler produce verbose output that lists
  11241. # what "hidden" libraries, object files and flags are used when
  11242. # linking a shared library.
  11243. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11244. fi
  11245. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11246. case $host_os in
  11247. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11248. *)
  11249. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11250. ;;
  11251. esac
  11252. fi
  11253. ;;
  11254. esac
  11255. ;;
  11256. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11257. no_undefined_flag_CXX='${wl}-z,text'
  11258. archive_cmds_need_lc_CXX=no
  11259. hardcode_shlibpath_var_CXX=no
  11260. runpath_var='LD_RUN_PATH'
  11261. case $cc_basename in
  11262. CC*)
  11263. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11264. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11265. ;;
  11266. *)
  11267. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11268. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11269. ;;
  11270. esac
  11271. ;;
  11272. sysv5* | sco3.2v5* | sco5v6*)
  11273. # Note: We can NOT use -z defs as we might desire, because we do not
  11274. # link with -lc, and that would cause any symbols used from libc to
  11275. # always be unresolved, which means just about no library would
  11276. # ever link correctly. If we're not using GNU ld we use -z text
  11277. # though, which does catch some bad symbols but isn't as heavy-handed
  11278. # as -z defs.
  11279. no_undefined_flag_CXX='${wl}-z,text'
  11280. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11281. archive_cmds_need_lc_CXX=no
  11282. hardcode_shlibpath_var_CXX=no
  11283. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11284. hardcode_libdir_separator_CXX=':'
  11285. link_all_deplibs_CXX=yes
  11286. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11287. runpath_var='LD_RUN_PATH'
  11288. case $cc_basename in
  11289. CC*)
  11290. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11291. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11292. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11293. '"$old_archive_cmds_CXX"
  11294. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11295. '"$reload_cmds_CXX"
  11296. ;;
  11297. *)
  11298. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11299. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11300. ;;
  11301. esac
  11302. ;;
  11303. tandem*)
  11304. case $cc_basename in
  11305. NCC*)
  11306. # NonStop-UX NCC 3.20
  11307. # FIXME: insert proper C++ library support
  11308. ld_shlibs_CXX=no
  11309. ;;
  11310. *)
  11311. # FIXME: insert proper C++ library support
  11312. ld_shlibs_CXX=no
  11313. ;;
  11314. esac
  11315. ;;
  11316. vxworks*)
  11317. # FIXME: insert proper C++ library support
  11318. ld_shlibs_CXX=no
  11319. ;;
  11320. *)
  11321. # FIXME: insert proper C++ library support
  11322. ld_shlibs_CXX=no
  11323. ;;
  11324. esac
  11325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11326. $as_echo "$ld_shlibs_CXX" >&6; }
  11327. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11328. GCC_CXX="$GXX"
  11329. LD_CXX="$LD"
  11330. ## CAVEAT EMPTOR:
  11331. ## There is no encapsulation within the following macros, do not change
  11332. ## the running order or otherwise move them around unless you know exactly
  11333. ## what you are doing...
  11334. # Dependencies to place before and after the object being linked:
  11335. predep_objects_CXX=
  11336. postdep_objects_CXX=
  11337. predeps_CXX=
  11338. postdeps_CXX=
  11339. compiler_lib_search_path_CXX=
  11340. cat > conftest.$ac_ext <<_LT_EOF
  11341. class Foo
  11342. {
  11343. public:
  11344. Foo (void) { a = 0; }
  11345. private:
  11346. int a;
  11347. };
  11348. _LT_EOF
  11349. _lt_libdeps_save_CFLAGS=$CFLAGS
  11350. case "$CC $CFLAGS " in #(
  11351. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11352. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11353. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11354. esac
  11355. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11356. (eval $ac_compile) 2>&5
  11357. ac_status=$?
  11358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11359. test $ac_status = 0; }; then
  11360. # Parse the compiler output and extract the necessary
  11361. # objects, libraries and library flags.
  11362. # Sentinel used to keep track of whether or not we are before
  11363. # the conftest object file.
  11364. pre_test_object_deps_done=no
  11365. for p in `eval "$output_verbose_link_cmd"`; do
  11366. case ${prev}${p} in
  11367. -L* | -R* | -l*)
  11368. # Some compilers place space between "-{L,R}" and the path.
  11369. # Remove the space.
  11370. if test $p = "-L" ||
  11371. test $p = "-R"; then
  11372. prev=$p
  11373. continue
  11374. fi
  11375. # Expand the sysroot to ease extracting the directories later.
  11376. if test -z "$prev"; then
  11377. case $p in
  11378. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11379. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11380. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11381. esac
  11382. fi
  11383. case $p in
  11384. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11385. esac
  11386. if test "$pre_test_object_deps_done" = no; then
  11387. case ${prev} in
  11388. -L | -R)
  11389. # Internal compiler library paths should come after those
  11390. # provided the user. The postdeps already come after the
  11391. # user supplied libs so there is no need to process them.
  11392. if test -z "$compiler_lib_search_path_CXX"; then
  11393. compiler_lib_search_path_CXX="${prev}${p}"
  11394. else
  11395. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11396. fi
  11397. ;;
  11398. # The "-l" case would never come before the object being
  11399. # linked, so don't bother handling this case.
  11400. esac
  11401. else
  11402. if test -z "$postdeps_CXX"; then
  11403. postdeps_CXX="${prev}${p}"
  11404. else
  11405. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11406. fi
  11407. fi
  11408. prev=
  11409. ;;
  11410. *.lto.$objext) ;; # Ignore GCC LTO objects
  11411. *.$objext)
  11412. # This assumes that the test object file only shows up
  11413. # once in the compiler output.
  11414. if test "$p" = "conftest.$objext"; then
  11415. pre_test_object_deps_done=yes
  11416. continue
  11417. fi
  11418. if test "$pre_test_object_deps_done" = no; then
  11419. if test -z "$predep_objects_CXX"; then
  11420. predep_objects_CXX="$p"
  11421. else
  11422. predep_objects_CXX="$predep_objects_CXX $p"
  11423. fi
  11424. else
  11425. if test -z "$postdep_objects_CXX"; then
  11426. postdep_objects_CXX="$p"
  11427. else
  11428. postdep_objects_CXX="$postdep_objects_CXX $p"
  11429. fi
  11430. fi
  11431. ;;
  11432. *) ;; # Ignore the rest.
  11433. esac
  11434. done
  11435. # Clean up.
  11436. rm -f a.out a.exe
  11437. else
  11438. echo "libtool.m4: error: problem compiling CXX test program"
  11439. fi
  11440. $RM -f confest.$objext
  11441. CFLAGS=$_lt_libdeps_save_CFLAGS
  11442. # PORTME: override above test on systems where it is broken
  11443. case $host_os in
  11444. interix[3-9]*)
  11445. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11446. # hack all around it, let's just trust "g++" to DTRT.
  11447. predep_objects_CXX=
  11448. postdep_objects_CXX=
  11449. postdeps_CXX=
  11450. ;;
  11451. linux*)
  11452. case `$CC -V 2>&1 | sed 5q` in
  11453. *Sun\ C*)
  11454. # Sun C++ 5.9
  11455. # The more standards-conforming stlport4 library is
  11456. # incompatible with the Cstd library. Avoid specifying
  11457. # it if it's in CXXFLAGS. Ignore libCrun as
  11458. # -library=stlport4 depends on it.
  11459. case " $CXX $CXXFLAGS " in
  11460. *" -library=stlport4 "*)
  11461. solaris_use_stlport4=yes
  11462. ;;
  11463. esac
  11464. if test "$solaris_use_stlport4" != yes; then
  11465. postdeps_CXX='-library=Cstd -library=Crun'
  11466. fi
  11467. ;;
  11468. esac
  11469. ;;
  11470. solaris*)
  11471. case $cc_basename in
  11472. CC* | sunCC*)
  11473. # The more standards-conforming stlport4 library is
  11474. # incompatible with the Cstd library. Avoid specifying
  11475. # it if it's in CXXFLAGS. Ignore libCrun as
  11476. # -library=stlport4 depends on it.
  11477. case " $CXX $CXXFLAGS " in
  11478. *" -library=stlport4 "*)
  11479. solaris_use_stlport4=yes
  11480. ;;
  11481. esac
  11482. # Adding this requires a known-good setup of shared libraries for
  11483. # Sun compiler versions before 5.6, else PIC objects from an old
  11484. # archive will be linked into the output, leading to subtle bugs.
  11485. if test "$solaris_use_stlport4" != yes; then
  11486. postdeps_CXX='-library=Cstd -library=Crun'
  11487. fi
  11488. ;;
  11489. esac
  11490. ;;
  11491. esac
  11492. case " $postdeps_CXX " in
  11493. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11494. esac
  11495. compiler_lib_search_dirs_CXX=
  11496. if test -n "${compiler_lib_search_path_CXX}"; then
  11497. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11498. fi
  11499. lt_prog_compiler_wl_CXX=
  11500. lt_prog_compiler_pic_CXX=
  11501. lt_prog_compiler_static_CXX=
  11502. # C++ specific cases for pic, static, wl, etc.
  11503. if test "$GXX" = yes; then
  11504. lt_prog_compiler_wl_CXX='-Wl,'
  11505. lt_prog_compiler_static_CXX='-static'
  11506. case $host_os in
  11507. aix*)
  11508. # All AIX code is PIC.
  11509. if test "$host_cpu" = ia64; then
  11510. # AIX 5 now supports IA64 processor
  11511. lt_prog_compiler_static_CXX='-Bstatic'
  11512. fi
  11513. ;;
  11514. amigaos*)
  11515. case $host_cpu in
  11516. powerpc)
  11517. # see comment about AmigaOS4 .so support
  11518. lt_prog_compiler_pic_CXX='-fPIC'
  11519. ;;
  11520. m68k)
  11521. # FIXME: we need at least 68020 code to build shared libraries, but
  11522. # adding the `-m68020' flag to GCC prevents building anything better,
  11523. # like `-m68040'.
  11524. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11525. ;;
  11526. esac
  11527. ;;
  11528. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11529. # PIC is the default for these OSes.
  11530. ;;
  11531. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11532. # This hack is so that the source file can tell whether it is being
  11533. # built for inclusion in a dll (and should export symbols for example).
  11534. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11535. # (--disable-auto-import) libraries
  11536. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11537. ;;
  11538. darwin* | rhapsody*)
  11539. # PIC is the default on this platform
  11540. # Common symbols not allowed in MH_DYLIB files
  11541. lt_prog_compiler_pic_CXX='-fno-common'
  11542. ;;
  11543. *djgpp*)
  11544. # DJGPP does not support shared libraries at all
  11545. lt_prog_compiler_pic_CXX=
  11546. ;;
  11547. haiku*)
  11548. # PIC is the default for Haiku.
  11549. # The "-static" flag exists, but is broken.
  11550. lt_prog_compiler_static_CXX=
  11551. ;;
  11552. interix[3-9]*)
  11553. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11554. # Instead, we relocate shared libraries at runtime.
  11555. ;;
  11556. sysv4*MP*)
  11557. if test -d /usr/nec; then
  11558. lt_prog_compiler_pic_CXX=-Kconform_pic
  11559. fi
  11560. ;;
  11561. hpux*)
  11562. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11563. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11564. # sets the default TLS model and affects inlining.
  11565. case $host_cpu in
  11566. hppa*64*)
  11567. ;;
  11568. *)
  11569. lt_prog_compiler_pic_CXX='-fPIC'
  11570. ;;
  11571. esac
  11572. ;;
  11573. *qnx* | *nto*)
  11574. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11575. # it will coredump.
  11576. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11577. ;;
  11578. *)
  11579. lt_prog_compiler_pic_CXX='-fPIC'
  11580. ;;
  11581. esac
  11582. else
  11583. case $host_os in
  11584. aix[4-9]*)
  11585. # All AIX code is PIC.
  11586. if test "$host_cpu" = ia64; then
  11587. # AIX 5 now supports IA64 processor
  11588. lt_prog_compiler_static_CXX='-Bstatic'
  11589. else
  11590. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11591. fi
  11592. ;;
  11593. chorus*)
  11594. case $cc_basename in
  11595. cxch68*)
  11596. # Green Hills C++ Compiler
  11597. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11598. ;;
  11599. esac
  11600. ;;
  11601. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11602. # This hack is so that the source file can tell whether it is being
  11603. # built for inclusion in a dll (and should export symbols for example).
  11604. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11605. ;;
  11606. dgux*)
  11607. case $cc_basename in
  11608. ec++*)
  11609. lt_prog_compiler_pic_CXX='-KPIC'
  11610. ;;
  11611. ghcx*)
  11612. # Green Hills C++ Compiler
  11613. lt_prog_compiler_pic_CXX='-pic'
  11614. ;;
  11615. *)
  11616. ;;
  11617. esac
  11618. ;;
  11619. freebsd* | dragonfly*)
  11620. # FreeBSD uses GNU C++
  11621. ;;
  11622. hpux9* | hpux10* | hpux11*)
  11623. case $cc_basename in
  11624. CC*)
  11625. lt_prog_compiler_wl_CXX='-Wl,'
  11626. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11627. if test "$host_cpu" != ia64; then
  11628. lt_prog_compiler_pic_CXX='+Z'
  11629. fi
  11630. ;;
  11631. aCC*)
  11632. lt_prog_compiler_wl_CXX='-Wl,'
  11633. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11634. case $host_cpu in
  11635. hppa*64*|ia64*)
  11636. # +Z the default
  11637. ;;
  11638. *)
  11639. lt_prog_compiler_pic_CXX='+Z'
  11640. ;;
  11641. esac
  11642. ;;
  11643. *)
  11644. ;;
  11645. esac
  11646. ;;
  11647. interix*)
  11648. # This is c89, which is MS Visual C++ (no shared libs)
  11649. # Anyone wants to do a port?
  11650. ;;
  11651. irix5* | irix6* | nonstopux*)
  11652. case $cc_basename in
  11653. CC*)
  11654. lt_prog_compiler_wl_CXX='-Wl,'
  11655. lt_prog_compiler_static_CXX='-non_shared'
  11656. # CC pic flag -KPIC is the default.
  11657. ;;
  11658. *)
  11659. ;;
  11660. esac
  11661. ;;
  11662. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11663. case $cc_basename in
  11664. KCC*)
  11665. # KAI C++ Compiler
  11666. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11667. lt_prog_compiler_pic_CXX='-fPIC'
  11668. ;;
  11669. ecpc* )
  11670. # old Intel C++ for x86_64 which still supported -KPIC.
  11671. lt_prog_compiler_wl_CXX='-Wl,'
  11672. lt_prog_compiler_pic_CXX='-KPIC'
  11673. lt_prog_compiler_static_CXX='-static'
  11674. ;;
  11675. icpc* )
  11676. # Intel C++, used to be incompatible with GCC.
  11677. # ICC 10 doesn't accept -KPIC any more.
  11678. lt_prog_compiler_wl_CXX='-Wl,'
  11679. lt_prog_compiler_pic_CXX='-fPIC'
  11680. lt_prog_compiler_static_CXX='-static'
  11681. ;;
  11682. pgCC* | pgcpp*)
  11683. # Portland Group C++ compiler
  11684. lt_prog_compiler_wl_CXX='-Wl,'
  11685. lt_prog_compiler_pic_CXX='-fpic'
  11686. lt_prog_compiler_static_CXX='-Bstatic'
  11687. ;;
  11688. cxx*)
  11689. # Compaq C++
  11690. # Make sure the PIC flag is empty. It appears that all Alpha
  11691. # Linux and Compaq Tru64 Unix objects are PIC.
  11692. lt_prog_compiler_pic_CXX=
  11693. lt_prog_compiler_static_CXX='-non_shared'
  11694. ;;
  11695. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11696. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11697. lt_prog_compiler_wl_CXX='-Wl,'
  11698. lt_prog_compiler_pic_CXX='-qpic'
  11699. lt_prog_compiler_static_CXX='-qstaticlink'
  11700. ;;
  11701. *)
  11702. case `$CC -V 2>&1 | sed 5q` in
  11703. *Sun\ C*)
  11704. # Sun C++ 5.9
  11705. lt_prog_compiler_pic_CXX='-KPIC'
  11706. lt_prog_compiler_static_CXX='-Bstatic'
  11707. lt_prog_compiler_wl_CXX='-Qoption ld '
  11708. ;;
  11709. esac
  11710. ;;
  11711. esac
  11712. ;;
  11713. lynxos*)
  11714. ;;
  11715. m88k*)
  11716. ;;
  11717. mvs*)
  11718. case $cc_basename in
  11719. cxx*)
  11720. lt_prog_compiler_pic_CXX='-W c,exportall'
  11721. ;;
  11722. *)
  11723. ;;
  11724. esac
  11725. ;;
  11726. netbsd* | netbsdelf*-gnu)
  11727. ;;
  11728. *qnx* | *nto*)
  11729. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11730. # it will coredump.
  11731. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11732. ;;
  11733. osf3* | osf4* | osf5*)
  11734. case $cc_basename in
  11735. KCC*)
  11736. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11737. ;;
  11738. RCC*)
  11739. # Rational C++ 2.4.1
  11740. lt_prog_compiler_pic_CXX='-pic'
  11741. ;;
  11742. cxx*)
  11743. # Digital/Compaq C++
  11744. lt_prog_compiler_wl_CXX='-Wl,'
  11745. # Make sure the PIC flag is empty. It appears that all Alpha
  11746. # Linux and Compaq Tru64 Unix objects are PIC.
  11747. lt_prog_compiler_pic_CXX=
  11748. lt_prog_compiler_static_CXX='-non_shared'
  11749. ;;
  11750. *)
  11751. ;;
  11752. esac
  11753. ;;
  11754. psos*)
  11755. ;;
  11756. solaris*)
  11757. case $cc_basename in
  11758. CC* | sunCC*)
  11759. # Sun C++ 4.2, 5.x and Centerline C++
  11760. lt_prog_compiler_pic_CXX='-KPIC'
  11761. lt_prog_compiler_static_CXX='-Bstatic'
  11762. lt_prog_compiler_wl_CXX='-Qoption ld '
  11763. ;;
  11764. gcx*)
  11765. # Green Hills C++ Compiler
  11766. lt_prog_compiler_pic_CXX='-PIC'
  11767. ;;
  11768. *)
  11769. ;;
  11770. esac
  11771. ;;
  11772. sunos4*)
  11773. case $cc_basename in
  11774. CC*)
  11775. # Sun C++ 4.x
  11776. lt_prog_compiler_pic_CXX='-pic'
  11777. lt_prog_compiler_static_CXX='-Bstatic'
  11778. ;;
  11779. lcc*)
  11780. # Lucid
  11781. lt_prog_compiler_pic_CXX='-pic'
  11782. ;;
  11783. *)
  11784. ;;
  11785. esac
  11786. ;;
  11787. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11788. case $cc_basename in
  11789. CC*)
  11790. lt_prog_compiler_wl_CXX='-Wl,'
  11791. lt_prog_compiler_pic_CXX='-KPIC'
  11792. lt_prog_compiler_static_CXX='-Bstatic'
  11793. ;;
  11794. esac
  11795. ;;
  11796. tandem*)
  11797. case $cc_basename in
  11798. NCC*)
  11799. # NonStop-UX NCC 3.20
  11800. lt_prog_compiler_pic_CXX='-KPIC'
  11801. ;;
  11802. *)
  11803. ;;
  11804. esac
  11805. ;;
  11806. vxworks*)
  11807. ;;
  11808. *)
  11809. lt_prog_compiler_can_build_shared_CXX=no
  11810. ;;
  11811. esac
  11812. fi
  11813. case $host_os in
  11814. # For platforms which do not support PIC, -DPIC is meaningless:
  11815. *djgpp*)
  11816. lt_prog_compiler_pic_CXX=
  11817. ;;
  11818. *)
  11819. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11820. ;;
  11821. esac
  11822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11823. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11824. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  11825. $as_echo_n "(cached) " >&6
  11826. else
  11827. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11828. fi
  11829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11830. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11831. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11832. #
  11833. # Check to make sure the PIC flag actually works.
  11834. #
  11835. if test -n "$lt_prog_compiler_pic_CXX"; then
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11837. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11838. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11839. $as_echo_n "(cached) " >&6
  11840. else
  11841. lt_cv_prog_compiler_pic_works_CXX=no
  11842. ac_outfile=conftest.$ac_objext
  11843. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11844. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11845. # Insert the option either (1) after the last *FLAGS variable, or
  11846. # (2) before a word containing "conftest.", or (3) at the end.
  11847. # Note that $ac_compile itself does not contain backslashes and begins
  11848. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11849. # The option is referenced via a variable to avoid confusing sed.
  11850. lt_compile=`echo "$ac_compile" | $SED \
  11851. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11852. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11853. -e 's:$: $lt_compiler_flag:'`
  11854. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11855. (eval "$lt_compile" 2>conftest.err)
  11856. ac_status=$?
  11857. cat conftest.err >&5
  11858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11859. if (exit $ac_status) && test -s "$ac_outfile"; then
  11860. # The compiler can only warn and ignore the option if not recognized
  11861. # So say no if there are warnings other than the usual output.
  11862. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11863. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11864. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11865. lt_cv_prog_compiler_pic_works_CXX=yes
  11866. fi
  11867. fi
  11868. $RM conftest*
  11869. fi
  11870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11871. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11872. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11873. case $lt_prog_compiler_pic_CXX in
  11874. "" | " "*) ;;
  11875. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11876. esac
  11877. else
  11878. lt_prog_compiler_pic_CXX=
  11879. lt_prog_compiler_can_build_shared_CXX=no
  11880. fi
  11881. fi
  11882. #
  11883. # Check to make sure the static flag actually works.
  11884. #
  11885. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11887. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11888. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11889. $as_echo_n "(cached) " >&6
  11890. else
  11891. lt_cv_prog_compiler_static_works_CXX=no
  11892. save_LDFLAGS="$LDFLAGS"
  11893. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11894. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11895. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11896. # The linker can only warn and ignore the option if not recognized
  11897. # So say no if there are warnings
  11898. if test -s conftest.err; then
  11899. # Append any errors to the config.log.
  11900. cat conftest.err 1>&5
  11901. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11902. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11903. if diff conftest.exp conftest.er2 >/dev/null; then
  11904. lt_cv_prog_compiler_static_works_CXX=yes
  11905. fi
  11906. else
  11907. lt_cv_prog_compiler_static_works_CXX=yes
  11908. fi
  11909. fi
  11910. $RM -r conftest*
  11911. LDFLAGS="$save_LDFLAGS"
  11912. fi
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11914. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11915. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11916. :
  11917. else
  11918. lt_prog_compiler_static_CXX=
  11919. fi
  11920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11921. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11922. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11923. $as_echo_n "(cached) " >&6
  11924. else
  11925. lt_cv_prog_compiler_c_o_CXX=no
  11926. $RM -r conftest 2>/dev/null
  11927. mkdir conftest
  11928. cd conftest
  11929. mkdir out
  11930. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11931. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11932. # Insert the option either (1) after the last *FLAGS variable, or
  11933. # (2) before a word containing "conftest.", or (3) at the end.
  11934. # Note that $ac_compile itself does not contain backslashes and begins
  11935. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11936. lt_compile=`echo "$ac_compile" | $SED \
  11937. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11938. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11939. -e 's:$: $lt_compiler_flag:'`
  11940. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11941. (eval "$lt_compile" 2>out/conftest.err)
  11942. ac_status=$?
  11943. cat out/conftest.err >&5
  11944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11945. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11946. then
  11947. # The compiler can only warn and ignore the option if not recognized
  11948. # So say no if there are warnings
  11949. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11950. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11951. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11952. lt_cv_prog_compiler_c_o_CXX=yes
  11953. fi
  11954. fi
  11955. chmod u+w . 2>&5
  11956. $RM conftest*
  11957. # SGI C++ compiler will create directory out/ii_files/ for
  11958. # template instantiation
  11959. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11960. $RM out/* && rmdir out
  11961. cd ..
  11962. $RM -r conftest
  11963. $RM conftest*
  11964. fi
  11965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11966. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11968. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11969. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11970. $as_echo_n "(cached) " >&6
  11971. else
  11972. lt_cv_prog_compiler_c_o_CXX=no
  11973. $RM -r conftest 2>/dev/null
  11974. mkdir conftest
  11975. cd conftest
  11976. mkdir out
  11977. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11978. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11979. # Insert the option either (1) after the last *FLAGS variable, or
  11980. # (2) before a word containing "conftest.", or (3) at the end.
  11981. # Note that $ac_compile itself does not contain backslashes and begins
  11982. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11983. lt_compile=`echo "$ac_compile" | $SED \
  11984. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11985. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11986. -e 's:$: $lt_compiler_flag:'`
  11987. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11988. (eval "$lt_compile" 2>out/conftest.err)
  11989. ac_status=$?
  11990. cat out/conftest.err >&5
  11991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11992. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11993. then
  11994. # The compiler can only warn and ignore the option if not recognized
  11995. # So say no if there are warnings
  11996. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11997. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11998. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11999. lt_cv_prog_compiler_c_o_CXX=yes
  12000. fi
  12001. fi
  12002. chmod u+w . 2>&5
  12003. $RM conftest*
  12004. # SGI C++ compiler will create directory out/ii_files/ for
  12005. # template instantiation
  12006. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12007. $RM out/* && rmdir out
  12008. cd ..
  12009. $RM -r conftest
  12010. $RM conftest*
  12011. fi
  12012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12013. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12014. hard_links="nottested"
  12015. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12016. # do not overwrite the value of need_locks provided by the user
  12017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12018. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12019. hard_links=yes
  12020. $RM conftest*
  12021. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12022. touch conftest.a
  12023. ln conftest.a conftest.b 2>&5 || hard_links=no
  12024. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12026. $as_echo "$hard_links" >&6; }
  12027. if test "$hard_links" = no; then
  12028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12029. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12030. need_locks=warn
  12031. fi
  12032. else
  12033. need_locks=no
  12034. fi
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12036. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12037. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12038. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12039. case $host_os in
  12040. aix[4-9]*)
  12041. # If we're using GNU nm, then we don't want the "-C" option.
  12042. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12043. # Also, AIX nm treats weak defined symbols like other global defined
  12044. # symbols, whereas GNU nm marks them as "W".
  12045. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12046. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12047. else
  12048. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12049. fi
  12050. ;;
  12051. pw32*)
  12052. export_symbols_cmds_CXX="$ltdll_cmds"
  12053. ;;
  12054. cygwin* | mingw* | cegcc*)
  12055. case $cc_basename in
  12056. cl*)
  12057. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12058. ;;
  12059. *)
  12060. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12061. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12062. ;;
  12063. esac
  12064. ;;
  12065. linux* | k*bsd*-gnu | gnu*)
  12066. link_all_deplibs_CXX=no
  12067. ;;
  12068. *)
  12069. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12070. ;;
  12071. esac
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12073. $as_echo "$ld_shlibs_CXX" >&6; }
  12074. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12075. with_gnu_ld_CXX=$with_gnu_ld
  12076. #
  12077. # Do we need to explicitly link libc?
  12078. #
  12079. case "x$archive_cmds_need_lc_CXX" in
  12080. x|xyes)
  12081. # Assume -lc should be added
  12082. archive_cmds_need_lc_CXX=yes
  12083. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12084. case $archive_cmds_CXX in
  12085. *'~'*)
  12086. # FIXME: we may have to deal with multi-command sequences.
  12087. ;;
  12088. '$CC '*)
  12089. # Test whether the compiler implicitly links with -lc since on some
  12090. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12091. # to ld, don't add -lc before -lgcc.
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12093. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12094. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12095. $as_echo_n "(cached) " >&6
  12096. else
  12097. $RM conftest*
  12098. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12099. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12100. (eval $ac_compile) 2>&5
  12101. ac_status=$?
  12102. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12103. test $ac_status = 0; } 2>conftest.err; then
  12104. soname=conftest
  12105. lib=conftest
  12106. libobjs=conftest.$ac_objext
  12107. deplibs=
  12108. wl=$lt_prog_compiler_wl_CXX
  12109. pic_flag=$lt_prog_compiler_pic_CXX
  12110. compiler_flags=-v
  12111. linker_flags=-v
  12112. verstring=
  12113. output_objdir=.
  12114. libname=conftest
  12115. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12116. allow_undefined_flag_CXX=
  12117. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12118. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12119. ac_status=$?
  12120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12121. test $ac_status = 0; }
  12122. then
  12123. lt_cv_archive_cmds_need_lc_CXX=no
  12124. else
  12125. lt_cv_archive_cmds_need_lc_CXX=yes
  12126. fi
  12127. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12128. else
  12129. cat conftest.err 1>&5
  12130. fi
  12131. $RM conftest*
  12132. fi
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12134. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12135. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12136. ;;
  12137. esac
  12138. fi
  12139. ;;
  12140. esac
  12141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12142. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12143. library_names_spec=
  12144. libname_spec='lib$name'
  12145. soname_spec=
  12146. shrext_cmds=".so"
  12147. postinstall_cmds=
  12148. postuninstall_cmds=
  12149. finish_cmds=
  12150. finish_eval=
  12151. shlibpath_var=
  12152. shlibpath_overrides_runpath=unknown
  12153. version_type=none
  12154. dynamic_linker="$host_os ld.so"
  12155. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12156. need_lib_prefix=unknown
  12157. hardcode_into_libs=no
  12158. # when you set need_version to no, make sure it does not cause -set_version
  12159. # flags to be left without arguments
  12160. need_version=unknown
  12161. case $host_os in
  12162. aix3*)
  12163. version_type=linux # correct to gnu/linux during the next big refactor
  12164. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12165. shlibpath_var=LIBPATH
  12166. # AIX 3 has no versioning support, so we append a major version to the name.
  12167. soname_spec='${libname}${release}${shared_ext}$major'
  12168. ;;
  12169. aix[4-9]*)
  12170. version_type=linux # correct to gnu/linux during the next big refactor
  12171. need_lib_prefix=no
  12172. need_version=no
  12173. hardcode_into_libs=yes
  12174. if test "$host_cpu" = ia64; then
  12175. # AIX 5 supports IA64
  12176. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12177. shlibpath_var=LD_LIBRARY_PATH
  12178. else
  12179. # With GCC up to 2.95.x, collect2 would create an import file
  12180. # for dependence libraries. The import file would start with
  12181. # the line `#! .'. This would cause the generated library to
  12182. # depend on `.', always an invalid library. This was fixed in
  12183. # development snapshots of GCC prior to 3.0.
  12184. case $host_os in
  12185. aix4 | aix4.[01] | aix4.[01].*)
  12186. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12187. echo ' yes '
  12188. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12189. :
  12190. else
  12191. can_build_shared=no
  12192. fi
  12193. ;;
  12194. esac
  12195. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12196. # soname into executable. Probably we can add versioning support to
  12197. # collect2, so additional links can be useful in future.
  12198. if test "$aix_use_runtimelinking" = yes; then
  12199. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12200. # instead of lib<name>.a to let people know that these are not
  12201. # typical AIX shared libraries.
  12202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12203. else
  12204. # We preserve .a as extension for shared libraries through AIX4.2
  12205. # and later when we are not doing run time linking.
  12206. library_names_spec='${libname}${release}.a $libname.a'
  12207. soname_spec='${libname}${release}${shared_ext}$major'
  12208. fi
  12209. shlibpath_var=LIBPATH
  12210. fi
  12211. ;;
  12212. amigaos*)
  12213. case $host_cpu in
  12214. powerpc)
  12215. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12216. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12218. ;;
  12219. m68k)
  12220. library_names_spec='$libname.ixlibrary $libname.a'
  12221. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12222. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  12223. ;;
  12224. esac
  12225. ;;
  12226. beos*)
  12227. library_names_spec='${libname}${shared_ext}'
  12228. dynamic_linker="$host_os ld.so"
  12229. shlibpath_var=LIBRARY_PATH
  12230. ;;
  12231. bsdi[45]*)
  12232. version_type=linux # correct to gnu/linux during the next big refactor
  12233. need_version=no
  12234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12235. soname_spec='${libname}${release}${shared_ext}$major'
  12236. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12237. shlibpath_var=LD_LIBRARY_PATH
  12238. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12239. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12240. # the default ld.so.conf also contains /usr/contrib/lib and
  12241. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12242. # libtool to hard-code these into programs
  12243. ;;
  12244. cygwin* | mingw* | pw32* | cegcc*)
  12245. version_type=windows
  12246. shrext_cmds=".dll"
  12247. need_version=no
  12248. need_lib_prefix=no
  12249. case $GCC,$cc_basename in
  12250. yes,*)
  12251. # gcc
  12252. library_names_spec='$libname.dll.a'
  12253. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12254. postinstall_cmds='base_file=`basename \${file}`~
  12255. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12256. dldir=$destdir/`dirname \$dlpath`~
  12257. test -d \$dldir || mkdir -p \$dldir~
  12258. $install_prog $dir/$dlname \$dldir/$dlname~
  12259. chmod a+x \$dldir/$dlname~
  12260. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12261. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12262. fi'
  12263. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12264. dlpath=$dir/\$dldll~
  12265. $RM \$dlpath'
  12266. shlibpath_overrides_runpath=yes
  12267. case $host_os in
  12268. cygwin*)
  12269. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12270. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12271. ;;
  12272. mingw* | cegcc*)
  12273. # MinGW DLLs use traditional 'lib' prefix
  12274. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12275. ;;
  12276. pw32*)
  12277. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12278. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12279. ;;
  12280. esac
  12281. dynamic_linker='Win32 ld.exe'
  12282. ;;
  12283. *,cl*)
  12284. # Native MSVC
  12285. libname_spec='$name'
  12286. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12287. library_names_spec='${libname}.dll.lib'
  12288. case $build_os in
  12289. mingw*)
  12290. sys_lib_search_path_spec=
  12291. lt_save_ifs=$IFS
  12292. IFS=';'
  12293. for lt_path in $LIB
  12294. do
  12295. IFS=$lt_save_ifs
  12296. # Let DOS variable expansion print the short 8.3 style file name.
  12297. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12298. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12299. done
  12300. IFS=$lt_save_ifs
  12301. # Convert to MSYS style.
  12302. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12303. ;;
  12304. cygwin*)
  12305. # Convert to unix form, then to dos form, then back to unix form
  12306. # but this time dos style (no spaces!) so that the unix form looks
  12307. # like /cygdrive/c/PROGRA~1:/cygdr...
  12308. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12309. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12310. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12311. ;;
  12312. *)
  12313. sys_lib_search_path_spec="$LIB"
  12314. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12315. # It is most probably a Windows format PATH.
  12316. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12317. else
  12318. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12319. fi
  12320. # FIXME: find the short name or the path components, as spaces are
  12321. # common. (e.g. "Program Files" -> "PROGRA~1")
  12322. ;;
  12323. esac
  12324. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12325. postinstall_cmds='base_file=`basename \${file}`~
  12326. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12327. dldir=$destdir/`dirname \$dlpath`~
  12328. test -d \$dldir || mkdir -p \$dldir~
  12329. $install_prog $dir/$dlname \$dldir/$dlname'
  12330. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12331. dlpath=$dir/\$dldll~
  12332. $RM \$dlpath'
  12333. shlibpath_overrides_runpath=yes
  12334. dynamic_linker='Win32 link.exe'
  12335. ;;
  12336. *)
  12337. # Assume MSVC wrapper
  12338. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12339. dynamic_linker='Win32 ld.exe'
  12340. ;;
  12341. esac
  12342. # FIXME: first we should search . and the directory the executable is in
  12343. shlibpath_var=PATH
  12344. ;;
  12345. darwin* | rhapsody*)
  12346. dynamic_linker="$host_os dyld"
  12347. version_type=darwin
  12348. need_lib_prefix=no
  12349. need_version=no
  12350. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12351. soname_spec='${libname}${release}${major}$shared_ext'
  12352. shlibpath_overrides_runpath=yes
  12353. shlibpath_var=DYLD_LIBRARY_PATH
  12354. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12355. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12356. ;;
  12357. dgux*)
  12358. version_type=linux # correct to gnu/linux during the next big refactor
  12359. need_lib_prefix=no
  12360. need_version=no
  12361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12362. soname_spec='${libname}${release}${shared_ext}$major'
  12363. shlibpath_var=LD_LIBRARY_PATH
  12364. ;;
  12365. freebsd* | dragonfly*)
  12366. # DragonFly does not have aout. When/if they implement a new
  12367. # versioning mechanism, adjust this.
  12368. if test -x /usr/bin/objformat; then
  12369. objformat=`/usr/bin/objformat`
  12370. else
  12371. case $host_os in
  12372. freebsd[23].*) objformat=aout ;;
  12373. *) objformat=elf ;;
  12374. esac
  12375. fi
  12376. version_type=freebsd-$objformat
  12377. case $version_type in
  12378. freebsd-elf*)
  12379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12380. need_version=no
  12381. need_lib_prefix=no
  12382. ;;
  12383. freebsd-*)
  12384. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12385. need_version=yes
  12386. ;;
  12387. esac
  12388. shlibpath_var=LD_LIBRARY_PATH
  12389. case $host_os in
  12390. freebsd2.*)
  12391. shlibpath_overrides_runpath=yes
  12392. ;;
  12393. freebsd3.[01]* | freebsdelf3.[01]*)
  12394. shlibpath_overrides_runpath=yes
  12395. hardcode_into_libs=yes
  12396. ;;
  12397. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12398. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12399. shlibpath_overrides_runpath=no
  12400. hardcode_into_libs=yes
  12401. ;;
  12402. *) # from 4.6 on, and DragonFly
  12403. shlibpath_overrides_runpath=yes
  12404. hardcode_into_libs=yes
  12405. ;;
  12406. esac
  12407. ;;
  12408. gnu*)
  12409. version_type=linux # correct to gnu/linux during the next big refactor
  12410. need_lib_prefix=no
  12411. need_version=no
  12412. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12413. soname_spec='${libname}${release}${shared_ext}$major'
  12414. shlibpath_var=LD_LIBRARY_PATH
  12415. shlibpath_overrides_runpath=no
  12416. hardcode_into_libs=yes
  12417. ;;
  12418. haiku*)
  12419. version_type=linux # correct to gnu/linux during the next big refactor
  12420. need_lib_prefix=no
  12421. need_version=no
  12422. dynamic_linker="$host_os runtime_loader"
  12423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12424. soname_spec='${libname}${release}${shared_ext}$major'
  12425. shlibpath_var=LIBRARY_PATH
  12426. shlibpath_overrides_runpath=yes
  12427. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12428. hardcode_into_libs=yes
  12429. ;;
  12430. hpux9* | hpux10* | hpux11*)
  12431. # Give a soname corresponding to the major version so that dld.sl refuses to
  12432. # link against other versions.
  12433. version_type=sunos
  12434. need_lib_prefix=no
  12435. need_version=no
  12436. case $host_cpu in
  12437. ia64*)
  12438. shrext_cmds='.so'
  12439. hardcode_into_libs=yes
  12440. dynamic_linker="$host_os dld.so"
  12441. shlibpath_var=LD_LIBRARY_PATH
  12442. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12444. soname_spec='${libname}${release}${shared_ext}$major'
  12445. if test "X$HPUX_IA64_MODE" = X32; then
  12446. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12447. else
  12448. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12449. fi
  12450. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12451. ;;
  12452. hppa*64*)
  12453. shrext_cmds='.sl'
  12454. hardcode_into_libs=yes
  12455. dynamic_linker="$host_os dld.sl"
  12456. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12457. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12459. soname_spec='${libname}${release}${shared_ext}$major'
  12460. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12461. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12462. ;;
  12463. *)
  12464. shrext_cmds='.sl'
  12465. dynamic_linker="$host_os dld.sl"
  12466. shlibpath_var=SHLIB_PATH
  12467. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12469. soname_spec='${libname}${release}${shared_ext}$major'
  12470. ;;
  12471. esac
  12472. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12473. postinstall_cmds='chmod 555 $lib'
  12474. # or fails outright, so override atomically:
  12475. install_override_mode=555
  12476. ;;
  12477. interix[3-9]*)
  12478. version_type=linux # correct to gnu/linux during the next big refactor
  12479. need_lib_prefix=no
  12480. need_version=no
  12481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12482. soname_spec='${libname}${release}${shared_ext}$major'
  12483. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12484. shlibpath_var=LD_LIBRARY_PATH
  12485. shlibpath_overrides_runpath=no
  12486. hardcode_into_libs=yes
  12487. ;;
  12488. irix5* | irix6* | nonstopux*)
  12489. case $host_os in
  12490. nonstopux*) version_type=nonstopux ;;
  12491. *)
  12492. if test "$lt_cv_prog_gnu_ld" = yes; then
  12493. version_type=linux # correct to gnu/linux during the next big refactor
  12494. else
  12495. version_type=irix
  12496. fi ;;
  12497. esac
  12498. need_lib_prefix=no
  12499. need_version=no
  12500. soname_spec='${libname}${release}${shared_ext}$major'
  12501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12502. case $host_os in
  12503. irix5* | nonstopux*)
  12504. libsuff= shlibsuff=
  12505. ;;
  12506. *)
  12507. case $LD in # libtool.m4 will add one of these switches to LD
  12508. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12509. libsuff= shlibsuff= libmagic=32-bit;;
  12510. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12511. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12512. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12513. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12514. *) libsuff= shlibsuff= libmagic=never-match;;
  12515. esac
  12516. ;;
  12517. esac
  12518. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12519. shlibpath_overrides_runpath=no
  12520. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12521. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12522. hardcode_into_libs=yes
  12523. ;;
  12524. # No shared lib support for Linux oldld, aout, or coff.
  12525. linux*oldld* | linux*aout* | linux*coff*)
  12526. dynamic_linker=no
  12527. ;;
  12528. # This must be glibc/ELF.
  12529. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12530. version_type=linux # correct to gnu/linux during the next big refactor
  12531. need_lib_prefix=no
  12532. need_version=no
  12533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12534. soname_spec='${libname}${release}${shared_ext}$major'
  12535. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12536. shlibpath_var=LD_LIBRARY_PATH
  12537. shlibpath_overrides_runpath=no
  12538. # Some binutils ld are patched to set DT_RUNPATH
  12539. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12540. $as_echo_n "(cached) " >&6
  12541. else
  12542. lt_cv_shlibpath_overrides_runpath=no
  12543. save_LDFLAGS=$LDFLAGS
  12544. save_libdir=$libdir
  12545. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12546. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12548. /* end confdefs.h. */
  12549. int
  12550. main ()
  12551. {
  12552. ;
  12553. return 0;
  12554. }
  12555. _ACEOF
  12556. if ac_fn_cxx_try_link "$LINENO"; then :
  12557. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12558. lt_cv_shlibpath_overrides_runpath=yes
  12559. fi
  12560. fi
  12561. rm -f core conftest.err conftest.$ac_objext \
  12562. conftest$ac_exeext conftest.$ac_ext
  12563. LDFLAGS=$save_LDFLAGS
  12564. libdir=$save_libdir
  12565. fi
  12566. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12567. # This implies no fast_install, which is unacceptable.
  12568. # Some rework will be needed to allow for fast_install
  12569. # before this can be enabled.
  12570. hardcode_into_libs=yes
  12571. # Append ld.so.conf contents to the search path
  12572. if test -f /etc/ld.so.conf; then
  12573. 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;s/"//g;/^$/d' | tr '\n' ' '`
  12574. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12575. fi
  12576. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12577. # powerpc, because MkLinux only supported shared libraries with the
  12578. # GNU dynamic linker. Since this was broken with cross compilers,
  12579. # most powerpc-linux boxes support dynamic linking these days and
  12580. # people can always --disable-shared, the test was removed, and we
  12581. # assume the GNU/Linux dynamic linker is in use.
  12582. dynamic_linker='GNU/Linux ld.so'
  12583. ;;
  12584. netbsdelf*-gnu)
  12585. version_type=linux
  12586. need_lib_prefix=no
  12587. need_version=no
  12588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12589. soname_spec='${libname}${release}${shared_ext}$major'
  12590. shlibpath_var=LD_LIBRARY_PATH
  12591. shlibpath_overrides_runpath=no
  12592. hardcode_into_libs=yes
  12593. dynamic_linker='NetBSD ld.elf_so'
  12594. ;;
  12595. netbsd*)
  12596. version_type=sunos
  12597. need_lib_prefix=no
  12598. need_version=no
  12599. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12601. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12602. dynamic_linker='NetBSD (a.out) ld.so'
  12603. else
  12604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12605. soname_spec='${libname}${release}${shared_ext}$major'
  12606. dynamic_linker='NetBSD ld.elf_so'
  12607. fi
  12608. shlibpath_var=LD_LIBRARY_PATH
  12609. shlibpath_overrides_runpath=yes
  12610. hardcode_into_libs=yes
  12611. ;;
  12612. newsos6)
  12613. version_type=linux # correct to gnu/linux during the next big refactor
  12614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12615. shlibpath_var=LD_LIBRARY_PATH
  12616. shlibpath_overrides_runpath=yes
  12617. ;;
  12618. *nto* | *qnx*)
  12619. version_type=qnx
  12620. need_lib_prefix=no
  12621. need_version=no
  12622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12623. soname_spec='${libname}${release}${shared_ext}$major'
  12624. shlibpath_var=LD_LIBRARY_PATH
  12625. shlibpath_overrides_runpath=no
  12626. hardcode_into_libs=yes
  12627. dynamic_linker='ldqnx.so'
  12628. ;;
  12629. openbsd*)
  12630. version_type=sunos
  12631. sys_lib_dlsearch_path_spec="/usr/lib"
  12632. need_lib_prefix=no
  12633. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12634. case $host_os in
  12635. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12636. *) need_version=no ;;
  12637. esac
  12638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12639. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12640. shlibpath_var=LD_LIBRARY_PATH
  12641. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12642. case $host_os in
  12643. openbsd2.[89] | openbsd2.[89].*)
  12644. shlibpath_overrides_runpath=no
  12645. ;;
  12646. *)
  12647. shlibpath_overrides_runpath=yes
  12648. ;;
  12649. esac
  12650. else
  12651. shlibpath_overrides_runpath=yes
  12652. fi
  12653. ;;
  12654. os2*)
  12655. libname_spec='$name'
  12656. shrext_cmds=".dll"
  12657. need_lib_prefix=no
  12658. library_names_spec='$libname${shared_ext} $libname.a'
  12659. dynamic_linker='OS/2 ld.exe'
  12660. shlibpath_var=LIBPATH
  12661. ;;
  12662. osf3* | osf4* | osf5*)
  12663. version_type=osf
  12664. need_lib_prefix=no
  12665. need_version=no
  12666. soname_spec='${libname}${release}${shared_ext}$major'
  12667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12668. shlibpath_var=LD_LIBRARY_PATH
  12669. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12670. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12671. ;;
  12672. rdos*)
  12673. dynamic_linker=no
  12674. ;;
  12675. solaris*)
  12676. version_type=linux # correct to gnu/linux during the next big refactor
  12677. need_lib_prefix=no
  12678. need_version=no
  12679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12680. soname_spec='${libname}${release}${shared_ext}$major'
  12681. shlibpath_var=LD_LIBRARY_PATH
  12682. shlibpath_overrides_runpath=yes
  12683. hardcode_into_libs=yes
  12684. # ldd complains unless libraries are executable
  12685. postinstall_cmds='chmod +x $lib'
  12686. ;;
  12687. sunos4*)
  12688. version_type=sunos
  12689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12690. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12691. shlibpath_var=LD_LIBRARY_PATH
  12692. shlibpath_overrides_runpath=yes
  12693. if test "$with_gnu_ld" = yes; then
  12694. need_lib_prefix=no
  12695. fi
  12696. need_version=yes
  12697. ;;
  12698. sysv4 | sysv4.3*)
  12699. version_type=linux # correct to gnu/linux during the next big refactor
  12700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12701. soname_spec='${libname}${release}${shared_ext}$major'
  12702. shlibpath_var=LD_LIBRARY_PATH
  12703. case $host_vendor in
  12704. sni)
  12705. shlibpath_overrides_runpath=no
  12706. need_lib_prefix=no
  12707. runpath_var=LD_RUN_PATH
  12708. ;;
  12709. siemens)
  12710. need_lib_prefix=no
  12711. ;;
  12712. motorola)
  12713. need_lib_prefix=no
  12714. need_version=no
  12715. shlibpath_overrides_runpath=no
  12716. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12717. ;;
  12718. esac
  12719. ;;
  12720. sysv4*MP*)
  12721. if test -d /usr/nec ;then
  12722. version_type=linux # correct to gnu/linux during the next big refactor
  12723. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12724. soname_spec='$libname${shared_ext}.$major'
  12725. shlibpath_var=LD_LIBRARY_PATH
  12726. fi
  12727. ;;
  12728. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12729. version_type=freebsd-elf
  12730. need_lib_prefix=no
  12731. need_version=no
  12732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12733. soname_spec='${libname}${release}${shared_ext}$major'
  12734. shlibpath_var=LD_LIBRARY_PATH
  12735. shlibpath_overrides_runpath=yes
  12736. hardcode_into_libs=yes
  12737. if test "$with_gnu_ld" = yes; then
  12738. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12739. else
  12740. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12741. case $host_os in
  12742. sco3.2v5*)
  12743. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12744. ;;
  12745. esac
  12746. fi
  12747. sys_lib_dlsearch_path_spec='/usr/lib'
  12748. ;;
  12749. tpf*)
  12750. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12751. version_type=linux # correct to gnu/linux during the next big refactor
  12752. need_lib_prefix=no
  12753. need_version=no
  12754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12755. shlibpath_var=LD_LIBRARY_PATH
  12756. shlibpath_overrides_runpath=no
  12757. hardcode_into_libs=yes
  12758. ;;
  12759. uts4*)
  12760. version_type=linux # correct to gnu/linux during the next big refactor
  12761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12762. soname_spec='${libname}${release}${shared_ext}$major'
  12763. shlibpath_var=LD_LIBRARY_PATH
  12764. ;;
  12765. *)
  12766. dynamic_linker=no
  12767. ;;
  12768. esac
  12769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12770. $as_echo "$dynamic_linker" >&6; }
  12771. test "$dynamic_linker" = no && can_build_shared=no
  12772. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12773. if test "$GCC" = yes; then
  12774. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12775. fi
  12776. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12777. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12778. fi
  12779. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12780. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12781. fi
  12782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12783. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12784. hardcode_action_CXX=
  12785. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12786. test -n "$runpath_var_CXX" ||
  12787. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12788. # We can hardcode non-existent directories.
  12789. if test "$hardcode_direct_CXX" != no &&
  12790. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12791. # have to relink, otherwise we might link with an installed library
  12792. # when we should be linking with a yet-to-be-installed one
  12793. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12794. test "$hardcode_minus_L_CXX" != no; then
  12795. # Linking always hardcodes the temporary library directory.
  12796. hardcode_action_CXX=relink
  12797. else
  12798. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12799. hardcode_action_CXX=immediate
  12800. fi
  12801. else
  12802. # We cannot hardcode anything, or else we can only hardcode existing
  12803. # directories.
  12804. hardcode_action_CXX=unsupported
  12805. fi
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12807. $as_echo "$hardcode_action_CXX" >&6; }
  12808. if test "$hardcode_action_CXX" = relink ||
  12809. test "$inherit_rpath_CXX" = yes; then
  12810. # Fast installation is not supported
  12811. enable_fast_install=no
  12812. elif test "$shlibpath_overrides_runpath" = yes ||
  12813. test "$enable_shared" = no; then
  12814. # Fast installation is not necessary
  12815. enable_fast_install=needless
  12816. fi
  12817. fi # test -n "$compiler"
  12818. CC=$lt_save_CC
  12819. CFLAGS=$lt_save_CFLAGS
  12820. LDCXX=$LD
  12821. LD=$lt_save_LD
  12822. GCC=$lt_save_GCC
  12823. with_gnu_ld=$lt_save_with_gnu_ld
  12824. lt_cv_path_LDCXX=$lt_cv_path_LD
  12825. lt_cv_path_LD=$lt_save_path_LD
  12826. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12827. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12828. fi # test "$_lt_caught_CXX_error" != yes
  12829. ac_ext=cpp
  12830. ac_cpp='$CXXCPP $CPPFLAGS'
  12831. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12832. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12833. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12834. ac_config_commands="$ac_config_commands libtool"
  12835. # Only expand once:
  12836. # TODO(chandlerc@google.com): Currently we aren't running the Python tests
  12837. # against the interpreter detected by AM_PATH_PYTHON, and so we condition
  12838. # HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
  12839. # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
  12840. # hashbang.
  12841. PYTHON= # We *do not* allow the user to specify a python interpreter
  12842. # Extract the first word of "python", so it can be a program name with args.
  12843. set dummy python; ac_word=$2
  12844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12845. $as_echo_n "checking for $ac_word... " >&6; }
  12846. if ${ac_cv_path_PYTHON+:} false; then :
  12847. $as_echo_n "(cached) " >&6
  12848. else
  12849. case $PYTHON in
  12850. [\\/]* | ?:[\\/]*)
  12851. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  12852. ;;
  12853. *)
  12854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12855. for as_dir in $PATH
  12856. do
  12857. IFS=$as_save_IFS
  12858. test -z "$as_dir" && as_dir=.
  12859. for ac_exec_ext in '' $ac_executable_extensions; do
  12860. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12861. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  12862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12863. break 2
  12864. fi
  12865. done
  12866. done
  12867. IFS=$as_save_IFS
  12868. test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
  12869. ;;
  12870. esac
  12871. fi
  12872. PYTHON=$ac_cv_path_PYTHON
  12873. if test -n "$PYTHON"; then
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  12875. $as_echo "$PYTHON" >&6; }
  12876. else
  12877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12878. $as_echo "no" >&6; }
  12879. fi
  12880. if test "$PYTHON" != ":"; then :
  12881. prog="import sys
  12882. # split strings by '.' and convert to numeric. Append some zeros
  12883. # because we need at least 4 digits for the hex conversion.
  12884. # map returns an iterator in Python 3.0 and a list in 2.x
  12885. minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
  12886. minverhex = 0
  12887. # xrange is not present in Python 3.0 and range returns an iterator
  12888. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  12889. sys.exit(sys.hexversion < minverhex)"
  12890. if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
  12891. ($PYTHON -c "$prog") >&5 2>&5
  12892. ac_status=$?
  12893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12894. (exit $ac_status); }; then :
  12895. :
  12896. else
  12897. PYTHON=":"
  12898. fi
  12899. fi
  12900. if test "$PYTHON" != ":"; then
  12901. HAVE_PYTHON_TRUE=
  12902. HAVE_PYTHON_FALSE='#'
  12903. else
  12904. HAVE_PYTHON_TRUE='#'
  12905. HAVE_PYTHON_FALSE=
  12906. fi
  12907. # Configure pthreads.
  12908. # Check whether --with-pthreads was given.
  12909. if test "${with_pthreads+set}" = set; then :
  12910. withval=$with_pthreads; with_pthreads=$withval
  12911. else
  12912. with_pthreads=check
  12913. fi
  12914. have_pthreads=no
  12915. if test "x$with_pthreads" != "xno"; then :
  12916. ac_ext=c
  12917. ac_cpp='$CPP $CPPFLAGS'
  12918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12921. acx_pthread_ok=no
  12922. # We used to check for pthread.h first, but this fails if pthread.h
  12923. # requires special compiler flags (e.g. on True64 or Sequent).
  12924. # It gets checked for in the link test anyway.
  12925. # First of all, check if the user has set any of the PTHREAD_LIBS,
  12926. # etcetera environment variables, and if threads linking works using
  12927. # them:
  12928. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  12929. save_CFLAGS="$CFLAGS"
  12930. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12931. save_LIBS="$LIBS"
  12932. LIBS="$PTHREAD_LIBS $LIBS"
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  12934. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  12935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12936. /* end confdefs.h. */
  12937. /* Override any GCC internal prototype to avoid an error.
  12938. Use char because int might match the return type of a GCC
  12939. builtin and then its argument prototype would still apply. */
  12940. #ifdef __cplusplus
  12941. extern "C"
  12942. #endif
  12943. char pthread_join ();
  12944. int
  12945. main ()
  12946. {
  12947. return pthread_join ();
  12948. ;
  12949. return 0;
  12950. }
  12951. _ACEOF
  12952. if ac_fn_c_try_link "$LINENO"; then :
  12953. acx_pthread_ok=yes
  12954. fi
  12955. rm -f core conftest.err conftest.$ac_objext \
  12956. conftest$ac_exeext conftest.$ac_ext
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  12958. $as_echo "$acx_pthread_ok" >&6; }
  12959. if test x"$acx_pthread_ok" = xno; then
  12960. PTHREAD_LIBS=""
  12961. PTHREAD_CFLAGS=""
  12962. fi
  12963. LIBS="$save_LIBS"
  12964. CFLAGS="$save_CFLAGS"
  12965. fi
  12966. # We must check for the threads library under a number of different
  12967. # names; the ordering is very important because some systems
  12968. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  12969. # libraries is broken (non-POSIX).
  12970. # Create a list of thread flags to try. Items starting with a "-" are
  12971. # C compiler flags, and other items are library names, except for "none"
  12972. # which indicates that we try without any flags at all, and "pthread-config"
  12973. # which is a program returning the flags for the Pth emulation library.
  12974. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  12975. # The ordering *is* (sometimes) important. Some notes on the
  12976. # individual items follow:
  12977. # pthreads: AIX (must check this before -lpthread)
  12978. # none: in case threads are in libc; should be tried before -Kthread and
  12979. # other compiler flags to prevent continual compiler warnings
  12980. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  12981. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  12982. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  12983. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  12984. # -pthreads: Solaris/gcc
  12985. # -mthreads: Mingw32/gcc, Lynx/gcc
  12986. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  12987. # doesn't hurt to check since this sometimes defines pthreads too;
  12988. # also defines -D_REENTRANT)
  12989. # ... -mt is also the pthreads flag for HP/aCC
  12990. # pthread: Linux, etcetera
  12991. # --thread-safe: KAI C++
  12992. # pthread-config: use pthread-config program (for GNU Pth library)
  12993. case "${host_cpu}-${host_os}" in
  12994. *solaris*)
  12995. # On Solaris (at least, for some versions), libc contains stubbed
  12996. # (non-functional) versions of the pthreads routines, so link-based
  12997. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  12998. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  12999. # a function called by this macro, so we could check for that, but
  13000. # who knows whether they'll stub that too in a future libc.) So,
  13001. # we'll just look for -pthreads and -lpthread first:
  13002. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  13003. ;;
  13004. esac
  13005. if test x"$acx_pthread_ok" = xno; then
  13006. for flag in $acx_pthread_flags; do
  13007. case $flag in
  13008. none)
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  13010. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  13011. ;;
  13012. -*)
  13013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  13014. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  13015. PTHREAD_CFLAGS="$flag"
  13016. ;;
  13017. pthread-config)
  13018. # Extract the first word of "pthread-config", so it can be a program name with args.
  13019. set dummy pthread-config; ac_word=$2
  13020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13021. $as_echo_n "checking for $ac_word... " >&6; }
  13022. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  13023. $as_echo_n "(cached) " >&6
  13024. else
  13025. if test -n "$acx_pthread_config"; then
  13026. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  13027. else
  13028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13029. for as_dir in $PATH
  13030. do
  13031. IFS=$as_save_IFS
  13032. test -z "$as_dir" && as_dir=.
  13033. for ac_exec_ext in '' $ac_executable_extensions; do
  13034. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13035. ac_cv_prog_acx_pthread_config="yes"
  13036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13037. break 2
  13038. fi
  13039. done
  13040. done
  13041. IFS=$as_save_IFS
  13042. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  13043. fi
  13044. fi
  13045. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  13046. if test -n "$acx_pthread_config"; then
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  13048. $as_echo "$acx_pthread_config" >&6; }
  13049. else
  13050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13051. $as_echo "no" >&6; }
  13052. fi
  13053. if test x"$acx_pthread_config" = xno; then continue; fi
  13054. PTHREAD_CFLAGS="`pthread-config --cflags`"
  13055. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  13056. ;;
  13057. *)
  13058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  13059. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  13060. PTHREAD_LIBS="-l$flag"
  13061. ;;
  13062. esac
  13063. save_LIBS="$LIBS"
  13064. save_CFLAGS="$CFLAGS"
  13065. LIBS="$PTHREAD_LIBS $LIBS"
  13066. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13067. # Check for various functions. We must include pthread.h,
  13068. # since some functions may be macros. (On the Sequent, we
  13069. # need a special flag -Kthread to make this header compile.)
  13070. # We check for pthread_join because it is in -lpthread on IRIX
  13071. # while pthread_create is in libc. We check for pthread_attr_init
  13072. # due to DEC craziness with -lpthreads. We check for
  13073. # pthread_cleanup_push because it is one of the few pthread
  13074. # functions on Solaris that doesn't have a non-functional libc stub.
  13075. # We try pthread_create on general principles.
  13076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13077. /* end confdefs.h. */
  13078. #include <pthread.h>
  13079. int
  13080. main ()
  13081. {
  13082. pthread_t th; pthread_join(th, 0);
  13083. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  13084. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  13085. ;
  13086. return 0;
  13087. }
  13088. _ACEOF
  13089. if ac_fn_c_try_link "$LINENO"; then :
  13090. acx_pthread_ok=yes
  13091. fi
  13092. rm -f core conftest.err conftest.$ac_objext \
  13093. conftest$ac_exeext conftest.$ac_ext
  13094. LIBS="$save_LIBS"
  13095. CFLAGS="$save_CFLAGS"
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  13097. $as_echo "$acx_pthread_ok" >&6; }
  13098. if test "x$acx_pthread_ok" = xyes; then
  13099. break;
  13100. fi
  13101. PTHREAD_LIBS=""
  13102. PTHREAD_CFLAGS=""
  13103. done
  13104. fi
  13105. # Various other checks:
  13106. if test "x$acx_pthread_ok" = xyes; then
  13107. save_LIBS="$LIBS"
  13108. LIBS="$PTHREAD_LIBS $LIBS"
  13109. save_CFLAGS="$CFLAGS"
  13110. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13111. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  13112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  13113. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  13114. attr_name=unknown
  13115. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  13116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13117. /* end confdefs.h. */
  13118. #include <pthread.h>
  13119. int
  13120. main ()
  13121. {
  13122. int attr=$attr; return attr;
  13123. ;
  13124. return 0;
  13125. }
  13126. _ACEOF
  13127. if ac_fn_c_try_link "$LINENO"; then :
  13128. attr_name=$attr; break
  13129. fi
  13130. rm -f core conftest.err conftest.$ac_objext \
  13131. conftest$ac_exeext conftest.$ac_ext
  13132. done
  13133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  13134. $as_echo "$attr_name" >&6; }
  13135. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  13136. cat >>confdefs.h <<_ACEOF
  13137. #define PTHREAD_CREATE_JOINABLE $attr_name
  13138. _ACEOF
  13139. fi
  13140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  13141. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  13142. flag=no
  13143. case "${host_cpu}-${host_os}" in
  13144. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  13145. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  13146. esac
  13147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  13148. $as_echo "${flag}" >&6; }
  13149. if test "x$flag" != xno; then
  13150. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  13151. fi
  13152. LIBS="$save_LIBS"
  13153. CFLAGS="$save_CFLAGS"
  13154. # More AIX lossage: must compile with xlc_r or cc_r
  13155. if test x"$GCC" != xyes; then
  13156. for ac_prog in xlc_r cc_r
  13157. do
  13158. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13159. set dummy $ac_prog; ac_word=$2
  13160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13161. $as_echo_n "checking for $ac_word... " >&6; }
  13162. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  13163. $as_echo_n "(cached) " >&6
  13164. else
  13165. if test -n "$PTHREAD_CC"; then
  13166. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  13167. else
  13168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13169. for as_dir in $PATH
  13170. do
  13171. IFS=$as_save_IFS
  13172. test -z "$as_dir" && as_dir=.
  13173. for ac_exec_ext in '' $ac_executable_extensions; do
  13174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13175. ac_cv_prog_PTHREAD_CC="$ac_prog"
  13176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13177. break 2
  13178. fi
  13179. done
  13180. done
  13181. IFS=$as_save_IFS
  13182. fi
  13183. fi
  13184. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  13185. if test -n "$PTHREAD_CC"; then
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  13187. $as_echo "$PTHREAD_CC" >&6; }
  13188. else
  13189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13190. $as_echo "no" >&6; }
  13191. fi
  13192. test -n "$PTHREAD_CC" && break
  13193. done
  13194. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  13195. else
  13196. PTHREAD_CC=$CC
  13197. fi
  13198. # The next part tries to detect GCC inconsistency with -shared on some
  13199. # architectures and systems. The problem is that in certain
  13200. # configurations, when -shared is specified, GCC "forgets" to
  13201. # internally use various flags which are still necessary.
  13202. #
  13203. # Prepare the flags
  13204. #
  13205. save_CFLAGS="$CFLAGS"
  13206. save_LIBS="$LIBS"
  13207. save_CC="$CC"
  13208. # Try with the flags determined by the earlier checks.
  13209. #
  13210. # -Wl,-z,defs forces link-time symbol resolution, so that the
  13211. # linking checks with -shared actually have any value
  13212. #
  13213. # FIXME: -fPIC is required for -shared on many architectures,
  13214. # so we specify it here, but the right way would probably be to
  13215. # properly detect whether it is actually required.
  13216. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
  13217. LIBS="$PTHREAD_LIBS $LIBS"
  13218. CC="$PTHREAD_CC"
  13219. # In order not to create several levels of indentation, we test
  13220. # the value of "$done" until we find the cure or run out of ideas.
  13221. done="no"
  13222. # First, make sure the CFLAGS we added are actually accepted by our
  13223. # compiler. If not (and OS X's ld, for instance, does not accept -z),
  13224. # then we can't do this test.
  13225. if test x"$done" = xno; then
  13226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
  13227. $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
  13228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13229. /* end confdefs.h. */
  13230. int
  13231. main ()
  13232. {
  13233. ;
  13234. return 0;
  13235. }
  13236. _ACEOF
  13237. if ac_fn_c_try_link "$LINENO"; then :
  13238. else
  13239. done=yes
  13240. fi
  13241. rm -f core conftest.err conftest.$ac_objext \
  13242. conftest$ac_exeext conftest.$ac_ext
  13243. if test "x$done" = xyes ; then
  13244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13245. $as_echo "no" >&6; }
  13246. else
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13248. $as_echo "yes" >&6; }
  13249. fi
  13250. fi
  13251. if test x"$done" = xno; then
  13252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
  13253. $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
  13254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13255. /* end confdefs.h. */
  13256. #include <pthread.h>
  13257. int
  13258. main ()
  13259. {
  13260. pthread_t th; pthread_join(th, 0);
  13261. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  13262. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  13263. ;
  13264. return 0;
  13265. }
  13266. _ACEOF
  13267. if ac_fn_c_try_link "$LINENO"; then :
  13268. done=yes
  13269. fi
  13270. rm -f core conftest.err conftest.$ac_objext \
  13271. conftest$ac_exeext conftest.$ac_ext
  13272. if test "x$done" = xyes; then
  13273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13274. $as_echo "yes" >&6; }
  13275. else
  13276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13277. $as_echo "no" >&6; }
  13278. fi
  13279. fi
  13280. #
  13281. # Linux gcc on some architectures such as mips/mipsel forgets
  13282. # about -lpthread
  13283. #
  13284. if test x"$done" = xno; then
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
  13286. $as_echo_n "checking whether -lpthread fixes that... " >&6; }
  13287. LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
  13288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13289. /* end confdefs.h. */
  13290. #include <pthread.h>
  13291. int
  13292. main ()
  13293. {
  13294. pthread_t th; pthread_join(th, 0);
  13295. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  13296. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  13297. ;
  13298. return 0;
  13299. }
  13300. _ACEOF
  13301. if ac_fn_c_try_link "$LINENO"; then :
  13302. done=yes
  13303. fi
  13304. rm -f core conftest.err conftest.$ac_objext \
  13305. conftest$ac_exeext conftest.$ac_ext
  13306. if test "x$done" = xyes; then
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13308. $as_echo "yes" >&6; }
  13309. PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
  13310. else
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13312. $as_echo "no" >&6; }
  13313. fi
  13314. fi
  13315. #
  13316. # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
  13317. #
  13318. if test x"$done" = xno; then
  13319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
  13320. $as_echo_n "checking whether -lc_r fixes that... " >&6; }
  13321. LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
  13322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13323. /* end confdefs.h. */
  13324. #include <pthread.h>
  13325. int
  13326. main ()
  13327. {
  13328. pthread_t th; pthread_join(th, 0);
  13329. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  13330. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  13331. ;
  13332. return 0;
  13333. }
  13334. _ACEOF
  13335. if ac_fn_c_try_link "$LINENO"; then :
  13336. done=yes
  13337. fi
  13338. rm -f core conftest.err conftest.$ac_objext \
  13339. conftest$ac_exeext conftest.$ac_ext
  13340. if test "x$done" = xyes; then
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13342. $as_echo "yes" >&6; }
  13343. PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
  13344. else
  13345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13346. $as_echo "no" >&6; }
  13347. fi
  13348. fi
  13349. if test x"$done" = xno; then
  13350. # OK, we have run out of ideas
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
  13352. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
  13353. # so it's not safe to assume that we may use pthreads
  13354. acx_pthread_ok=no
  13355. fi
  13356. CFLAGS="$save_CFLAGS"
  13357. LIBS="$save_LIBS"
  13358. CC="$save_CC"
  13359. else
  13360. PTHREAD_CC="$CC"
  13361. fi
  13362. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  13363. if test x"$acx_pthread_ok" = xyes; then
  13364. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  13365. :
  13366. else
  13367. acx_pthread_ok=no
  13368. if test "x$with_pthreads" != "xcheck"; then :
  13369. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13370. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13371. as_fn_error $? "--with-pthreads was specified, but unable to be used
  13372. See \`config.log' for more details" "$LINENO" 5; }
  13373. fi
  13374. fi
  13375. ac_ext=cpp
  13376. ac_cpp='$CXXCPP $CPPFLAGS'
  13377. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13378. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13379. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13380. have_pthreads="$acx_pthread_ok"
  13381. fi
  13382. if test "x$have_pthreads" = "xyes"; then
  13383. HAVE_PTHREADS_TRUE=
  13384. HAVE_PTHREADS_FALSE='#'
  13385. else
  13386. HAVE_PTHREADS_TRUE='#'
  13387. HAVE_PTHREADS_FALSE=
  13388. fi
  13389. # TODO(chandlerc@google.com) Check for the necessary system headers.
  13390. # TODO(chandlerc@google.com) Check the types, structures, and other compiler
  13391. # and architecture characteristics.
  13392. # Output the generated files. No further autoconf macros may be used.
  13393. cat >confcache <<\_ACEOF
  13394. # This file is a shell script that caches the results of configure
  13395. # tests run on this system so they can be shared between configure
  13396. # scripts and configure runs, see configure's option --config-cache.
  13397. # It is not useful on other systems. If it contains results you don't
  13398. # want to keep, you may remove or edit it.
  13399. #
  13400. # config.status only pays attention to the cache file if you give it
  13401. # the --recheck option to rerun configure.
  13402. #
  13403. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13404. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13405. # following values.
  13406. _ACEOF
  13407. # The following way of writing the cache mishandles newlines in values,
  13408. # but we know of no workaround that is simple, portable, and efficient.
  13409. # So, we kill variables containing newlines.
  13410. # Ultrix sh set writes to stderr and can't be redirected directly,
  13411. # and sets the high bit in the cache file unless we assign to the vars.
  13412. (
  13413. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13414. eval ac_val=\$$ac_var
  13415. case $ac_val in #(
  13416. *${as_nl}*)
  13417. case $ac_var in #(
  13418. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13419. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13420. esac
  13421. case $ac_var in #(
  13422. _ | IFS | as_nl) ;; #(
  13423. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13424. *) { eval $ac_var=; unset $ac_var;} ;;
  13425. esac ;;
  13426. esac
  13427. done
  13428. (set) 2>&1 |
  13429. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13430. *${as_nl}ac_space=\ *)
  13431. # `set' does not quote correctly, so add quotes: double-quote
  13432. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13433. sed -n \
  13434. "s/'/'\\\\''/g;
  13435. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13436. ;; #(
  13437. *)
  13438. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13439. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13440. ;;
  13441. esac |
  13442. sort
  13443. ) |
  13444. sed '
  13445. /^ac_cv_env_/b end
  13446. t clear
  13447. :clear
  13448. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13449. t end
  13450. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13451. :end' >>confcache
  13452. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13453. if test -w "$cache_file"; then
  13454. if test "x$cache_file" != "x/dev/null"; then
  13455. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13456. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13457. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13458. cat confcache >"$cache_file"
  13459. else
  13460. case $cache_file in #(
  13461. */* | ?:*)
  13462. mv -f confcache "$cache_file"$$ &&
  13463. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13464. *)
  13465. mv -f confcache "$cache_file" ;;
  13466. esac
  13467. fi
  13468. fi
  13469. else
  13470. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13471. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13472. fi
  13473. fi
  13474. rm -f confcache
  13475. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13476. # Let make expand exec_prefix.
  13477. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13478. DEFS=-DHAVE_CONFIG_H
  13479. ac_libobjs=
  13480. ac_ltlibobjs=
  13481. U=
  13482. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13483. # 1. Remove the extension, and $U if already installed.
  13484. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13485. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13486. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13487. # will be set to the directory where LIBOBJS objects are built.
  13488. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13489. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13490. done
  13491. LIBOBJS=$ac_libobjs
  13492. LTLIBOBJS=$ac_ltlibobjs
  13493. if test -n "$EXEEXT"; then
  13494. am__EXEEXT_TRUE=
  13495. am__EXEEXT_FALSE='#'
  13496. else
  13497. am__EXEEXT_TRUE='#'
  13498. am__EXEEXT_FALSE=
  13499. fi
  13500. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13501. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13502. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13503. fi
  13504. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13505. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13506. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13507. fi
  13508. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13509. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13510. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13511. fi
  13512. if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
  13513. as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
  13514. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13515. fi
  13516. if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
  13517. as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined.
  13518. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13519. fi
  13520. : "${CONFIG_STATUS=./config.status}"
  13521. ac_write_fail=0
  13522. ac_clean_files_save=$ac_clean_files
  13523. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13524. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13525. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13526. as_write_fail=0
  13527. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13528. #! $SHELL
  13529. # Generated by $as_me.
  13530. # Run this file to recreate the current configuration.
  13531. # Compiler output produced by configure, useful for debugging
  13532. # configure, is in config.log if it exists.
  13533. debug=false
  13534. ac_cs_recheck=false
  13535. ac_cs_silent=false
  13536. SHELL=\${CONFIG_SHELL-$SHELL}
  13537. export SHELL
  13538. _ASEOF
  13539. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13540. ## -------------------- ##
  13541. ## M4sh Initialization. ##
  13542. ## -------------------- ##
  13543. # Be more Bourne compatible
  13544. DUALCASE=1; export DUALCASE # for MKS sh
  13545. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13546. emulate sh
  13547. NULLCMD=:
  13548. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13549. # is contrary to our usage. Disable this feature.
  13550. alias -g '${1+"$@"}'='"$@"'
  13551. setopt NO_GLOB_SUBST
  13552. else
  13553. case `(set -o) 2>/dev/null` in #(
  13554. *posix*) :
  13555. set -o posix ;; #(
  13556. *) :
  13557. ;;
  13558. esac
  13559. fi
  13560. as_nl='
  13561. '
  13562. export as_nl
  13563. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13564. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13565. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13566. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13567. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13568. # but without wasting forks for bash or zsh.
  13569. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13570. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13571. as_echo='print -r --'
  13572. as_echo_n='print -rn --'
  13573. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13574. as_echo='printf %s\n'
  13575. as_echo_n='printf %s'
  13576. else
  13577. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13578. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13579. as_echo_n='/usr/ucb/echo -n'
  13580. else
  13581. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13582. as_echo_n_body='eval
  13583. arg=$1;
  13584. case $arg in #(
  13585. *"$as_nl"*)
  13586. expr "X$arg" : "X\\(.*\\)$as_nl";
  13587. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13588. esac;
  13589. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13590. '
  13591. export as_echo_n_body
  13592. as_echo_n='sh -c $as_echo_n_body as_echo'
  13593. fi
  13594. export as_echo_body
  13595. as_echo='sh -c $as_echo_body as_echo'
  13596. fi
  13597. # The user is always right.
  13598. if test "${PATH_SEPARATOR+set}" != set; then
  13599. PATH_SEPARATOR=:
  13600. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13601. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13602. PATH_SEPARATOR=';'
  13603. }
  13604. fi
  13605. # IFS
  13606. # We need space, tab and new line, in precisely that order. Quoting is
  13607. # there to prevent editors from complaining about space-tab.
  13608. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13609. # splitting by setting IFS to empty value.)
  13610. IFS=" "" $as_nl"
  13611. # Find who we are. Look in the path if we contain no directory separator.
  13612. as_myself=
  13613. case $0 in #((
  13614. *[\\/]* ) as_myself=$0 ;;
  13615. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13616. for as_dir in $PATH
  13617. do
  13618. IFS=$as_save_IFS
  13619. test -z "$as_dir" && as_dir=.
  13620. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13621. done
  13622. IFS=$as_save_IFS
  13623. ;;
  13624. esac
  13625. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13626. # in which case we are not to be found in the path.
  13627. if test "x$as_myself" = x; then
  13628. as_myself=$0
  13629. fi
  13630. if test ! -f "$as_myself"; then
  13631. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13632. exit 1
  13633. fi
  13634. # Unset variables that we do not need and which cause bugs (e.g. in
  13635. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13636. # suppresses any "Segmentation fault" message there. '((' could
  13637. # trigger a bug in pdksh 5.2.14.
  13638. for as_var in BASH_ENV ENV MAIL MAILPATH
  13639. do eval test x\${$as_var+set} = xset \
  13640. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13641. done
  13642. PS1='$ '
  13643. PS2='> '
  13644. PS4='+ '
  13645. # NLS nuisances.
  13646. LC_ALL=C
  13647. export LC_ALL
  13648. LANGUAGE=C
  13649. export LANGUAGE
  13650. # CDPATH.
  13651. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13652. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13653. # ----------------------------------------
  13654. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13655. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13656. # script with STATUS, using 1 if that was 0.
  13657. as_fn_error ()
  13658. {
  13659. as_status=$1; test $as_status -eq 0 && as_status=1
  13660. if test "$4"; then
  13661. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13662. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13663. fi
  13664. $as_echo "$as_me: error: $2" >&2
  13665. as_fn_exit $as_status
  13666. } # as_fn_error
  13667. # as_fn_set_status STATUS
  13668. # -----------------------
  13669. # Set $? to STATUS, without forking.
  13670. as_fn_set_status ()
  13671. {
  13672. return $1
  13673. } # as_fn_set_status
  13674. # as_fn_exit STATUS
  13675. # -----------------
  13676. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13677. as_fn_exit ()
  13678. {
  13679. set +e
  13680. as_fn_set_status $1
  13681. exit $1
  13682. } # as_fn_exit
  13683. # as_fn_unset VAR
  13684. # ---------------
  13685. # Portably unset VAR.
  13686. as_fn_unset ()
  13687. {
  13688. { eval $1=; unset $1;}
  13689. }
  13690. as_unset=as_fn_unset
  13691. # as_fn_append VAR VALUE
  13692. # ----------------------
  13693. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13694. # advantage of any shell optimizations that allow amortized linear growth over
  13695. # repeated appends, instead of the typical quadratic growth present in naive
  13696. # implementations.
  13697. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13698. eval 'as_fn_append ()
  13699. {
  13700. eval $1+=\$2
  13701. }'
  13702. else
  13703. as_fn_append ()
  13704. {
  13705. eval $1=\$$1\$2
  13706. }
  13707. fi # as_fn_append
  13708. # as_fn_arith ARG...
  13709. # ------------------
  13710. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13711. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13712. # must be portable across $(()) and expr.
  13713. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13714. eval 'as_fn_arith ()
  13715. {
  13716. as_val=$(( $* ))
  13717. }'
  13718. else
  13719. as_fn_arith ()
  13720. {
  13721. as_val=`expr "$@" || test $? -eq 1`
  13722. }
  13723. fi # as_fn_arith
  13724. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13725. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13726. as_expr=expr
  13727. else
  13728. as_expr=false
  13729. fi
  13730. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13731. as_basename=basename
  13732. else
  13733. as_basename=false
  13734. fi
  13735. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13736. as_dirname=dirname
  13737. else
  13738. as_dirname=false
  13739. fi
  13740. as_me=`$as_basename -- "$0" ||
  13741. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13742. X"$0" : 'X\(//\)$' \| \
  13743. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13744. $as_echo X/"$0" |
  13745. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13746. s//\1/
  13747. q
  13748. }
  13749. /^X\/\(\/\/\)$/{
  13750. s//\1/
  13751. q
  13752. }
  13753. /^X\/\(\/\).*/{
  13754. s//\1/
  13755. q
  13756. }
  13757. s/.*/./; q'`
  13758. # Avoid depending upon Character Ranges.
  13759. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13760. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13761. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13762. as_cr_digits='0123456789'
  13763. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13764. ECHO_C= ECHO_N= ECHO_T=
  13765. case `echo -n x` in #(((((
  13766. -n*)
  13767. case `echo 'xy\c'` in
  13768. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13769. xy) ECHO_C='\c';;
  13770. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13771. ECHO_T=' ';;
  13772. esac;;
  13773. *)
  13774. ECHO_N='-n';;
  13775. esac
  13776. rm -f conf$$ conf$$.exe conf$$.file
  13777. if test -d conf$$.dir; then
  13778. rm -f conf$$.dir/conf$$.file
  13779. else
  13780. rm -f conf$$.dir
  13781. mkdir conf$$.dir 2>/dev/null
  13782. fi
  13783. if (echo >conf$$.file) 2>/dev/null; then
  13784. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13785. as_ln_s='ln -s'
  13786. # ... but there are two gotchas:
  13787. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13788. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13789. # In both cases, we have to default to `cp -p'.
  13790. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13791. as_ln_s='cp -p'
  13792. elif ln conf$$.file conf$$ 2>/dev/null; then
  13793. as_ln_s=ln
  13794. else
  13795. as_ln_s='cp -p'
  13796. fi
  13797. else
  13798. as_ln_s='cp -p'
  13799. fi
  13800. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13801. rmdir conf$$.dir 2>/dev/null
  13802. # as_fn_mkdir_p
  13803. # -------------
  13804. # Create "$as_dir" as a directory, including parents if necessary.
  13805. as_fn_mkdir_p ()
  13806. {
  13807. case $as_dir in #(
  13808. -*) as_dir=./$as_dir;;
  13809. esac
  13810. test -d "$as_dir" || eval $as_mkdir_p || {
  13811. as_dirs=
  13812. while :; do
  13813. case $as_dir in #(
  13814. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13815. *) as_qdir=$as_dir;;
  13816. esac
  13817. as_dirs="'$as_qdir' $as_dirs"
  13818. as_dir=`$as_dirname -- "$as_dir" ||
  13819. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13820. X"$as_dir" : 'X\(//\)[^/]' \| \
  13821. X"$as_dir" : 'X\(//\)$' \| \
  13822. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13823. $as_echo X"$as_dir" |
  13824. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13825. s//\1/
  13826. q
  13827. }
  13828. /^X\(\/\/\)[^/].*/{
  13829. s//\1/
  13830. q
  13831. }
  13832. /^X\(\/\/\)$/{
  13833. s//\1/
  13834. q
  13835. }
  13836. /^X\(\/\).*/{
  13837. s//\1/
  13838. q
  13839. }
  13840. s/.*/./; q'`
  13841. test -d "$as_dir" && break
  13842. done
  13843. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13844. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13845. } # as_fn_mkdir_p
  13846. if mkdir -p . 2>/dev/null; then
  13847. as_mkdir_p='mkdir -p "$as_dir"'
  13848. else
  13849. test -d ./-p && rmdir ./-p
  13850. as_mkdir_p=false
  13851. fi
  13852. if test -x / >/dev/null 2>&1; then
  13853. as_test_x='test -x'
  13854. else
  13855. if ls -dL / >/dev/null 2>&1; then
  13856. as_ls_L_option=L
  13857. else
  13858. as_ls_L_option=
  13859. fi
  13860. as_test_x='
  13861. eval sh -c '\''
  13862. if test -d "$1"; then
  13863. test -d "$1/.";
  13864. else
  13865. case $1 in #(
  13866. -*)set "./$1";;
  13867. esac;
  13868. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13869. ???[sx]*):;;*)false;;esac;fi
  13870. '\'' sh
  13871. '
  13872. fi
  13873. as_executable_p=$as_test_x
  13874. # Sed expression to map a string onto a valid CPP name.
  13875. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13876. # Sed expression to map a string onto a valid variable name.
  13877. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13878. exec 6>&1
  13879. ## ----------------------------------- ##
  13880. ## Main body of $CONFIG_STATUS script. ##
  13881. ## ----------------------------------- ##
  13882. _ASEOF
  13883. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13884. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13885. # Save the log message, to keep $0 and so on meaningful, and to
  13886. # report actual input values of CONFIG_FILES etc. instead of their
  13887. # values after options handling.
  13888. ac_log="
  13889. This file was extended by Google C++ Testing Framework $as_me 1.7.0, which was
  13890. generated by GNU Autoconf 2.68. Invocation command line was
  13891. CONFIG_FILES = $CONFIG_FILES
  13892. CONFIG_HEADERS = $CONFIG_HEADERS
  13893. CONFIG_LINKS = $CONFIG_LINKS
  13894. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13895. $ $0 $@
  13896. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13897. "
  13898. _ACEOF
  13899. case $ac_config_files in *"
  13900. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13901. esac
  13902. case $ac_config_headers in *"
  13903. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13904. esac
  13905. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13906. # Files that config.status was made for.
  13907. config_files="$ac_config_files"
  13908. config_headers="$ac_config_headers"
  13909. config_commands="$ac_config_commands"
  13910. _ACEOF
  13911. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13912. ac_cs_usage="\
  13913. \`$as_me' instantiates files and other configuration actions
  13914. from templates according to the current configuration. Unless the files
  13915. and actions are specified as TAGs, all are instantiated by default.
  13916. Usage: $0 [OPTION]... [TAG]...
  13917. -h, --help print this help, then exit
  13918. -V, --version print version number and configuration settings, then exit
  13919. --config print configuration, then exit
  13920. -q, --quiet, --silent
  13921. do not print progress messages
  13922. -d, --debug don't remove temporary files
  13923. --recheck update $as_me by reconfiguring in the same conditions
  13924. --file=FILE[:TEMPLATE]
  13925. instantiate the configuration file FILE
  13926. --header=FILE[:TEMPLATE]
  13927. instantiate the configuration header FILE
  13928. Configuration files:
  13929. $config_files
  13930. Configuration headers:
  13931. $config_headers
  13932. Configuration commands:
  13933. $config_commands
  13934. Report bugs to <googletestframework@googlegroups.com>."
  13935. _ACEOF
  13936. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13937. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13938. ac_cs_version="\\
  13939. Google C++ Testing Framework config.status 1.7.0
  13940. configured by $0, generated by GNU Autoconf 2.68,
  13941. with options \\"\$ac_cs_config\\"
  13942. Copyright (C) 2010 Free Software Foundation, Inc.
  13943. This config.status script is free software; the Free Software Foundation
  13944. gives unlimited permission to copy, distribute and modify it."
  13945. ac_pwd='$ac_pwd'
  13946. srcdir='$srcdir'
  13947. INSTALL='$INSTALL'
  13948. MKDIR_P='$MKDIR_P'
  13949. AWK='$AWK'
  13950. test -n "\$AWK" || AWK=awk
  13951. _ACEOF
  13952. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13953. # The default lists apply if the user does not specify any file.
  13954. ac_need_defaults=:
  13955. while test $# != 0
  13956. do
  13957. case $1 in
  13958. --*=?*)
  13959. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13960. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13961. ac_shift=:
  13962. ;;
  13963. --*=)
  13964. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13965. ac_optarg=
  13966. ac_shift=:
  13967. ;;
  13968. *)
  13969. ac_option=$1
  13970. ac_optarg=$2
  13971. ac_shift=shift
  13972. ;;
  13973. esac
  13974. case $ac_option in
  13975. # Handling of the options.
  13976. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13977. ac_cs_recheck=: ;;
  13978. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13979. $as_echo "$ac_cs_version"; exit ;;
  13980. --config | --confi | --conf | --con | --co | --c )
  13981. $as_echo "$ac_cs_config"; exit ;;
  13982. --debug | --debu | --deb | --de | --d | -d )
  13983. debug=: ;;
  13984. --file | --fil | --fi | --f )
  13985. $ac_shift
  13986. case $ac_optarg in
  13987. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13988. '') as_fn_error $? "missing file argument" ;;
  13989. esac
  13990. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13991. ac_need_defaults=false;;
  13992. --header | --heade | --head | --hea )
  13993. $ac_shift
  13994. case $ac_optarg in
  13995. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13996. esac
  13997. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13998. ac_need_defaults=false;;
  13999. --he | --h)
  14000. # Conflict between --help and --header
  14001. as_fn_error $? "ambiguous option: \`$1'
  14002. Try \`$0 --help' for more information.";;
  14003. --help | --hel | -h )
  14004. $as_echo "$ac_cs_usage"; exit ;;
  14005. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14006. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14007. ac_cs_silent=: ;;
  14008. # This is an error.
  14009. -*) as_fn_error $? "unrecognized option: \`$1'
  14010. Try \`$0 --help' for more information." ;;
  14011. *) as_fn_append ac_config_targets " $1"
  14012. ac_need_defaults=false ;;
  14013. esac
  14014. shift
  14015. done
  14016. ac_configure_extra_args=
  14017. if $ac_cs_silent; then
  14018. exec 6>/dev/null
  14019. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14020. fi
  14021. _ACEOF
  14022. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14023. if \$ac_cs_recheck; then
  14024. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14025. shift
  14026. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14027. CONFIG_SHELL='$SHELL'
  14028. export CONFIG_SHELL
  14029. exec "\$@"
  14030. fi
  14031. _ACEOF
  14032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14033. exec 5>>config.log
  14034. {
  14035. echo
  14036. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14037. ## Running $as_me. ##
  14038. _ASBOX
  14039. $as_echo "$ac_log"
  14040. } >&5
  14041. _ACEOF
  14042. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14043. #
  14044. # INIT-COMMANDS
  14045. #
  14046. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14047. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14048. # if CDPATH is set.
  14049. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14050. sed_quote_subst='$sed_quote_subst'
  14051. double_quote_subst='$double_quote_subst'
  14052. delay_variable_subst='$delay_variable_subst'
  14053. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14054. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14055. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14056. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14057. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14058. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14059. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14060. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14061. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14062. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14063. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14064. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14065. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14066. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14067. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14068. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14069. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14070. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14071. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14072. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14073. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14074. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14075. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14076. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14077. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14078. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14079. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14080. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14081. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14082. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14083. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14084. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14085. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14086. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14087. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14088. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14089. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14090. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14091. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14092. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14093. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14094. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14095. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14096. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14097. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14098. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14099. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14100. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14101. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14102. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14103. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14104. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14105. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14106. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14107. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14108. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14109. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14110. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14111. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14112. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14113. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14114. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14115. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14116. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14117. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14118. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14119. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14120. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14121. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14122. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14123. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14124. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14125. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14126. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14127. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14128. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14129. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14130. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14131. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14132. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14133. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14134. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14135. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14136. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14137. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14138. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14139. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14140. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14141. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14142. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14143. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14144. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14145. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14146. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14147. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14148. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14149. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14150. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14151. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14152. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14153. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14154. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14155. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14156. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14157. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14158. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14159. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14160. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14161. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14162. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14163. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14164. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14165. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14166. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14167. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14168. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14169. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14170. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14171. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14172. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14173. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14174. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14175. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14176. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14177. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14178. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14179. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14180. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14181. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14182. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14183. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14184. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14185. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14186. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14187. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14188. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14189. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14190. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14191. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14192. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14193. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14194. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14195. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14196. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14197. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14198. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14199. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14200. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14201. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14202. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14203. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14204. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14205. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14206. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14207. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14208. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14209. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14210. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14211. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14212. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14213. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14214. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14215. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14216. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14217. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14218. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14219. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14220. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14221. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14222. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14223. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14224. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14225. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14226. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14227. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14228. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14229. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14230. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14231. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14232. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14233. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14234. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14235. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14236. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14237. LTCC='$LTCC'
  14238. LTCFLAGS='$LTCFLAGS'
  14239. compiler='$compiler_DEFAULT'
  14240. # A function that is used when there is no print builtin or printf.
  14241. func_fallback_echo ()
  14242. {
  14243. eval 'cat <<_LTECHO_EOF
  14244. \$1
  14245. _LTECHO_EOF'
  14246. }
  14247. # Quote evaled strings.
  14248. for var in SHELL \
  14249. ECHO \
  14250. PATH_SEPARATOR \
  14251. SED \
  14252. GREP \
  14253. EGREP \
  14254. FGREP \
  14255. LD \
  14256. NM \
  14257. LN_S \
  14258. lt_SP2NL \
  14259. lt_NL2SP \
  14260. reload_flag \
  14261. OBJDUMP \
  14262. deplibs_check_method \
  14263. file_magic_cmd \
  14264. file_magic_glob \
  14265. want_nocaseglob \
  14266. DLLTOOL \
  14267. sharedlib_from_linklib_cmd \
  14268. AR \
  14269. AR_FLAGS \
  14270. archiver_list_spec \
  14271. STRIP \
  14272. RANLIB \
  14273. CC \
  14274. CFLAGS \
  14275. compiler \
  14276. lt_cv_sys_global_symbol_pipe \
  14277. lt_cv_sys_global_symbol_to_cdecl \
  14278. lt_cv_sys_global_symbol_to_c_name_address \
  14279. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14280. nm_file_list_spec \
  14281. lt_prog_compiler_no_builtin_flag \
  14282. lt_prog_compiler_pic \
  14283. lt_prog_compiler_wl \
  14284. lt_prog_compiler_static \
  14285. lt_cv_prog_compiler_c_o \
  14286. need_locks \
  14287. MANIFEST_TOOL \
  14288. DSYMUTIL \
  14289. NMEDIT \
  14290. LIPO \
  14291. OTOOL \
  14292. OTOOL64 \
  14293. shrext_cmds \
  14294. export_dynamic_flag_spec \
  14295. whole_archive_flag_spec \
  14296. compiler_needs_object \
  14297. with_gnu_ld \
  14298. allow_undefined_flag \
  14299. no_undefined_flag \
  14300. hardcode_libdir_flag_spec \
  14301. hardcode_libdir_separator \
  14302. exclude_expsyms \
  14303. include_expsyms \
  14304. file_list_spec \
  14305. variables_saved_for_relink \
  14306. libname_spec \
  14307. library_names_spec \
  14308. soname_spec \
  14309. install_override_mode \
  14310. finish_eval \
  14311. old_striplib \
  14312. striplib \
  14313. compiler_lib_search_dirs \
  14314. predep_objects \
  14315. postdep_objects \
  14316. predeps \
  14317. postdeps \
  14318. compiler_lib_search_path \
  14319. LD_CXX \
  14320. reload_flag_CXX \
  14321. compiler_CXX \
  14322. lt_prog_compiler_no_builtin_flag_CXX \
  14323. lt_prog_compiler_pic_CXX \
  14324. lt_prog_compiler_wl_CXX \
  14325. lt_prog_compiler_static_CXX \
  14326. lt_cv_prog_compiler_c_o_CXX \
  14327. export_dynamic_flag_spec_CXX \
  14328. whole_archive_flag_spec_CXX \
  14329. compiler_needs_object_CXX \
  14330. with_gnu_ld_CXX \
  14331. allow_undefined_flag_CXX \
  14332. no_undefined_flag_CXX \
  14333. hardcode_libdir_flag_spec_CXX \
  14334. hardcode_libdir_separator_CXX \
  14335. exclude_expsyms_CXX \
  14336. include_expsyms_CXX \
  14337. file_list_spec_CXX \
  14338. compiler_lib_search_dirs_CXX \
  14339. predep_objects_CXX \
  14340. postdep_objects_CXX \
  14341. predeps_CXX \
  14342. postdeps_CXX \
  14343. compiler_lib_search_path_CXX; do
  14344. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14345. *[\\\\\\\`\\"\\\$]*)
  14346. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14347. ;;
  14348. *)
  14349. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14350. ;;
  14351. esac
  14352. done
  14353. # Double-quote double-evaled strings.
  14354. for var in reload_cmds \
  14355. old_postinstall_cmds \
  14356. old_postuninstall_cmds \
  14357. old_archive_cmds \
  14358. extract_expsyms_cmds \
  14359. old_archive_from_new_cmds \
  14360. old_archive_from_expsyms_cmds \
  14361. archive_cmds \
  14362. archive_expsym_cmds \
  14363. module_cmds \
  14364. module_expsym_cmds \
  14365. export_symbols_cmds \
  14366. prelink_cmds \
  14367. postlink_cmds \
  14368. postinstall_cmds \
  14369. postuninstall_cmds \
  14370. finish_cmds \
  14371. sys_lib_search_path_spec \
  14372. sys_lib_dlsearch_path_spec \
  14373. reload_cmds_CXX \
  14374. old_archive_cmds_CXX \
  14375. old_archive_from_new_cmds_CXX \
  14376. old_archive_from_expsyms_cmds_CXX \
  14377. archive_cmds_CXX \
  14378. archive_expsym_cmds_CXX \
  14379. module_cmds_CXX \
  14380. module_expsym_cmds_CXX \
  14381. export_symbols_cmds_CXX \
  14382. prelink_cmds_CXX \
  14383. postlink_cmds_CXX; do
  14384. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14385. *[\\\\\\\`\\"\\\$]*)
  14386. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14387. ;;
  14388. *)
  14389. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14390. ;;
  14391. esac
  14392. done
  14393. ac_aux_dir='$ac_aux_dir'
  14394. xsi_shell='$xsi_shell'
  14395. lt_shell_append='$lt_shell_append'
  14396. # See if we are running on zsh, and set the options which allow our
  14397. # commands through without removal of \ escapes INIT.
  14398. if test -n "\${ZSH_VERSION+set}" ; then
  14399. setopt NO_GLOB_SUBST
  14400. fi
  14401. PACKAGE='$PACKAGE'
  14402. VERSION='$VERSION'
  14403. TIMESTAMP='$TIMESTAMP'
  14404. RM='$RM'
  14405. ofile='$ofile'
  14406. _ACEOF
  14407. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14408. # Handling of arguments.
  14409. for ac_config_target in $ac_config_targets
  14410. do
  14411. case $ac_config_target in
  14412. "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
  14413. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14414. "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
  14415. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14416. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14417. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14418. esac
  14419. done
  14420. # If the user did not use the arguments to specify the items to instantiate,
  14421. # then the envvar interface is used. Set only those that are not.
  14422. # We use the long form for the default assignment because of an extremely
  14423. # bizarre bug on SunOS 4.1.3.
  14424. if $ac_need_defaults; then
  14425. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14426. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14427. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14428. fi
  14429. # Have a temporary directory for convenience. Make it in the build tree
  14430. # simply because there is no reason against having it here, and in addition,
  14431. # creating and moving files from /tmp can sometimes cause problems.
  14432. # Hook for its removal unless debugging.
  14433. # Note that there is a small window in which the directory will not be cleaned:
  14434. # after its creation but before its name has been assigned to `$tmp'.
  14435. $debug ||
  14436. {
  14437. tmp= ac_tmp=
  14438. trap 'exit_status=$?
  14439. : "${ac_tmp:=$tmp}"
  14440. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14441. ' 0
  14442. trap 'as_fn_exit 1' 1 2 13 15
  14443. }
  14444. # Create a (secure) tmp directory for tmp files.
  14445. {
  14446. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14447. test -d "$tmp"
  14448. } ||
  14449. {
  14450. tmp=./conf$$-$RANDOM
  14451. (umask 077 && mkdir "$tmp")
  14452. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14453. ac_tmp=$tmp
  14454. # Set up the scripts for CONFIG_FILES section.
  14455. # No need to generate them if there are no CONFIG_FILES.
  14456. # This happens for instance with `./config.status config.h'.
  14457. if test -n "$CONFIG_FILES"; then
  14458. ac_cr=`echo X | tr X '\015'`
  14459. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14460. # But we know of no other shell where ac_cr would be empty at this
  14461. # point, so we can use a bashism as a fallback.
  14462. if test "x$ac_cr" = x; then
  14463. eval ac_cr=\$\'\\r\'
  14464. fi
  14465. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14466. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14467. ac_cs_awk_cr='\\r'
  14468. else
  14469. ac_cs_awk_cr=$ac_cr
  14470. fi
  14471. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14472. _ACEOF
  14473. {
  14474. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14475. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14476. echo "_ACEOF"
  14477. } >conf$$subs.sh ||
  14478. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14479. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14480. ac_delim='%!_!# '
  14481. for ac_last_try in false false false false false :; do
  14482. . ./conf$$subs.sh ||
  14483. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14484. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14485. if test $ac_delim_n = $ac_delim_num; then
  14486. break
  14487. elif $ac_last_try; then
  14488. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14489. else
  14490. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14491. fi
  14492. done
  14493. rm -f conf$$subs.sh
  14494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14495. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14496. _ACEOF
  14497. sed -n '
  14498. h
  14499. s/^/S["/; s/!.*/"]=/
  14500. p
  14501. g
  14502. s/^[^!]*!//
  14503. :repl
  14504. t repl
  14505. s/'"$ac_delim"'$//
  14506. t delim
  14507. :nl
  14508. h
  14509. s/\(.\{148\}\)..*/\1/
  14510. t more1
  14511. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14512. p
  14513. n
  14514. b repl
  14515. :more1
  14516. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14517. p
  14518. g
  14519. s/.\{148\}//
  14520. t nl
  14521. :delim
  14522. h
  14523. s/\(.\{148\}\)..*/\1/
  14524. t more2
  14525. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14526. p
  14527. b
  14528. :more2
  14529. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14530. p
  14531. g
  14532. s/.\{148\}//
  14533. t delim
  14534. ' <conf$$subs.awk | sed '
  14535. /^[^""]/{
  14536. N
  14537. s/\n//
  14538. }
  14539. ' >>$CONFIG_STATUS || ac_write_fail=1
  14540. rm -f conf$$subs.awk
  14541. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14542. _ACAWK
  14543. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14544. for (key in S) S_is_set[key] = 1
  14545. FS = ""
  14546. }
  14547. {
  14548. line = $ 0
  14549. nfields = split(line, field, "@")
  14550. substed = 0
  14551. len = length(field[1])
  14552. for (i = 2; i < nfields; i++) {
  14553. key = field[i]
  14554. keylen = length(key)
  14555. if (S_is_set[key]) {
  14556. value = S[key]
  14557. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14558. len += length(value) + length(field[++i])
  14559. substed = 1
  14560. } else
  14561. len += 1 + keylen
  14562. }
  14563. print line
  14564. }
  14565. _ACAWK
  14566. _ACEOF
  14567. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14568. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14569. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14570. else
  14571. cat
  14572. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14573. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14574. _ACEOF
  14575. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14576. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14577. # trailing colons and then remove the whole line if VPATH becomes empty
  14578. # (actually we leave an empty line to preserve line numbers).
  14579. if test "x$srcdir" = x.; then
  14580. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14581. h
  14582. s///
  14583. s/^/:/
  14584. s/[ ]*$/:/
  14585. s/:\$(srcdir):/:/g
  14586. s/:\${srcdir}:/:/g
  14587. s/:@srcdir@:/:/g
  14588. s/^:*//
  14589. s/:*$//
  14590. x
  14591. s/\(=[ ]*\).*/\1/
  14592. G
  14593. s/\n//
  14594. s/^[^=]*=[ ]*$//
  14595. }'
  14596. fi
  14597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14598. fi # test -n "$CONFIG_FILES"
  14599. # Set up the scripts for CONFIG_HEADERS section.
  14600. # No need to generate them if there are no CONFIG_HEADERS.
  14601. # This happens for instance with `./config.status Makefile'.
  14602. if test -n "$CONFIG_HEADERS"; then
  14603. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14604. BEGIN {
  14605. _ACEOF
  14606. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14607. # here-document in config.status, that substitutes the proper values into
  14608. # config.h.in to produce config.h.
  14609. # Create a delimiter string that does not exist in confdefs.h, to ease
  14610. # handling of long lines.
  14611. ac_delim='%!_!# '
  14612. for ac_last_try in false false :; do
  14613. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14614. if test -z "$ac_tt"; then
  14615. break
  14616. elif $ac_last_try; then
  14617. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14618. else
  14619. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14620. fi
  14621. done
  14622. # For the awk script, D is an array of macro values keyed by name,
  14623. # likewise P contains macro parameters if any. Preserve backslash
  14624. # newline sequences.
  14625. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14626. sed -n '
  14627. s/.\{148\}/&'"$ac_delim"'/g
  14628. t rset
  14629. :rset
  14630. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14631. t def
  14632. d
  14633. :def
  14634. s/\\$//
  14635. t bsnl
  14636. s/["\\]/\\&/g
  14637. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14638. D["\1"]=" \3"/p
  14639. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14640. d
  14641. :bsnl
  14642. s/["\\]/\\&/g
  14643. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14644. D["\1"]=" \3\\\\\\n"\\/p
  14645. t cont
  14646. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14647. t cont
  14648. d
  14649. :cont
  14650. n
  14651. s/.\{148\}/&'"$ac_delim"'/g
  14652. t clear
  14653. :clear
  14654. s/\\$//
  14655. t bsnlc
  14656. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14657. d
  14658. :bsnlc
  14659. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14660. b cont
  14661. ' <confdefs.h | sed '
  14662. s/'"$ac_delim"'/"\\\
  14663. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14664. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14665. for (key in D) D_is_set[key] = 1
  14666. FS = ""
  14667. }
  14668. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14669. line = \$ 0
  14670. split(line, arg, " ")
  14671. if (arg[1] == "#") {
  14672. defundef = arg[2]
  14673. mac1 = arg[3]
  14674. } else {
  14675. defundef = substr(arg[1], 2)
  14676. mac1 = arg[2]
  14677. }
  14678. split(mac1, mac2, "(") #)
  14679. macro = mac2[1]
  14680. prefix = substr(line, 1, index(line, defundef) - 1)
  14681. if (D_is_set[macro]) {
  14682. # Preserve the white space surrounding the "#".
  14683. print prefix "define", macro P[macro] D[macro]
  14684. next
  14685. } else {
  14686. # Replace #undef with comments. This is necessary, for example,
  14687. # in the case of _POSIX_SOURCE, which is predefined and required
  14688. # on some systems where configure will not decide to define it.
  14689. if (defundef == "undef") {
  14690. print "/*", prefix defundef, macro, "*/"
  14691. next
  14692. }
  14693. }
  14694. }
  14695. { print }
  14696. _ACAWK
  14697. _ACEOF
  14698. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14699. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14700. fi # test -n "$CONFIG_HEADERS"
  14701. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14702. shift
  14703. for ac_tag
  14704. do
  14705. case $ac_tag in
  14706. :[FHLC]) ac_mode=$ac_tag; continue;;
  14707. esac
  14708. case $ac_mode$ac_tag in
  14709. :[FHL]*:*);;
  14710. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14711. :[FH]-) ac_tag=-:-;;
  14712. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14713. esac
  14714. ac_save_IFS=$IFS
  14715. IFS=:
  14716. set x $ac_tag
  14717. IFS=$ac_save_IFS
  14718. shift
  14719. ac_file=$1
  14720. shift
  14721. case $ac_mode in
  14722. :L) ac_source=$1;;
  14723. :[FH])
  14724. ac_file_inputs=
  14725. for ac_f
  14726. do
  14727. case $ac_f in
  14728. -) ac_f="$ac_tmp/stdin";;
  14729. *) # Look for the file first in the build tree, then in the source tree
  14730. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14731. # because $ac_f cannot contain `:'.
  14732. test -f "$ac_f" ||
  14733. case $ac_f in
  14734. [\\/$]*) false;;
  14735. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14736. esac ||
  14737. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14738. esac
  14739. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14740. as_fn_append ac_file_inputs " '$ac_f'"
  14741. done
  14742. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14743. # use $as_me), people would be surprised to read:
  14744. # /* config.h. Generated by config.status. */
  14745. configure_input='Generated from '`
  14746. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14747. `' by configure.'
  14748. if test x"$ac_file" != x-; then
  14749. configure_input="$ac_file. $configure_input"
  14750. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14751. $as_echo "$as_me: creating $ac_file" >&6;}
  14752. fi
  14753. # Neutralize special characters interpreted by sed in replacement strings.
  14754. case $configure_input in #(
  14755. *\&* | *\|* | *\\* )
  14756. ac_sed_conf_input=`$as_echo "$configure_input" |
  14757. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14758. *) ac_sed_conf_input=$configure_input;;
  14759. esac
  14760. case $ac_tag in
  14761. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14762. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14763. esac
  14764. ;;
  14765. esac
  14766. ac_dir=`$as_dirname -- "$ac_file" ||
  14767. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14768. X"$ac_file" : 'X\(//\)[^/]' \| \
  14769. X"$ac_file" : 'X\(//\)$' \| \
  14770. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14771. $as_echo X"$ac_file" |
  14772. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14773. s//\1/
  14774. q
  14775. }
  14776. /^X\(\/\/\)[^/].*/{
  14777. s//\1/
  14778. q
  14779. }
  14780. /^X\(\/\/\)$/{
  14781. s//\1/
  14782. q
  14783. }
  14784. /^X\(\/\).*/{
  14785. s//\1/
  14786. q
  14787. }
  14788. s/.*/./; q'`
  14789. as_dir="$ac_dir"; as_fn_mkdir_p
  14790. ac_builddir=.
  14791. case "$ac_dir" in
  14792. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14793. *)
  14794. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14795. # A ".." for each directory in $ac_dir_suffix.
  14796. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14797. case $ac_top_builddir_sub in
  14798. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14799. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14800. esac ;;
  14801. esac
  14802. ac_abs_top_builddir=$ac_pwd
  14803. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14804. # for backward compatibility:
  14805. ac_top_builddir=$ac_top_build_prefix
  14806. case $srcdir in
  14807. .) # We are building in place.
  14808. ac_srcdir=.
  14809. ac_top_srcdir=$ac_top_builddir_sub
  14810. ac_abs_top_srcdir=$ac_pwd ;;
  14811. [\\/]* | ?:[\\/]* ) # Absolute name.
  14812. ac_srcdir=$srcdir$ac_dir_suffix;
  14813. ac_top_srcdir=$srcdir
  14814. ac_abs_top_srcdir=$srcdir ;;
  14815. *) # Relative name.
  14816. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14817. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14818. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14819. esac
  14820. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14821. case $ac_mode in
  14822. :F)
  14823. #
  14824. # CONFIG_FILE
  14825. #
  14826. case $INSTALL in
  14827. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14828. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14829. esac
  14830. ac_MKDIR_P=$MKDIR_P
  14831. case $MKDIR_P in
  14832. [\\/$]* | ?:[\\/]* ) ;;
  14833. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14834. esac
  14835. _ACEOF
  14836. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14837. # If the template does not know about datarootdir, expand it.
  14838. # FIXME: This hack should be removed a few years after 2.60.
  14839. ac_datarootdir_hack=; ac_datarootdir_seen=
  14840. ac_sed_dataroot='
  14841. /datarootdir/ {
  14842. p
  14843. q
  14844. }
  14845. /@datadir@/p
  14846. /@docdir@/p
  14847. /@infodir@/p
  14848. /@localedir@/p
  14849. /@mandir@/p'
  14850. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14851. *datarootdir*) ac_datarootdir_seen=yes;;
  14852. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14854. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14855. _ACEOF
  14856. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14857. ac_datarootdir_hack='
  14858. s&@datadir@&$datadir&g
  14859. s&@docdir@&$docdir&g
  14860. s&@infodir@&$infodir&g
  14861. s&@localedir@&$localedir&g
  14862. s&@mandir@&$mandir&g
  14863. s&\\\${datarootdir}&$datarootdir&g' ;;
  14864. esac
  14865. _ACEOF
  14866. # Neutralize VPATH when `$srcdir' = `.'.
  14867. # Shell code in configure.ac might set extrasub.
  14868. # FIXME: do we really want to maintain this feature?
  14869. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14870. ac_sed_extra="$ac_vpsub
  14871. $extrasub
  14872. _ACEOF
  14873. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14874. :t
  14875. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14876. s|@configure_input@|$ac_sed_conf_input|;t t
  14877. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14878. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14879. s&@srcdir@&$ac_srcdir&;t t
  14880. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14881. s&@top_srcdir@&$ac_top_srcdir&;t t
  14882. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14883. s&@builddir@&$ac_builddir&;t t
  14884. s&@abs_builddir@&$ac_abs_builddir&;t t
  14885. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14886. s&@INSTALL@&$ac_INSTALL&;t t
  14887. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14888. $ac_datarootdir_hack
  14889. "
  14890. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14891. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14892. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14893. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14894. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14895. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14897. which seems to be undefined. Please make sure it is defined" >&5
  14898. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14899. which seems to be undefined. Please make sure it is defined" >&2;}
  14900. rm -f "$ac_tmp/stdin"
  14901. case $ac_file in
  14902. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14903. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14904. esac \
  14905. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14906. ;;
  14907. :H)
  14908. #
  14909. # CONFIG_HEADER
  14910. #
  14911. if test x"$ac_file" != x-; then
  14912. {
  14913. $as_echo "/* $configure_input */" \
  14914. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14915. } >"$ac_tmp/config.h" \
  14916. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14917. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14918. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14919. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14920. else
  14921. rm -f "$ac_file"
  14922. mv "$ac_tmp/config.h" "$ac_file" \
  14923. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14924. fi
  14925. else
  14926. $as_echo "/* $configure_input */" \
  14927. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14928. || as_fn_error $? "could not create -" "$LINENO" 5
  14929. fi
  14930. # Compute "$ac_file"'s index in $config_headers.
  14931. _am_arg="$ac_file"
  14932. _am_stamp_count=1
  14933. for _am_header in $config_headers :; do
  14934. case $_am_header in
  14935. $_am_arg | $_am_arg:* )
  14936. break ;;
  14937. * )
  14938. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14939. esac
  14940. done
  14941. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14942. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14943. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14944. X"$_am_arg" : 'X\(//\)$' \| \
  14945. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14946. $as_echo X"$_am_arg" |
  14947. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14948. s//\1/
  14949. q
  14950. }
  14951. /^X\(\/\/\)[^/].*/{
  14952. s//\1/
  14953. q
  14954. }
  14955. /^X\(\/\/\)$/{
  14956. s//\1/
  14957. q
  14958. }
  14959. /^X\(\/\).*/{
  14960. s//\1/
  14961. q
  14962. }
  14963. s/.*/./; q'`/stamp-h$_am_stamp_count
  14964. ;;
  14965. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14966. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14967. ;;
  14968. esac
  14969. case $ac_file$ac_mode in
  14970. "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
  14971. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14972. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14973. # are listed without --file. Let's play safe and only enable the eval
  14974. # if we detect the quoting.
  14975. case $CONFIG_FILES in
  14976. *\'*) eval set x "$CONFIG_FILES" ;;
  14977. *) set x $CONFIG_FILES ;;
  14978. esac
  14979. shift
  14980. for mf
  14981. do
  14982. # Strip MF so we end up with the name of the file.
  14983. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14984. # Check whether this is an Automake generated Makefile or not.
  14985. # We used to match only the files named `Makefile.in', but
  14986. # some people rename them; so instead we look at the file content.
  14987. # Grep'ing the first line is not enough: some people post-process
  14988. # each Makefile.in and add a new line on top of each file to say so.
  14989. # Grep'ing the whole file is not good either: AIX grep has a line
  14990. # limit of 2048, but all sed's we know have understand at least 4000.
  14991. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14992. dirpart=`$as_dirname -- "$mf" ||
  14993. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14994. X"$mf" : 'X\(//\)[^/]' \| \
  14995. X"$mf" : 'X\(//\)$' \| \
  14996. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14997. $as_echo X"$mf" |
  14998. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14999. s//\1/
  15000. q
  15001. }
  15002. /^X\(\/\/\)[^/].*/{
  15003. s//\1/
  15004. q
  15005. }
  15006. /^X\(\/\/\)$/{
  15007. s//\1/
  15008. q
  15009. }
  15010. /^X\(\/\).*/{
  15011. s//\1/
  15012. q
  15013. }
  15014. s/.*/./; q'`
  15015. else
  15016. continue
  15017. fi
  15018. # Extract the definition of DEPDIR, am__include, and am__quote
  15019. # from the Makefile without running `make'.
  15020. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15021. test -z "$DEPDIR" && continue
  15022. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15023. test -z "am__include" && continue
  15024. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15025. # When using ansi2knr, U may be empty or an underscore; expand it
  15026. U=`sed -n 's/^U = //p' < "$mf"`
  15027. # Find all dependency output files, they are included files with
  15028. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15029. # simplest approach to changing $(DEPDIR) to its actual value in the
  15030. # expansion.
  15031. for file in `sed -n "
  15032. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15033. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15034. # Make sure the directory exists.
  15035. test -f "$dirpart/$file" && continue
  15036. fdir=`$as_dirname -- "$file" ||
  15037. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15038. X"$file" : 'X\(//\)[^/]' \| \
  15039. X"$file" : 'X\(//\)$' \| \
  15040. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15041. $as_echo X"$file" |
  15042. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15043. s//\1/
  15044. q
  15045. }
  15046. /^X\(\/\/\)[^/].*/{
  15047. s//\1/
  15048. q
  15049. }
  15050. /^X\(\/\/\)$/{
  15051. s//\1/
  15052. q
  15053. }
  15054. /^X\(\/\).*/{
  15055. s//\1/
  15056. q
  15057. }
  15058. s/.*/./; q'`
  15059. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15060. # echo "creating $dirpart/$file"
  15061. echo '# dummy' > "$dirpart/$file"
  15062. done
  15063. done
  15064. }
  15065. ;;
  15066. "libtool":C)
  15067. # See if we are running on zsh, and set the options which allow our
  15068. # commands through without removal of \ escapes.
  15069. if test -n "${ZSH_VERSION+set}" ; then
  15070. setopt NO_GLOB_SUBST
  15071. fi
  15072. cfgfile="${ofile}T"
  15073. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15074. $RM "$cfgfile"
  15075. cat <<_LT_EOF >> "$cfgfile"
  15076. #! $SHELL
  15077. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15078. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15079. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15080. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15081. #
  15082. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15083. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15084. # Foundation, Inc.
  15085. # Written by Gordon Matzigkeit, 1996
  15086. #
  15087. # This file is part of GNU Libtool.
  15088. #
  15089. # GNU Libtool is free software; you can redistribute it and/or
  15090. # modify it under the terms of the GNU General Public License as
  15091. # published by the Free Software Foundation; either version 2 of
  15092. # the License, or (at your option) any later version.
  15093. #
  15094. # As a special exception to the GNU General Public License,
  15095. # if you distribute this file as part of a program or library that
  15096. # is built using GNU Libtool, you may include this file under the
  15097. # same distribution terms that you use for the rest of that program.
  15098. #
  15099. # GNU Libtool is distributed in the hope that it will be useful,
  15100. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15101. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15102. # GNU General Public License for more details.
  15103. #
  15104. # You should have received a copy of the GNU General Public License
  15105. # along with GNU Libtool; see the file COPYING. If not, a copy
  15106. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15107. # obtained by writing to the Free Software Foundation, Inc.,
  15108. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15109. # The names of the tagged configurations supported by this script.
  15110. available_tags="CXX "
  15111. # ### BEGIN LIBTOOL CONFIG
  15112. # Which release of libtool.m4 was used?
  15113. macro_version=$macro_version
  15114. macro_revision=$macro_revision
  15115. # Whether or not to build shared libraries.
  15116. build_libtool_libs=$enable_shared
  15117. # Whether or not to build static libraries.
  15118. build_old_libs=$enable_static
  15119. # What type of objects to build.
  15120. pic_mode=$pic_mode
  15121. # Whether or not to optimize for fast installation.
  15122. fast_install=$enable_fast_install
  15123. # Shell to use when invoking shell scripts.
  15124. SHELL=$lt_SHELL
  15125. # An echo program that protects backslashes.
  15126. ECHO=$lt_ECHO
  15127. # The PATH separator for the build system.
  15128. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15129. # The host system.
  15130. host_alias=$host_alias
  15131. host=$host
  15132. host_os=$host_os
  15133. # The build system.
  15134. build_alias=$build_alias
  15135. build=$build
  15136. build_os=$build_os
  15137. # A sed program that does not truncate output.
  15138. SED=$lt_SED
  15139. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15140. Xsed="\$SED -e 1s/^X//"
  15141. # A grep program that handles long lines.
  15142. GREP=$lt_GREP
  15143. # An ERE matcher.
  15144. EGREP=$lt_EGREP
  15145. # A literal string matcher.
  15146. FGREP=$lt_FGREP
  15147. # A BSD- or MS-compatible name lister.
  15148. NM=$lt_NM
  15149. # Whether we need soft or hard links.
  15150. LN_S=$lt_LN_S
  15151. # What is the maximum length of a command?
  15152. max_cmd_len=$max_cmd_len
  15153. # Object file suffix (normally "o").
  15154. objext=$ac_objext
  15155. # Executable file suffix (normally "").
  15156. exeext=$exeext
  15157. # whether the shell understands "unset".
  15158. lt_unset=$lt_unset
  15159. # turn spaces into newlines.
  15160. SP2NL=$lt_lt_SP2NL
  15161. # turn newlines into spaces.
  15162. NL2SP=$lt_lt_NL2SP
  15163. # convert \$build file names to \$host format.
  15164. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15165. # convert \$build files to toolchain format.
  15166. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15167. # An object symbol dumper.
  15168. OBJDUMP=$lt_OBJDUMP
  15169. # Method to check whether dependent libraries are shared objects.
  15170. deplibs_check_method=$lt_deplibs_check_method
  15171. # Command to use when deplibs_check_method = "file_magic".
  15172. file_magic_cmd=$lt_file_magic_cmd
  15173. # How to find potential files when deplibs_check_method = "file_magic".
  15174. file_magic_glob=$lt_file_magic_glob
  15175. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15176. want_nocaseglob=$lt_want_nocaseglob
  15177. # DLL creation program.
  15178. DLLTOOL=$lt_DLLTOOL
  15179. # Command to associate shared and link libraries.
  15180. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15181. # The archiver.
  15182. AR=$lt_AR
  15183. # Flags to create an archive.
  15184. AR_FLAGS=$lt_AR_FLAGS
  15185. # How to feed a file listing to the archiver.
  15186. archiver_list_spec=$lt_archiver_list_spec
  15187. # A symbol stripping program.
  15188. STRIP=$lt_STRIP
  15189. # Commands used to install an old-style archive.
  15190. RANLIB=$lt_RANLIB
  15191. old_postinstall_cmds=$lt_old_postinstall_cmds
  15192. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15193. # Whether to use a lock for old archive extraction.
  15194. lock_old_archive_extraction=$lock_old_archive_extraction
  15195. # A C compiler.
  15196. LTCC=$lt_CC
  15197. # LTCC compiler flags.
  15198. LTCFLAGS=$lt_CFLAGS
  15199. # Take the output of nm and produce a listing of raw symbols and C names.
  15200. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15201. # Transform the output of nm in a proper C declaration.
  15202. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15203. # Transform the output of nm in a C name address pair.
  15204. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15205. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15206. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15207. # Specify filename containing input files for \$NM.
  15208. nm_file_list_spec=$lt_nm_file_list_spec
  15209. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15210. lt_sysroot=$lt_sysroot
  15211. # The name of the directory that contains temporary libtool files.
  15212. objdir=$objdir
  15213. # Used to examine libraries when file_magic_cmd begins with "file".
  15214. MAGIC_CMD=$MAGIC_CMD
  15215. # Must we lock files when doing compilation?
  15216. need_locks=$lt_need_locks
  15217. # Manifest tool.
  15218. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15219. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15220. DSYMUTIL=$lt_DSYMUTIL
  15221. # Tool to change global to local symbols on Mac OS X.
  15222. NMEDIT=$lt_NMEDIT
  15223. # Tool to manipulate fat objects and archives on Mac OS X.
  15224. LIPO=$lt_LIPO
  15225. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15226. OTOOL=$lt_OTOOL
  15227. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15228. OTOOL64=$lt_OTOOL64
  15229. # Old archive suffix (normally "a").
  15230. libext=$libext
  15231. # Shared library suffix (normally ".so").
  15232. shrext_cmds=$lt_shrext_cmds
  15233. # The commands to extract the exported symbol list from a shared archive.
  15234. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15235. # Variables whose values should be saved in libtool wrapper scripts and
  15236. # restored at link time.
  15237. variables_saved_for_relink=$lt_variables_saved_for_relink
  15238. # Do we need the "lib" prefix for modules?
  15239. need_lib_prefix=$need_lib_prefix
  15240. # Do we need a version for libraries?
  15241. need_version=$need_version
  15242. # Library versioning type.
  15243. version_type=$version_type
  15244. # Shared library runtime path variable.
  15245. runpath_var=$runpath_var
  15246. # Shared library path variable.
  15247. shlibpath_var=$shlibpath_var
  15248. # Is shlibpath searched before the hard-coded library search path?
  15249. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15250. # Format of library name prefix.
  15251. libname_spec=$lt_libname_spec
  15252. # List of archive names. First name is the real one, the rest are links.
  15253. # The last name is the one that the linker finds with -lNAME
  15254. library_names_spec=$lt_library_names_spec
  15255. # The coded name of the library, if different from the real name.
  15256. soname_spec=$lt_soname_spec
  15257. # Permission mode override for installation of shared libraries.
  15258. install_override_mode=$lt_install_override_mode
  15259. # Command to use after installation of a shared archive.
  15260. postinstall_cmds=$lt_postinstall_cmds
  15261. # Command to use after uninstallation of a shared archive.
  15262. postuninstall_cmds=$lt_postuninstall_cmds
  15263. # Commands used to finish a libtool library installation in a directory.
  15264. finish_cmds=$lt_finish_cmds
  15265. # As "finish_cmds", except a single script fragment to be evaled but
  15266. # not shown.
  15267. finish_eval=$lt_finish_eval
  15268. # Whether we should hardcode library paths into libraries.
  15269. hardcode_into_libs=$hardcode_into_libs
  15270. # Compile-time system search path for libraries.
  15271. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15272. # Run-time system search path for libraries.
  15273. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15274. # Whether dlopen is supported.
  15275. dlopen_support=$enable_dlopen
  15276. # Whether dlopen of programs is supported.
  15277. dlopen_self=$enable_dlopen_self
  15278. # Whether dlopen of statically linked programs is supported.
  15279. dlopen_self_static=$enable_dlopen_self_static
  15280. # Commands to strip libraries.
  15281. old_striplib=$lt_old_striplib
  15282. striplib=$lt_striplib
  15283. # The linker used to build libraries.
  15284. LD=$lt_LD
  15285. # How to create reloadable object files.
  15286. reload_flag=$lt_reload_flag
  15287. reload_cmds=$lt_reload_cmds
  15288. # Commands used to build an old-style archive.
  15289. old_archive_cmds=$lt_old_archive_cmds
  15290. # A language specific compiler.
  15291. CC=$lt_compiler
  15292. # Is the compiler the GNU compiler?
  15293. with_gcc=$GCC
  15294. # Compiler flag to turn off builtin functions.
  15295. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15296. # Additional compiler flags for building library objects.
  15297. pic_flag=$lt_lt_prog_compiler_pic
  15298. # How to pass a linker flag through the compiler.
  15299. wl=$lt_lt_prog_compiler_wl
  15300. # Compiler flag to prevent dynamic linking.
  15301. link_static_flag=$lt_lt_prog_compiler_static
  15302. # Does compiler simultaneously support -c and -o options?
  15303. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15304. # Whether or not to add -lc for building shared libraries.
  15305. build_libtool_need_lc=$archive_cmds_need_lc
  15306. # Whether or not to disallow shared libs when runtime libs are static.
  15307. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15308. # Compiler flag to allow reflexive dlopens.
  15309. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15310. # Compiler flag to generate shared objects directly from archives.
  15311. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15312. # Whether the compiler copes with passing no objects directly.
  15313. compiler_needs_object=$lt_compiler_needs_object
  15314. # Create an old-style archive from a shared archive.
  15315. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15316. # Create a temporary old-style archive to link instead of a shared archive.
  15317. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15318. # Commands used to build a shared archive.
  15319. archive_cmds=$lt_archive_cmds
  15320. archive_expsym_cmds=$lt_archive_expsym_cmds
  15321. # Commands used to build a loadable module if different from building
  15322. # a shared archive.
  15323. module_cmds=$lt_module_cmds
  15324. module_expsym_cmds=$lt_module_expsym_cmds
  15325. # Whether we are building with GNU ld or not.
  15326. with_gnu_ld=$lt_with_gnu_ld
  15327. # Flag that allows shared libraries with undefined symbols to be built.
  15328. allow_undefined_flag=$lt_allow_undefined_flag
  15329. # Flag that enforces no undefined symbols.
  15330. no_undefined_flag=$lt_no_undefined_flag
  15331. # Flag to hardcode \$libdir into a binary during linking.
  15332. # This must work even if \$libdir does not exist
  15333. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15334. # Whether we need a single "-rpath" flag with a separated argument.
  15335. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15336. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15337. # DIR into the resulting binary.
  15338. hardcode_direct=$hardcode_direct
  15339. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15340. # DIR into the resulting binary and the resulting library dependency is
  15341. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15342. # library is relocated.
  15343. hardcode_direct_absolute=$hardcode_direct_absolute
  15344. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15345. # into the resulting binary.
  15346. hardcode_minus_L=$hardcode_minus_L
  15347. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15348. # into the resulting binary.
  15349. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15350. # Set to "yes" if building a shared library automatically hardcodes DIR
  15351. # into the library and all subsequent libraries and executables linked
  15352. # against it.
  15353. hardcode_automatic=$hardcode_automatic
  15354. # Set to yes if linker adds runtime paths of dependent libraries
  15355. # to runtime path list.
  15356. inherit_rpath=$inherit_rpath
  15357. # Whether libtool must link a program against all its dependency libraries.
  15358. link_all_deplibs=$link_all_deplibs
  15359. # Set to "yes" if exported symbols are required.
  15360. always_export_symbols=$always_export_symbols
  15361. # The commands to list exported symbols.
  15362. export_symbols_cmds=$lt_export_symbols_cmds
  15363. # Symbols that should not be listed in the preloaded symbols.
  15364. exclude_expsyms=$lt_exclude_expsyms
  15365. # Symbols that must always be exported.
  15366. include_expsyms=$lt_include_expsyms
  15367. # Commands necessary for linking programs (against libraries) with templates.
  15368. prelink_cmds=$lt_prelink_cmds
  15369. # Commands necessary for finishing linking programs.
  15370. postlink_cmds=$lt_postlink_cmds
  15371. # Specify filename containing input files.
  15372. file_list_spec=$lt_file_list_spec
  15373. # How to hardcode a shared library path into an executable.
  15374. hardcode_action=$hardcode_action
  15375. # The directories searched by this compiler when creating a shared library.
  15376. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15377. # Dependencies to place before and after the objects being linked to
  15378. # create a shared library.
  15379. predep_objects=$lt_predep_objects
  15380. postdep_objects=$lt_postdep_objects
  15381. predeps=$lt_predeps
  15382. postdeps=$lt_postdeps
  15383. # The library search path used internally by the compiler when linking
  15384. # a shared library.
  15385. compiler_lib_search_path=$lt_compiler_lib_search_path
  15386. # ### END LIBTOOL CONFIG
  15387. _LT_EOF
  15388. case $host_os in
  15389. aix3*)
  15390. cat <<\_LT_EOF >> "$cfgfile"
  15391. # AIX sometimes has problems with the GCC collect2 program. For some
  15392. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15393. # vanish in a puff of smoke.
  15394. if test "X${COLLECT_NAMES+set}" != Xset; then
  15395. COLLECT_NAMES=
  15396. export COLLECT_NAMES
  15397. fi
  15398. _LT_EOF
  15399. ;;
  15400. esac
  15401. ltmain="$ac_aux_dir/ltmain.sh"
  15402. # We use sed instead of cat because bash on DJGPP gets confused if
  15403. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15404. # text mode, it properly converts lines to CR/LF. This bash problem
  15405. # is reportedly fixed, but why not run on old versions too?
  15406. sed '$q' "$ltmain" >> "$cfgfile" \
  15407. || (rm -f "$cfgfile"; exit 1)
  15408. if test x"$xsi_shell" = xyes; then
  15409. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15410. func_dirname ()\
  15411. {\
  15412. \ case ${1} in\
  15413. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15414. \ * ) func_dirname_result="${3}" ;;\
  15415. \ esac\
  15416. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15417. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15418. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15419. test 0 -eq $? || _lt_function_replace_fail=:
  15420. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15421. func_basename ()\
  15422. {\
  15423. \ func_basename_result="${1##*/}"\
  15424. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15425. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15426. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15427. test 0 -eq $? || _lt_function_replace_fail=:
  15428. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15429. func_dirname_and_basename ()\
  15430. {\
  15431. \ case ${1} in\
  15432. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15433. \ * ) func_dirname_result="${3}" ;;\
  15434. \ esac\
  15435. \ func_basename_result="${1##*/}"\
  15436. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15437. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15438. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15439. test 0 -eq $? || _lt_function_replace_fail=:
  15440. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15441. func_stripname ()\
  15442. {\
  15443. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15444. \ # positional parameters, so assign one to ordinary parameter first.\
  15445. \ func_stripname_result=${3}\
  15446. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15447. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15448. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15449. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15450. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15451. test 0 -eq $? || _lt_function_replace_fail=:
  15452. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15453. func_split_long_opt ()\
  15454. {\
  15455. \ func_split_long_opt_name=${1%%=*}\
  15456. \ func_split_long_opt_arg=${1#*=}\
  15457. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15458. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15459. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15460. test 0 -eq $? || _lt_function_replace_fail=:
  15461. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15462. func_split_short_opt ()\
  15463. {\
  15464. \ func_split_short_opt_arg=${1#??}\
  15465. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15466. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15467. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15468. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15469. test 0 -eq $? || _lt_function_replace_fail=:
  15470. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15471. func_lo2o ()\
  15472. {\
  15473. \ case ${1} in\
  15474. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15475. \ *) func_lo2o_result=${1} ;;\
  15476. \ esac\
  15477. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15478. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15479. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15480. test 0 -eq $? || _lt_function_replace_fail=:
  15481. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15482. func_xform ()\
  15483. {\
  15484. func_xform_result=${1%.*}.lo\
  15485. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15486. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15487. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15488. test 0 -eq $? || _lt_function_replace_fail=:
  15489. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15490. func_arith ()\
  15491. {\
  15492. func_arith_result=$(( $* ))\
  15493. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15494. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15495. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15496. test 0 -eq $? || _lt_function_replace_fail=:
  15497. sed -e '/^func_len ()$/,/^} # func_len /c\
  15498. func_len ()\
  15499. {\
  15500. func_len_result=${#1}\
  15501. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15502. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15503. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15504. test 0 -eq $? || _lt_function_replace_fail=:
  15505. fi
  15506. if test x"$lt_shell_append" = xyes; then
  15507. sed -e '/^func_append ()$/,/^} # func_append /c\
  15508. func_append ()\
  15509. {\
  15510. eval "${1}+=\\${2}"\
  15511. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15512. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15513. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15514. test 0 -eq $? || _lt_function_replace_fail=:
  15515. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15516. func_append_quoted ()\
  15517. {\
  15518. \ func_quote_for_eval "${2}"\
  15519. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15520. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15521. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15522. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15523. test 0 -eq $? || _lt_function_replace_fail=:
  15524. # Save a `func_append' function call where possible by direct use of '+='
  15525. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15526. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15527. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15528. test 0 -eq $? || _lt_function_replace_fail=:
  15529. else
  15530. # Save a `func_append' function call even when '+=' is not available
  15531. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15532. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15533. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15534. test 0 -eq $? || _lt_function_replace_fail=:
  15535. fi
  15536. if test x"$_lt_function_replace_fail" = x":"; then
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15538. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15539. fi
  15540. mv -f "$cfgfile" "$ofile" ||
  15541. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15542. chmod +x "$ofile"
  15543. cat <<_LT_EOF >> "$ofile"
  15544. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15545. # The linker used to build libraries.
  15546. LD=$lt_LD_CXX
  15547. # How to create reloadable object files.
  15548. reload_flag=$lt_reload_flag_CXX
  15549. reload_cmds=$lt_reload_cmds_CXX
  15550. # Commands used to build an old-style archive.
  15551. old_archive_cmds=$lt_old_archive_cmds_CXX
  15552. # A language specific compiler.
  15553. CC=$lt_compiler_CXX
  15554. # Is the compiler the GNU compiler?
  15555. with_gcc=$GCC_CXX
  15556. # Compiler flag to turn off builtin functions.
  15557. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15558. # Additional compiler flags for building library objects.
  15559. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15560. # How to pass a linker flag through the compiler.
  15561. wl=$lt_lt_prog_compiler_wl_CXX
  15562. # Compiler flag to prevent dynamic linking.
  15563. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15564. # Does compiler simultaneously support -c and -o options?
  15565. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15566. # Whether or not to add -lc for building shared libraries.
  15567. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15568. # Whether or not to disallow shared libs when runtime libs are static.
  15569. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15570. # Compiler flag to allow reflexive dlopens.
  15571. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15572. # Compiler flag to generate shared objects directly from archives.
  15573. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15574. # Whether the compiler copes with passing no objects directly.
  15575. compiler_needs_object=$lt_compiler_needs_object_CXX
  15576. # Create an old-style archive from a shared archive.
  15577. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15578. # Create a temporary old-style archive to link instead of a shared archive.
  15579. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15580. # Commands used to build a shared archive.
  15581. archive_cmds=$lt_archive_cmds_CXX
  15582. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15583. # Commands used to build a loadable module if different from building
  15584. # a shared archive.
  15585. module_cmds=$lt_module_cmds_CXX
  15586. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15587. # Whether we are building with GNU ld or not.
  15588. with_gnu_ld=$lt_with_gnu_ld_CXX
  15589. # Flag that allows shared libraries with undefined symbols to be built.
  15590. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15591. # Flag that enforces no undefined symbols.
  15592. no_undefined_flag=$lt_no_undefined_flag_CXX
  15593. # Flag to hardcode \$libdir into a binary during linking.
  15594. # This must work even if \$libdir does not exist
  15595. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15596. # Whether we need a single "-rpath" flag with a separated argument.
  15597. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15598. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15599. # DIR into the resulting binary.
  15600. hardcode_direct=$hardcode_direct_CXX
  15601. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15602. # DIR into the resulting binary and the resulting library dependency is
  15603. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15604. # library is relocated.
  15605. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15606. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15607. # into the resulting binary.
  15608. hardcode_minus_L=$hardcode_minus_L_CXX
  15609. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15610. # into the resulting binary.
  15611. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15612. # Set to "yes" if building a shared library automatically hardcodes DIR
  15613. # into the library and all subsequent libraries and executables linked
  15614. # against it.
  15615. hardcode_automatic=$hardcode_automatic_CXX
  15616. # Set to yes if linker adds runtime paths of dependent libraries
  15617. # to runtime path list.
  15618. inherit_rpath=$inherit_rpath_CXX
  15619. # Whether libtool must link a program against all its dependency libraries.
  15620. link_all_deplibs=$link_all_deplibs_CXX
  15621. # Set to "yes" if exported symbols are required.
  15622. always_export_symbols=$always_export_symbols_CXX
  15623. # The commands to list exported symbols.
  15624. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15625. # Symbols that should not be listed in the preloaded symbols.
  15626. exclude_expsyms=$lt_exclude_expsyms_CXX
  15627. # Symbols that must always be exported.
  15628. include_expsyms=$lt_include_expsyms_CXX
  15629. # Commands necessary for linking programs (against libraries) with templates.
  15630. prelink_cmds=$lt_prelink_cmds_CXX
  15631. # Commands necessary for finishing linking programs.
  15632. postlink_cmds=$lt_postlink_cmds_CXX
  15633. # Specify filename containing input files.
  15634. file_list_spec=$lt_file_list_spec_CXX
  15635. # How to hardcode a shared library path into an executable.
  15636. hardcode_action=$hardcode_action_CXX
  15637. # The directories searched by this compiler when creating a shared library.
  15638. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15639. # Dependencies to place before and after the objects being linked to
  15640. # create a shared library.
  15641. predep_objects=$lt_predep_objects_CXX
  15642. postdep_objects=$lt_postdep_objects_CXX
  15643. predeps=$lt_predeps_CXX
  15644. postdeps=$lt_postdeps_CXX
  15645. # The library search path used internally by the compiler when linking
  15646. # a shared library.
  15647. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15648. # ### END LIBTOOL TAG CONFIG: CXX
  15649. _LT_EOF
  15650. ;;
  15651. esac
  15652. done # for ac_tag
  15653. as_fn_exit 0
  15654. _ACEOF
  15655. ac_clean_files=$ac_clean_files_save
  15656. test $ac_write_fail = 0 ||
  15657. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15658. # configure is writing to config.log, and then calls config.status.
  15659. # config.status does its own redirection, appending to config.log.
  15660. # Unfortunately, on DOS this fails, as config.log is still kept open
  15661. # by configure, so config.status won't be able to write to it; its
  15662. # output is simply discarded. So we exec the FD to /dev/null,
  15663. # effectively closing config.log, so it can be properly (re)opened and
  15664. # appended to by config.status. When coming back to configure, we
  15665. # need to make the FD available again.
  15666. if test "$no_create" != yes; then
  15667. ac_cs_success=:
  15668. ac_config_status_args=
  15669. test "$silent" = yes &&
  15670. ac_config_status_args="$ac_config_status_args --quiet"
  15671. exec 5>/dev/null
  15672. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15673. exec 5>>config.log
  15674. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15675. # would make configure fail if this is the last instruction.
  15676. $ac_cs_success || as_fn_exit 1
  15677. fi
  15678. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15680. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15681. fi