Counter Strike : Global Offensive Source Code
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.

19489 lines
585 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for Protocol Buffers 2.5.0.
  4. #
  5. # Report bugs to <[email protected]>.
  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 \$(( 1 + 1 )) = 2 || exit 1
  164. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  165. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  168. PATH=/empty FPATH=/empty; export PATH FPATH
  169. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  170. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 [email protected] and
  231. $0: [email protected] about your system, including
  232. $0: any error possibly output before this message. Then
  233. $0: install a modern shell, or manually run the script
  234. $0: 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='Protocol Buffers'
  523. PACKAGE_TARNAME='protobuf'
  524. PACKAGE_VERSION='2.5.0'
  525. PACKAGE_STRING='Protocol Buffers 2.5.0'
  526. PACKAGE_BUGREPORT='[email protected]'
  527. PACKAGE_URL=''
  528. ac_unique_file="src/google/protobuf/message.cc"
  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. enable_option_checking=no
  565. ac_subst_vars='am__EXEEXT_FALSE
  566. am__EXEEXT_TRUE
  567. LTLIBOBJS
  568. subdirs
  569. PTHREAD_CFLAGS
  570. PTHREAD_LIBS
  571. PTHREAD_CC
  572. acx_pthread_config
  573. USE_EXTERNAL_PROTOC_FALSE
  574. USE_EXTERNAL_PROTOC_TRUE
  575. PROTOC
  576. HAVE_ZLIB_FALSE
  577. HAVE_ZLIB_TRUE
  578. POW_LIB
  579. LIBOBJS
  580. OTOOL64
  581. OTOOL
  582. LIPO
  583. NMEDIT
  584. DSYMUTIL
  585. MANIFEST_TOOL
  586. RANLIB
  587. ac_ct_AR
  588. AR
  589. DLLTOOL
  590. OBJDUMP
  591. LN_S
  592. NM
  593. ac_ct_DUMPBIN
  594. DUMPBIN
  595. LD
  596. FGREP
  597. SED
  598. LIBTOOL
  599. ISAINFO
  600. PROTOBUF_OPT_FLAG
  601. GCC_FALSE
  602. GCC_TRUE
  603. EGREP
  604. GREP
  605. CXXCPP
  606. am__fastdepCXX_FALSE
  607. am__fastdepCXX_TRUE
  608. CXXDEPMODE
  609. ac_ct_CXX
  610. CXXFLAGS
  611. CXX
  612. am__fastdepCC_FALSE
  613. am__fastdepCC_TRUE
  614. CCDEPMODE
  615. am__nodep
  616. AMDEPBACKSLASH
  617. AMDEP_FALSE
  618. AMDEP_TRUE
  619. am__quote
  620. am__include
  621. DEPDIR
  622. OBJEXT
  623. EXEEXT
  624. ac_ct_CC
  625. CPPFLAGS
  626. LDFLAGS
  627. CFLAGS
  628. CC
  629. am__untar
  630. am__tar
  631. AMTAR
  632. am__leading_dot
  633. SET_MAKE
  634. AWK
  635. mkdir_p
  636. MKDIR_P
  637. INSTALL_STRIP_PROGRAM
  638. STRIP
  639. install_sh
  640. MAKEINFO
  641. AUTOHEADER
  642. AUTOMAKE
  643. AUTOCONF
  644. ACLOCAL
  645. VERSION
  646. PACKAGE
  647. CYGPATH_W
  648. am__isrc
  649. INSTALL_DATA
  650. INSTALL_SCRIPT
  651. INSTALL_PROGRAM
  652. target_os
  653. target_vendor
  654. target_cpu
  655. target
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. MAINT
  665. MAINTAINER_MODE_FALSE
  666. MAINTAINER_MODE_TRUE
  667. target_alias
  668. host_alias
  669. build_alias
  670. LIBS
  671. ECHO_T
  672. ECHO_N
  673. ECHO_C
  674. DEFS
  675. mandir
  676. localedir
  677. libdir
  678. psdir
  679. pdfdir
  680. dvidir
  681. htmldir
  682. infodir
  683. docdir
  684. oldincludedir
  685. includedir
  686. localstatedir
  687. sharedstatedir
  688. sysconfdir
  689. datadir
  690. datarootdir
  691. libexecdir
  692. sbindir
  693. bindir
  694. program_transform_name
  695. prefix
  696. exec_prefix
  697. PACKAGE_URL
  698. PACKAGE_BUGREPORT
  699. PACKAGE_STRING
  700. PACKAGE_VERSION
  701. PACKAGE_TARNAME
  702. PACKAGE_NAME
  703. PATH_SEPARATOR
  704. SHELL'
  705. ac_subst_files=''
  706. ac_user_opts='
  707. enable_option_checking
  708. enable_maintainer_mode
  709. with_zlib
  710. with_protoc
  711. enable_dependency_tracking
  712. enable_64bit_solaris
  713. enable_shared
  714. enable_static
  715. with_pic
  716. enable_fast_install
  717. with_gnu_ld
  718. with_sysroot
  719. enable_libtool_lock
  720. '
  721. ac_precious_vars='build_alias
  722. host_alias
  723. target_alias
  724. CC
  725. CFLAGS
  726. LDFLAGS
  727. LIBS
  728. CPPFLAGS
  729. CXX
  730. CXXFLAGS
  731. CCC
  732. CXXCPP'
  733. ac_subdirs_all='gtest'
  734. # Initialize some variables set by options.
  735. ac_init_help=
  736. ac_init_version=false
  737. ac_unrecognized_opts=
  738. ac_unrecognized_sep=
  739. # The variables have the same names as the options, with
  740. # dashes changed to underlines.
  741. cache_file=/dev/null
  742. exec_prefix=NONE
  743. no_create=
  744. no_recursion=
  745. prefix=NONE
  746. program_prefix=NONE
  747. program_suffix=NONE
  748. program_transform_name=s,x,x,
  749. silent=
  750. site=
  751. srcdir=
  752. verbose=
  753. x_includes=NONE
  754. x_libraries=NONE
  755. # Installation directory options.
  756. # These are left unexpanded so users can "make install exec_prefix=/foo"
  757. # and all the variables that are supposed to be based on exec_prefix
  758. # by default will actually change.
  759. # Use braces instead of parens because sh, perl, etc. also accept them.
  760. # (The list follows the same order as the GNU Coding Standards.)
  761. bindir='${exec_prefix}/bin'
  762. sbindir='${exec_prefix}/sbin'
  763. libexecdir='${exec_prefix}/libexec'
  764. datarootdir='${prefix}/share'
  765. datadir='${datarootdir}'
  766. sysconfdir='${prefix}/etc'
  767. sharedstatedir='${prefix}/com'
  768. localstatedir='${prefix}/var'
  769. includedir='${prefix}/include'
  770. oldincludedir='/usr/include'
  771. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  772. infodir='${datarootdir}/info'
  773. htmldir='${docdir}'
  774. dvidir='${docdir}'
  775. pdfdir='${docdir}'
  776. psdir='${docdir}'
  777. libdir='${exec_prefix}/lib'
  778. localedir='${datarootdir}/locale'
  779. mandir='${datarootdir}/man'
  780. ac_prev=
  781. ac_dashdash=
  782. for ac_option
  783. do
  784. # If the previous option needs an argument, assign it.
  785. if test -n "$ac_prev"; then
  786. eval $ac_prev=\$ac_option
  787. ac_prev=
  788. continue
  789. fi
  790. case $ac_option in
  791. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  792. *=) ac_optarg= ;;
  793. *) ac_optarg=yes ;;
  794. esac
  795. # Accept the important Cygnus configure options, so we can diagnose typos.
  796. case $ac_dashdash$ac_option in
  797. --)
  798. ac_dashdash=yes ;;
  799. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  800. ac_prev=bindir ;;
  801. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  802. bindir=$ac_optarg ;;
  803. -build | --build | --buil | --bui | --bu)
  804. ac_prev=build_alias ;;
  805. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  806. build_alias=$ac_optarg ;;
  807. -cache-file | --cache-file | --cache-fil | --cache-fi \
  808. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  809. ac_prev=cache_file ;;
  810. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  811. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  812. cache_file=$ac_optarg ;;
  813. --config-cache | -C)
  814. cache_file=config.cache ;;
  815. -datadir | --datadir | --datadi | --datad)
  816. ac_prev=datadir ;;
  817. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  818. datadir=$ac_optarg ;;
  819. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  820. | --dataroo | --dataro | --datar)
  821. ac_prev=datarootdir ;;
  822. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  823. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  824. datarootdir=$ac_optarg ;;
  825. -disable-* | --disable-*)
  826. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  827. # Reject names that are not valid shell variable names.
  828. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  829. as_fn_error $? "invalid feature name: $ac_useropt"
  830. ac_useropt_orig=$ac_useropt
  831. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  832. case $ac_user_opts in
  833. *"
  834. "enable_$ac_useropt"
  835. "*) ;;
  836. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  837. ac_unrecognized_sep=', ';;
  838. esac
  839. eval enable_$ac_useropt=no ;;
  840. -docdir | --docdir | --docdi | --doc | --do)
  841. ac_prev=docdir ;;
  842. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  843. docdir=$ac_optarg ;;
  844. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  845. ac_prev=dvidir ;;
  846. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  847. dvidir=$ac_optarg ;;
  848. -enable-* | --enable-*)
  849. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  850. # Reject names that are not valid shell variable names.
  851. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  852. as_fn_error $? "invalid feature name: $ac_useropt"
  853. ac_useropt_orig=$ac_useropt
  854. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  855. case $ac_user_opts in
  856. *"
  857. "enable_$ac_useropt"
  858. "*) ;;
  859. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  860. ac_unrecognized_sep=', ';;
  861. esac
  862. eval enable_$ac_useropt=\$ac_optarg ;;
  863. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  864. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  865. | --exec | --exe | --ex)
  866. ac_prev=exec_prefix ;;
  867. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  868. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  869. | --exec=* | --exe=* | --ex=*)
  870. exec_prefix=$ac_optarg ;;
  871. -gas | --gas | --ga | --g)
  872. # Obsolete; use --with-gas.
  873. with_gas=yes ;;
  874. -help | --help | --hel | --he | -h)
  875. ac_init_help=long ;;
  876. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  877. ac_init_help=recursive ;;
  878. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  879. ac_init_help=short ;;
  880. -host | --host | --hos | --ho)
  881. ac_prev=host_alias ;;
  882. -host=* | --host=* | --hos=* | --ho=*)
  883. host_alias=$ac_optarg ;;
  884. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  885. ac_prev=htmldir ;;
  886. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  887. | --ht=*)
  888. htmldir=$ac_optarg ;;
  889. -includedir | --includedir | --includedi | --included | --include \
  890. | --includ | --inclu | --incl | --inc)
  891. ac_prev=includedir ;;
  892. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  893. | --includ=* | --inclu=* | --incl=* | --inc=*)
  894. includedir=$ac_optarg ;;
  895. -infodir | --infodir | --infodi | --infod | --info | --inf)
  896. ac_prev=infodir ;;
  897. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  898. infodir=$ac_optarg ;;
  899. -libdir | --libdir | --libdi | --libd)
  900. ac_prev=libdir ;;
  901. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  902. libdir=$ac_optarg ;;
  903. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  904. | --libexe | --libex | --libe)
  905. ac_prev=libexecdir ;;
  906. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  907. | --libexe=* | --libex=* | --libe=*)
  908. libexecdir=$ac_optarg ;;
  909. -localedir | --localedir | --localedi | --localed | --locale)
  910. ac_prev=localedir ;;
  911. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  912. localedir=$ac_optarg ;;
  913. -localstatedir | --localstatedir | --localstatedi | --localstated \
  914. | --localstate | --localstat | --localsta | --localst | --locals)
  915. ac_prev=localstatedir ;;
  916. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  917. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  918. localstatedir=$ac_optarg ;;
  919. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  920. ac_prev=mandir ;;
  921. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  922. mandir=$ac_optarg ;;
  923. -nfp | --nfp | --nf)
  924. # Obsolete; use --without-fp.
  925. with_fp=no ;;
  926. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  927. | --no-cr | --no-c | -n)
  928. no_create=yes ;;
  929. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  930. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  931. no_recursion=yes ;;
  932. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  933. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  934. | --oldin | --oldi | --old | --ol | --o)
  935. ac_prev=oldincludedir ;;
  936. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  937. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  938. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  939. oldincludedir=$ac_optarg ;;
  940. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  941. ac_prev=prefix ;;
  942. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  943. prefix=$ac_optarg ;;
  944. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  945. | --program-pre | --program-pr | --program-p)
  946. ac_prev=program_prefix ;;
  947. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  948. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  949. program_prefix=$ac_optarg ;;
  950. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  951. | --program-suf | --program-su | --program-s)
  952. ac_prev=program_suffix ;;
  953. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  954. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  955. program_suffix=$ac_optarg ;;
  956. -program-transform-name | --program-transform-name \
  957. | --program-transform-nam | --program-transform-na \
  958. | --program-transform-n | --program-transform- \
  959. | --program-transform | --program-transfor \
  960. | --program-transfo | --program-transf \
  961. | --program-trans | --program-tran \
  962. | --progr-tra | --program-tr | --program-t)
  963. ac_prev=program_transform_name ;;
  964. -program-transform-name=* | --program-transform-name=* \
  965. | --program-transform-nam=* | --program-transform-na=* \
  966. | --program-transform-n=* | --program-transform-=* \
  967. | --program-transform=* | --program-transfor=* \
  968. | --program-transfo=* | --program-transf=* \
  969. | --program-trans=* | --program-tran=* \
  970. | --progr-tra=* | --program-tr=* | --program-t=*)
  971. program_transform_name=$ac_optarg ;;
  972. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  973. ac_prev=pdfdir ;;
  974. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  975. pdfdir=$ac_optarg ;;
  976. -psdir | --psdir | --psdi | --psd | --ps)
  977. ac_prev=psdir ;;
  978. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  979. psdir=$ac_optarg ;;
  980. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  981. | -silent | --silent | --silen | --sile | --sil)
  982. silent=yes ;;
  983. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  984. ac_prev=sbindir ;;
  985. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  986. | --sbi=* | --sb=*)
  987. sbindir=$ac_optarg ;;
  988. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  989. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  990. | --sharedst | --shareds | --shared | --share | --shar \
  991. | --sha | --sh)
  992. ac_prev=sharedstatedir ;;
  993. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  994. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  995. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  996. | --sha=* | --sh=*)
  997. sharedstatedir=$ac_optarg ;;
  998. -site | --site | --sit)
  999. ac_prev=site ;;
  1000. -site=* | --site=* | --sit=*)
  1001. site=$ac_optarg ;;
  1002. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1003. ac_prev=srcdir ;;
  1004. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1005. srcdir=$ac_optarg ;;
  1006. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1007. | --syscon | --sysco | --sysc | --sys | --sy)
  1008. ac_prev=sysconfdir ;;
  1009. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1010. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1011. sysconfdir=$ac_optarg ;;
  1012. -target | --target | --targe | --targ | --tar | --ta | --t)
  1013. ac_prev=target_alias ;;
  1014. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1015. target_alias=$ac_optarg ;;
  1016. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1017. verbose=yes ;;
  1018. -version | --version | --versio | --versi | --vers | -V)
  1019. ac_init_version=: ;;
  1020. -with-* | --with-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error $? "invalid package name: $ac_useropt"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "with_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval with_$ac_useropt=\$ac_optarg ;;
  1035. -without-* | --without-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid package name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "with_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval with_$ac_useropt=no ;;
  1050. --x)
  1051. # Obsolete; use --with-x.
  1052. with_x=yes ;;
  1053. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1054. | --x-incl | --x-inc | --x-in | --x-i)
  1055. ac_prev=x_includes ;;
  1056. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1057. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1058. x_includes=$ac_optarg ;;
  1059. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1060. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1061. ac_prev=x_libraries ;;
  1062. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1063. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1064. x_libraries=$ac_optarg ;;
  1065. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1066. Try \`$0 --help' for more information"
  1067. ;;
  1068. *=*)
  1069. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1070. # Reject names that are not valid shell variable names.
  1071. case $ac_envvar in #(
  1072. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1073. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1074. esac
  1075. eval $ac_envvar=\$ac_optarg
  1076. export $ac_envvar ;;
  1077. *)
  1078. # FIXME: should be removed in autoconf 3.0.
  1079. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1080. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1081. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1082. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1083. ;;
  1084. esac
  1085. done
  1086. if test -n "$ac_prev"; then
  1087. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1088. as_fn_error $? "missing argument to $ac_option"
  1089. fi
  1090. if test -n "$ac_unrecognized_opts"; then
  1091. case $enable_option_checking in
  1092. no) ;;
  1093. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1094. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1095. esac
  1096. fi
  1097. # Check all directory arguments for consistency.
  1098. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1099. datadir sysconfdir sharedstatedir localstatedir includedir \
  1100. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1101. libdir localedir mandir
  1102. do
  1103. eval ac_val=\$$ac_var
  1104. # Remove trailing slashes.
  1105. case $ac_val in
  1106. */ )
  1107. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1108. eval $ac_var=\$ac_val;;
  1109. esac
  1110. # Be sure to have absolute directory names.
  1111. case $ac_val in
  1112. [\\/$]* | ?:[\\/]* ) continue;;
  1113. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1114. esac
  1115. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1116. done
  1117. # There might be people who depend on the old broken behavior: `$host'
  1118. # used to hold the argument of --host etc.
  1119. # FIXME: To remove some day.
  1120. build=$build_alias
  1121. host=$host_alias
  1122. target=$target_alias
  1123. # FIXME: To remove some day.
  1124. if test "x$host_alias" != x; then
  1125. if test "x$build_alias" = x; then
  1126. cross_compiling=maybe
  1127. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1128. If a cross compiler is detected then cross compile mode will be used" >&2
  1129. elif test "x$build_alias" != "x$host_alias"; then
  1130. cross_compiling=yes
  1131. fi
  1132. fi
  1133. ac_tool_prefix=
  1134. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1135. test "$silent" = yes && exec 6>/dev/null
  1136. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1137. ac_ls_di=`ls -di .` &&
  1138. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1139. as_fn_error $? "working directory cannot be determined"
  1140. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1141. as_fn_error $? "pwd does not report name of working directory"
  1142. # Find the source files, if location was not specified.
  1143. if test -z "$srcdir"; then
  1144. ac_srcdir_defaulted=yes
  1145. # Try the directory containing this script, then the parent directory.
  1146. ac_confdir=`$as_dirname -- "$as_myself" ||
  1147. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1148. X"$as_myself" : 'X\(//\)[^/]' \| \
  1149. X"$as_myself" : 'X\(//\)$' \| \
  1150. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1151. $as_echo X"$as_myself" |
  1152. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1153. s//\1/
  1154. q
  1155. }
  1156. /^X\(\/\/\)[^/].*/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)$/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\).*/{
  1165. s//\1/
  1166. q
  1167. }
  1168. s/.*/./; q'`
  1169. srcdir=$ac_confdir
  1170. if test ! -r "$srcdir/$ac_unique_file"; then
  1171. srcdir=..
  1172. fi
  1173. else
  1174. ac_srcdir_defaulted=no
  1175. fi
  1176. if test ! -r "$srcdir/$ac_unique_file"; then
  1177. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1178. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1179. fi
  1180. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1181. ac_abs_confdir=`(
  1182. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1183. pwd)`
  1184. # When building in place, set srcdir=.
  1185. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1186. srcdir=.
  1187. fi
  1188. # Remove unnecessary trailing slashes from srcdir.
  1189. # Double slashes in file names in object file debugging info
  1190. # mess up M-x gdb in Emacs.
  1191. case $srcdir in
  1192. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1193. esac
  1194. for ac_var in $ac_precious_vars; do
  1195. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1196. eval ac_env_${ac_var}_value=\$${ac_var}
  1197. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1199. done
  1200. #
  1201. # Report the --help message.
  1202. #
  1203. if test "$ac_init_help" = "long"; then
  1204. # Omit some internal or obsolete options to make the list less imposing.
  1205. # This message is too long to be a string in the A/UX 3.1 sh.
  1206. cat <<_ACEOF
  1207. \`configure' configures Protocol Buffers 2.5.0 to adapt to many kinds of systems.
  1208. Usage: $0 [OPTION]... [VAR=VALUE]...
  1209. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1210. VAR=VALUE. See below for descriptions of some of the useful variables.
  1211. Defaults for the options are specified in brackets.
  1212. Configuration:
  1213. -h, --help display this help and exit
  1214. --help=short display options specific to this package
  1215. --help=recursive display the short help of all the included packages
  1216. -V, --version display version information and exit
  1217. -q, --quiet, --silent do not print \`checking ...' messages
  1218. --cache-file=FILE cache test results in FILE [disabled]
  1219. -C, --config-cache alias for \`--cache-file=config.cache'
  1220. -n, --no-create do not create output files
  1221. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1222. Installation directories:
  1223. --prefix=PREFIX install architecture-independent files in PREFIX
  1224. [$ac_default_prefix]
  1225. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1226. [PREFIX]
  1227. By default, \`make install' will install all the files in
  1228. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1229. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1230. for instance \`--prefix=\$HOME'.
  1231. For better control, use the options below.
  1232. Fine tuning of the installation directories:
  1233. --bindir=DIR user executables [EPREFIX/bin]
  1234. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1235. --libexecdir=DIR program executables [EPREFIX/libexec]
  1236. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1237. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1238. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1239. --libdir=DIR object code libraries [EPREFIX/lib]
  1240. --includedir=DIR C header files [PREFIX/include]
  1241. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1242. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1243. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1244. --infodir=DIR info documentation [DATAROOTDIR/info]
  1245. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1246. --mandir=DIR man documentation [DATAROOTDIR/man]
  1247. --docdir=DIR documentation root [DATAROOTDIR/doc/protobuf]
  1248. --htmldir=DIR html documentation [DOCDIR]
  1249. --dvidir=DIR dvi documentation [DOCDIR]
  1250. --pdfdir=DIR pdf documentation [DOCDIR]
  1251. --psdir=DIR ps documentation [DOCDIR]
  1252. _ACEOF
  1253. cat <<\_ACEOF
  1254. Program names:
  1255. --program-prefix=PREFIX prepend PREFIX to installed program names
  1256. --program-suffix=SUFFIX append SUFFIX to installed program names
  1257. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1258. System types:
  1259. --build=BUILD configure for building on BUILD [guessed]
  1260. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1261. --target=TARGET configure for building compilers for TARGET [HOST]
  1262. _ACEOF
  1263. fi
  1264. if test -n "$ac_init_help"; then
  1265. case $ac_init_help in
  1266. short | recursive ) echo "Configuration of Protocol Buffers 2.5.0:";;
  1267. esac
  1268. cat <<\_ACEOF
  1269. Optional Features:
  1270. --disable-option-checking ignore unrecognized --enable/--with options
  1271. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1272. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1273. --disable-maintainer-mode disable make rules and dependencies not useful
  1274. (and sometimes confusing) to the casual installer
  1275. --disable-dependency-tracking speeds up one-time build
  1276. --enable-dependency-tracking do not reject slow dependency extractors
  1277. --disable-64bit-solaris Build 64 bit binary on Solaris [default=on]
  1278. --enable-shared[=PKGS] build shared libraries [default=yes]
  1279. --enable-static[=PKGS] build static libraries [default=yes]
  1280. --enable-fast-install[=PKGS]
  1281. optimize for fast installation [default=yes]
  1282. --disable-libtool-lock avoid locking (might break parallel builds)
  1283. Optional Packages:
  1284. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1285. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1286. --with-zlib include classes for streaming compressed data in and
  1287. out [default=check]
  1288. --with-protoc=COMMAND use the given protoc command instead of building a
  1289. new one when building tests (useful for
  1290. cross-compiling)
  1291. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1292. both]
  1293. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1294. --with-sysroot=DIR Search for dependent libraries within DIR
  1295. (or the compiler's sysroot if not specified).
  1296. Some influential environment variables:
  1297. CC C compiler command
  1298. CFLAGS C compiler flags
  1299. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1300. nonstandard directory <lib dir>
  1301. LIBS libraries to pass to the linker, e.g. -l<library>
  1302. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1303. you have headers in a nonstandard directory <include dir>
  1304. CXX C++ compiler command
  1305. CXXFLAGS C++ compiler flags
  1306. CXXCPP C++ preprocessor
  1307. Use these variables to override the choices made by `configure' or to help
  1308. it to find libraries and programs with nonstandard names/locations.
  1309. Report bugs to <[email protected]>.
  1310. _ACEOF
  1311. ac_status=$?
  1312. fi
  1313. if test "$ac_init_help" = "recursive"; then
  1314. # If there are subdirs, report their specific --help.
  1315. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1316. test -d "$ac_dir" ||
  1317. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1318. continue
  1319. ac_builddir=.
  1320. case "$ac_dir" in
  1321. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *)
  1323. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1324. # A ".." for each directory in $ac_dir_suffix.
  1325. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1326. case $ac_top_builddir_sub in
  1327. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1329. esac ;;
  1330. esac
  1331. ac_abs_top_builddir=$ac_pwd
  1332. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1333. # for backward compatibility:
  1334. ac_top_builddir=$ac_top_build_prefix
  1335. case $srcdir in
  1336. .) # We are building in place.
  1337. ac_srcdir=.
  1338. ac_top_srcdir=$ac_top_builddir_sub
  1339. ac_abs_top_srcdir=$ac_pwd ;;
  1340. [\\/]* | ?:[\\/]* ) # Absolute name.
  1341. ac_srcdir=$srcdir$ac_dir_suffix;
  1342. ac_top_srcdir=$srcdir
  1343. ac_abs_top_srcdir=$srcdir ;;
  1344. *) # Relative name.
  1345. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1346. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1347. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1348. esac
  1349. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1350. cd "$ac_dir" || { ac_status=$?; continue; }
  1351. # Check for guested configure.
  1352. if test -f "$ac_srcdir/configure.gnu"; then
  1353. echo &&
  1354. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1355. elif test -f "$ac_srcdir/configure"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure" --help=recursive
  1358. else
  1359. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1360. fi || ac_status=$?
  1361. cd "$ac_pwd" || { ac_status=$?; break; }
  1362. done
  1363. fi
  1364. test -n "$ac_init_help" && exit $ac_status
  1365. if $ac_init_version; then
  1366. cat <<\_ACEOF
  1367. Protocol Buffers configure 2.5.0
  1368. generated by GNU Autoconf 2.68
  1369. Copyright (C) 2010 Free Software Foundation, Inc.
  1370. This configure script is free software; the Free Software Foundation
  1371. gives unlimited permission to copy, distribute and modify it.
  1372. _ACEOF
  1373. exit
  1374. fi
  1375. ## ------------------------ ##
  1376. ## Autoconf initialization. ##
  1377. ## ------------------------ ##
  1378. # ac_fn_c_try_compile LINENO
  1379. # --------------------------
  1380. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1381. ac_fn_c_try_compile ()
  1382. {
  1383. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1384. rm -f conftest.$ac_objext
  1385. if { { ac_try="$ac_compile"
  1386. case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_compile") 2>conftest.err
  1393. ac_status=$?
  1394. if test -s conftest.err; then
  1395. grep -v '^ *+' conftest.err >conftest.er1
  1396. cat conftest.er1 >&5
  1397. mv -f conftest.er1 conftest.err
  1398. fi
  1399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1400. test $ac_status = 0; } && {
  1401. test -z "$ac_c_werror_flag" ||
  1402. test ! -s conftest.err
  1403. } && test -s conftest.$ac_objext; then :
  1404. ac_retval=0
  1405. else
  1406. $as_echo "$as_me: failed program was:" >&5
  1407. sed 's/^/| /' conftest.$ac_ext >&5
  1408. ac_retval=1
  1409. fi
  1410. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1411. as_fn_set_status $ac_retval
  1412. } # ac_fn_c_try_compile
  1413. # ac_fn_cxx_try_compile LINENO
  1414. # ----------------------------
  1415. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1416. ac_fn_cxx_try_compile ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. rm -f conftest.$ac_objext
  1420. if { { ac_try="$ac_compile"
  1421. case "(($ac_try" in
  1422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1423. *) ac_try_echo=$ac_try;;
  1424. esac
  1425. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1426. $as_echo "$ac_try_echo"; } >&5
  1427. (eval "$ac_compile") 2>conftest.err
  1428. ac_status=$?
  1429. if test -s conftest.err; then
  1430. grep -v '^ *+' conftest.err >conftest.er1
  1431. cat conftest.er1 >&5
  1432. mv -f conftest.er1 conftest.err
  1433. fi
  1434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1435. test $ac_status = 0; } && {
  1436. test -z "$ac_cxx_werror_flag" ||
  1437. test ! -s conftest.err
  1438. } && test -s conftest.$ac_objext; then :
  1439. ac_retval=0
  1440. else
  1441. $as_echo "$as_me: failed program was:" >&5
  1442. sed 's/^/| /' conftest.$ac_ext >&5
  1443. ac_retval=1
  1444. fi
  1445. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1446. as_fn_set_status $ac_retval
  1447. } # ac_fn_cxx_try_compile
  1448. # ac_fn_cxx_try_cpp LINENO
  1449. # ------------------------
  1450. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1451. ac_fn_cxx_try_cpp ()
  1452. {
  1453. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1454. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1455. case "(($ac_try" in
  1456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1457. *) ac_try_echo=$ac_try;;
  1458. esac
  1459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1460. $as_echo "$ac_try_echo"; } >&5
  1461. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1462. ac_status=$?
  1463. if test -s conftest.err; then
  1464. grep -v '^ *+' conftest.err >conftest.er1
  1465. cat conftest.er1 >&5
  1466. mv -f conftest.er1 conftest.err
  1467. fi
  1468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1469. test $ac_status = 0; } > conftest.i && {
  1470. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1471. test ! -s conftest.err
  1472. }; then :
  1473. ac_retval=0
  1474. else
  1475. $as_echo "$as_me: failed program was:" >&5
  1476. sed 's/^/| /' conftest.$ac_ext >&5
  1477. ac_retval=1
  1478. fi
  1479. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1480. as_fn_set_status $ac_retval
  1481. } # ac_fn_cxx_try_cpp
  1482. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1483. # ---------------------------------------------------------
  1484. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1485. # the include files in INCLUDES and setting the cache variable VAR
  1486. # accordingly.
  1487. ac_fn_cxx_check_header_mongrel ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. if eval \${$3+:} false; then :
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1492. $as_echo_n "checking for $2... " >&6; }
  1493. if eval \${$3+:} false; then :
  1494. $as_echo_n "(cached) " >&6
  1495. fi
  1496. eval ac_res=\$$3
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1498. $as_echo "$ac_res" >&6; }
  1499. else
  1500. # Is the header compilable?
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1502. $as_echo_n "checking $2 usability... " >&6; }
  1503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1504. /* end confdefs.h. */
  1505. $4
  1506. #include <$2>
  1507. _ACEOF
  1508. if ac_fn_cxx_try_compile "$LINENO"; then :
  1509. ac_header_compiler=yes
  1510. else
  1511. ac_header_compiler=no
  1512. fi
  1513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1515. $as_echo "$ac_header_compiler" >&6; }
  1516. # Is the header present?
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1518. $as_echo_n "checking $2 presence... " >&6; }
  1519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1520. /* end confdefs.h. */
  1521. #include <$2>
  1522. _ACEOF
  1523. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1524. ac_header_preproc=yes
  1525. else
  1526. ac_header_preproc=no
  1527. fi
  1528. rm -f conftest.err conftest.i conftest.$ac_ext
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1530. $as_echo "$ac_header_preproc" >&6; }
  1531. # So? What about this header?
  1532. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1533. yes:no: )
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1535. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1537. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1538. ;;
  1539. no:yes:* )
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1541. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1543. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1545. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1547. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1549. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1550. ( $as_echo "## ---------------------------------------- ##
  1551. ## Report this to [email protected] ##
  1552. ## ---------------------------------------- ##"
  1553. ) | sed "s/^/$as_me: WARNING: /" >&2
  1554. ;;
  1555. esac
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1557. $as_echo_n "checking for $2... " >&6; }
  1558. if eval \${$3+:} false; then :
  1559. $as_echo_n "(cached) " >&6
  1560. else
  1561. eval "$3=\$ac_header_compiler"
  1562. fi
  1563. eval ac_res=\$$3
  1564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1565. $as_echo "$ac_res" >&6; }
  1566. fi
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. } # ac_fn_cxx_check_header_mongrel
  1569. # ac_fn_cxx_try_run LINENO
  1570. # ------------------------
  1571. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1572. # that executables *can* be run.
  1573. ac_fn_cxx_try_run ()
  1574. {
  1575. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1576. if { { ac_try="$ac_link"
  1577. case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_link") 2>&5
  1584. ac_status=$?
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1587. { { case "(($ac_try" in
  1588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1589. *) ac_try_echo=$ac_try;;
  1590. esac
  1591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1592. $as_echo "$ac_try_echo"; } >&5
  1593. (eval "$ac_try") 2>&5
  1594. ac_status=$?
  1595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1596. test $ac_status = 0; }; }; then :
  1597. ac_retval=0
  1598. else
  1599. $as_echo "$as_me: program exited with status $ac_status" >&5
  1600. $as_echo "$as_me: failed program was:" >&5
  1601. sed 's/^/| /' conftest.$ac_ext >&5
  1602. ac_retval=$ac_status
  1603. fi
  1604. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1605. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1606. as_fn_set_status $ac_retval
  1607. } # ac_fn_cxx_try_run
  1608. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1609. # ---------------------------------------------------------
  1610. # Tests whether HEADER exists and can be compiled using the include files in
  1611. # INCLUDES, setting the cache variable VAR accordingly.
  1612. ac_fn_cxx_check_header_compile ()
  1613. {
  1614. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1616. $as_echo_n "checking for $2... " >&6; }
  1617. if eval \${$3+:} false; then :
  1618. $as_echo_n "(cached) " >&6
  1619. else
  1620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1621. /* end confdefs.h. */
  1622. $4
  1623. #include <$2>
  1624. _ACEOF
  1625. if ac_fn_cxx_try_compile "$LINENO"; then :
  1626. eval "$3=yes"
  1627. else
  1628. eval "$3=no"
  1629. fi
  1630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1631. fi
  1632. eval ac_res=\$$3
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1634. $as_echo "$ac_res" >&6; }
  1635. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1636. } # ac_fn_cxx_check_header_compile
  1637. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1638. # -----------------------------------------------
  1639. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1640. # accordingly.
  1641. ac_fn_cxx_check_decl ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1645. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1647. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1648. if eval \${$3+:} false; then :
  1649. $as_echo_n "(cached) " >&6
  1650. else
  1651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1652. /* end confdefs.h. */
  1653. $4
  1654. int
  1655. main ()
  1656. {
  1657. #ifndef $as_decl_name
  1658. #ifdef __cplusplus
  1659. (void) $as_decl_use;
  1660. #else
  1661. (void) $as_decl_name;
  1662. #endif
  1663. #endif
  1664. ;
  1665. return 0;
  1666. }
  1667. _ACEOF
  1668. if ac_fn_cxx_try_compile "$LINENO"; then :
  1669. eval "$3=yes"
  1670. else
  1671. eval "$3=no"
  1672. fi
  1673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1674. fi
  1675. eval ac_res=\$$3
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1677. $as_echo "$ac_res" >&6; }
  1678. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1679. } # ac_fn_cxx_check_decl
  1680. # ac_fn_c_try_link LINENO
  1681. # -----------------------
  1682. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1683. ac_fn_c_try_link ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. rm -f conftest.$ac_objext conftest$ac_exeext
  1687. if { { ac_try="$ac_link"
  1688. case "(($ac_try" in
  1689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1690. *) ac_try_echo=$ac_try;;
  1691. esac
  1692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1693. $as_echo "$ac_try_echo"; } >&5
  1694. (eval "$ac_link") 2>conftest.err
  1695. ac_status=$?
  1696. if test -s conftest.err; then
  1697. grep -v '^ *+' conftest.err >conftest.er1
  1698. cat conftest.er1 >&5
  1699. mv -f conftest.er1 conftest.err
  1700. fi
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; } && {
  1703. test -z "$ac_c_werror_flag" ||
  1704. test ! -s conftest.err
  1705. } && test -s conftest$ac_exeext && {
  1706. test "$cross_compiling" = yes ||
  1707. $as_test_x conftest$ac_exeext
  1708. }; then :
  1709. ac_retval=0
  1710. else
  1711. $as_echo "$as_me: failed program was:" >&5
  1712. sed 's/^/| /' conftest.$ac_ext >&5
  1713. ac_retval=1
  1714. fi
  1715. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1716. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1717. # interfere with the next link command; also delete a directory that is
  1718. # left behind by Apple's compiler. We do this before executing the actions.
  1719. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1720. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1721. as_fn_set_status $ac_retval
  1722. } # ac_fn_c_try_link
  1723. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1724. # -------------------------------------------------------
  1725. # Tests whether HEADER exists and can be compiled using the include files in
  1726. # INCLUDES, setting the cache variable VAR accordingly.
  1727. ac_fn_c_check_header_compile ()
  1728. {
  1729. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1731. $as_echo_n "checking for $2... " >&6; }
  1732. if eval \${$3+:} false; then :
  1733. $as_echo_n "(cached) " >&6
  1734. else
  1735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1736. /* end confdefs.h. */
  1737. $4
  1738. #include <$2>
  1739. _ACEOF
  1740. if ac_fn_c_try_compile "$LINENO"; then :
  1741. eval "$3=yes"
  1742. else
  1743. eval "$3=no"
  1744. fi
  1745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1746. fi
  1747. eval ac_res=\$$3
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1749. $as_echo "$ac_res" >&6; }
  1750. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1751. } # ac_fn_c_check_header_compile
  1752. # ac_fn_c_check_func LINENO FUNC VAR
  1753. # ----------------------------------
  1754. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1755. ac_fn_c_check_func ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1759. $as_echo_n "checking for $2... " >&6; }
  1760. if eval \${$3+:} false; then :
  1761. $as_echo_n "(cached) " >&6
  1762. else
  1763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end confdefs.h. */
  1765. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1766. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1767. #define $2 innocuous_$2
  1768. /* System header to define __stub macros and hopefully few prototypes,
  1769. which can conflict with char $2 (); below.
  1770. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1771. <limits.h> exists even on freestanding compilers. */
  1772. #ifdef __STDC__
  1773. # include <limits.h>
  1774. #else
  1775. # include <assert.h>
  1776. #endif
  1777. #undef $2
  1778. /* Override any GCC internal prototype to avoid an error.
  1779. Use char because int might match the return type of a GCC
  1780. builtin and then its argument prototype would still apply. */
  1781. #ifdef __cplusplus
  1782. extern "C"
  1783. #endif
  1784. char $2 ();
  1785. /* The GNU C library defines this for functions which it implements
  1786. to always fail with ENOSYS. Some functions are actually named
  1787. something starting with __ and the normal name is an alias. */
  1788. #if defined __stub_$2 || defined __stub___$2
  1789. choke me
  1790. #endif
  1791. int
  1792. main ()
  1793. {
  1794. return $2 ();
  1795. ;
  1796. return 0;
  1797. }
  1798. _ACEOF
  1799. if ac_fn_c_try_link "$LINENO"; then :
  1800. eval "$3=yes"
  1801. else
  1802. eval "$3=no"
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext \
  1805. conftest$ac_exeext conftest.$ac_ext
  1806. fi
  1807. eval ac_res=\$$3
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1809. $as_echo "$ac_res" >&6; }
  1810. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1811. } # ac_fn_c_check_func
  1812. # ac_fn_cxx_try_link LINENO
  1813. # -------------------------
  1814. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1815. ac_fn_cxx_try_link ()
  1816. {
  1817. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818. rm -f conftest.$ac_objext conftest$ac_exeext
  1819. if { { ac_try="$ac_link"
  1820. case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1825. $as_echo "$ac_try_echo"; } >&5
  1826. (eval "$ac_link") 2>conftest.err
  1827. ac_status=$?
  1828. if test -s conftest.err; then
  1829. grep -v '^ *+' conftest.err >conftest.er1
  1830. cat conftest.er1 >&5
  1831. mv -f conftest.er1 conftest.err
  1832. fi
  1833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1834. test $ac_status = 0; } && {
  1835. test -z "$ac_cxx_werror_flag" ||
  1836. test ! -s conftest.err
  1837. } && test -s conftest$ac_exeext && {
  1838. test "$cross_compiling" = yes ||
  1839. $as_test_x conftest$ac_exeext
  1840. }; then :
  1841. ac_retval=0
  1842. else
  1843. $as_echo "$as_me: failed program was:" >&5
  1844. sed 's/^/| /' conftest.$ac_ext >&5
  1845. ac_retval=1
  1846. fi
  1847. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1848. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1849. # interfere with the next link command; also delete a directory that is
  1850. # left behind by Apple's compiler. We do this before executing the actions.
  1851. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. as_fn_set_status $ac_retval
  1854. } # ac_fn_cxx_try_link
  1855. # ac_fn_cxx_check_func LINENO FUNC VAR
  1856. # ------------------------------------
  1857. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1858. ac_fn_cxx_check_func ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1862. $as_echo_n "checking for $2... " >&6; }
  1863. if eval \${$3+:} false; then :
  1864. $as_echo_n "(cached) " >&6
  1865. else
  1866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1867. /* end confdefs.h. */
  1868. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1869. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1870. #define $2 innocuous_$2
  1871. /* System header to define __stub macros and hopefully few prototypes,
  1872. which can conflict with char $2 (); below.
  1873. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1874. <limits.h> exists even on freestanding compilers. */
  1875. #ifdef __STDC__
  1876. # include <limits.h>
  1877. #else
  1878. # include <assert.h>
  1879. #endif
  1880. #undef $2
  1881. /* Override any GCC internal prototype to avoid an error.
  1882. Use char because int might match the return type of a GCC
  1883. builtin and then its argument prototype would still apply. */
  1884. #ifdef __cplusplus
  1885. extern "C"
  1886. #endif
  1887. char $2 ();
  1888. /* The GNU C library defines this for functions which it implements
  1889. to always fail with ENOSYS. Some functions are actually named
  1890. something starting with __ and the normal name is an alias. */
  1891. #if defined __stub_$2 || defined __stub___$2
  1892. choke me
  1893. #endif
  1894. int
  1895. main ()
  1896. {
  1897. return $2 ();
  1898. ;
  1899. return 0;
  1900. }
  1901. _ACEOF
  1902. if ac_fn_cxx_try_link "$LINENO"; then :
  1903. eval "$3=yes"
  1904. else
  1905. eval "$3=no"
  1906. fi
  1907. rm -f core conftest.err conftest.$ac_objext \
  1908. conftest$ac_exeext conftest.$ac_ext
  1909. fi
  1910. eval ac_res=\$$3
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1912. $as_echo "$ac_res" >&6; }
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. } # ac_fn_cxx_check_func
  1915. cat >config.log <<_ACEOF
  1916. This file contains any messages produced by compilers while
  1917. running configure, to aid debugging if configure makes a mistake.
  1918. It was created by Protocol Buffers $as_me 2.5.0, which was
  1919. generated by GNU Autoconf 2.68. Invocation command line was
  1920. $ $0 $@
  1921. _ACEOF
  1922. exec 5>>config.log
  1923. {
  1924. cat <<_ASUNAME
  1925. ## --------- ##
  1926. ## Platform. ##
  1927. ## --------- ##
  1928. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1929. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1930. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1931. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1932. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1933. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1934. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1935. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1936. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1937. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1938. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1939. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1940. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1941. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1942. _ASUNAME
  1943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1944. for as_dir in $PATH
  1945. do
  1946. IFS=$as_save_IFS
  1947. test -z "$as_dir" && as_dir=.
  1948. $as_echo "PATH: $as_dir"
  1949. done
  1950. IFS=$as_save_IFS
  1951. } >&5
  1952. cat >&5 <<_ACEOF
  1953. ## ----------- ##
  1954. ## Core tests. ##
  1955. ## ----------- ##
  1956. _ACEOF
  1957. # Keep a trace of the command line.
  1958. # Strip out --no-create and --no-recursion so they do not pile up.
  1959. # Strip out --silent because we don't want to record it for future runs.
  1960. # Also quote any args containing shell meta-characters.
  1961. # Make two passes to allow for proper duplicate-argument suppression.
  1962. ac_configure_args=
  1963. ac_configure_args0=
  1964. ac_configure_args1=
  1965. ac_must_keep_next=false
  1966. for ac_pass in 1 2
  1967. do
  1968. for ac_arg
  1969. do
  1970. case $ac_arg in
  1971. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1972. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1973. | -silent | --silent | --silen | --sile | --sil)
  1974. continue ;;
  1975. *\'*)
  1976. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1977. esac
  1978. case $ac_pass in
  1979. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1980. 2)
  1981. as_fn_append ac_configure_args1 " '$ac_arg'"
  1982. if test $ac_must_keep_next = true; then
  1983. ac_must_keep_next=false # Got value, back to normal.
  1984. else
  1985. case $ac_arg in
  1986. *=* | --config-cache | -C | -disable-* | --disable-* \
  1987. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1988. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1989. | -with-* | --with-* | -without-* | --without-* | --x)
  1990. case "$ac_configure_args0 " in
  1991. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1992. esac
  1993. ;;
  1994. -* ) ac_must_keep_next=true ;;
  1995. esac
  1996. fi
  1997. as_fn_append ac_configure_args " '$ac_arg'"
  1998. ;;
  1999. esac
  2000. done
  2001. done
  2002. { ac_configure_args0=; unset ac_configure_args0;}
  2003. { ac_configure_args1=; unset ac_configure_args1;}
  2004. # When interrupted or exit'd, cleanup temporary files, and complete
  2005. # config.log. We remove comments because anyway the quotes in there
  2006. # would cause problems or look ugly.
  2007. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2008. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2009. trap 'exit_status=$?
  2010. # Save into config.log some information that might help in debugging.
  2011. {
  2012. echo
  2013. $as_echo "## ---------------- ##
  2014. ## Cache variables. ##
  2015. ## ---------------- ##"
  2016. echo
  2017. # The following way of writing the cache mishandles newlines in values,
  2018. (
  2019. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2020. eval ac_val=\$$ac_var
  2021. case $ac_val in #(
  2022. *${as_nl}*)
  2023. case $ac_var in #(
  2024. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2025. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2026. esac
  2027. case $ac_var in #(
  2028. _ | IFS | as_nl) ;; #(
  2029. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2030. *) { eval $ac_var=; unset $ac_var;} ;;
  2031. esac ;;
  2032. esac
  2033. done
  2034. (set) 2>&1 |
  2035. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2036. *${as_nl}ac_space=\ *)
  2037. sed -n \
  2038. "s/'\''/'\''\\\\'\'''\''/g;
  2039. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2040. ;; #(
  2041. *)
  2042. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2043. ;;
  2044. esac |
  2045. sort
  2046. )
  2047. echo
  2048. $as_echo "## ----------------- ##
  2049. ## Output variables. ##
  2050. ## ----------------- ##"
  2051. echo
  2052. for ac_var in $ac_subst_vars
  2053. do
  2054. eval ac_val=\$$ac_var
  2055. case $ac_val in
  2056. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2057. esac
  2058. $as_echo "$ac_var='\''$ac_val'\''"
  2059. done | sort
  2060. echo
  2061. if test -n "$ac_subst_files"; then
  2062. $as_echo "## ------------------- ##
  2063. ## File substitutions. ##
  2064. ## ------------------- ##"
  2065. echo
  2066. for ac_var in $ac_subst_files
  2067. do
  2068. eval ac_val=\$$ac_var
  2069. case $ac_val in
  2070. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2071. esac
  2072. $as_echo "$ac_var='\''$ac_val'\''"
  2073. done | sort
  2074. echo
  2075. fi
  2076. if test -s confdefs.h; then
  2077. $as_echo "## ----------- ##
  2078. ## confdefs.h. ##
  2079. ## ----------- ##"
  2080. echo
  2081. cat confdefs.h
  2082. echo
  2083. fi
  2084. test "$ac_signal" != 0 &&
  2085. $as_echo "$as_me: caught signal $ac_signal"
  2086. $as_echo "$as_me: exit $exit_status"
  2087. } >&5
  2088. rm -f core *.core core.conftest.* &&
  2089. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2090. exit $exit_status
  2091. ' 0
  2092. for ac_signal in 1 2 13 15; do
  2093. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2094. done
  2095. ac_signal=0
  2096. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2097. rm -f -r conftest* confdefs.h
  2098. $as_echo "/* confdefs.h */" > confdefs.h
  2099. # Predefined preprocessor variables.
  2100. cat >>confdefs.h <<_ACEOF
  2101. #define PACKAGE_NAME "$PACKAGE_NAME"
  2102. _ACEOF
  2103. cat >>confdefs.h <<_ACEOF
  2104. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2105. _ACEOF
  2106. cat >>confdefs.h <<_ACEOF
  2107. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2108. _ACEOF
  2109. cat >>confdefs.h <<_ACEOF
  2110. #define PACKAGE_STRING "$PACKAGE_STRING"
  2111. _ACEOF
  2112. cat >>confdefs.h <<_ACEOF
  2113. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2114. _ACEOF
  2115. cat >>confdefs.h <<_ACEOF
  2116. #define PACKAGE_URL "$PACKAGE_URL"
  2117. _ACEOF
  2118. # Let the site file select an alternate cache file if it wants to.
  2119. # Prefer an explicitly selected file to automatically selected ones.
  2120. ac_site_file1=NONE
  2121. ac_site_file2=NONE
  2122. if test -n "$CONFIG_SITE"; then
  2123. # We do not want a PATH search for config.site.
  2124. case $CONFIG_SITE in #((
  2125. -*) ac_site_file1=./$CONFIG_SITE;;
  2126. */*) ac_site_file1=$CONFIG_SITE;;
  2127. *) ac_site_file1=./$CONFIG_SITE;;
  2128. esac
  2129. elif test "x$prefix" != xNONE; then
  2130. ac_site_file1=$prefix/share/config.site
  2131. ac_site_file2=$prefix/etc/config.site
  2132. else
  2133. ac_site_file1=$ac_default_prefix/share/config.site
  2134. ac_site_file2=$ac_default_prefix/etc/config.site
  2135. fi
  2136. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2137. do
  2138. test "x$ac_site_file" = xNONE && continue
  2139. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2141. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2142. sed 's/^/| /' "$ac_site_file" >&5
  2143. . "$ac_site_file" \
  2144. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2146. as_fn_error $? "failed to load site script $ac_site_file
  2147. See \`config.log' for more details" "$LINENO" 5; }
  2148. fi
  2149. done
  2150. if test -r "$cache_file"; then
  2151. # Some versions of bash will fail to source /dev/null (special files
  2152. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2153. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2155. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2156. case $cache_file in
  2157. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2158. *) . "./$cache_file";;
  2159. esac
  2160. fi
  2161. else
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2163. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2164. >$cache_file
  2165. fi
  2166. # Check that the precious variables saved in the cache have kept the same
  2167. # value.
  2168. ac_cache_corrupted=false
  2169. for ac_var in $ac_precious_vars; do
  2170. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2171. eval ac_new_set=\$ac_env_${ac_var}_set
  2172. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2173. eval ac_new_val=\$ac_env_${ac_var}_value
  2174. case $ac_old_set,$ac_new_set in
  2175. set,)
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2177. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2178. ac_cache_corrupted=: ;;
  2179. ,set)
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2181. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2182. ac_cache_corrupted=: ;;
  2183. ,);;
  2184. *)
  2185. if test "x$ac_old_val" != "x$ac_new_val"; then
  2186. # differences in whitespace do not lead to failure.
  2187. ac_old_val_w=`echo x $ac_old_val`
  2188. ac_new_val_w=`echo x $ac_new_val`
  2189. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2191. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2192. ac_cache_corrupted=:
  2193. else
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2195. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2196. eval $ac_var=\$ac_old_val
  2197. fi
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2199. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2201. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2202. fi;;
  2203. esac
  2204. # Pass precious variables to config.status.
  2205. if test "$ac_new_set" = set; then
  2206. case $ac_new_val in
  2207. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2208. *) ac_arg=$ac_var=$ac_new_val ;;
  2209. esac
  2210. case " $ac_configure_args " in
  2211. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2212. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2213. esac
  2214. fi
  2215. done
  2216. if $ac_cache_corrupted; then
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2220. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2221. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2222. fi
  2223. ## -------------------- ##
  2224. ## Main body of script. ##
  2225. ## -------------------- ##
  2226. ac_ext=c
  2227. ac_cpp='$CPP $CPPFLAGS'
  2228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2232. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2233. # Check whether --enable-maintainer-mode was given.
  2234. if test "${enable_maintainer_mode+set}" = set; then :
  2235. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2236. else
  2237. USE_MAINTAINER_MODE=yes
  2238. fi
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2240. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2241. if test $USE_MAINTAINER_MODE = yes; then
  2242. MAINTAINER_MODE_TRUE=
  2243. MAINTAINER_MODE_FALSE='#'
  2244. else
  2245. MAINTAINER_MODE_TRUE='#'
  2246. MAINTAINER_MODE_FALSE=
  2247. fi
  2248. MAINT=$MAINTAINER_MODE_TRUE
  2249. ac_config_headers="$ac_config_headers config.h"
  2250. # autoconf's default CXXFLAGS are usually "-g -O2". These aren't necessarily
  2251. # the best choice for libprotobuf.
  2252. if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
  2253. CFLAGS=""
  2254. fi
  2255. if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
  2256. CXXFLAGS=""
  2257. fi
  2258. ac_aux_dir=
  2259. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2260. if test -f "$ac_dir/install-sh"; then
  2261. ac_aux_dir=$ac_dir
  2262. ac_install_sh="$ac_aux_dir/install-sh -c"
  2263. break
  2264. elif test -f "$ac_dir/install.sh"; then
  2265. ac_aux_dir=$ac_dir
  2266. ac_install_sh="$ac_aux_dir/install.sh -c"
  2267. break
  2268. elif test -f "$ac_dir/shtool"; then
  2269. ac_aux_dir=$ac_dir
  2270. ac_install_sh="$ac_aux_dir/shtool install -c"
  2271. break
  2272. fi
  2273. done
  2274. if test -z "$ac_aux_dir"; then
  2275. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2276. fi
  2277. # These three variables are undocumented and unsupported,
  2278. # and are intended to be withdrawn in a future Autoconf release.
  2279. # They can cause serious problems if a builder's source tree is in a directory
  2280. # whose full name contains unusual characters.
  2281. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2282. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2283. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2284. # Make sure we can run config.sub.
  2285. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2286. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2288. $as_echo_n "checking build system type... " >&6; }
  2289. if ${ac_cv_build+:} false; then :
  2290. $as_echo_n "(cached) " >&6
  2291. else
  2292. ac_build_alias=$build_alias
  2293. test "x$ac_build_alias" = x &&
  2294. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2295. test "x$ac_build_alias" = x &&
  2296. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2297. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2298. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2299. fi
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2301. $as_echo "$ac_cv_build" >&6; }
  2302. case $ac_cv_build in
  2303. *-*-*) ;;
  2304. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2305. esac
  2306. build=$ac_cv_build
  2307. ac_save_IFS=$IFS; IFS='-'
  2308. set x $ac_cv_build
  2309. shift
  2310. build_cpu=$1
  2311. build_vendor=$2
  2312. shift; shift
  2313. # Remember, the first character of IFS is used to create $*,
  2314. # except with old shells:
  2315. build_os=$*
  2316. IFS=$ac_save_IFS
  2317. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2319. $as_echo_n "checking host system type... " >&6; }
  2320. if ${ac_cv_host+:} false; then :
  2321. $as_echo_n "(cached) " >&6
  2322. else
  2323. if test "x$host_alias" = x; then
  2324. ac_cv_host=$ac_cv_build
  2325. else
  2326. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2327. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2328. fi
  2329. fi
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2331. $as_echo "$ac_cv_host" >&6; }
  2332. case $ac_cv_host in
  2333. *-*-*) ;;
  2334. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2335. esac
  2336. host=$ac_cv_host
  2337. ac_save_IFS=$IFS; IFS='-'
  2338. set x $ac_cv_host
  2339. shift
  2340. host_cpu=$1
  2341. host_vendor=$2
  2342. shift; shift
  2343. # Remember, the first character of IFS is used to create $*,
  2344. # except with old shells:
  2345. host_os=$*
  2346. IFS=$ac_save_IFS
  2347. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2349. $as_echo_n "checking target system type... " >&6; }
  2350. if ${ac_cv_target+:} false; then :
  2351. $as_echo_n "(cached) " >&6
  2352. else
  2353. if test "x$target_alias" = x; then
  2354. ac_cv_target=$ac_cv_host
  2355. else
  2356. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2357. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2358. fi
  2359. fi
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2361. $as_echo "$ac_cv_target" >&6; }
  2362. case $ac_cv_target in
  2363. *-*-*) ;;
  2364. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2365. esac
  2366. target=$ac_cv_target
  2367. ac_save_IFS=$IFS; IFS='-'
  2368. set x $ac_cv_target
  2369. shift
  2370. target_cpu=$1
  2371. target_vendor=$2
  2372. shift; shift
  2373. # Remember, the first character of IFS is used to create $*,
  2374. # except with old shells:
  2375. target_os=$*
  2376. IFS=$ac_save_IFS
  2377. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2378. # The aliases save the names the user supplied, while $host etc.
  2379. # will get canonicalized.
  2380. test -n "$target_alias" &&
  2381. test "$program_prefix$program_suffix$program_transform_name" = \
  2382. NONENONEs,x,x, &&
  2383. program_prefix=${target_alias}-
  2384. am__api_version='1.11'
  2385. # Find a good install program. We prefer a C program (faster),
  2386. # so one script is as good as another. But avoid the broken or
  2387. # incompatible versions:
  2388. # SysV /etc/install, /usr/sbin/install
  2389. # SunOS /usr/etc/install
  2390. # IRIX /sbin/install
  2391. # AIX /bin/install
  2392. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2393. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2394. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2395. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2396. # OS/2's system install, which has a completely different semantic
  2397. # ./install, which can be erroneously created by make from ./install.sh.
  2398. # Reject install programs that cannot install multiple files.
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2400. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2401. if test -z "$INSTALL"; then
  2402. if ${ac_cv_path_install+:} false; then :
  2403. $as_echo_n "(cached) " >&6
  2404. else
  2405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2406. for as_dir in $PATH
  2407. do
  2408. IFS=$as_save_IFS
  2409. test -z "$as_dir" && as_dir=.
  2410. # Account for people who put trailing slashes in PATH elements.
  2411. case $as_dir/ in #((
  2412. ./ | .// | /[cC]/* | \
  2413. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2414. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2415. /usr/ucb/* ) ;;
  2416. *)
  2417. # OSF1 and SCO ODT 3.0 have their own names for install.
  2418. # Don't use installbsd from OSF since it installs stuff as root
  2419. # by default.
  2420. for ac_prog in ginstall scoinst install; do
  2421. for ac_exec_ext in '' $ac_executable_extensions; do
  2422. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2423. if test $ac_prog = install &&
  2424. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2425. # AIX install. It has an incompatible calling convention.
  2426. :
  2427. elif test $ac_prog = install &&
  2428. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2429. # program-specific install script used by HP pwplus--don't use.
  2430. :
  2431. else
  2432. rm -rf conftest.one conftest.two conftest.dir
  2433. echo one > conftest.one
  2434. echo two > conftest.two
  2435. mkdir conftest.dir
  2436. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2437. test -s conftest.one && test -s conftest.two &&
  2438. test -s conftest.dir/conftest.one &&
  2439. test -s conftest.dir/conftest.two
  2440. then
  2441. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2442. break 3
  2443. fi
  2444. fi
  2445. fi
  2446. done
  2447. done
  2448. ;;
  2449. esac
  2450. done
  2451. IFS=$as_save_IFS
  2452. rm -rf conftest.one conftest.two conftest.dir
  2453. fi
  2454. if test "${ac_cv_path_install+set}" = set; then
  2455. INSTALL=$ac_cv_path_install
  2456. else
  2457. # As a last resort, use the slow shell script. Don't cache a
  2458. # value for INSTALL within a source directory, because that will
  2459. # break other packages using the cache if that directory is
  2460. # removed, or if the value is a relative name.
  2461. INSTALL=$ac_install_sh
  2462. fi
  2463. fi
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2465. $as_echo "$INSTALL" >&6; }
  2466. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2467. # It thinks the first close brace ends the variable substitution.
  2468. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2469. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2470. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2472. $as_echo_n "checking whether build environment is sane... " >&6; }
  2473. # Just in case
  2474. sleep 1
  2475. echo timestamp > conftest.file
  2476. # Reject unsafe characters in $srcdir or the absolute working directory
  2477. # name. Accept space and tab only in the latter.
  2478. am_lf='
  2479. '
  2480. case `pwd` in
  2481. *[\\\"\#\$\&\'\`$am_lf]*)
  2482. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2483. esac
  2484. case $srcdir in
  2485. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2486. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2487. esac
  2488. # Do `set' in a subshell so we don't clobber the current shell's
  2489. # arguments. Must try -L first in case configure is actually a
  2490. # symlink; some systems play weird games with the mod time of symlinks
  2491. # (eg FreeBSD returns the mod time of the symlink's containing
  2492. # directory).
  2493. if (
  2494. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2495. if test "$*" = "X"; then
  2496. # -L didn't work.
  2497. set X `ls -t "$srcdir/configure" conftest.file`
  2498. fi
  2499. rm -f conftest.file
  2500. if test "$*" != "X $srcdir/configure conftest.file" \
  2501. && test "$*" != "X conftest.file $srcdir/configure"; then
  2502. # If neither matched, then we have a broken ls. This can happen
  2503. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2504. # broken ls alias from the environment. This has actually
  2505. # happened. Such a system could not be considered "sane".
  2506. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2507. alias in your environment" "$LINENO" 5
  2508. fi
  2509. test "$2" = conftest.file
  2510. )
  2511. then
  2512. # Ok.
  2513. :
  2514. else
  2515. as_fn_error $? "newly created file is older than distributed files!
  2516. Check your system clock" "$LINENO" 5
  2517. fi
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2519. $as_echo "yes" >&6; }
  2520. test "$program_prefix" != NONE &&
  2521. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2522. # Use a double $ so make ignores it.
  2523. test "$program_suffix" != NONE &&
  2524. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2525. # Double any \ or $.
  2526. # By default was `s,x,x', remove it if useless.
  2527. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2528. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2529. # expand $ac_aux_dir to an absolute path
  2530. am_aux_dir=`cd $ac_aux_dir && pwd`
  2531. if test x"${MISSING+set}" != xset; then
  2532. case $am_aux_dir in
  2533. *\ * | *\ *)
  2534. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2535. *)
  2536. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2537. esac
  2538. fi
  2539. # Use eval to expand $SHELL
  2540. if eval "$MISSING --run true"; then
  2541. am_missing_run="$MISSING --run "
  2542. else
  2543. am_missing_run=
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2545. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2546. fi
  2547. if test x"${install_sh}" != xset; then
  2548. case $am_aux_dir in
  2549. *\ * | *\ *)
  2550. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2551. *)
  2552. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2553. esac
  2554. fi
  2555. # Installed binaries are usually stripped using `strip' when the user
  2556. # run `make install-strip'. However `strip' might not be the right
  2557. # tool to use in cross-compilation environments, therefore Automake
  2558. # will honor the `STRIP' environment variable to overrule this program.
  2559. if test "$cross_compiling" != no; then
  2560. if test -n "$ac_tool_prefix"; then
  2561. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2562. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2564. $as_echo_n "checking for $ac_word... " >&6; }
  2565. if ${ac_cv_prog_STRIP+:} false; then :
  2566. $as_echo_n "(cached) " >&6
  2567. else
  2568. if test -n "$STRIP"; then
  2569. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2570. else
  2571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2572. for as_dir in $PATH
  2573. do
  2574. IFS=$as_save_IFS
  2575. test -z "$as_dir" && as_dir=.
  2576. for ac_exec_ext in '' $ac_executable_extensions; do
  2577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2578. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2580. break 2
  2581. fi
  2582. done
  2583. done
  2584. IFS=$as_save_IFS
  2585. fi
  2586. fi
  2587. STRIP=$ac_cv_prog_STRIP
  2588. if test -n "$STRIP"; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2590. $as_echo "$STRIP" >&6; }
  2591. else
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2593. $as_echo "no" >&6; }
  2594. fi
  2595. fi
  2596. if test -z "$ac_cv_prog_STRIP"; then
  2597. ac_ct_STRIP=$STRIP
  2598. # Extract the first word of "strip", so it can be a program name with args.
  2599. set dummy strip; ac_word=$2
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2601. $as_echo_n "checking for $ac_word... " >&6; }
  2602. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. if test -n "$ac_ct_STRIP"; then
  2606. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. test -z "$as_dir" && as_dir=.
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2615. ac_cv_prog_ac_ct_STRIP="strip"
  2616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2617. break 2
  2618. fi
  2619. done
  2620. done
  2621. IFS=$as_save_IFS
  2622. fi
  2623. fi
  2624. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2625. if test -n "$ac_ct_STRIP"; then
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2627. $as_echo "$ac_ct_STRIP" >&6; }
  2628. else
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2630. $as_echo "no" >&6; }
  2631. fi
  2632. if test "x$ac_ct_STRIP" = x; then
  2633. STRIP=":"
  2634. else
  2635. case $cross_compiling:$ac_tool_warned in
  2636. yes:)
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2639. ac_tool_warned=yes ;;
  2640. esac
  2641. STRIP=$ac_ct_STRIP
  2642. fi
  2643. else
  2644. STRIP="$ac_cv_prog_STRIP"
  2645. fi
  2646. fi
  2647. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2649. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2650. if test -z "$MKDIR_P"; then
  2651. if ${ac_cv_path_mkdir+:} false; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2655. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2656. do
  2657. IFS=$as_save_IFS
  2658. test -z "$as_dir" && as_dir=.
  2659. for ac_prog in mkdir gmkdir; do
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2662. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2663. 'mkdir (GNU coreutils) '* | \
  2664. 'mkdir (coreutils) '* | \
  2665. 'mkdir (fileutils) '4.1*)
  2666. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2667. break 3;;
  2668. esac
  2669. done
  2670. done
  2671. done
  2672. IFS=$as_save_IFS
  2673. fi
  2674. test -d ./--version && rmdir ./--version
  2675. if test "${ac_cv_path_mkdir+set}" = set; then
  2676. MKDIR_P="$ac_cv_path_mkdir -p"
  2677. else
  2678. # As a last resort, use the slow shell script. Don't cache a
  2679. # value for MKDIR_P within a source directory, because that will
  2680. # break other packages using the cache if that directory is
  2681. # removed, or if the value is a relative name.
  2682. MKDIR_P="$ac_install_sh -d"
  2683. fi
  2684. fi
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2686. $as_echo "$MKDIR_P" >&6; }
  2687. mkdir_p="$MKDIR_P"
  2688. case $mkdir_p in
  2689. [\\/$]* | ?:[\\/]*) ;;
  2690. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2691. esac
  2692. for ac_prog in gawk mawk nawk awk
  2693. do
  2694. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2695. set dummy $ac_prog; ac_word=$2
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2697. $as_echo_n "checking for $ac_word... " >&6; }
  2698. if ${ac_cv_prog_AWK+:} false; then :
  2699. $as_echo_n "(cached) " >&6
  2700. else
  2701. if test -n "$AWK"; then
  2702. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2703. else
  2704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2705. for as_dir in $PATH
  2706. do
  2707. IFS=$as_save_IFS
  2708. test -z "$as_dir" && as_dir=.
  2709. for ac_exec_ext in '' $ac_executable_extensions; do
  2710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2711. ac_cv_prog_AWK="$ac_prog"
  2712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2713. break 2
  2714. fi
  2715. done
  2716. done
  2717. IFS=$as_save_IFS
  2718. fi
  2719. fi
  2720. AWK=$ac_cv_prog_AWK
  2721. if test -n "$AWK"; then
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2723. $as_echo "$AWK" >&6; }
  2724. else
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2726. $as_echo "no" >&6; }
  2727. fi
  2728. test -n "$AWK" && break
  2729. done
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2731. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2732. set x ${MAKE-make}
  2733. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2734. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2735. $as_echo_n "(cached) " >&6
  2736. else
  2737. cat >conftest.make <<\_ACEOF
  2738. SHELL = /bin/sh
  2739. all:
  2740. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2741. _ACEOF
  2742. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2743. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2744. *@@@%%%=?*=@@@%%%*)
  2745. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2746. *)
  2747. eval ac_cv_prog_make_${ac_make}_set=no;;
  2748. esac
  2749. rm -f conftest.make
  2750. fi
  2751. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2753. $as_echo "yes" >&6; }
  2754. SET_MAKE=
  2755. else
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2757. $as_echo "no" >&6; }
  2758. SET_MAKE="MAKE=${MAKE-make}"
  2759. fi
  2760. rm -rf .tst 2>/dev/null
  2761. mkdir .tst 2>/dev/null
  2762. if test -d .tst; then
  2763. am__leading_dot=.
  2764. else
  2765. am__leading_dot=_
  2766. fi
  2767. rmdir .tst 2>/dev/null
  2768. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2769. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2770. # is not polluted with repeated "-I."
  2771. am__isrc=' -I$(srcdir)'
  2772. # test to see if srcdir already configured
  2773. if test -f $srcdir/config.status; then
  2774. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2775. fi
  2776. fi
  2777. # test whether we have cygpath
  2778. if test -z "$CYGPATH_W"; then
  2779. if (cygpath --version) >/dev/null 2>/dev/null; then
  2780. CYGPATH_W='cygpath -w'
  2781. else
  2782. CYGPATH_W=echo
  2783. fi
  2784. fi
  2785. # Define the identity of the package.
  2786. PACKAGE='protobuf'
  2787. VERSION='2.5.0'
  2788. cat >>confdefs.h <<_ACEOF
  2789. #define PACKAGE "$PACKAGE"
  2790. _ACEOF
  2791. cat >>confdefs.h <<_ACEOF
  2792. #define VERSION "$VERSION"
  2793. _ACEOF
  2794. # Some tools Automake needs.
  2795. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2796. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2797. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2798. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2799. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2800. # We need awk for the "check" target. The system "awk" is bad on
  2801. # some platforms.
  2802. # Always define AMTAR for backward compatibility. Yes, it's still used
  2803. # in the wild :-( We should find a proper way to deprecate it ...
  2804. AMTAR='$${TAR-tar}'
  2805. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2806. # Check whether --with-zlib was given.
  2807. if test "${with_zlib+set}" = set; then :
  2808. withval=$with_zlib;
  2809. else
  2810. with_zlib=check
  2811. fi
  2812. # Check whether --with-protoc was given.
  2813. if test "${with_protoc+set}" = set; then :
  2814. withval=$with_protoc;
  2815. else
  2816. with_protoc=no
  2817. fi
  2818. # Checks for programs.
  2819. ac_ext=c
  2820. ac_cpp='$CPP $CPPFLAGS'
  2821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2824. if test -n "$ac_tool_prefix"; then
  2825. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2826. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2828. $as_echo_n "checking for $ac_word... " >&6; }
  2829. if ${ac_cv_prog_CC+:} false; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. if test -n "$CC"; then
  2833. ac_cv_prog_CC="$CC" # Let the user override the test.
  2834. else
  2835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2836. for as_dir in $PATH
  2837. do
  2838. IFS=$as_save_IFS
  2839. test -z "$as_dir" && as_dir=.
  2840. for ac_exec_ext in '' $ac_executable_extensions; do
  2841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2842. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2844. break 2
  2845. fi
  2846. done
  2847. done
  2848. IFS=$as_save_IFS
  2849. fi
  2850. fi
  2851. CC=$ac_cv_prog_CC
  2852. if test -n "$CC"; then
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2854. $as_echo "$CC" >&6; }
  2855. else
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2857. $as_echo "no" >&6; }
  2858. fi
  2859. fi
  2860. if test -z "$ac_cv_prog_CC"; then
  2861. ac_ct_CC=$CC
  2862. # Extract the first word of "gcc", so it can be a program name with args.
  2863. set dummy gcc; ac_word=$2
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2865. $as_echo_n "checking for $ac_word... " >&6; }
  2866. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2867. $as_echo_n "(cached) " >&6
  2868. else
  2869. if test -n "$ac_ct_CC"; then
  2870. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2871. else
  2872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2873. for as_dir in $PATH
  2874. do
  2875. IFS=$as_save_IFS
  2876. test -z "$as_dir" && as_dir=.
  2877. for ac_exec_ext in '' $ac_executable_extensions; do
  2878. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2879. ac_cv_prog_ac_ct_CC="gcc"
  2880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2881. break 2
  2882. fi
  2883. done
  2884. done
  2885. IFS=$as_save_IFS
  2886. fi
  2887. fi
  2888. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2889. if test -n "$ac_ct_CC"; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2891. $as_echo "$ac_ct_CC" >&6; }
  2892. else
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. $as_echo "no" >&6; }
  2895. fi
  2896. if test "x$ac_ct_CC" = x; then
  2897. CC=""
  2898. else
  2899. case $cross_compiling:$ac_tool_warned in
  2900. yes:)
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2902. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2903. ac_tool_warned=yes ;;
  2904. esac
  2905. CC=$ac_ct_CC
  2906. fi
  2907. else
  2908. CC="$ac_cv_prog_CC"
  2909. fi
  2910. if test -z "$CC"; then
  2911. if test -n "$ac_tool_prefix"; then
  2912. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2913. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2915. $as_echo_n "checking for $ac_word... " >&6; }
  2916. if ${ac_cv_prog_CC+:} false; then :
  2917. $as_echo_n "(cached) " >&6
  2918. else
  2919. if test -n "$CC"; then
  2920. ac_cv_prog_CC="$CC" # Let the user override the test.
  2921. else
  2922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2923. for as_dir in $PATH
  2924. do
  2925. IFS=$as_save_IFS
  2926. test -z "$as_dir" && as_dir=.
  2927. for ac_exec_ext in '' $ac_executable_extensions; do
  2928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2929. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2931. break 2
  2932. fi
  2933. done
  2934. done
  2935. IFS=$as_save_IFS
  2936. fi
  2937. fi
  2938. CC=$ac_cv_prog_CC
  2939. if test -n "$CC"; then
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2941. $as_echo "$CC" >&6; }
  2942. else
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2944. $as_echo "no" >&6; }
  2945. fi
  2946. fi
  2947. fi
  2948. if test -z "$CC"; then
  2949. # Extract the first word of "cc", so it can be a program name with args.
  2950. set dummy cc; ac_word=$2
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2952. $as_echo_n "checking for $ac_word... " >&6; }
  2953. if ${ac_cv_prog_CC+:} false; then :
  2954. $as_echo_n "(cached) " >&6
  2955. else
  2956. if test -n "$CC"; then
  2957. ac_cv_prog_CC="$CC" # Let the user override the test.
  2958. else
  2959. ac_prog_rejected=no
  2960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2961. for as_dir in $PATH
  2962. do
  2963. IFS=$as_save_IFS
  2964. test -z "$as_dir" && as_dir=.
  2965. for ac_exec_ext in '' $ac_executable_extensions; do
  2966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2967. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2968. ac_prog_rejected=yes
  2969. continue
  2970. fi
  2971. ac_cv_prog_CC="cc"
  2972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2973. break 2
  2974. fi
  2975. done
  2976. done
  2977. IFS=$as_save_IFS
  2978. if test $ac_prog_rejected = yes; then
  2979. # We found a bogon in the path, so make sure we never use it.
  2980. set dummy $ac_cv_prog_CC
  2981. shift
  2982. if test $# != 0; then
  2983. # We chose a different compiler from the bogus one.
  2984. # However, it has the same basename, so the bogon will be chosen
  2985. # first if we set CC to just the basename; use the full file name.
  2986. shift
  2987. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2988. fi
  2989. fi
  2990. fi
  2991. fi
  2992. CC=$ac_cv_prog_CC
  2993. if test -n "$CC"; then
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2995. $as_echo "$CC" >&6; }
  2996. else
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2998. $as_echo "no" >&6; }
  2999. fi
  3000. fi
  3001. if test -z "$CC"; then
  3002. if test -n "$ac_tool_prefix"; then
  3003. for ac_prog in cl.exe
  3004. do
  3005. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3006. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3008. $as_echo_n "checking for $ac_word... " >&6; }
  3009. if ${ac_cv_prog_CC+:} false; then :
  3010. $as_echo_n "(cached) " >&6
  3011. else
  3012. if test -n "$CC"; then
  3013. ac_cv_prog_CC="$CC" # Let the user override the test.
  3014. else
  3015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3016. for as_dir in $PATH
  3017. do
  3018. IFS=$as_save_IFS
  3019. test -z "$as_dir" && as_dir=.
  3020. for ac_exec_ext in '' $ac_executable_extensions; do
  3021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3022. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3024. break 2
  3025. fi
  3026. done
  3027. done
  3028. IFS=$as_save_IFS
  3029. fi
  3030. fi
  3031. CC=$ac_cv_prog_CC
  3032. if test -n "$CC"; then
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3034. $as_echo "$CC" >&6; }
  3035. else
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3037. $as_echo "no" >&6; }
  3038. fi
  3039. test -n "$CC" && break
  3040. done
  3041. fi
  3042. if test -z "$CC"; then
  3043. ac_ct_CC=$CC
  3044. for ac_prog in cl.exe
  3045. do
  3046. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3047. set dummy $ac_prog; ac_word=$2
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3049. $as_echo_n "checking for $ac_word... " >&6; }
  3050. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3051. $as_echo_n "(cached) " >&6
  3052. else
  3053. if test -n "$ac_ct_CC"; then
  3054. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3055. else
  3056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3057. for as_dir in $PATH
  3058. do
  3059. IFS=$as_save_IFS
  3060. test -z "$as_dir" && as_dir=.
  3061. for ac_exec_ext in '' $ac_executable_extensions; do
  3062. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3063. ac_cv_prog_ac_ct_CC="$ac_prog"
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3065. break 2
  3066. fi
  3067. done
  3068. done
  3069. IFS=$as_save_IFS
  3070. fi
  3071. fi
  3072. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3073. if test -n "$ac_ct_CC"; then
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3075. $as_echo "$ac_ct_CC" >&6; }
  3076. else
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3078. $as_echo "no" >&6; }
  3079. fi
  3080. test -n "$ac_ct_CC" && break
  3081. done
  3082. if test "x$ac_ct_CC" = x; then
  3083. CC=""
  3084. else
  3085. case $cross_compiling:$ac_tool_warned in
  3086. yes:)
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3089. ac_tool_warned=yes ;;
  3090. esac
  3091. CC=$ac_ct_CC
  3092. fi
  3093. fi
  3094. fi
  3095. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3097. as_fn_error $? "no acceptable C compiler found in \$PATH
  3098. See \`config.log' for more details" "$LINENO" 5; }
  3099. # Provide some information about the compiler.
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3101. set X $ac_compile
  3102. ac_compiler=$2
  3103. for ac_option in --version -v -V -qversion; do
  3104. { { ac_try="$ac_compiler $ac_option >&5"
  3105. case "(($ac_try" in
  3106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3107. *) ac_try_echo=$ac_try;;
  3108. esac
  3109. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3110. $as_echo "$ac_try_echo"; } >&5
  3111. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3112. ac_status=$?
  3113. if test -s conftest.err; then
  3114. sed '10a\
  3115. ... rest of stderr output deleted ...
  3116. 10q' conftest.err >conftest.er1
  3117. cat conftest.er1 >&5
  3118. fi
  3119. rm -f conftest.er1 conftest.err
  3120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3121. test $ac_status = 0; }
  3122. done
  3123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3124. /* end confdefs.h. */
  3125. int
  3126. main ()
  3127. {
  3128. ;
  3129. return 0;
  3130. }
  3131. _ACEOF
  3132. ac_clean_files_save=$ac_clean_files
  3133. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3134. # Try to create an executable without -o first, disregard a.out.
  3135. # It will help us diagnose broken compilers, and finding out an intuition
  3136. # of exeext.
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3138. $as_echo_n "checking whether the C compiler works... " >&6; }
  3139. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3140. # The possible output files:
  3141. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3142. ac_rmfiles=
  3143. for ac_file in $ac_files
  3144. do
  3145. case $ac_file in
  3146. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3147. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3148. esac
  3149. done
  3150. rm -f $ac_rmfiles
  3151. if { { ac_try="$ac_link_default"
  3152. case "(($ac_try" in
  3153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3154. *) ac_try_echo=$ac_try;;
  3155. esac
  3156. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3157. $as_echo "$ac_try_echo"; } >&5
  3158. (eval "$ac_link_default") 2>&5
  3159. ac_status=$?
  3160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3161. test $ac_status = 0; }; then :
  3162. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3163. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3164. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3165. # so that the user can short-circuit this test for compilers unknown to
  3166. # Autoconf.
  3167. for ac_file in $ac_files ''
  3168. do
  3169. test -f "$ac_file" || continue
  3170. case $ac_file in
  3171. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3172. ;;
  3173. [ab].out )
  3174. # We found the default executable, but exeext='' is most
  3175. # certainly right.
  3176. break;;
  3177. *.* )
  3178. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3179. then :; else
  3180. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3181. fi
  3182. # We set ac_cv_exeext here because the later test for it is not
  3183. # safe: cross compilers may not add the suffix if given an `-o'
  3184. # argument, so we may need to know it at that point already.
  3185. # Even if this section looks crufty: it has the advantage of
  3186. # actually working.
  3187. break;;
  3188. * )
  3189. break;;
  3190. esac
  3191. done
  3192. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3193. else
  3194. ac_file=''
  3195. fi
  3196. if test -z "$ac_file"; then :
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3198. $as_echo "no" >&6; }
  3199. $as_echo "$as_me: failed program was:" >&5
  3200. sed 's/^/| /' conftest.$ac_ext >&5
  3201. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3202. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3203. as_fn_error 77 "C compiler cannot create executables
  3204. See \`config.log' for more details" "$LINENO" 5; }
  3205. else
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3207. $as_echo "yes" >&6; }
  3208. fi
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3210. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3212. $as_echo "$ac_file" >&6; }
  3213. ac_exeext=$ac_cv_exeext
  3214. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3215. ac_clean_files=$ac_clean_files_save
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3217. $as_echo_n "checking for suffix of executables... " >&6; }
  3218. if { { ac_try="$ac_link"
  3219. case "(($ac_try" in
  3220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3221. *) ac_try_echo=$ac_try;;
  3222. esac
  3223. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3224. $as_echo "$ac_try_echo"; } >&5
  3225. (eval "$ac_link") 2>&5
  3226. ac_status=$?
  3227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3228. test $ac_status = 0; }; then :
  3229. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3230. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3231. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3232. # `rm'.
  3233. for ac_file in conftest.exe conftest conftest.*; do
  3234. test -f "$ac_file" || continue
  3235. case $ac_file in
  3236. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3237. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3238. break;;
  3239. * ) break;;
  3240. esac
  3241. done
  3242. else
  3243. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3244. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3245. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3246. See \`config.log' for more details" "$LINENO" 5; }
  3247. fi
  3248. rm -f conftest conftest$ac_cv_exeext
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3250. $as_echo "$ac_cv_exeext" >&6; }
  3251. rm -f conftest.$ac_ext
  3252. EXEEXT=$ac_cv_exeext
  3253. ac_exeext=$EXEEXT
  3254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3255. /* end confdefs.h. */
  3256. #include <stdio.h>
  3257. int
  3258. main ()
  3259. {
  3260. FILE *f = fopen ("conftest.out", "w");
  3261. return ferror (f) || fclose (f) != 0;
  3262. ;
  3263. return 0;
  3264. }
  3265. _ACEOF
  3266. ac_clean_files="$ac_clean_files conftest.out"
  3267. # Check that the compiler produces executables we can run. If not, either
  3268. # the compiler is broken, or we cross compile.
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3270. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3271. if test "$cross_compiling" != yes; then
  3272. { { ac_try="$ac_link"
  3273. case "(($ac_try" in
  3274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3275. *) ac_try_echo=$ac_try;;
  3276. esac
  3277. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3278. $as_echo "$ac_try_echo"; } >&5
  3279. (eval "$ac_link") 2>&5
  3280. ac_status=$?
  3281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3282. test $ac_status = 0; }
  3283. if { ac_try='./conftest$ac_cv_exeext'
  3284. { { case "(($ac_try" in
  3285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3286. *) ac_try_echo=$ac_try;;
  3287. esac
  3288. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3289. $as_echo "$ac_try_echo"; } >&5
  3290. (eval "$ac_try") 2>&5
  3291. ac_status=$?
  3292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3293. test $ac_status = 0; }; }; then
  3294. cross_compiling=no
  3295. else
  3296. if test "$cross_compiling" = maybe; then
  3297. cross_compiling=yes
  3298. else
  3299. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3300. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3301. as_fn_error $? "cannot run C compiled programs.
  3302. If you meant to cross compile, use \`--host'.
  3303. See \`config.log' for more details" "$LINENO" 5; }
  3304. fi
  3305. fi
  3306. fi
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3308. $as_echo "$cross_compiling" >&6; }
  3309. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3310. ac_clean_files=$ac_clean_files_save
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3312. $as_echo_n "checking for suffix of object files... " >&6; }
  3313. if ${ac_cv_objext+:} false; then :
  3314. $as_echo_n "(cached) " >&6
  3315. else
  3316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3317. /* end confdefs.h. */
  3318. int
  3319. main ()
  3320. {
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. rm -f conftest.o conftest.obj
  3326. if { { ac_try="$ac_compile"
  3327. case "(($ac_try" in
  3328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3329. *) ac_try_echo=$ac_try;;
  3330. esac
  3331. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3332. $as_echo "$ac_try_echo"; } >&5
  3333. (eval "$ac_compile") 2>&5
  3334. ac_status=$?
  3335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3336. test $ac_status = 0; }; then :
  3337. for ac_file in conftest.o conftest.obj conftest.*; do
  3338. test -f "$ac_file" || continue;
  3339. case $ac_file in
  3340. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3341. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3342. break;;
  3343. esac
  3344. done
  3345. else
  3346. $as_echo "$as_me: failed program was:" >&5
  3347. sed 's/^/| /' conftest.$ac_ext >&5
  3348. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3349. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3350. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3351. See \`config.log' for more details" "$LINENO" 5; }
  3352. fi
  3353. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3356. $as_echo "$ac_cv_objext" >&6; }
  3357. OBJEXT=$ac_cv_objext
  3358. ac_objext=$OBJEXT
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3360. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3361. if ${ac_cv_c_compiler_gnu+:} false; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3365. /* end confdefs.h. */
  3366. int
  3367. main ()
  3368. {
  3369. #ifndef __GNUC__
  3370. choke me
  3371. #endif
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. if ac_fn_c_try_compile "$LINENO"; then :
  3377. ac_compiler_gnu=yes
  3378. else
  3379. ac_compiler_gnu=no
  3380. fi
  3381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3382. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3383. fi
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3385. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3386. if test $ac_compiler_gnu = yes; then
  3387. GCC=yes
  3388. else
  3389. GCC=
  3390. fi
  3391. ac_test_CFLAGS=${CFLAGS+set}
  3392. ac_save_CFLAGS=$CFLAGS
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3394. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3395. if ${ac_cv_prog_cc_g+:} false; then :
  3396. $as_echo_n "(cached) " >&6
  3397. else
  3398. ac_save_c_werror_flag=$ac_c_werror_flag
  3399. ac_c_werror_flag=yes
  3400. ac_cv_prog_cc_g=no
  3401. CFLAGS="-g"
  3402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3403. /* end confdefs.h. */
  3404. int
  3405. main ()
  3406. {
  3407. ;
  3408. return 0;
  3409. }
  3410. _ACEOF
  3411. if ac_fn_c_try_compile "$LINENO"; then :
  3412. ac_cv_prog_cc_g=yes
  3413. else
  3414. CFLAGS=""
  3415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3416. /* end confdefs.h. */
  3417. int
  3418. main ()
  3419. {
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. if ac_fn_c_try_compile "$LINENO"; then :
  3425. else
  3426. ac_c_werror_flag=$ac_save_c_werror_flag
  3427. CFLAGS="-g"
  3428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3429. /* end confdefs.h. */
  3430. int
  3431. main ()
  3432. {
  3433. ;
  3434. return 0;
  3435. }
  3436. _ACEOF
  3437. if ac_fn_c_try_compile "$LINENO"; then :
  3438. ac_cv_prog_cc_g=yes
  3439. fi
  3440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3441. fi
  3442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3443. fi
  3444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3445. ac_c_werror_flag=$ac_save_c_werror_flag
  3446. fi
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3448. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3449. if test "$ac_test_CFLAGS" = set; then
  3450. CFLAGS=$ac_save_CFLAGS
  3451. elif test $ac_cv_prog_cc_g = yes; then
  3452. if test "$GCC" = yes; then
  3453. CFLAGS="-g -O2"
  3454. else
  3455. CFLAGS="-g"
  3456. fi
  3457. else
  3458. if test "$GCC" = yes; then
  3459. CFLAGS="-O2"
  3460. else
  3461. CFLAGS=
  3462. fi
  3463. fi
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3465. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3466. if ${ac_cv_prog_cc_c89+:} false; then :
  3467. $as_echo_n "(cached) " >&6
  3468. else
  3469. ac_cv_prog_cc_c89=no
  3470. ac_save_CC=$CC
  3471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3472. /* end confdefs.h. */
  3473. #include <stdarg.h>
  3474. #include <stdio.h>
  3475. #include <sys/types.h>
  3476. #include <sys/stat.h>
  3477. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3478. struct buf { int x; };
  3479. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3480. static char *e (p, i)
  3481. char **p;
  3482. int i;
  3483. {
  3484. return p[i];
  3485. }
  3486. static char *f (char * (*g) (char **, int), char **p, ...)
  3487. {
  3488. char *s;
  3489. va_list v;
  3490. va_start (v,p);
  3491. s = g (p, va_arg (v,int));
  3492. va_end (v);
  3493. return s;
  3494. }
  3495. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3496. function prototypes and stuff, but not '\xHH' hex character constants.
  3497. These don't provoke an error unfortunately, instead are silently treated
  3498. as 'x'. The following induces an error, until -std is added to get
  3499. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3500. array size at least. It's necessary to write '\x00'==0 to get something
  3501. that's true only with -std. */
  3502. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3503. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3504. inside strings and character constants. */
  3505. #define FOO(x) 'x'
  3506. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3507. int test (int i, double x);
  3508. struct s1 {int (*f) (int a);};
  3509. struct s2 {int (*f) (double a);};
  3510. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3511. int argc;
  3512. char **argv;
  3513. int
  3514. main ()
  3515. {
  3516. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3517. ;
  3518. return 0;
  3519. }
  3520. _ACEOF
  3521. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3522. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3523. do
  3524. CC="$ac_save_CC $ac_arg"
  3525. if ac_fn_c_try_compile "$LINENO"; then :
  3526. ac_cv_prog_cc_c89=$ac_arg
  3527. fi
  3528. rm -f core conftest.err conftest.$ac_objext
  3529. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3530. done
  3531. rm -f conftest.$ac_ext
  3532. CC=$ac_save_CC
  3533. fi
  3534. # AC_CACHE_VAL
  3535. case "x$ac_cv_prog_cc_c89" in
  3536. x)
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3538. $as_echo "none needed" >&6; } ;;
  3539. xno)
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3541. $as_echo "unsupported" >&6; } ;;
  3542. *)
  3543. CC="$CC $ac_cv_prog_cc_c89"
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3545. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3546. esac
  3547. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3548. fi
  3549. ac_ext=c
  3550. ac_cpp='$CPP $CPPFLAGS'
  3551. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3552. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3553. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3554. DEPDIR="${am__leading_dot}deps"
  3555. ac_config_commands="$ac_config_commands depfiles"
  3556. am_make=${MAKE-make}
  3557. cat > confinc << 'END'
  3558. am__doit:
  3559. @echo this is the am__doit target
  3560. .PHONY: am__doit
  3561. END
  3562. # If we don't find an include directive, just comment out the code.
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3564. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3565. am__include="#"
  3566. am__quote=
  3567. _am_result=none
  3568. # First try GNU make style include.
  3569. echo "include confinc" > confmf
  3570. # Ignore all kinds of additional output from `make'.
  3571. case `$am_make -s -f confmf 2> /dev/null` in #(
  3572. *the\ am__doit\ target*)
  3573. am__include=include
  3574. am__quote=
  3575. _am_result=GNU
  3576. ;;
  3577. esac
  3578. # Now try BSD make style include.
  3579. if test "$am__include" = "#"; then
  3580. echo '.include "confinc"' > confmf
  3581. case `$am_make -s -f confmf 2> /dev/null` in #(
  3582. *the\ am__doit\ target*)
  3583. am__include=.include
  3584. am__quote="\""
  3585. _am_result=BSD
  3586. ;;
  3587. esac
  3588. fi
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3590. $as_echo "$_am_result" >&6; }
  3591. rm -f confinc confmf
  3592. # Check whether --enable-dependency-tracking was given.
  3593. if test "${enable_dependency_tracking+set}" = set; then :
  3594. enableval=$enable_dependency_tracking;
  3595. fi
  3596. if test "x$enable_dependency_tracking" != xno; then
  3597. am_depcomp="$ac_aux_dir/depcomp"
  3598. AMDEPBACKSLASH='\'
  3599. am__nodep='_no'
  3600. fi
  3601. if test "x$enable_dependency_tracking" != xno; then
  3602. AMDEP_TRUE=
  3603. AMDEP_FALSE='#'
  3604. else
  3605. AMDEP_TRUE='#'
  3606. AMDEP_FALSE=
  3607. fi
  3608. depcc="$CC" am_compiler_list=
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3610. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3611. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3615. # We make a subdir and do the tests there. Otherwise we can end up
  3616. # making bogus files that we don't know about and never remove. For
  3617. # instance it was reported that on HP-UX the gcc test will end up
  3618. # making a dummy file named `D' -- because `-MD' means `put the output
  3619. # in D'.
  3620. rm -rf conftest.dir
  3621. mkdir conftest.dir
  3622. # Copy depcomp to subdir because otherwise we won't find it if we're
  3623. # using a relative directory.
  3624. cp "$am_depcomp" conftest.dir
  3625. cd conftest.dir
  3626. # We will build objects and dependencies in a subdirectory because
  3627. # it helps to detect inapplicable dependency modes. For instance
  3628. # both Tru64's cc and ICC support -MD to output dependencies as a
  3629. # side effect of compilation, but ICC will put the dependencies in
  3630. # the current directory while Tru64 will put them in the object
  3631. # directory.
  3632. mkdir sub
  3633. am_cv_CC_dependencies_compiler_type=none
  3634. if test "$am_compiler_list" = ""; then
  3635. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3636. fi
  3637. am__universal=false
  3638. case " $depcc " in #(
  3639. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3640. esac
  3641. for depmode in $am_compiler_list; do
  3642. # Setup a source with many dependencies, because some compilers
  3643. # like to wrap large dependency lists on column 80 (with \), and
  3644. # we should not choose a depcomp mode which is confused by this.
  3645. #
  3646. # We need to recreate these files for each test, as the compiler may
  3647. # overwrite some of them when testing with obscure command lines.
  3648. # This happens at least with the AIX C compiler.
  3649. : > sub/conftest.c
  3650. for i in 1 2 3 4 5 6; do
  3651. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3652. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3653. # Solaris 8's {/usr,}/bin/sh.
  3654. touch sub/conftst$i.h
  3655. done
  3656. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3657. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3658. # mode. It turns out that the SunPro C++ compiler does not properly
  3659. # handle `-M -o', and we need to detect this. Also, some Intel
  3660. # versions had trouble with output in subdirs
  3661. am__obj=sub/conftest.${OBJEXT-o}
  3662. am__minus_obj="-o $am__obj"
  3663. case $depmode in
  3664. gcc)
  3665. # This depmode causes a compiler race in universal mode.
  3666. test "$am__universal" = false || continue
  3667. ;;
  3668. nosideeffect)
  3669. # after this tag, mechanisms are not by side-effect, so they'll
  3670. # only be used when explicitly requested
  3671. if test "x$enable_dependency_tracking" = xyes; then
  3672. continue
  3673. else
  3674. break
  3675. fi
  3676. ;;
  3677. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3678. # This compiler won't grok `-c -o', but also, the minuso test has
  3679. # not run yet. These depmodes are late enough in the game, and
  3680. # so weak that their functioning should not be impacted.
  3681. am__obj=conftest.${OBJEXT-o}
  3682. am__minus_obj=
  3683. ;;
  3684. none) break ;;
  3685. esac
  3686. if depmode=$depmode \
  3687. source=sub/conftest.c object=$am__obj \
  3688. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3689. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3690. >/dev/null 2>conftest.err &&
  3691. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3692. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3693. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3694. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3695. # icc doesn't choke on unknown options, it will just issue warnings
  3696. # or remarks (even with -Werror). So we grep stderr for any message
  3697. # that says an option was ignored or not supported.
  3698. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3699. # icc: Command line warning: ignoring option '-M'; no argument required
  3700. # The diagnosis changed in icc 8.0:
  3701. # icc: Command line remark: option '-MP' not supported
  3702. if (grep 'ignoring option' conftest.err ||
  3703. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3704. am_cv_CC_dependencies_compiler_type=$depmode
  3705. break
  3706. fi
  3707. fi
  3708. done
  3709. cd ..
  3710. rm -rf conftest.dir
  3711. else
  3712. am_cv_CC_dependencies_compiler_type=none
  3713. fi
  3714. fi
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3716. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3717. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3718. if
  3719. test "x$enable_dependency_tracking" != xno \
  3720. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3721. am__fastdepCC_TRUE=
  3722. am__fastdepCC_FALSE='#'
  3723. else
  3724. am__fastdepCC_TRUE='#'
  3725. am__fastdepCC_FALSE=
  3726. fi
  3727. ac_ext=cpp
  3728. ac_cpp='$CXXCPP $CPPFLAGS'
  3729. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3730. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3731. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3732. if test -z "$CXX"; then
  3733. if test -n "$CCC"; then
  3734. CXX=$CCC
  3735. else
  3736. if test -n "$ac_tool_prefix"; then
  3737. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3738. do
  3739. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3740. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3742. $as_echo_n "checking for $ac_word... " >&6; }
  3743. if ${ac_cv_prog_CXX+:} false; then :
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. if test -n "$CXX"; then
  3747. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3748. else
  3749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3750. for as_dir in $PATH
  3751. do
  3752. IFS=$as_save_IFS
  3753. test -z "$as_dir" && as_dir=.
  3754. for ac_exec_ext in '' $ac_executable_extensions; do
  3755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3756. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3758. break 2
  3759. fi
  3760. done
  3761. done
  3762. IFS=$as_save_IFS
  3763. fi
  3764. fi
  3765. CXX=$ac_cv_prog_CXX
  3766. if test -n "$CXX"; then
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3768. $as_echo "$CXX" >&6; }
  3769. else
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3771. $as_echo "no" >&6; }
  3772. fi
  3773. test -n "$CXX" && break
  3774. done
  3775. fi
  3776. if test -z "$CXX"; then
  3777. ac_ct_CXX=$CXX
  3778. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3779. do
  3780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3781. set dummy $ac_prog; ac_word=$2
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3783. $as_echo_n "checking for $ac_word... " >&6; }
  3784. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. if test -n "$ac_ct_CXX"; then
  3788. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3789. else
  3790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3791. for as_dir in $PATH
  3792. do
  3793. IFS=$as_save_IFS
  3794. test -z "$as_dir" && as_dir=.
  3795. for ac_exec_ext in '' $ac_executable_extensions; do
  3796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3797. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3799. break 2
  3800. fi
  3801. done
  3802. done
  3803. IFS=$as_save_IFS
  3804. fi
  3805. fi
  3806. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3807. if test -n "$ac_ct_CXX"; then
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3809. $as_echo "$ac_ct_CXX" >&6; }
  3810. else
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3812. $as_echo "no" >&6; }
  3813. fi
  3814. test -n "$ac_ct_CXX" && break
  3815. done
  3816. if test "x$ac_ct_CXX" = x; then
  3817. CXX="g++"
  3818. else
  3819. case $cross_compiling:$ac_tool_warned in
  3820. yes:)
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3823. ac_tool_warned=yes ;;
  3824. esac
  3825. CXX=$ac_ct_CXX
  3826. fi
  3827. fi
  3828. fi
  3829. fi
  3830. # Provide some information about the compiler.
  3831. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3832. set X $ac_compile
  3833. ac_compiler=$2
  3834. for ac_option in --version -v -V -qversion; do
  3835. { { ac_try="$ac_compiler $ac_option >&5"
  3836. case "(($ac_try" in
  3837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3838. *) ac_try_echo=$ac_try;;
  3839. esac
  3840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3841. $as_echo "$ac_try_echo"; } >&5
  3842. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3843. ac_status=$?
  3844. if test -s conftest.err; then
  3845. sed '10a\
  3846. ... rest of stderr output deleted ...
  3847. 10q' conftest.err >conftest.er1
  3848. cat conftest.er1 >&5
  3849. fi
  3850. rm -f conftest.er1 conftest.err
  3851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3852. test $ac_status = 0; }
  3853. done
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3855. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3856. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3860. /* end confdefs.h. */
  3861. int
  3862. main ()
  3863. {
  3864. #ifndef __GNUC__
  3865. choke me
  3866. #endif
  3867. ;
  3868. return 0;
  3869. }
  3870. _ACEOF
  3871. if ac_fn_cxx_try_compile "$LINENO"; then :
  3872. ac_compiler_gnu=yes
  3873. else
  3874. ac_compiler_gnu=no
  3875. fi
  3876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3877. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3878. fi
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3880. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3881. if test $ac_compiler_gnu = yes; then
  3882. GXX=yes
  3883. else
  3884. GXX=
  3885. fi
  3886. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3887. ac_save_CXXFLAGS=$CXXFLAGS
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3889. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3890. if ${ac_cv_prog_cxx_g+:} false; then :
  3891. $as_echo_n "(cached) " >&6
  3892. else
  3893. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3894. ac_cxx_werror_flag=yes
  3895. ac_cv_prog_cxx_g=no
  3896. CXXFLAGS="-g"
  3897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3898. /* end confdefs.h. */
  3899. int
  3900. main ()
  3901. {
  3902. ;
  3903. return 0;
  3904. }
  3905. _ACEOF
  3906. if ac_fn_cxx_try_compile "$LINENO"; then :
  3907. ac_cv_prog_cxx_g=yes
  3908. else
  3909. CXXFLAGS=""
  3910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3911. /* end confdefs.h. */
  3912. int
  3913. main ()
  3914. {
  3915. ;
  3916. return 0;
  3917. }
  3918. _ACEOF
  3919. if ac_fn_cxx_try_compile "$LINENO"; then :
  3920. else
  3921. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3922. CXXFLAGS="-g"
  3923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3924. /* end confdefs.h. */
  3925. int
  3926. main ()
  3927. {
  3928. ;
  3929. return 0;
  3930. }
  3931. _ACEOF
  3932. if ac_fn_cxx_try_compile "$LINENO"; then :
  3933. ac_cv_prog_cxx_g=yes
  3934. fi
  3935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3936. fi
  3937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3938. fi
  3939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3940. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3941. fi
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3943. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3944. if test "$ac_test_CXXFLAGS" = set; then
  3945. CXXFLAGS=$ac_save_CXXFLAGS
  3946. elif test $ac_cv_prog_cxx_g = yes; then
  3947. if test "$GXX" = yes; then
  3948. CXXFLAGS="-g -O2"
  3949. else
  3950. CXXFLAGS="-g"
  3951. fi
  3952. else
  3953. if test "$GXX" = yes; then
  3954. CXXFLAGS="-O2"
  3955. else
  3956. CXXFLAGS=
  3957. fi
  3958. fi
  3959. ac_ext=c
  3960. ac_cpp='$CPP $CPPFLAGS'
  3961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3962. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3963. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3964. depcc="$CXX" am_compiler_list=
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3966. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3967. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3968. $as_echo_n "(cached) " >&6
  3969. else
  3970. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3971. # We make a subdir and do the tests there. Otherwise we can end up
  3972. # making bogus files that we don't know about and never remove. For
  3973. # instance it was reported that on HP-UX the gcc test will end up
  3974. # making a dummy file named `D' -- because `-MD' means `put the output
  3975. # in D'.
  3976. rm -rf conftest.dir
  3977. mkdir conftest.dir
  3978. # Copy depcomp to subdir because otherwise we won't find it if we're
  3979. # using a relative directory.
  3980. cp "$am_depcomp" conftest.dir
  3981. cd conftest.dir
  3982. # We will build objects and dependencies in a subdirectory because
  3983. # it helps to detect inapplicable dependency modes. For instance
  3984. # both Tru64's cc and ICC support -MD to output dependencies as a
  3985. # side effect of compilation, but ICC will put the dependencies in
  3986. # the current directory while Tru64 will put them in the object
  3987. # directory.
  3988. mkdir sub
  3989. am_cv_CXX_dependencies_compiler_type=none
  3990. if test "$am_compiler_list" = ""; then
  3991. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3992. fi
  3993. am__universal=false
  3994. case " $depcc " in #(
  3995. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3996. esac
  3997. for depmode in $am_compiler_list; do
  3998. # Setup a source with many dependencies, because some compilers
  3999. # like to wrap large dependency lists on column 80 (with \), and
  4000. # we should not choose a depcomp mode which is confused by this.
  4001. #
  4002. # We need to recreate these files for each test, as the compiler may
  4003. # overwrite some of them when testing with obscure command lines.
  4004. # This happens at least with the AIX C compiler.
  4005. : > sub/conftest.c
  4006. for i in 1 2 3 4 5 6; do
  4007. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4008. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4009. # Solaris 8's {/usr,}/bin/sh.
  4010. touch sub/conftst$i.h
  4011. done
  4012. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4013. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4014. # mode. It turns out that the SunPro C++ compiler does not properly
  4015. # handle `-M -o', and we need to detect this. Also, some Intel
  4016. # versions had trouble with output in subdirs
  4017. am__obj=sub/conftest.${OBJEXT-o}
  4018. am__minus_obj="-o $am__obj"
  4019. case $depmode in
  4020. gcc)
  4021. # This depmode causes a compiler race in universal mode.
  4022. test "$am__universal" = false || continue
  4023. ;;
  4024. nosideeffect)
  4025. # after this tag, mechanisms are not by side-effect, so they'll
  4026. # only be used when explicitly requested
  4027. if test "x$enable_dependency_tracking" = xyes; then
  4028. continue
  4029. else
  4030. break
  4031. fi
  4032. ;;
  4033. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4034. # This compiler won't grok `-c -o', but also, the minuso test has
  4035. # not run yet. These depmodes are late enough in the game, and
  4036. # so weak that their functioning should not be impacted.
  4037. am__obj=conftest.${OBJEXT-o}
  4038. am__minus_obj=
  4039. ;;
  4040. none) break ;;
  4041. esac
  4042. if depmode=$depmode \
  4043. source=sub/conftest.c object=$am__obj \
  4044. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4045. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4046. >/dev/null 2>conftest.err &&
  4047. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4048. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4049. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4050. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4051. # icc doesn't choke on unknown options, it will just issue warnings
  4052. # or remarks (even with -Werror). So we grep stderr for any message
  4053. # that says an option was ignored or not supported.
  4054. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4055. # icc: Command line warning: ignoring option '-M'; no argument required
  4056. # The diagnosis changed in icc 8.0:
  4057. # icc: Command line remark: option '-MP' not supported
  4058. if (grep 'ignoring option' conftest.err ||
  4059. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4060. am_cv_CXX_dependencies_compiler_type=$depmode
  4061. break
  4062. fi
  4063. fi
  4064. done
  4065. cd ..
  4066. rm -rf conftest.dir
  4067. else
  4068. am_cv_CXX_dependencies_compiler_type=none
  4069. fi
  4070. fi
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4072. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4073. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4074. if
  4075. test "x$enable_dependency_tracking" != xno \
  4076. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4077. am__fastdepCXX_TRUE=
  4078. am__fastdepCXX_FALSE='#'
  4079. else
  4080. am__fastdepCXX_TRUE='#'
  4081. am__fastdepCXX_FALSE=
  4082. fi
  4083. ac_ext=cpp
  4084. ac_cpp='$CXXCPP $CPPFLAGS'
  4085. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4086. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4087. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4088. ac_ext=cpp
  4089. ac_cpp='$CXXCPP $CPPFLAGS'
  4090. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4091. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4092. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4094. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4095. if test -z "$CXXCPP"; then
  4096. if ${ac_cv_prog_CXXCPP+:} false; then :
  4097. $as_echo_n "(cached) " >&6
  4098. else
  4099. # Double quotes because CXXCPP needs to be expanded
  4100. for CXXCPP in "$CXX -E" "/lib/cpp"
  4101. do
  4102. ac_preproc_ok=false
  4103. for ac_cxx_preproc_warn_flag in '' yes
  4104. do
  4105. # Use a header file that comes with gcc, so configuring glibc
  4106. # with a fresh cross-compiler works.
  4107. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4108. # <limits.h> exists even on freestanding compilers.
  4109. # On the NeXT, cc -E runs the code through the compiler's parser,
  4110. # not just through cpp. "Syntax error" is here to catch this case.
  4111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4112. /* end confdefs.h. */
  4113. #ifdef __STDC__
  4114. # include <limits.h>
  4115. #else
  4116. # include <assert.h>
  4117. #endif
  4118. Syntax error
  4119. _ACEOF
  4120. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4121. else
  4122. # Broken: fails on valid input.
  4123. continue
  4124. fi
  4125. rm -f conftest.err conftest.i conftest.$ac_ext
  4126. # OK, works on sane cases. Now check whether nonexistent headers
  4127. # can be detected and how.
  4128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4129. /* end confdefs.h. */
  4130. #include <ac_nonexistent.h>
  4131. _ACEOF
  4132. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4133. # Broken: success on invalid input.
  4134. continue
  4135. else
  4136. # Passes both tests.
  4137. ac_preproc_ok=:
  4138. break
  4139. fi
  4140. rm -f conftest.err conftest.i conftest.$ac_ext
  4141. done
  4142. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4143. rm -f conftest.i conftest.err conftest.$ac_ext
  4144. if $ac_preproc_ok; then :
  4145. break
  4146. fi
  4147. done
  4148. ac_cv_prog_CXXCPP=$CXXCPP
  4149. fi
  4150. CXXCPP=$ac_cv_prog_CXXCPP
  4151. else
  4152. ac_cv_prog_CXXCPP=$CXXCPP
  4153. fi
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4155. $as_echo "$CXXCPP" >&6; }
  4156. ac_preproc_ok=false
  4157. for ac_cxx_preproc_warn_flag in '' yes
  4158. do
  4159. # Use a header file that comes with gcc, so configuring glibc
  4160. # with a fresh cross-compiler works.
  4161. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4162. # <limits.h> exists even on freestanding compilers.
  4163. # On the NeXT, cc -E runs the code through the compiler's parser,
  4164. # not just through cpp. "Syntax error" is here to catch this case.
  4165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4166. /* end confdefs.h. */
  4167. #ifdef __STDC__
  4168. # include <limits.h>
  4169. #else
  4170. # include <assert.h>
  4171. #endif
  4172. Syntax error
  4173. _ACEOF
  4174. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4175. else
  4176. # Broken: fails on valid input.
  4177. continue
  4178. fi
  4179. rm -f conftest.err conftest.i conftest.$ac_ext
  4180. # OK, works on sane cases. Now check whether nonexistent headers
  4181. # can be detected and how.
  4182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4183. /* end confdefs.h. */
  4184. #include <ac_nonexistent.h>
  4185. _ACEOF
  4186. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4187. # Broken: success on invalid input.
  4188. continue
  4189. else
  4190. # Passes both tests.
  4191. ac_preproc_ok=:
  4192. break
  4193. fi
  4194. rm -f conftest.err conftest.i conftest.$ac_ext
  4195. done
  4196. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4197. rm -f conftest.i conftest.err conftest.$ac_ext
  4198. if $ac_preproc_ok; then :
  4199. else
  4200. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4202. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  4203. See \`config.log' for more details" "$LINENO" 5; }
  4204. fi
  4205. ac_ext=cpp
  4206. ac_cpp='$CXXCPP $CPPFLAGS'
  4207. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4208. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4209. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4211. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4212. if ${ac_cv_path_GREP+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test -z "$GREP"; then
  4216. ac_path_GREP_found=false
  4217. # Loop through the user's path and test for each of PROGNAME-LIST
  4218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4219. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4220. do
  4221. IFS=$as_save_IFS
  4222. test -z "$as_dir" && as_dir=.
  4223. for ac_prog in grep ggrep; do
  4224. for ac_exec_ext in '' $ac_executable_extensions; do
  4225. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4226. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4227. # Check for GNU ac_path_GREP and select it if it is found.
  4228. # Check for GNU $ac_path_GREP
  4229. case `"$ac_path_GREP" --version 2>&1` in
  4230. *GNU*)
  4231. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4232. *)
  4233. ac_count=0
  4234. $as_echo_n 0123456789 >"conftest.in"
  4235. while :
  4236. do
  4237. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4238. mv "conftest.tmp" "conftest.in"
  4239. cp "conftest.in" "conftest.nl"
  4240. $as_echo 'GREP' >> "conftest.nl"
  4241. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4242. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4243. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4244. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4245. # Best one so far, save it but keep looking for a better one
  4246. ac_cv_path_GREP="$ac_path_GREP"
  4247. ac_path_GREP_max=$ac_count
  4248. fi
  4249. # 10*(2^10) chars as input seems more than enough
  4250. test $ac_count -gt 10 && break
  4251. done
  4252. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4253. esac
  4254. $ac_path_GREP_found && break 3
  4255. done
  4256. done
  4257. done
  4258. IFS=$as_save_IFS
  4259. if test -z "$ac_cv_path_GREP"; then
  4260. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4261. fi
  4262. else
  4263. ac_cv_path_GREP=$GREP
  4264. fi
  4265. fi
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4267. $as_echo "$ac_cv_path_GREP" >&6; }
  4268. GREP="$ac_cv_path_GREP"
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4270. $as_echo_n "checking for egrep... " >&6; }
  4271. if ${ac_cv_path_EGREP+:} false; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4275. then ac_cv_path_EGREP="$GREP -E"
  4276. else
  4277. if test -z "$EGREP"; then
  4278. ac_path_EGREP_found=false
  4279. # Loop through the user's path and test for each of PROGNAME-LIST
  4280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4281. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4282. do
  4283. IFS=$as_save_IFS
  4284. test -z "$as_dir" && as_dir=.
  4285. for ac_prog in egrep; do
  4286. for ac_exec_ext in '' $ac_executable_extensions; do
  4287. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4288. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4289. # Check for GNU ac_path_EGREP and select it if it is found.
  4290. # Check for GNU $ac_path_EGREP
  4291. case `"$ac_path_EGREP" --version 2>&1` in
  4292. *GNU*)
  4293. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4294. *)
  4295. ac_count=0
  4296. $as_echo_n 0123456789 >"conftest.in"
  4297. while :
  4298. do
  4299. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4300. mv "conftest.tmp" "conftest.in"
  4301. cp "conftest.in" "conftest.nl"
  4302. $as_echo 'EGREP' >> "conftest.nl"
  4303. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4304. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4305. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4306. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4307. # Best one so far, save it but keep looking for a better one
  4308. ac_cv_path_EGREP="$ac_path_EGREP"
  4309. ac_path_EGREP_max=$ac_count
  4310. fi
  4311. # 10*(2^10) chars as input seems more than enough
  4312. test $ac_count -gt 10 && break
  4313. done
  4314. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4315. esac
  4316. $ac_path_EGREP_found && break 3
  4317. done
  4318. done
  4319. done
  4320. IFS=$as_save_IFS
  4321. if test -z "$ac_cv_path_EGREP"; then
  4322. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4323. fi
  4324. else
  4325. ac_cv_path_EGREP=$EGREP
  4326. fi
  4327. fi
  4328. fi
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4330. $as_echo "$ac_cv_path_EGREP" >&6; }
  4331. EGREP="$ac_cv_path_EGREP"
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4333. $as_echo_n "checking for ANSI C header files... " >&6; }
  4334. if ${ac_cv_header_stdc+:} false; then :
  4335. $as_echo_n "(cached) " >&6
  4336. else
  4337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4338. /* end confdefs.h. */
  4339. #include <stdlib.h>
  4340. #include <stdarg.h>
  4341. #include <string.h>
  4342. #include <float.h>
  4343. int
  4344. main ()
  4345. {
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_cxx_try_compile "$LINENO"; then :
  4351. ac_cv_header_stdc=yes
  4352. else
  4353. ac_cv_header_stdc=no
  4354. fi
  4355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4356. if test $ac_cv_header_stdc = yes; then
  4357. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4359. /* end confdefs.h. */
  4360. #include <string.h>
  4361. _ACEOF
  4362. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4363. $EGREP "memchr" >/dev/null 2>&1; then :
  4364. else
  4365. ac_cv_header_stdc=no
  4366. fi
  4367. rm -f conftest*
  4368. fi
  4369. if test $ac_cv_header_stdc = yes; then
  4370. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4372. /* end confdefs.h. */
  4373. #include <stdlib.h>
  4374. _ACEOF
  4375. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4376. $EGREP "free" >/dev/null 2>&1; then :
  4377. else
  4378. ac_cv_header_stdc=no
  4379. fi
  4380. rm -f conftest*
  4381. fi
  4382. if test $ac_cv_header_stdc = yes; then
  4383. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4384. if test "$cross_compiling" = yes; then :
  4385. :
  4386. else
  4387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4388. /* end confdefs.h. */
  4389. #include <ctype.h>
  4390. #include <stdlib.h>
  4391. #if ((' ' & 0x0FF) == 0x020)
  4392. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4393. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4394. #else
  4395. # define ISLOWER(c) \
  4396. (('a' <= (c) && (c) <= 'i') \
  4397. || ('j' <= (c) && (c) <= 'r') \
  4398. || ('s' <= (c) && (c) <= 'z'))
  4399. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4400. #endif
  4401. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4402. int
  4403. main ()
  4404. {
  4405. int i;
  4406. for (i = 0; i < 256; i++)
  4407. if (XOR (islower (i), ISLOWER (i))
  4408. || toupper (i) != TOUPPER (i))
  4409. return 2;
  4410. return 0;
  4411. }
  4412. _ACEOF
  4413. if ac_fn_cxx_try_run "$LINENO"; then :
  4414. else
  4415. ac_cv_header_stdc=no
  4416. fi
  4417. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4418. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4419. fi
  4420. fi
  4421. fi
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4423. $as_echo "$ac_cv_header_stdc" >&6; }
  4424. if test $ac_cv_header_stdc = yes; then
  4425. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4426. fi
  4427. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4428. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4429. inttypes.h stdint.h unistd.h
  4430. do :
  4431. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4432. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4433. "
  4434. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4435. cat >>confdefs.h <<_ACEOF
  4436. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4437. _ACEOF
  4438. fi
  4439. done
  4440. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4441. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4442. MINIX=yes
  4443. else
  4444. MINIX=
  4445. fi
  4446. if test "$MINIX" = yes; then
  4447. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4448. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4449. $as_echo "#define _MINIX 1" >>confdefs.h
  4450. fi
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4452. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4453. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4454. $as_echo_n "(cached) " >&6
  4455. else
  4456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4457. /* end confdefs.h. */
  4458. # define __EXTENSIONS__ 1
  4459. $ac_includes_default
  4460. int
  4461. main ()
  4462. {
  4463. ;
  4464. return 0;
  4465. }
  4466. _ACEOF
  4467. if ac_fn_cxx_try_compile "$LINENO"; then :
  4468. ac_cv_safe_to_define___extensions__=yes
  4469. else
  4470. ac_cv_safe_to_define___extensions__=no
  4471. fi
  4472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4473. fi
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4475. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4476. test $ac_cv_safe_to_define___extensions__ = yes &&
  4477. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4478. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4479. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4480. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4481. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4482. if test "$GCC" = yes; then
  4483. GCC_TRUE=
  4484. GCC_FALSE='#'
  4485. else
  4486. GCC_TRUE='#'
  4487. GCC_FALSE=
  4488. fi
  4489. # let the Makefile know if we're gcc
  4490. # test_util.cc takes forever to compile with GCC and optimization turned on.
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flags..." >&5
  4492. $as_echo_n "checking C++ compiler flags...... " >&6; }
  4493. if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
  4494. if test "$GCC" = "yes"; then :
  4495. PROTOBUF_OPT_FLAG="-O2"
  4496. CXXFLAGS="${CXXFLAGS} -g"
  4497. fi
  4498. # Protocol Buffers contains several checks that are intended to be used only
  4499. # for debugging and which might hurt performance. Most users are probably
  4500. # end users who don't want these checks, so add -DNDEBUG by default.
  4501. CXXFLAGS="$CXXFLAGS -DNDEBUG"
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5
  4503. $as_echo "use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; }
  4504. else
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: use user-supplied: $CXXFLAGS" >&5
  4506. $as_echo "use user-supplied: $CXXFLAGS" >&6; }
  4507. fi
  4508. ac_ext=cpp
  4509. ac_cpp='$CXXCPP $CPPFLAGS'
  4510. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4511. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4512. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4513. ac_fn_cxx_check_decl "$LINENO" "__SUNPRO_CC" "ac_cv_have_decl___SUNPRO_CC" "$ac_includes_default"
  4514. if test "x$ac_cv_have_decl___SUNPRO_CC" = xyes; then :
  4515. SUNCC="yes"
  4516. else
  4517. SUNCC="no"
  4518. fi
  4519. ac_ext=cpp
  4520. ac_cpp='$CXXCPP $CPPFLAGS'
  4521. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4522. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4523. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4524. # Check whether --enable-64bit-solaris was given.
  4525. if test "${enable_64bit_solaris+set}" = set; then :
  4526. enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval"
  4527. else
  4528. ac_enable_64bit="yes"
  4529. fi
  4530. if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
  4531. CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}"
  4532. fi
  4533. case $host_os in
  4534. *solaris*)
  4535. for ac_prog in isainfo
  4536. do
  4537. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4538. set dummy $ac_prog; ac_word=$2
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4540. $as_echo_n "checking for $ac_word... " >&6; }
  4541. if ${ac_cv_prog_ISAINFO+:} false; then :
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. if test -n "$ISAINFO"; then
  4545. ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test.
  4546. else
  4547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4548. for as_dir in $PATH
  4549. do
  4550. IFS=$as_save_IFS
  4551. test -z "$as_dir" && as_dir=.
  4552. for ac_exec_ext in '' $ac_executable_extensions; do
  4553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4554. ac_cv_prog_ISAINFO="$ac_prog"
  4555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4556. break 2
  4557. fi
  4558. done
  4559. done
  4560. IFS=$as_save_IFS
  4561. fi
  4562. fi
  4563. ISAINFO=$ac_cv_prog_ISAINFO
  4564. if test -n "$ISAINFO"; then
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISAINFO" >&5
  4566. $as_echo "$ISAINFO" >&6; }
  4567. else
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4569. $as_echo "no" >&6; }
  4570. fi
  4571. test -n "$ISAINFO" && break
  4572. done
  4573. test -n "$ISAINFO" || ISAINFO="no"
  4574. if test "x$ISAINFO" != "xno"; then :
  4575. isainfo_b=`${ISAINFO} -b`
  4576. else
  4577. isainfo_b="x"
  4578. fi
  4579. if test "$isainfo_b" != "x"; then :
  4580. isainfo_k=`${ISAINFO} -k`
  4581. if test "x$ac_enable_64bit" = "xyes"; then :
  4582. if test "x$libdir" = "x\${exec_prefix}/lib"; then :
  4583. libdir="${libdir}/${isainfo_k}"
  4584. fi
  4585. if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
  4586. CXXFLAGS="${CXXFLAGS} -m64"
  4587. ac_cv_env_CXXFLAGS_set=set
  4588. ac_cv_env_CXXFLAGS_value='-m64'
  4589. fi
  4590. if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
  4591. CFLAGS="${CFLAGS} -m64"
  4592. ac_cv_env_CFLAGS_set=set
  4593. ac_cv_env_CFLAGS_value='-m64'
  4594. fi
  4595. if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then :
  4596. CXXFLAGS="-xmemalign=8s ${CXXFLAGS}"
  4597. fi
  4598. fi
  4599. fi
  4600. ;;
  4601. esac
  4602. # Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd
  4603. # to the link
  4604. case `pwd` in
  4605. *\ * | *\ *)
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4607. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4608. esac
  4609. macro_version='2.4.2'
  4610. macro_revision='1.3337'
  4611. ltmain="$ac_aux_dir/ltmain.sh"
  4612. # Backslashify metacharacters that are still active within
  4613. # double-quoted strings.
  4614. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4615. # Same as above, but do not quote variable references.
  4616. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4617. # Sed substitution to delay expansion of an escaped shell variable in a
  4618. # double_quote_subst'ed string.
  4619. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4620. # Sed substitution to delay expansion of an escaped single quote.
  4621. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4622. # Sed substitution to avoid accidental globbing in evaled expressions
  4623. no_glob_subst='s/\*/\\\*/g'
  4624. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4625. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4626. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4628. $as_echo_n "checking how to print strings... " >&6; }
  4629. # Test print first, because it will be a builtin if present.
  4630. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4631. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4632. ECHO='print -r --'
  4633. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4634. ECHO='printf %s\n'
  4635. else
  4636. # Use this function as a fallback that always works.
  4637. func_fallback_echo ()
  4638. {
  4639. eval 'cat <<_LTECHO_EOF
  4640. $1
  4641. _LTECHO_EOF'
  4642. }
  4643. ECHO='func_fallback_echo'
  4644. fi
  4645. # func_echo_all arg...
  4646. # Invoke $ECHO with all args, space-separated.
  4647. func_echo_all ()
  4648. {
  4649. $ECHO ""
  4650. }
  4651. case "$ECHO" in
  4652. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4653. $as_echo "printf" >&6; } ;;
  4654. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4655. $as_echo "print -r" >&6; } ;;
  4656. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4657. $as_echo "cat" >&6; } ;;
  4658. esac
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4660. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4661. if ${ac_cv_path_SED+:} false; then :
  4662. $as_echo_n "(cached) " >&6
  4663. else
  4664. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4665. for ac_i in 1 2 3 4 5 6 7; do
  4666. ac_script="$ac_script$as_nl$ac_script"
  4667. done
  4668. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4669. { ac_script=; unset ac_script;}
  4670. if test -z "$SED"; then
  4671. ac_path_SED_found=false
  4672. # Loop through the user's path and test for each of PROGNAME-LIST
  4673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4674. for as_dir in $PATH
  4675. do
  4676. IFS=$as_save_IFS
  4677. test -z "$as_dir" && as_dir=.
  4678. for ac_prog in sed gsed; do
  4679. for ac_exec_ext in '' $ac_executable_extensions; do
  4680. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4681. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4682. # Check for GNU ac_path_SED and select it if it is found.
  4683. # Check for GNU $ac_path_SED
  4684. case `"$ac_path_SED" --version 2>&1` in
  4685. *GNU*)
  4686. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4687. *)
  4688. ac_count=0
  4689. $as_echo_n 0123456789 >"conftest.in"
  4690. while :
  4691. do
  4692. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4693. mv "conftest.tmp" "conftest.in"
  4694. cp "conftest.in" "conftest.nl"
  4695. $as_echo '' >> "conftest.nl"
  4696. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4697. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4698. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4699. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4700. # Best one so far, save it but keep looking for a better one
  4701. ac_cv_path_SED="$ac_path_SED"
  4702. ac_path_SED_max=$ac_count
  4703. fi
  4704. # 10*(2^10) chars as input seems more than enough
  4705. test $ac_count -gt 10 && break
  4706. done
  4707. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4708. esac
  4709. $ac_path_SED_found && break 3
  4710. done
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. if test -z "$ac_cv_path_SED"; then
  4715. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4716. fi
  4717. else
  4718. ac_cv_path_SED=$SED
  4719. fi
  4720. fi
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4722. $as_echo "$ac_cv_path_SED" >&6; }
  4723. SED="$ac_cv_path_SED"
  4724. rm -f conftest.sed
  4725. test -z "$SED" && SED=sed
  4726. Xsed="$SED -e 1s/^X//"
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4728. $as_echo_n "checking for fgrep... " >&6; }
  4729. if ${ac_cv_path_FGREP+:} false; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4733. then ac_cv_path_FGREP="$GREP -F"
  4734. else
  4735. if test -z "$FGREP"; then
  4736. ac_path_FGREP_found=false
  4737. # Loop through the user's path and test for each of PROGNAME-LIST
  4738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4740. do
  4741. IFS=$as_save_IFS
  4742. test -z "$as_dir" && as_dir=.
  4743. for ac_prog in fgrep; do
  4744. for ac_exec_ext in '' $ac_executable_extensions; do
  4745. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4746. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4747. # Check for GNU ac_path_FGREP and select it if it is found.
  4748. # Check for GNU $ac_path_FGREP
  4749. case `"$ac_path_FGREP" --version 2>&1` in
  4750. *GNU*)
  4751. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4752. *)
  4753. ac_count=0
  4754. $as_echo_n 0123456789 >"conftest.in"
  4755. while :
  4756. do
  4757. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4758. mv "conftest.tmp" "conftest.in"
  4759. cp "conftest.in" "conftest.nl"
  4760. $as_echo 'FGREP' >> "conftest.nl"
  4761. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4762. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4763. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4764. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4765. # Best one so far, save it but keep looking for a better one
  4766. ac_cv_path_FGREP="$ac_path_FGREP"
  4767. ac_path_FGREP_max=$ac_count
  4768. fi
  4769. # 10*(2^10) chars as input seems more than enough
  4770. test $ac_count -gt 10 && break
  4771. done
  4772. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4773. esac
  4774. $ac_path_FGREP_found && break 3
  4775. done
  4776. done
  4777. done
  4778. IFS=$as_save_IFS
  4779. if test -z "$ac_cv_path_FGREP"; then
  4780. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4781. fi
  4782. else
  4783. ac_cv_path_FGREP=$FGREP
  4784. fi
  4785. fi
  4786. fi
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4788. $as_echo "$ac_cv_path_FGREP" >&6; }
  4789. FGREP="$ac_cv_path_FGREP"
  4790. test -z "$GREP" && GREP=grep
  4791. # Check whether --with-gnu-ld was given.
  4792. if test "${with_gnu_ld+set}" = set; then :
  4793. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4794. else
  4795. with_gnu_ld=no
  4796. fi
  4797. ac_prog=ld
  4798. if test "$GCC" = yes; then
  4799. # Check if gcc -print-prog-name=ld gives a path.
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4801. $as_echo_n "checking for ld used by $CC... " >&6; }
  4802. case $host in
  4803. *-*-mingw*)
  4804. # gcc leaves a trailing carriage return which upsets mingw
  4805. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4806. *)
  4807. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4808. esac
  4809. case $ac_prog in
  4810. # Accept absolute paths.
  4811. [\\/]* | ?:[\\/]*)
  4812. re_direlt='/[^/][^/]*/\.\./'
  4813. # Canonicalize the pathname of ld
  4814. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4815. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4816. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4817. done
  4818. test -z "$LD" && LD="$ac_prog"
  4819. ;;
  4820. "")
  4821. # If it fails, then pretend we aren't using GCC.
  4822. ac_prog=ld
  4823. ;;
  4824. *)
  4825. # If it is relative, then search for the first ld in PATH.
  4826. with_gnu_ld=unknown
  4827. ;;
  4828. esac
  4829. elif test "$with_gnu_ld" = yes; then
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4831. $as_echo_n "checking for GNU ld... " >&6; }
  4832. else
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4834. $as_echo_n "checking for non-GNU ld... " >&6; }
  4835. fi
  4836. if ${lt_cv_path_LD+:} false; then :
  4837. $as_echo_n "(cached) " >&6
  4838. else
  4839. if test -z "$LD"; then
  4840. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4841. for ac_dir in $PATH; do
  4842. IFS="$lt_save_ifs"
  4843. test -z "$ac_dir" && ac_dir=.
  4844. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4845. lt_cv_path_LD="$ac_dir/$ac_prog"
  4846. # Check to see if the program is GNU ld. I'd rather use --version,
  4847. # but apparently some variants of GNU ld only accept -v.
  4848. # Break only if it was the GNU/non-GNU ld that we prefer.
  4849. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4850. *GNU* | *'with BFD'*)
  4851. test "$with_gnu_ld" != no && break
  4852. ;;
  4853. *)
  4854. test "$with_gnu_ld" != yes && break
  4855. ;;
  4856. esac
  4857. fi
  4858. done
  4859. IFS="$lt_save_ifs"
  4860. else
  4861. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4862. fi
  4863. fi
  4864. LD="$lt_cv_path_LD"
  4865. if test -n "$LD"; then
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4867. $as_echo "$LD" >&6; }
  4868. else
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4870. $as_echo "no" >&6; }
  4871. fi
  4872. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4874. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4875. if ${lt_cv_prog_gnu_ld+:} false; then :
  4876. $as_echo_n "(cached) " >&6
  4877. else
  4878. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4879. case `$LD -v 2>&1 </dev/null` in
  4880. *GNU* | *'with BFD'*)
  4881. lt_cv_prog_gnu_ld=yes
  4882. ;;
  4883. *)
  4884. lt_cv_prog_gnu_ld=no
  4885. ;;
  4886. esac
  4887. fi
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4889. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4890. with_gnu_ld=$lt_cv_prog_gnu_ld
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4892. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4893. if ${lt_cv_path_NM+:} false; then :
  4894. $as_echo_n "(cached) " >&6
  4895. else
  4896. if test -n "$NM"; then
  4897. # Let the user override the test.
  4898. lt_cv_path_NM="$NM"
  4899. else
  4900. lt_nm_to_check="${ac_tool_prefix}nm"
  4901. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4902. lt_nm_to_check="$lt_nm_to_check nm"
  4903. fi
  4904. for lt_tmp_nm in $lt_nm_to_check; do
  4905. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4906. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4907. IFS="$lt_save_ifs"
  4908. test -z "$ac_dir" && ac_dir=.
  4909. tmp_nm="$ac_dir/$lt_tmp_nm"
  4910. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4911. # Check to see if the nm accepts a BSD-compat flag.
  4912. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4913. # nm: unknown option "B" ignored
  4914. # Tru64's nm complains that /dev/null is an invalid object file
  4915. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4916. */dev/null* | *'Invalid file or object type'*)
  4917. lt_cv_path_NM="$tmp_nm -B"
  4918. break
  4919. ;;
  4920. *)
  4921. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4922. */dev/null*)
  4923. lt_cv_path_NM="$tmp_nm -p"
  4924. break
  4925. ;;
  4926. *)
  4927. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4928. continue # so that we can try to find one that supports BSD flags
  4929. ;;
  4930. esac
  4931. ;;
  4932. esac
  4933. fi
  4934. done
  4935. IFS="$lt_save_ifs"
  4936. done
  4937. : ${lt_cv_path_NM=no}
  4938. fi
  4939. fi
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4941. $as_echo "$lt_cv_path_NM" >&6; }
  4942. if test "$lt_cv_path_NM" != "no"; then
  4943. NM="$lt_cv_path_NM"
  4944. else
  4945. # Didn't find any BSD compatible name lister, look for dumpbin.
  4946. if test -n "$DUMPBIN"; then :
  4947. # Let the user override the test.
  4948. else
  4949. if test -n "$ac_tool_prefix"; then
  4950. for ac_prog in dumpbin "link -dump"
  4951. do
  4952. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4953. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4955. $as_echo_n "checking for $ac_word... " >&6; }
  4956. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4957. $as_echo_n "(cached) " >&6
  4958. else
  4959. if test -n "$DUMPBIN"; then
  4960. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4961. else
  4962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4963. for as_dir in $PATH
  4964. do
  4965. IFS=$as_save_IFS
  4966. test -z "$as_dir" && as_dir=.
  4967. for ac_exec_ext in '' $ac_executable_extensions; do
  4968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4969. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4971. break 2
  4972. fi
  4973. done
  4974. done
  4975. IFS=$as_save_IFS
  4976. fi
  4977. fi
  4978. DUMPBIN=$ac_cv_prog_DUMPBIN
  4979. if test -n "$DUMPBIN"; then
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4981. $as_echo "$DUMPBIN" >&6; }
  4982. else
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4984. $as_echo "no" >&6; }
  4985. fi
  4986. test -n "$DUMPBIN" && break
  4987. done
  4988. fi
  4989. if test -z "$DUMPBIN"; then
  4990. ac_ct_DUMPBIN=$DUMPBIN
  4991. for ac_prog in dumpbin "link -dump"
  4992. do
  4993. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4994. set dummy $ac_prog; 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_DUMPBIN+:} false; then :
  4998. $as_echo_n "(cached) " >&6
  4999. else
  5000. if test -n "$ac_ct_DUMPBIN"; then
  5001. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_DUMPBIN="$ac_prog"
  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_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5020. if test -n "$ac_ct_DUMPBIN"; then
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5022. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5023. else
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5025. $as_echo "no" >&6; }
  5026. fi
  5027. test -n "$ac_ct_DUMPBIN" && break
  5028. done
  5029. if test "x$ac_ct_DUMPBIN" = x; then
  5030. DUMPBIN=":"
  5031. else
  5032. case $cross_compiling:$ac_tool_warned in
  5033. yes:)
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5036. ac_tool_warned=yes ;;
  5037. esac
  5038. DUMPBIN=$ac_ct_DUMPBIN
  5039. fi
  5040. fi
  5041. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5042. *COFF*)
  5043. DUMPBIN="$DUMPBIN -symbols"
  5044. ;;
  5045. *)
  5046. DUMPBIN=:
  5047. ;;
  5048. esac
  5049. fi
  5050. if test "$DUMPBIN" != ":"; then
  5051. NM="$DUMPBIN"
  5052. fi
  5053. fi
  5054. test -z "$NM" && NM=nm
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5056. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5057. if ${lt_cv_nm_interface+:} false; then :
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. lt_cv_nm_interface="BSD nm"
  5061. echo "int some_variable = 0;" > conftest.$ac_ext
  5062. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5063. (eval "$ac_compile" 2>conftest.err)
  5064. cat conftest.err >&5
  5065. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5066. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5067. cat conftest.err >&5
  5068. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5069. cat conftest.out >&5
  5070. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5071. lt_cv_nm_interface="MS dumpbin"
  5072. fi
  5073. rm -f conftest*
  5074. fi
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5076. $as_echo "$lt_cv_nm_interface" >&6; }
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5078. $as_echo_n "checking whether ln -s works... " >&6; }
  5079. LN_S=$as_ln_s
  5080. if test "$LN_S" = "ln -s"; then
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5082. $as_echo "yes" >&6; }
  5083. else
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5085. $as_echo "no, using $LN_S" >&6; }
  5086. fi
  5087. # find the maximum length of command line arguments
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5089. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5090. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5091. $as_echo_n "(cached) " >&6
  5092. else
  5093. i=0
  5094. teststring="ABCD"
  5095. case $build_os in
  5096. msdosdjgpp*)
  5097. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5098. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5099. # during glob expansion). Even if it were fixed, the result of this
  5100. # check would be larger than it should be.
  5101. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5102. ;;
  5103. gnu*)
  5104. # Under GNU Hurd, this test is not required because there is
  5105. # no limit to the length of command line arguments.
  5106. # Libtool will interpret -1 as no limit whatsoever
  5107. lt_cv_sys_max_cmd_len=-1;
  5108. ;;
  5109. cygwin* | mingw* | cegcc*)
  5110. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5111. # about 5 minutes as the teststring grows exponentially.
  5112. # Worse, since 9x/ME are not pre-emptively multitasking,
  5113. # you end up with a "frozen" computer, even though with patience
  5114. # the test eventually succeeds (with a max line length of 256k).
  5115. # Instead, let's just punt: use the minimum linelength reported by
  5116. # all of the supported platforms: 8192 (on NT/2K/XP).
  5117. lt_cv_sys_max_cmd_len=8192;
  5118. ;;
  5119. mint*)
  5120. # On MiNT this can take a long time and run out of memory.
  5121. lt_cv_sys_max_cmd_len=8192;
  5122. ;;
  5123. amigaos*)
  5124. # On AmigaOS with pdksh, this test takes hours, literally.
  5125. # So we just punt and use a minimum line length of 8192.
  5126. lt_cv_sys_max_cmd_len=8192;
  5127. ;;
  5128. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5129. # This has been around since 386BSD, at least. Likely further.
  5130. if test -x /sbin/sysctl; then
  5131. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5132. elif test -x /usr/sbin/sysctl; then
  5133. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5134. else
  5135. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5136. fi
  5137. # And add a safety zone
  5138. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5139. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5140. ;;
  5141. interix*)
  5142. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5143. lt_cv_sys_max_cmd_len=196608
  5144. ;;
  5145. os2*)
  5146. # The test takes a long time on OS/2.
  5147. lt_cv_sys_max_cmd_len=8192
  5148. ;;
  5149. osf*)
  5150. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5151. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5152. # nice to cause kernel panics so lets avoid the loop below.
  5153. # First set a reasonable default.
  5154. lt_cv_sys_max_cmd_len=16384
  5155. #
  5156. if test -x /sbin/sysconfig; then
  5157. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5158. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5159. esac
  5160. fi
  5161. ;;
  5162. sco3.2v5*)
  5163. lt_cv_sys_max_cmd_len=102400
  5164. ;;
  5165. sysv5* | sco5v6* | sysv4.2uw2*)
  5166. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5167. if test -n "$kargmax"; then
  5168. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5169. else
  5170. lt_cv_sys_max_cmd_len=32768
  5171. fi
  5172. ;;
  5173. *)
  5174. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5175. if test -n "$lt_cv_sys_max_cmd_len"; then
  5176. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5177. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5178. else
  5179. # Make teststring a little bigger before we do anything with it.
  5180. # a 1K string should be a reasonable start.
  5181. for i in 1 2 3 4 5 6 7 8 ; do
  5182. teststring=$teststring$teststring
  5183. done
  5184. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5185. # If test is not a shell built-in, we'll probably end up computing a
  5186. # maximum length that is only half of the actual maximum length, but
  5187. # we can't tell.
  5188. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5189. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5190. test $i != 17 # 1/2 MB should be enough
  5191. do
  5192. i=`expr $i + 1`
  5193. teststring=$teststring$teststring
  5194. done
  5195. # Only check the string length outside the loop.
  5196. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5197. teststring=
  5198. # Add a significant safety factor because C++ compilers can tack on
  5199. # massive amounts of additional arguments before passing them to the
  5200. # linker. It appears as though 1/2 is a usable value.
  5201. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5202. fi
  5203. ;;
  5204. esac
  5205. fi
  5206. if test -n $lt_cv_sys_max_cmd_len ; then
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5208. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5209. else
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5211. $as_echo "none" >&6; }
  5212. fi
  5213. max_cmd_len=$lt_cv_sys_max_cmd_len
  5214. : ${CP="cp -f"}
  5215. : ${MV="mv -f"}
  5216. : ${RM="rm -f"}
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5218. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5219. # Try some XSI features
  5220. xsi_shell=no
  5221. ( _lt_dummy="a/b/c"
  5222. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5223. = c,a/b,b/c, \
  5224. && eval 'test $(( 1 + 1 )) -eq 2 \
  5225. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5226. && xsi_shell=yes
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5228. $as_echo "$xsi_shell" >&6; }
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5230. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5231. lt_shell_append=no
  5232. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5233. >/dev/null 2>&1 \
  5234. && lt_shell_append=yes
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5236. $as_echo "$lt_shell_append" >&6; }
  5237. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5238. lt_unset=unset
  5239. else
  5240. lt_unset=false
  5241. fi
  5242. # test EBCDIC or ASCII
  5243. case `echo X|tr X '\101'` in
  5244. A) # ASCII based system
  5245. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5246. lt_SP2NL='tr \040 \012'
  5247. lt_NL2SP='tr \015\012 \040\040'
  5248. ;;
  5249. *) # EBCDIC based system
  5250. lt_SP2NL='tr \100 \n'
  5251. lt_NL2SP='tr \r\n \100\100'
  5252. ;;
  5253. esac
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5255. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5256. if ${lt_cv_to_host_file_cmd+:} false; then :
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. case $host in
  5260. *-*-mingw* )
  5261. case $build in
  5262. *-*-mingw* ) # actually msys
  5263. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5264. ;;
  5265. *-*-cygwin* )
  5266. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5267. ;;
  5268. * ) # otherwise, assume *nix
  5269. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5270. ;;
  5271. esac
  5272. ;;
  5273. *-*-cygwin* )
  5274. case $build in
  5275. *-*-mingw* ) # actually msys
  5276. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5277. ;;
  5278. *-*-cygwin* )
  5279. lt_cv_to_host_file_cmd=func_convert_file_noop
  5280. ;;
  5281. * ) # otherwise, assume *nix
  5282. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5283. ;;
  5284. esac
  5285. ;;
  5286. * ) # unhandled hosts (and "normal" native builds)
  5287. lt_cv_to_host_file_cmd=func_convert_file_noop
  5288. ;;
  5289. esac
  5290. fi
  5291. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5293. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5295. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5296. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5297. $as_echo_n "(cached) " >&6
  5298. else
  5299. #assume ordinary cross tools, or native build.
  5300. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5301. case $host in
  5302. *-*-mingw* )
  5303. case $build in
  5304. *-*-mingw* ) # actually msys
  5305. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5306. ;;
  5307. esac
  5308. ;;
  5309. esac
  5310. fi
  5311. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5313. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5315. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5316. if ${lt_cv_ld_reload_flag+:} false; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. lt_cv_ld_reload_flag='-r'
  5320. fi
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5322. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5323. reload_flag=$lt_cv_ld_reload_flag
  5324. case $reload_flag in
  5325. "" | " "*) ;;
  5326. *) reload_flag=" $reload_flag" ;;
  5327. esac
  5328. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5329. case $host_os in
  5330. cygwin* | mingw* | pw32* | cegcc*)
  5331. if test "$GCC" != yes; then
  5332. reload_cmds=false
  5333. fi
  5334. ;;
  5335. darwin*)
  5336. if test "$GCC" = yes; then
  5337. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5338. else
  5339. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5340. fi
  5341. ;;
  5342. esac
  5343. if test -n "$ac_tool_prefix"; then
  5344. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5345. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5347. $as_echo_n "checking for $ac_word... " >&6; }
  5348. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351. if test -n "$OBJDUMP"; then
  5352. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5353. else
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_exec_ext in '' $ac_executable_extensions; do
  5360. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5361. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5363. break 2
  5364. fi
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. fi
  5369. fi
  5370. OBJDUMP=$ac_cv_prog_OBJDUMP
  5371. if test -n "$OBJDUMP"; then
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5373. $as_echo "$OBJDUMP" >&6; }
  5374. else
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5376. $as_echo "no" >&6; }
  5377. fi
  5378. fi
  5379. if test -z "$ac_cv_prog_OBJDUMP"; then
  5380. ac_ct_OBJDUMP=$OBJDUMP
  5381. # Extract the first word of "objdump", so it can be a program name with args.
  5382. set dummy objdump; ac_word=$2
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5384. $as_echo_n "checking for $ac_word... " >&6; }
  5385. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. if test -n "$ac_ct_OBJDUMP"; then
  5389. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5390. else
  5391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5392. for as_dir in $PATH
  5393. do
  5394. IFS=$as_save_IFS
  5395. test -z "$as_dir" && as_dir=.
  5396. for ac_exec_ext in '' $ac_executable_extensions; do
  5397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5398. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5400. break 2
  5401. fi
  5402. done
  5403. done
  5404. IFS=$as_save_IFS
  5405. fi
  5406. fi
  5407. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5408. if test -n "$ac_ct_OBJDUMP"; then
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5410. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5411. else
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. fi
  5415. if test "x$ac_ct_OBJDUMP" = x; then
  5416. OBJDUMP="false"
  5417. else
  5418. case $cross_compiling:$ac_tool_warned in
  5419. yes:)
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5421. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5422. ac_tool_warned=yes ;;
  5423. esac
  5424. OBJDUMP=$ac_ct_OBJDUMP
  5425. fi
  5426. else
  5427. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5428. fi
  5429. test -z "$OBJDUMP" && OBJDUMP=objdump
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5431. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5432. if ${lt_cv_deplibs_check_method+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5436. lt_cv_file_magic_test_file=
  5437. lt_cv_deplibs_check_method='unknown'
  5438. # Need to set the preceding variable on all platforms that support
  5439. # interlibrary dependencies.
  5440. # 'none' -- dependencies not supported.
  5441. # `unknown' -- same as none, but documents that we really don't know.
  5442. # 'pass_all' -- all dependencies passed with no checks.
  5443. # 'test_compile' -- check by making test program.
  5444. # 'file_magic [[regex]]' -- check by looking for files in library path
  5445. # which responds to the $file_magic_cmd with a given extended regex.
  5446. # If you have `file' or equivalent on your system and you're not sure
  5447. # whether `pass_all' will *always* work, you probably want this one.
  5448. case $host_os in
  5449. aix[4-9]*)
  5450. lt_cv_deplibs_check_method=pass_all
  5451. ;;
  5452. beos*)
  5453. lt_cv_deplibs_check_method=pass_all
  5454. ;;
  5455. bsdi[45]*)
  5456. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5457. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5458. lt_cv_file_magic_test_file=/shlib/libc.so
  5459. ;;
  5460. cygwin*)
  5461. # func_win32_libid is a shell function defined in ltmain.sh
  5462. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5463. lt_cv_file_magic_cmd='func_win32_libid'
  5464. ;;
  5465. mingw* | pw32*)
  5466. # Base MSYS/MinGW do not provide the 'file' command needed by
  5467. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5468. # unless we find 'file', for example because we are cross-compiling.
  5469. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5470. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5471. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5472. lt_cv_file_magic_cmd='func_win32_libid'
  5473. else
  5474. # Keep this pattern in sync with the one in func_win32_libid.
  5475. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5476. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5477. fi
  5478. ;;
  5479. cegcc*)
  5480. # use the weaker test based on 'objdump'. See mingw*.
  5481. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5482. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5483. ;;
  5484. darwin* | rhapsody*)
  5485. lt_cv_deplibs_check_method=pass_all
  5486. ;;
  5487. freebsd* | dragonfly*)
  5488. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5489. case $host_cpu in
  5490. i*86 )
  5491. # Not sure whether the presence of OpenBSD here was a mistake.
  5492. # Let's accept both of them until this is cleared up.
  5493. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5494. lt_cv_file_magic_cmd=/usr/bin/file
  5495. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5496. ;;
  5497. esac
  5498. else
  5499. lt_cv_deplibs_check_method=pass_all
  5500. fi
  5501. ;;
  5502. gnu*)
  5503. lt_cv_deplibs_check_method=pass_all
  5504. ;;
  5505. haiku*)
  5506. lt_cv_deplibs_check_method=pass_all
  5507. ;;
  5508. hpux10.20* | hpux11*)
  5509. lt_cv_file_magic_cmd=/usr/bin/file
  5510. case $host_cpu in
  5511. ia64*)
  5512. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5513. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5514. ;;
  5515. hppa*64*)
  5516. 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]'
  5517. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5518. ;;
  5519. *)
  5520. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5521. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5522. ;;
  5523. esac
  5524. ;;
  5525. interix[3-9]*)
  5526. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5527. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5528. ;;
  5529. irix5* | irix6* | nonstopux*)
  5530. case $LD in
  5531. *-32|*"-32 ") libmagic=32-bit;;
  5532. *-n32|*"-n32 ") libmagic=N32;;
  5533. *-64|*"-64 ") libmagic=64-bit;;
  5534. *) libmagic=never-match;;
  5535. esac
  5536. lt_cv_deplibs_check_method=pass_all
  5537. ;;
  5538. # This must be glibc/ELF.
  5539. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5540. lt_cv_deplibs_check_method=pass_all
  5541. ;;
  5542. netbsd* | netbsdelf*-gnu)
  5543. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5544. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5545. else
  5546. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5547. fi
  5548. ;;
  5549. newos6*)
  5550. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5551. lt_cv_file_magic_cmd=/usr/bin/file
  5552. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5553. ;;
  5554. *nto* | *qnx*)
  5555. lt_cv_deplibs_check_method=pass_all
  5556. ;;
  5557. openbsd*)
  5558. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5559. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5560. else
  5561. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5562. fi
  5563. ;;
  5564. osf3* | osf4* | osf5*)
  5565. lt_cv_deplibs_check_method=pass_all
  5566. ;;
  5567. rdos*)
  5568. lt_cv_deplibs_check_method=pass_all
  5569. ;;
  5570. solaris*)
  5571. lt_cv_deplibs_check_method=pass_all
  5572. ;;
  5573. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5574. lt_cv_deplibs_check_method=pass_all
  5575. ;;
  5576. sysv4 | sysv4.3*)
  5577. case $host_vendor in
  5578. motorola)
  5579. 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]'
  5580. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5581. ;;
  5582. ncr)
  5583. lt_cv_deplibs_check_method=pass_all
  5584. ;;
  5585. sequent)
  5586. lt_cv_file_magic_cmd='/bin/file'
  5587. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5588. ;;
  5589. sni)
  5590. lt_cv_file_magic_cmd='/bin/file'
  5591. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5592. lt_cv_file_magic_test_file=/lib/libc.so
  5593. ;;
  5594. siemens)
  5595. lt_cv_deplibs_check_method=pass_all
  5596. ;;
  5597. pc)
  5598. lt_cv_deplibs_check_method=pass_all
  5599. ;;
  5600. esac
  5601. ;;
  5602. tpf*)
  5603. lt_cv_deplibs_check_method=pass_all
  5604. ;;
  5605. esac
  5606. fi
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5608. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5609. file_magic_glob=
  5610. want_nocaseglob=no
  5611. if test "$build" = "$host"; then
  5612. case $host_os in
  5613. mingw* | pw32*)
  5614. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5615. want_nocaseglob=yes
  5616. else
  5617. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5618. fi
  5619. ;;
  5620. esac
  5621. fi
  5622. file_magic_cmd=$lt_cv_file_magic_cmd
  5623. deplibs_check_method=$lt_cv_deplibs_check_method
  5624. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5625. if test -n "$ac_tool_prefix"; then
  5626. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5627. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5629. $as_echo_n "checking for $ac_word... " >&6; }
  5630. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. if test -n "$DLLTOOL"; then
  5634. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5635. else
  5636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5637. for as_dir in $PATH
  5638. do
  5639. IFS=$as_save_IFS
  5640. test -z "$as_dir" && as_dir=.
  5641. for ac_exec_ext in '' $ac_executable_extensions; do
  5642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5643. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5645. break 2
  5646. fi
  5647. done
  5648. done
  5649. IFS=$as_save_IFS
  5650. fi
  5651. fi
  5652. DLLTOOL=$ac_cv_prog_DLLTOOL
  5653. if test -n "$DLLTOOL"; then
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5655. $as_echo "$DLLTOOL" >&6; }
  5656. else
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5658. $as_echo "no" >&6; }
  5659. fi
  5660. fi
  5661. if test -z "$ac_cv_prog_DLLTOOL"; then
  5662. ac_ct_DLLTOOL=$DLLTOOL
  5663. # Extract the first word of "dlltool", so it can be a program name with args.
  5664. set dummy dlltool; ac_word=$2
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5666. $as_echo_n "checking for $ac_word... " >&6; }
  5667. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5668. $as_echo_n "(cached) " >&6
  5669. else
  5670. if test -n "$ac_ct_DLLTOOL"; then
  5671. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5672. else
  5673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5674. for as_dir in $PATH
  5675. do
  5676. IFS=$as_save_IFS
  5677. test -z "$as_dir" && as_dir=.
  5678. for ac_exec_ext in '' $ac_executable_extensions; do
  5679. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5680. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5682. break 2
  5683. fi
  5684. done
  5685. done
  5686. IFS=$as_save_IFS
  5687. fi
  5688. fi
  5689. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5690. if test -n "$ac_ct_DLLTOOL"; then
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5692. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5693. else
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5695. $as_echo "no" >&6; }
  5696. fi
  5697. if test "x$ac_ct_DLLTOOL" = x; then
  5698. DLLTOOL="false"
  5699. else
  5700. case $cross_compiling:$ac_tool_warned in
  5701. yes:)
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5704. ac_tool_warned=yes ;;
  5705. esac
  5706. DLLTOOL=$ac_ct_DLLTOOL
  5707. fi
  5708. else
  5709. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5710. fi
  5711. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5713. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5714. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5718. case $host_os in
  5719. cygwin* | mingw* | pw32* | cegcc*)
  5720. # two different shell functions defined in ltmain.sh
  5721. # decide which to use based on capabilities of $DLLTOOL
  5722. case `$DLLTOOL --help 2>&1` in
  5723. *--identify-strict*)
  5724. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5725. ;;
  5726. *)
  5727. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5728. ;;
  5729. esac
  5730. ;;
  5731. *)
  5732. # fallback: assume linklib IS sharedlib
  5733. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5734. ;;
  5735. esac
  5736. fi
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5738. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5739. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5740. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5741. if test -n "$ac_tool_prefix"; then
  5742. for ac_prog in ar
  5743. do
  5744. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5745. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5747. $as_echo_n "checking for $ac_word... " >&6; }
  5748. if ${ac_cv_prog_AR+:} false; then :
  5749. $as_echo_n "(cached) " >&6
  5750. else
  5751. if test -n "$AR"; then
  5752. ac_cv_prog_AR="$AR" # Let the user override the test.
  5753. else
  5754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5755. for as_dir in $PATH
  5756. do
  5757. IFS=$as_save_IFS
  5758. test -z "$as_dir" && as_dir=.
  5759. for ac_exec_ext in '' $ac_executable_extensions; do
  5760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5761. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5763. break 2
  5764. fi
  5765. done
  5766. done
  5767. IFS=$as_save_IFS
  5768. fi
  5769. fi
  5770. AR=$ac_cv_prog_AR
  5771. if test -n "$AR"; then
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5773. $as_echo "$AR" >&6; }
  5774. else
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5776. $as_echo "no" >&6; }
  5777. fi
  5778. test -n "$AR" && break
  5779. done
  5780. fi
  5781. if test -z "$AR"; then
  5782. ac_ct_AR=$AR
  5783. for ac_prog in ar
  5784. do
  5785. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5786. set dummy $ac_prog; ac_word=$2
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5788. $as_echo_n "checking for $ac_word... " >&6; }
  5789. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5790. $as_echo_n "(cached) " >&6
  5791. else
  5792. if test -n "$ac_ct_AR"; then
  5793. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5794. else
  5795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5796. for as_dir in $PATH
  5797. do
  5798. IFS=$as_save_IFS
  5799. test -z "$as_dir" && as_dir=.
  5800. for ac_exec_ext in '' $ac_executable_extensions; do
  5801. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5802. ac_cv_prog_ac_ct_AR="$ac_prog"
  5803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5804. break 2
  5805. fi
  5806. done
  5807. done
  5808. IFS=$as_save_IFS
  5809. fi
  5810. fi
  5811. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5812. if test -n "$ac_ct_AR"; then
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5814. $as_echo "$ac_ct_AR" >&6; }
  5815. else
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5817. $as_echo "no" >&6; }
  5818. fi
  5819. test -n "$ac_ct_AR" && break
  5820. done
  5821. if test "x$ac_ct_AR" = x; then
  5822. AR="false"
  5823. else
  5824. case $cross_compiling:$ac_tool_warned in
  5825. yes:)
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5828. ac_tool_warned=yes ;;
  5829. esac
  5830. AR=$ac_ct_AR
  5831. fi
  5832. fi
  5833. : ${AR=ar}
  5834. : ${AR_FLAGS=cru}
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5836. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5837. if ${lt_cv_ar_at_file+:} false; then :
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. lt_cv_ar_at_file=no
  5841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5842. /* end confdefs.h. */
  5843. int
  5844. main ()
  5845. {
  5846. ;
  5847. return 0;
  5848. }
  5849. _ACEOF
  5850. if ac_fn_cxx_try_compile "$LINENO"; then :
  5851. echo conftest.$ac_objext > conftest.lst
  5852. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5853. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5854. (eval $lt_ar_try) 2>&5
  5855. ac_status=$?
  5856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5857. test $ac_status = 0; }
  5858. if test "$ac_status" -eq 0; then
  5859. # Ensure the archiver fails upon bogus file names.
  5860. rm -f conftest.$ac_objext libconftest.a
  5861. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5862. (eval $lt_ar_try) 2>&5
  5863. ac_status=$?
  5864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5865. test $ac_status = 0; }
  5866. if test "$ac_status" -ne 0; then
  5867. lt_cv_ar_at_file=@
  5868. fi
  5869. fi
  5870. rm -f conftest.* libconftest.a
  5871. fi
  5872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5873. fi
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5875. $as_echo "$lt_cv_ar_at_file" >&6; }
  5876. if test "x$lt_cv_ar_at_file" = xno; then
  5877. archiver_list_spec=
  5878. else
  5879. archiver_list_spec=$lt_cv_ar_at_file
  5880. fi
  5881. if test -n "$ac_tool_prefix"; then
  5882. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5883. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5885. $as_echo_n "checking for $ac_word... " >&6; }
  5886. if ${ac_cv_prog_STRIP+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. if test -n "$STRIP"; then
  5890. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5891. else
  5892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5893. for as_dir in $PATH
  5894. do
  5895. IFS=$as_save_IFS
  5896. test -z "$as_dir" && as_dir=.
  5897. for ac_exec_ext in '' $ac_executable_extensions; do
  5898. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5899. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5901. break 2
  5902. fi
  5903. done
  5904. done
  5905. IFS=$as_save_IFS
  5906. fi
  5907. fi
  5908. STRIP=$ac_cv_prog_STRIP
  5909. if test -n "$STRIP"; then
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5911. $as_echo "$STRIP" >&6; }
  5912. else
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5914. $as_echo "no" >&6; }
  5915. fi
  5916. fi
  5917. if test -z "$ac_cv_prog_STRIP"; then
  5918. ac_ct_STRIP=$STRIP
  5919. # Extract the first word of "strip", so it can be a program name with args.
  5920. set dummy strip; ac_word=$2
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5922. $as_echo_n "checking for $ac_word... " >&6; }
  5923. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. if test -n "$ac_ct_STRIP"; then
  5927. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5928. else
  5929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5930. for as_dir in $PATH
  5931. do
  5932. IFS=$as_save_IFS
  5933. test -z "$as_dir" && as_dir=.
  5934. for ac_exec_ext in '' $ac_executable_extensions; do
  5935. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5936. ac_cv_prog_ac_ct_STRIP="strip"
  5937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5938. break 2
  5939. fi
  5940. done
  5941. done
  5942. IFS=$as_save_IFS
  5943. fi
  5944. fi
  5945. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5946. if test -n "$ac_ct_STRIP"; then
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5948. $as_echo "$ac_ct_STRIP" >&6; }
  5949. else
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5951. $as_echo "no" >&6; }
  5952. fi
  5953. if test "x$ac_ct_STRIP" = x; then
  5954. STRIP=":"
  5955. else
  5956. case $cross_compiling:$ac_tool_warned in
  5957. yes:)
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5959. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5960. ac_tool_warned=yes ;;
  5961. esac
  5962. STRIP=$ac_ct_STRIP
  5963. fi
  5964. else
  5965. STRIP="$ac_cv_prog_STRIP"
  5966. fi
  5967. test -z "$STRIP" && STRIP=:
  5968. if test -n "$ac_tool_prefix"; then
  5969. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5970. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5972. $as_echo_n "checking for $ac_word... " >&6; }
  5973. if ${ac_cv_prog_RANLIB+:} false; then :
  5974. $as_echo_n "(cached) " >&6
  5975. else
  5976. if test -n "$RANLIB"; then
  5977. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5978. else
  5979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5980. for as_dir in $PATH
  5981. do
  5982. IFS=$as_save_IFS
  5983. test -z "$as_dir" && as_dir=.
  5984. for ac_exec_ext in '' $ac_executable_extensions; do
  5985. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5986. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5988. break 2
  5989. fi
  5990. done
  5991. done
  5992. IFS=$as_save_IFS
  5993. fi
  5994. fi
  5995. RANLIB=$ac_cv_prog_RANLIB
  5996. if test -n "$RANLIB"; then
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5998. $as_echo "$RANLIB" >&6; }
  5999. else
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6001. $as_echo "no" >&6; }
  6002. fi
  6003. fi
  6004. if test -z "$ac_cv_prog_RANLIB"; then
  6005. ac_ct_RANLIB=$RANLIB
  6006. # Extract the first word of "ranlib", so it can be a program name with args.
  6007. set dummy ranlib; ac_word=$2
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6009. $as_echo_n "checking for $ac_word... " >&6; }
  6010. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6011. $as_echo_n "(cached) " >&6
  6012. else
  6013. if test -n "$ac_ct_RANLIB"; then
  6014. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6015. else
  6016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6017. for as_dir in $PATH
  6018. do
  6019. IFS=$as_save_IFS
  6020. test -z "$as_dir" && as_dir=.
  6021. for ac_exec_ext in '' $ac_executable_extensions; do
  6022. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6023. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6025. break 2
  6026. fi
  6027. done
  6028. done
  6029. IFS=$as_save_IFS
  6030. fi
  6031. fi
  6032. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6033. if test -n "$ac_ct_RANLIB"; then
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6035. $as_echo "$ac_ct_RANLIB" >&6; }
  6036. else
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6038. $as_echo "no" >&6; }
  6039. fi
  6040. if test "x$ac_ct_RANLIB" = x; then
  6041. RANLIB=":"
  6042. else
  6043. case $cross_compiling:$ac_tool_warned in
  6044. yes:)
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6046. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6047. ac_tool_warned=yes ;;
  6048. esac
  6049. RANLIB=$ac_ct_RANLIB
  6050. fi
  6051. else
  6052. RANLIB="$ac_cv_prog_RANLIB"
  6053. fi
  6054. test -z "$RANLIB" && RANLIB=:
  6055. # Determine commands to create old-style static archives.
  6056. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6057. old_postinstall_cmds='chmod 644 $oldlib'
  6058. old_postuninstall_cmds=
  6059. if test -n "$RANLIB"; then
  6060. case $host_os in
  6061. openbsd*)
  6062. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6063. ;;
  6064. *)
  6065. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6066. ;;
  6067. esac
  6068. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6069. fi
  6070. case $host_os in
  6071. darwin*)
  6072. lock_old_archive_extraction=yes ;;
  6073. *)
  6074. lock_old_archive_extraction=no ;;
  6075. esac
  6076. # If no C compiler was specified, use CC.
  6077. LTCC=${LTCC-"$CC"}
  6078. # If no C compiler flags were specified, use CFLAGS.
  6079. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6080. # Allow CC to be a program name with arguments.
  6081. compiler=$CC
  6082. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6084. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6085. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6086. $as_echo_n "(cached) " >&6
  6087. else
  6088. # These are sane defaults that work on at least a few old systems.
  6089. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6090. # Character class describing NM global symbol codes.
  6091. symcode='[BCDEGRST]'
  6092. # Regexp to match symbols that can be accessed directly from C.
  6093. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6094. # Define system-specific variables.
  6095. case $host_os in
  6096. aix*)
  6097. symcode='[BCDT]'
  6098. ;;
  6099. cygwin* | mingw* | pw32* | cegcc*)
  6100. symcode='[ABCDGISTW]'
  6101. ;;
  6102. hpux*)
  6103. if test "$host_cpu" = ia64; then
  6104. symcode='[ABCDEGRST]'
  6105. fi
  6106. ;;
  6107. irix* | nonstopux*)
  6108. symcode='[BCDEGRST]'
  6109. ;;
  6110. osf*)
  6111. symcode='[BCDEGQRST]'
  6112. ;;
  6113. solaris*)
  6114. symcode='[BDRT]'
  6115. ;;
  6116. sco3.2v5*)
  6117. symcode='[DT]'
  6118. ;;
  6119. sysv4.2uw2*)
  6120. symcode='[DT]'
  6121. ;;
  6122. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6123. symcode='[ABDT]'
  6124. ;;
  6125. sysv4)
  6126. symcode='[DFNSTU]'
  6127. ;;
  6128. esac
  6129. # If we're using GNU nm, then use its standard symbol codes.
  6130. case `$NM -V 2>&1` in
  6131. *GNU* | *'with BFD'*)
  6132. symcode='[ABCDGIRSTW]' ;;
  6133. esac
  6134. # Transform an extracted symbol line into a proper C declaration.
  6135. # Some systems (esp. on ia64) link data and code symbols differently,
  6136. # so use this general approach.
  6137. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6138. # Transform an extracted symbol line into symbol name and symbol address
  6139. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6140. 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'"
  6141. # Handle CRLF in mingw tool chain
  6142. opt_cr=
  6143. case $build_os in
  6144. mingw*)
  6145. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6146. ;;
  6147. esac
  6148. # Try without a prefix underscore, then with it.
  6149. for ac_symprfx in "" "_"; do
  6150. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6151. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6152. # Write the raw and C identifiers.
  6153. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6154. # Fake it for dumpbin and say T for any non-static function
  6155. # and D for any global variable.
  6156. # Also find C++ and __fastcall symbols from MSVC++,
  6157. # which start with @ or ?.
  6158. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6159. " {last_section=section; section=\$ 3};"\
  6160. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6161. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6162. " \$ 0!~/External *\|/{next};"\
  6163. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6164. " {if(hide[section]) next};"\
  6165. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6166. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6167. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6168. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6169. " ' prfx=^$ac_symprfx"
  6170. else
  6171. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6172. fi
  6173. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6174. # Check to see that the pipe works correctly.
  6175. pipe_works=no
  6176. rm -f conftest*
  6177. cat > conftest.$ac_ext <<_LT_EOF
  6178. #ifdef __cplusplus
  6179. extern "C" {
  6180. #endif
  6181. char nm_test_var;
  6182. void nm_test_func(void);
  6183. void nm_test_func(void){}
  6184. #ifdef __cplusplus
  6185. }
  6186. #endif
  6187. int main(){nm_test_var='a';nm_test_func();return(0);}
  6188. _LT_EOF
  6189. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6190. (eval $ac_compile) 2>&5
  6191. ac_status=$?
  6192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6193. test $ac_status = 0; }; then
  6194. # Now try to grab the symbols.
  6195. nlist=conftest.nm
  6196. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6197. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6198. ac_status=$?
  6199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6200. test $ac_status = 0; } && test -s "$nlist"; then
  6201. # Try sorting and uniquifying the output.
  6202. if sort "$nlist" | uniq > "$nlist"T; then
  6203. mv -f "$nlist"T "$nlist"
  6204. else
  6205. rm -f "$nlist"T
  6206. fi
  6207. # Make sure that we snagged all the symbols we need.
  6208. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6209. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6210. cat <<_LT_EOF > conftest.$ac_ext
  6211. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6212. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6213. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6214. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6215. # define LT_DLSYM_CONST
  6216. #elif defined(__osf__)
  6217. /* This system does not cope well with relocations in const data. */
  6218. # define LT_DLSYM_CONST
  6219. #else
  6220. # define LT_DLSYM_CONST const
  6221. #endif
  6222. #ifdef __cplusplus
  6223. extern "C" {
  6224. #endif
  6225. _LT_EOF
  6226. # Now generate the symbol file.
  6227. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6228. cat <<_LT_EOF >> conftest.$ac_ext
  6229. /* The mapping between symbol names and symbols. */
  6230. LT_DLSYM_CONST struct {
  6231. const char *name;
  6232. void *address;
  6233. }
  6234. lt__PROGRAM__LTX_preloaded_symbols[] =
  6235. {
  6236. { "@PROGRAM@", (void *) 0 },
  6237. _LT_EOF
  6238. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6239. cat <<\_LT_EOF >> conftest.$ac_ext
  6240. {0, (void *) 0}
  6241. };
  6242. /* This works around a problem in FreeBSD linker */
  6243. #ifdef FREEBSD_WORKAROUND
  6244. static const void *lt_preloaded_setup() {
  6245. return lt__PROGRAM__LTX_preloaded_symbols;
  6246. }
  6247. #endif
  6248. #ifdef __cplusplus
  6249. }
  6250. #endif
  6251. _LT_EOF
  6252. # Now try linking the two files.
  6253. mv conftest.$ac_objext conftstm.$ac_objext
  6254. lt_globsym_save_LIBS=$LIBS
  6255. lt_globsym_save_CFLAGS=$CFLAGS
  6256. LIBS="conftstm.$ac_objext"
  6257. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6258. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6259. (eval $ac_link) 2>&5
  6260. ac_status=$?
  6261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6262. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6263. pipe_works=yes
  6264. fi
  6265. LIBS=$lt_globsym_save_LIBS
  6266. CFLAGS=$lt_globsym_save_CFLAGS
  6267. else
  6268. echo "cannot find nm_test_func in $nlist" >&5
  6269. fi
  6270. else
  6271. echo "cannot find nm_test_var in $nlist" >&5
  6272. fi
  6273. else
  6274. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6275. fi
  6276. else
  6277. echo "$progname: failed program was:" >&5
  6278. cat conftest.$ac_ext >&5
  6279. fi
  6280. rm -rf conftest* conftst*
  6281. # Do not use the global_symbol_pipe unless it works.
  6282. if test "$pipe_works" = yes; then
  6283. break
  6284. else
  6285. lt_cv_sys_global_symbol_pipe=
  6286. fi
  6287. done
  6288. fi
  6289. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6290. lt_cv_sys_global_symbol_to_cdecl=
  6291. fi
  6292. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6294. $as_echo "failed" >&6; }
  6295. else
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6297. $as_echo "ok" >&6; }
  6298. fi
  6299. # Response file support.
  6300. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6301. nm_file_list_spec='@'
  6302. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6303. nm_file_list_spec='@'
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6306. $as_echo_n "checking for sysroot... " >&6; }
  6307. # Check whether --with-sysroot was given.
  6308. if test "${with_sysroot+set}" = set; then :
  6309. withval=$with_sysroot;
  6310. else
  6311. with_sysroot=no
  6312. fi
  6313. lt_sysroot=
  6314. case ${with_sysroot} in #(
  6315. yes)
  6316. if test "$GCC" = yes; then
  6317. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6318. fi
  6319. ;; #(
  6320. /*)
  6321. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6322. ;; #(
  6323. no|'')
  6324. ;; #(
  6325. *)
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6327. $as_echo "${with_sysroot}" >&6; }
  6328. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6329. ;;
  6330. esac
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6332. $as_echo "${lt_sysroot:-no}" >&6; }
  6333. # Check whether --enable-libtool-lock was given.
  6334. if test "${enable_libtool_lock+set}" = set; then :
  6335. enableval=$enable_libtool_lock;
  6336. fi
  6337. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6338. # Some flags need to be propagated to the compiler or linker for good
  6339. # libtool support.
  6340. case $host in
  6341. ia64-*-hpux*)
  6342. # Find out which ABI we are using.
  6343. echo 'int i;' > conftest.$ac_ext
  6344. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6345. (eval $ac_compile) 2>&5
  6346. ac_status=$?
  6347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6348. test $ac_status = 0; }; then
  6349. case `/usr/bin/file conftest.$ac_objext` in
  6350. *ELF-32*)
  6351. HPUX_IA64_MODE="32"
  6352. ;;
  6353. *ELF-64*)
  6354. HPUX_IA64_MODE="64"
  6355. ;;
  6356. esac
  6357. fi
  6358. rm -rf conftest*
  6359. ;;
  6360. *-*-irix6*)
  6361. # Find out which ABI we are using.
  6362. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6363. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6364. (eval $ac_compile) 2>&5
  6365. ac_status=$?
  6366. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6367. test $ac_status = 0; }; then
  6368. if test "$lt_cv_prog_gnu_ld" = yes; then
  6369. case `/usr/bin/file conftest.$ac_objext` in
  6370. *32-bit*)
  6371. LD="${LD-ld} -melf32bsmip"
  6372. ;;
  6373. *N32*)
  6374. LD="${LD-ld} -melf32bmipn32"
  6375. ;;
  6376. *64-bit*)
  6377. LD="${LD-ld} -melf64bmip"
  6378. ;;
  6379. esac
  6380. else
  6381. case `/usr/bin/file conftest.$ac_objext` in
  6382. *32-bit*)
  6383. LD="${LD-ld} -32"
  6384. ;;
  6385. *N32*)
  6386. LD="${LD-ld} -n32"
  6387. ;;
  6388. *64-bit*)
  6389. LD="${LD-ld} -64"
  6390. ;;
  6391. esac
  6392. fi
  6393. fi
  6394. rm -rf conftest*
  6395. ;;
  6396. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6397. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6398. # Find out which ABI we are using.
  6399. echo 'int i;' > conftest.$ac_ext
  6400. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6401. (eval $ac_compile) 2>&5
  6402. ac_status=$?
  6403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6404. test $ac_status = 0; }; then
  6405. case `/usr/bin/file conftest.o` in
  6406. *32-bit*)
  6407. case $host in
  6408. x86_64-*kfreebsd*-gnu)
  6409. LD="${LD-ld} -m elf_i386_fbsd"
  6410. ;;
  6411. x86_64-*linux*)
  6412. LD="${LD-ld} -m elf_i386"
  6413. ;;
  6414. ppc64-*linux*|powerpc64-*linux*)
  6415. LD="${LD-ld} -m elf32ppclinux"
  6416. ;;
  6417. s390x-*linux*)
  6418. LD="${LD-ld} -m elf_s390"
  6419. ;;
  6420. sparc64-*linux*)
  6421. LD="${LD-ld} -m elf32_sparc"
  6422. ;;
  6423. esac
  6424. ;;
  6425. *64-bit*)
  6426. case $host in
  6427. x86_64-*kfreebsd*-gnu)
  6428. LD="${LD-ld} -m elf_x86_64_fbsd"
  6429. ;;
  6430. x86_64-*linux*)
  6431. LD="${LD-ld} -m elf_x86_64"
  6432. ;;
  6433. ppc*-*linux*|powerpc*-*linux*)
  6434. LD="${LD-ld} -m elf64ppc"
  6435. ;;
  6436. s390*-*linux*|s390*-*tpf*)
  6437. LD="${LD-ld} -m elf64_s390"
  6438. ;;
  6439. sparc*-*linux*)
  6440. LD="${LD-ld} -m elf64_sparc"
  6441. ;;
  6442. esac
  6443. ;;
  6444. esac
  6445. fi
  6446. rm -rf conftest*
  6447. ;;
  6448. *-*-sco3.2v5*)
  6449. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6450. SAVE_CFLAGS="$CFLAGS"
  6451. CFLAGS="$CFLAGS -belf"
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6453. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6454. if ${lt_cv_cc_needs_belf+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. ac_ext=c
  6458. ac_cpp='$CPP $CPPFLAGS'
  6459. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6460. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6461. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6463. /* end confdefs.h. */
  6464. int
  6465. main ()
  6466. {
  6467. ;
  6468. return 0;
  6469. }
  6470. _ACEOF
  6471. if ac_fn_c_try_link "$LINENO"; then :
  6472. lt_cv_cc_needs_belf=yes
  6473. else
  6474. lt_cv_cc_needs_belf=no
  6475. fi
  6476. rm -f core conftest.err conftest.$ac_objext \
  6477. conftest$ac_exeext conftest.$ac_ext
  6478. ac_ext=c
  6479. ac_cpp='$CPP $CPPFLAGS'
  6480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6483. fi
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6485. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6486. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6487. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6488. CFLAGS="$SAVE_CFLAGS"
  6489. fi
  6490. ;;
  6491. *-*solaris*)
  6492. # Find out which ABI we are using.
  6493. echo 'int i;' > conftest.$ac_ext
  6494. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6495. (eval $ac_compile) 2>&5
  6496. ac_status=$?
  6497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6498. test $ac_status = 0; }; then
  6499. case `/usr/bin/file conftest.o` in
  6500. *64-bit*)
  6501. case $lt_cv_prog_gnu_ld in
  6502. yes*)
  6503. case $host in
  6504. i?86-*-solaris*)
  6505. LD="${LD-ld} -m elf_x86_64"
  6506. ;;
  6507. sparc*-*-solaris*)
  6508. LD="${LD-ld} -m elf64_sparc"
  6509. ;;
  6510. esac
  6511. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6512. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6513. LD="${LD-ld}_sol2"
  6514. fi
  6515. ;;
  6516. *)
  6517. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6518. LD="${LD-ld} -64"
  6519. fi
  6520. ;;
  6521. esac
  6522. ;;
  6523. esac
  6524. fi
  6525. rm -rf conftest*
  6526. ;;
  6527. esac
  6528. need_locks="$enable_libtool_lock"
  6529. if test -n "$ac_tool_prefix"; then
  6530. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6531. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6533. $as_echo_n "checking for $ac_word... " >&6; }
  6534. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6535. $as_echo_n "(cached) " >&6
  6536. else
  6537. if test -n "$MANIFEST_TOOL"; then
  6538. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6539. else
  6540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6541. for as_dir in $PATH
  6542. do
  6543. IFS=$as_save_IFS
  6544. test -z "$as_dir" && as_dir=.
  6545. for ac_exec_ext in '' $ac_executable_extensions; do
  6546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6547. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6549. break 2
  6550. fi
  6551. done
  6552. done
  6553. IFS=$as_save_IFS
  6554. fi
  6555. fi
  6556. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6557. if test -n "$MANIFEST_TOOL"; then
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6559. $as_echo "$MANIFEST_TOOL" >&6; }
  6560. else
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6562. $as_echo "no" >&6; }
  6563. fi
  6564. fi
  6565. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6566. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6567. # Extract the first word of "mt", so it can be a program name with args.
  6568. set dummy mt; ac_word=$2
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6570. $as_echo_n "checking for $ac_word... " >&6; }
  6571. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6575. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6576. else
  6577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6578. for as_dir in $PATH
  6579. do
  6580. IFS=$as_save_IFS
  6581. test -z "$as_dir" && as_dir=.
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6584. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6594. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6596. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6597. else
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. $as_echo "no" >&6; }
  6600. fi
  6601. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6602. MANIFEST_TOOL=":"
  6603. else
  6604. case $cross_compiling:$ac_tool_warned in
  6605. yes:)
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6608. ac_tool_warned=yes ;;
  6609. esac
  6610. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6611. fi
  6612. else
  6613. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6614. fi
  6615. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6617. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6618. if ${lt_cv_path_mainfest_tool+:} false; then :
  6619. $as_echo_n "(cached) " >&6
  6620. else
  6621. lt_cv_path_mainfest_tool=no
  6622. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6623. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6624. cat conftest.err >&5
  6625. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6626. lt_cv_path_mainfest_tool=yes
  6627. fi
  6628. rm -f conftest*
  6629. fi
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6631. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6632. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6633. MANIFEST_TOOL=:
  6634. fi
  6635. case $host_os in
  6636. rhapsody* | darwin*)
  6637. if test -n "$ac_tool_prefix"; then
  6638. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6639. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6641. $as_echo_n "checking for $ac_word... " >&6; }
  6642. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. if test -n "$DSYMUTIL"; then
  6646. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6647. else
  6648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6649. for as_dir in $PATH
  6650. do
  6651. IFS=$as_save_IFS
  6652. test -z "$as_dir" && as_dir=.
  6653. for ac_exec_ext in '' $ac_executable_extensions; do
  6654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6655. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6657. break 2
  6658. fi
  6659. done
  6660. done
  6661. IFS=$as_save_IFS
  6662. fi
  6663. fi
  6664. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6665. if test -n "$DSYMUTIL"; then
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6667. $as_echo "$DSYMUTIL" >&6; }
  6668. else
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6670. $as_echo "no" >&6; }
  6671. fi
  6672. fi
  6673. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6674. ac_ct_DSYMUTIL=$DSYMUTIL
  6675. # Extract the first word of "dsymutil", so it can be a program name with args.
  6676. set dummy dsymutil; ac_word=$2
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6678. $as_echo_n "checking for $ac_word... " >&6; }
  6679. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6680. $as_echo_n "(cached) " >&6
  6681. else
  6682. if test -n "$ac_ct_DSYMUTIL"; then
  6683. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6684. else
  6685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6686. for as_dir in $PATH
  6687. do
  6688. IFS=$as_save_IFS
  6689. test -z "$as_dir" && as_dir=.
  6690. for ac_exec_ext in '' $ac_executable_extensions; do
  6691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6692. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6694. break 2
  6695. fi
  6696. done
  6697. done
  6698. IFS=$as_save_IFS
  6699. fi
  6700. fi
  6701. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6702. if test -n "$ac_ct_DSYMUTIL"; then
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6704. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6705. else
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6707. $as_echo "no" >&6; }
  6708. fi
  6709. if test "x$ac_ct_DSYMUTIL" = x; then
  6710. DSYMUTIL=":"
  6711. else
  6712. case $cross_compiling:$ac_tool_warned in
  6713. yes:)
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6715. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6716. ac_tool_warned=yes ;;
  6717. esac
  6718. DSYMUTIL=$ac_ct_DSYMUTIL
  6719. fi
  6720. else
  6721. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6722. fi
  6723. if test -n "$ac_tool_prefix"; then
  6724. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6725. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6727. $as_echo_n "checking for $ac_word... " >&6; }
  6728. if ${ac_cv_prog_NMEDIT+:} false; then :
  6729. $as_echo_n "(cached) " >&6
  6730. else
  6731. if test -n "$NMEDIT"; then
  6732. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6733. else
  6734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6735. for as_dir in $PATH
  6736. do
  6737. IFS=$as_save_IFS
  6738. test -z "$as_dir" && as_dir=.
  6739. for ac_exec_ext in '' $ac_executable_extensions; do
  6740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6741. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6743. break 2
  6744. fi
  6745. done
  6746. done
  6747. IFS=$as_save_IFS
  6748. fi
  6749. fi
  6750. NMEDIT=$ac_cv_prog_NMEDIT
  6751. if test -n "$NMEDIT"; then
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6753. $as_echo "$NMEDIT" >&6; }
  6754. else
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6756. $as_echo "no" >&6; }
  6757. fi
  6758. fi
  6759. if test -z "$ac_cv_prog_NMEDIT"; then
  6760. ac_ct_NMEDIT=$NMEDIT
  6761. # Extract the first word of "nmedit", so it can be a program name with args.
  6762. set dummy nmedit; ac_word=$2
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6764. $as_echo_n "checking for $ac_word... " >&6; }
  6765. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6766. $as_echo_n "(cached) " >&6
  6767. else
  6768. if test -n "$ac_ct_NMEDIT"; then
  6769. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6770. else
  6771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6772. for as_dir in $PATH
  6773. do
  6774. IFS=$as_save_IFS
  6775. test -z "$as_dir" && as_dir=.
  6776. for ac_exec_ext in '' $ac_executable_extensions; do
  6777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6778. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6780. break 2
  6781. fi
  6782. done
  6783. done
  6784. IFS=$as_save_IFS
  6785. fi
  6786. fi
  6787. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6788. if test -n "$ac_ct_NMEDIT"; then
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6790. $as_echo "$ac_ct_NMEDIT" >&6; }
  6791. else
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6793. $as_echo "no" >&6; }
  6794. fi
  6795. if test "x$ac_ct_NMEDIT" = x; then
  6796. NMEDIT=":"
  6797. else
  6798. case $cross_compiling:$ac_tool_warned in
  6799. yes:)
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6802. ac_tool_warned=yes ;;
  6803. esac
  6804. NMEDIT=$ac_ct_NMEDIT
  6805. fi
  6806. else
  6807. NMEDIT="$ac_cv_prog_NMEDIT"
  6808. fi
  6809. if test -n "$ac_tool_prefix"; then
  6810. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6811. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6813. $as_echo_n "checking for $ac_word... " >&6; }
  6814. if ${ac_cv_prog_LIPO+:} false; then :
  6815. $as_echo_n "(cached) " >&6
  6816. else
  6817. if test -n "$LIPO"; then
  6818. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6819. else
  6820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6821. for as_dir in $PATH
  6822. do
  6823. IFS=$as_save_IFS
  6824. test -z "$as_dir" && as_dir=.
  6825. for ac_exec_ext in '' $ac_executable_extensions; do
  6826. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6827. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6829. break 2
  6830. fi
  6831. done
  6832. done
  6833. IFS=$as_save_IFS
  6834. fi
  6835. fi
  6836. LIPO=$ac_cv_prog_LIPO
  6837. if test -n "$LIPO"; then
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6839. $as_echo "$LIPO" >&6; }
  6840. else
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6842. $as_echo "no" >&6; }
  6843. fi
  6844. fi
  6845. if test -z "$ac_cv_prog_LIPO"; then
  6846. ac_ct_LIPO=$LIPO
  6847. # Extract the first word of "lipo", so it can be a program name with args.
  6848. set dummy lipo; ac_word=$2
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6850. $as_echo_n "checking for $ac_word... " >&6; }
  6851. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6852. $as_echo_n "(cached) " >&6
  6853. else
  6854. if test -n "$ac_ct_LIPO"; then
  6855. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6856. else
  6857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6858. for as_dir in $PATH
  6859. do
  6860. IFS=$as_save_IFS
  6861. test -z "$as_dir" && as_dir=.
  6862. for ac_exec_ext in '' $ac_executable_extensions; do
  6863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6864. ac_cv_prog_ac_ct_LIPO="lipo"
  6865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6866. break 2
  6867. fi
  6868. done
  6869. done
  6870. IFS=$as_save_IFS
  6871. fi
  6872. fi
  6873. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6874. if test -n "$ac_ct_LIPO"; then
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6876. $as_echo "$ac_ct_LIPO" >&6; }
  6877. else
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6879. $as_echo "no" >&6; }
  6880. fi
  6881. if test "x$ac_ct_LIPO" = x; then
  6882. LIPO=":"
  6883. else
  6884. case $cross_compiling:$ac_tool_warned in
  6885. yes:)
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6888. ac_tool_warned=yes ;;
  6889. esac
  6890. LIPO=$ac_ct_LIPO
  6891. fi
  6892. else
  6893. LIPO="$ac_cv_prog_LIPO"
  6894. fi
  6895. if test -n "$ac_tool_prefix"; then
  6896. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6897. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6899. $as_echo_n "checking for $ac_word... " >&6; }
  6900. if ${ac_cv_prog_OTOOL+:} false; then :
  6901. $as_echo_n "(cached) " >&6
  6902. else
  6903. if test -n "$OTOOL"; then
  6904. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6905. else
  6906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6907. for as_dir in $PATH
  6908. do
  6909. IFS=$as_save_IFS
  6910. test -z "$as_dir" && as_dir=.
  6911. for ac_exec_ext in '' $ac_executable_extensions; do
  6912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6913. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6915. break 2
  6916. fi
  6917. done
  6918. done
  6919. IFS=$as_save_IFS
  6920. fi
  6921. fi
  6922. OTOOL=$ac_cv_prog_OTOOL
  6923. if test -n "$OTOOL"; then
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6925. $as_echo "$OTOOL" >&6; }
  6926. else
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6928. $as_echo "no" >&6; }
  6929. fi
  6930. fi
  6931. if test -z "$ac_cv_prog_OTOOL"; then
  6932. ac_ct_OTOOL=$OTOOL
  6933. # Extract the first word of "otool", so it can be a program name with args.
  6934. set dummy otool; ac_word=$2
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6936. $as_echo_n "checking for $ac_word... " >&6; }
  6937. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6938. $as_echo_n "(cached) " >&6
  6939. else
  6940. if test -n "$ac_ct_OTOOL"; then
  6941. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6942. else
  6943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6944. for as_dir in $PATH
  6945. do
  6946. IFS=$as_save_IFS
  6947. test -z "$as_dir" && as_dir=.
  6948. for ac_exec_ext in '' $ac_executable_extensions; do
  6949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6950. ac_cv_prog_ac_ct_OTOOL="otool"
  6951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6952. break 2
  6953. fi
  6954. done
  6955. done
  6956. IFS=$as_save_IFS
  6957. fi
  6958. fi
  6959. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6960. if test -n "$ac_ct_OTOOL"; then
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6962. $as_echo "$ac_ct_OTOOL" >&6; }
  6963. else
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6965. $as_echo "no" >&6; }
  6966. fi
  6967. if test "x$ac_ct_OTOOL" = x; then
  6968. OTOOL=":"
  6969. else
  6970. case $cross_compiling:$ac_tool_warned in
  6971. yes:)
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6974. ac_tool_warned=yes ;;
  6975. esac
  6976. OTOOL=$ac_ct_OTOOL
  6977. fi
  6978. else
  6979. OTOOL="$ac_cv_prog_OTOOL"
  6980. fi
  6981. if test -n "$ac_tool_prefix"; then
  6982. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6983. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6985. $as_echo_n "checking for $ac_word... " >&6; }
  6986. if ${ac_cv_prog_OTOOL64+:} false; then :
  6987. $as_echo_n "(cached) " >&6
  6988. else
  6989. if test -n "$OTOOL64"; then
  6990. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6991. else
  6992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6993. for as_dir in $PATH
  6994. do
  6995. IFS=$as_save_IFS
  6996. test -z "$as_dir" && as_dir=.
  6997. for ac_exec_ext in '' $ac_executable_extensions; do
  6998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6999. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7001. break 2
  7002. fi
  7003. done
  7004. done
  7005. IFS=$as_save_IFS
  7006. fi
  7007. fi
  7008. OTOOL64=$ac_cv_prog_OTOOL64
  7009. if test -n "$OTOOL64"; then
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7011. $as_echo "$OTOOL64" >&6; }
  7012. else
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7014. $as_echo "no" >&6; }
  7015. fi
  7016. fi
  7017. if test -z "$ac_cv_prog_OTOOL64"; then
  7018. ac_ct_OTOOL64=$OTOOL64
  7019. # Extract the first word of "otool64", so it can be a program name with args.
  7020. set dummy otool64; ac_word=$2
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7022. $as_echo_n "checking for $ac_word... " >&6; }
  7023. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7024. $as_echo_n "(cached) " >&6
  7025. else
  7026. if test -n "$ac_ct_OTOOL64"; then
  7027. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7028. else
  7029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7030. for as_dir in $PATH
  7031. do
  7032. IFS=$as_save_IFS
  7033. test -z "$as_dir" && as_dir=.
  7034. for ac_exec_ext in '' $ac_executable_extensions; do
  7035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7036. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7038. break 2
  7039. fi
  7040. done
  7041. done
  7042. IFS=$as_save_IFS
  7043. fi
  7044. fi
  7045. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7046. if test -n "$ac_ct_OTOOL64"; then
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7048. $as_echo "$ac_ct_OTOOL64" >&6; }
  7049. else
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7051. $as_echo "no" >&6; }
  7052. fi
  7053. if test "x$ac_ct_OTOOL64" = x; then
  7054. OTOOL64=":"
  7055. else
  7056. case $cross_compiling:$ac_tool_warned in
  7057. yes:)
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7059. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7060. ac_tool_warned=yes ;;
  7061. esac
  7062. OTOOL64=$ac_ct_OTOOL64
  7063. fi
  7064. else
  7065. OTOOL64="$ac_cv_prog_OTOOL64"
  7066. fi
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7068. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7069. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. lt_cv_apple_cc_single_mod=no
  7073. if test -z "${LT_MULTI_MODULE}"; then
  7074. # By default we will add the -single_module flag. You can override
  7075. # by either setting the environment variable LT_MULTI_MODULE
  7076. # non-empty at configure time, or by adding -multi_module to the
  7077. # link flags.
  7078. rm -rf libconftest.dylib*
  7079. echo "int foo(void){return 1;}" > conftest.c
  7080. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7081. -dynamiclib -Wl,-single_module conftest.c" >&5
  7082. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7083. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7084. _lt_result=$?
  7085. # If there is a non-empty error log, and "single_module"
  7086. # appears in it, assume the flag caused a linker warning
  7087. if test -s conftest.err && $GREP single_module conftest.err; then
  7088. cat conftest.err >&5
  7089. # Otherwise, if the output was created with a 0 exit code from
  7090. # the compiler, it worked.
  7091. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7092. lt_cv_apple_cc_single_mod=yes
  7093. else
  7094. cat conftest.err >&5
  7095. fi
  7096. rm -rf libconftest.dylib*
  7097. rm -f conftest.*
  7098. fi
  7099. fi
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7101. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7103. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7104. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7105. $as_echo_n "(cached) " >&6
  7106. else
  7107. lt_cv_ld_exported_symbols_list=no
  7108. save_LDFLAGS=$LDFLAGS
  7109. echo "_main" > conftest.sym
  7110. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7112. /* end confdefs.h. */
  7113. int
  7114. main ()
  7115. {
  7116. ;
  7117. return 0;
  7118. }
  7119. _ACEOF
  7120. if ac_fn_c_try_link "$LINENO"; then :
  7121. lt_cv_ld_exported_symbols_list=yes
  7122. else
  7123. lt_cv_ld_exported_symbols_list=no
  7124. fi
  7125. rm -f core conftest.err conftest.$ac_objext \
  7126. conftest$ac_exeext conftest.$ac_ext
  7127. LDFLAGS="$save_LDFLAGS"
  7128. fi
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7130. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7132. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7133. if ${lt_cv_ld_force_load+:} false; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. lt_cv_ld_force_load=no
  7137. cat > conftest.c << _LT_EOF
  7138. int forced_loaded() { return 2;}
  7139. _LT_EOF
  7140. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7141. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7142. echo "$AR cru libconftest.a conftest.o" >&5
  7143. $AR cru libconftest.a conftest.o 2>&5
  7144. echo "$RANLIB libconftest.a" >&5
  7145. $RANLIB libconftest.a 2>&5
  7146. cat > conftest.c << _LT_EOF
  7147. int main() { return 0;}
  7148. _LT_EOF
  7149. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7150. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7151. _lt_result=$?
  7152. if test -s conftest.err && $GREP force_load conftest.err; then
  7153. cat conftest.err >&5
  7154. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7155. lt_cv_ld_force_load=yes
  7156. else
  7157. cat conftest.err >&5
  7158. fi
  7159. rm -f conftest.err libconftest.a conftest conftest.c
  7160. rm -rf conftest.dSYM
  7161. fi
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7163. $as_echo "$lt_cv_ld_force_load" >&6; }
  7164. case $host_os in
  7165. rhapsody* | darwin1.[012])
  7166. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7167. darwin1.*)
  7168. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7169. darwin*) # darwin 5.x on
  7170. # if running on 10.5 or later, the deployment target defaults
  7171. # to the OS version, if on x86, and 10.4, the deployment
  7172. # target defaults to 10.4. Don't you love it?
  7173. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7174. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7175. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7176. 10.[012]*)
  7177. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7178. 10.*)
  7179. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7180. esac
  7181. ;;
  7182. esac
  7183. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7184. _lt_dar_single_mod='$single_module'
  7185. fi
  7186. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7187. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7188. else
  7189. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7190. fi
  7191. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7192. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7193. else
  7194. _lt_dsymutil=
  7195. fi
  7196. ;;
  7197. esac
  7198. for ac_header in dlfcn.h
  7199. do :
  7200. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7201. "
  7202. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7203. cat >>confdefs.h <<_ACEOF
  7204. #define HAVE_DLFCN_H 1
  7205. _ACEOF
  7206. fi
  7207. done
  7208. func_stripname_cnf ()
  7209. {
  7210. case ${2} in
  7211. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7212. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7213. esac
  7214. } # func_stripname_cnf
  7215. # Set options
  7216. enable_dlopen=no
  7217. enable_win32_dll=no
  7218. # Check whether --enable-shared was given.
  7219. if test "${enable_shared+set}" = set; then :
  7220. enableval=$enable_shared; p=${PACKAGE-default}
  7221. case $enableval in
  7222. yes) enable_shared=yes ;;
  7223. no) enable_shared=no ;;
  7224. *)
  7225. enable_shared=no
  7226. # Look at the argument we got. We use all the common list separators.
  7227. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7228. for pkg in $enableval; do
  7229. IFS="$lt_save_ifs"
  7230. if test "X$pkg" = "X$p"; then
  7231. enable_shared=yes
  7232. fi
  7233. done
  7234. IFS="$lt_save_ifs"
  7235. ;;
  7236. esac
  7237. else
  7238. enable_shared=yes
  7239. fi
  7240. # Check whether --enable-static was given.
  7241. if test "${enable_static+set}" = set; then :
  7242. enableval=$enable_static; p=${PACKAGE-default}
  7243. case $enableval in
  7244. yes) enable_static=yes ;;
  7245. no) enable_static=no ;;
  7246. *)
  7247. enable_static=no
  7248. # Look at the argument we got. We use all the common list separators.
  7249. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7250. for pkg in $enableval; do
  7251. IFS="$lt_save_ifs"
  7252. if test "X$pkg" = "X$p"; then
  7253. enable_static=yes
  7254. fi
  7255. done
  7256. IFS="$lt_save_ifs"
  7257. ;;
  7258. esac
  7259. else
  7260. enable_static=yes
  7261. fi
  7262. # Check whether --with-pic was given.
  7263. if test "${with_pic+set}" = set; then :
  7264. withval=$with_pic; lt_p=${PACKAGE-default}
  7265. case $withval in
  7266. yes|no) pic_mode=$withval ;;
  7267. *)
  7268. pic_mode=default
  7269. # Look at the argument we got. We use all the common list separators.
  7270. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7271. for lt_pkg in $withval; do
  7272. IFS="$lt_save_ifs"
  7273. if test "X$lt_pkg" = "X$lt_p"; then
  7274. pic_mode=yes
  7275. fi
  7276. done
  7277. IFS="$lt_save_ifs"
  7278. ;;
  7279. esac
  7280. else
  7281. pic_mode=default
  7282. fi
  7283. test -z "$pic_mode" && pic_mode=default
  7284. # Check whether --enable-fast-install was given.
  7285. if test "${enable_fast_install+set}" = set; then :
  7286. enableval=$enable_fast_install; p=${PACKAGE-default}
  7287. case $enableval in
  7288. yes) enable_fast_install=yes ;;
  7289. no) enable_fast_install=no ;;
  7290. *)
  7291. enable_fast_install=no
  7292. # Look at the argument we got. We use all the common list separators.
  7293. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7294. for pkg in $enableval; do
  7295. IFS="$lt_save_ifs"
  7296. if test "X$pkg" = "X$p"; then
  7297. enable_fast_install=yes
  7298. fi
  7299. done
  7300. IFS="$lt_save_ifs"
  7301. ;;
  7302. esac
  7303. else
  7304. enable_fast_install=yes
  7305. fi
  7306. # This can be used to rebuild libtool when needed
  7307. LIBTOOL_DEPS="$ltmain"
  7308. # Always use our own libtool.
  7309. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7310. test -z "$LN_S" && LN_S="ln -s"
  7311. if test -n "${ZSH_VERSION+set}" ; then
  7312. setopt NO_GLOB_SUBST
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7315. $as_echo_n "checking for objdir... " >&6; }
  7316. if ${lt_cv_objdir+:} false; then :
  7317. $as_echo_n "(cached) " >&6
  7318. else
  7319. rm -f .libs 2>/dev/null
  7320. mkdir .libs 2>/dev/null
  7321. if test -d .libs; then
  7322. lt_cv_objdir=.libs
  7323. else
  7324. # MS-DOS does not allow filenames that begin with a dot.
  7325. lt_cv_objdir=_libs
  7326. fi
  7327. rmdir .libs 2>/dev/null
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7330. $as_echo "$lt_cv_objdir" >&6; }
  7331. objdir=$lt_cv_objdir
  7332. cat >>confdefs.h <<_ACEOF
  7333. #define LT_OBJDIR "$lt_cv_objdir/"
  7334. _ACEOF
  7335. case $host_os in
  7336. aix3*)
  7337. # AIX sometimes has problems with the GCC collect2 program. For some
  7338. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7339. # vanish in a puff of smoke.
  7340. if test "X${COLLECT_NAMES+set}" != Xset; then
  7341. COLLECT_NAMES=
  7342. export COLLECT_NAMES
  7343. fi
  7344. ;;
  7345. esac
  7346. # Global variables:
  7347. ofile=libtool
  7348. can_build_shared=yes
  7349. # All known linkers require a `.a' archive for static linking (except MSVC,
  7350. # which needs '.lib').
  7351. libext=a
  7352. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7353. old_CC="$CC"
  7354. old_CFLAGS="$CFLAGS"
  7355. # Set sane defaults for various variables
  7356. test -z "$CC" && CC=cc
  7357. test -z "$LTCC" && LTCC=$CC
  7358. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7359. test -z "$LD" && LD=ld
  7360. test -z "$ac_objext" && ac_objext=o
  7361. for cc_temp in $compiler""; do
  7362. case $cc_temp in
  7363. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7364. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7365. \-*) ;;
  7366. *) break;;
  7367. esac
  7368. done
  7369. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7370. # Only perform the check for file, if the check method requires it
  7371. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7372. case $deplibs_check_method in
  7373. file_magic*)
  7374. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7376. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7377. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7378. $as_echo_n "(cached) " >&6
  7379. else
  7380. case $MAGIC_CMD in
  7381. [\\/*] | ?:[\\/]*)
  7382. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7383. ;;
  7384. *)
  7385. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7386. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7387. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7388. for ac_dir in $ac_dummy; do
  7389. IFS="$lt_save_ifs"
  7390. test -z "$ac_dir" && ac_dir=.
  7391. if test -f $ac_dir/${ac_tool_prefix}file; then
  7392. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7393. if test -n "$file_magic_test_file"; then
  7394. case $deplibs_check_method in
  7395. "file_magic "*)
  7396. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7397. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7398. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7399. $EGREP "$file_magic_regex" > /dev/null; then
  7400. :
  7401. else
  7402. cat <<_LT_EOF 1>&2
  7403. *** Warning: the command libtool uses to detect shared libraries,
  7404. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7405. *** The result is that libtool may fail to recognize shared libraries
  7406. *** as such. This will affect the creation of libtool libraries that
  7407. *** depend on shared libraries, but programs linked with such libtool
  7408. *** libraries will work regardless of this problem. Nevertheless, you
  7409. *** may want to report the problem to your system manager and/or to
  7410. *** [email protected]
  7411. _LT_EOF
  7412. fi ;;
  7413. esac
  7414. fi
  7415. break
  7416. fi
  7417. done
  7418. IFS="$lt_save_ifs"
  7419. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7420. ;;
  7421. esac
  7422. fi
  7423. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7424. if test -n "$MAGIC_CMD"; then
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7426. $as_echo "$MAGIC_CMD" >&6; }
  7427. else
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7429. $as_echo "no" >&6; }
  7430. fi
  7431. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7432. if test -n "$ac_tool_prefix"; then
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7434. $as_echo_n "checking for file... " >&6; }
  7435. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7436. $as_echo_n "(cached) " >&6
  7437. else
  7438. case $MAGIC_CMD in
  7439. [\\/*] | ?:[\\/]*)
  7440. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7441. ;;
  7442. *)
  7443. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7444. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7445. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7446. for ac_dir in $ac_dummy; do
  7447. IFS="$lt_save_ifs"
  7448. test -z "$ac_dir" && ac_dir=.
  7449. if test -f $ac_dir/file; then
  7450. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7451. if test -n "$file_magic_test_file"; then
  7452. case $deplibs_check_method in
  7453. "file_magic "*)
  7454. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7455. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7456. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7457. $EGREP "$file_magic_regex" > /dev/null; then
  7458. :
  7459. else
  7460. cat <<_LT_EOF 1>&2
  7461. *** Warning: the command libtool uses to detect shared libraries,
  7462. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7463. *** The result is that libtool may fail to recognize shared libraries
  7464. *** as such. This will affect the creation of libtool libraries that
  7465. *** depend on shared libraries, but programs linked with such libtool
  7466. *** libraries will work regardless of this problem. Nevertheless, you
  7467. *** may want to report the problem to your system manager and/or to
  7468. *** [email protected]
  7469. _LT_EOF
  7470. fi ;;
  7471. esac
  7472. fi
  7473. break
  7474. fi
  7475. done
  7476. IFS="$lt_save_ifs"
  7477. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7478. ;;
  7479. esac
  7480. fi
  7481. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7482. if test -n "$MAGIC_CMD"; then
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7484. $as_echo "$MAGIC_CMD" >&6; }
  7485. else
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7487. $as_echo "no" >&6; }
  7488. fi
  7489. else
  7490. MAGIC_CMD=:
  7491. fi
  7492. fi
  7493. fi
  7494. ;;
  7495. esac
  7496. # Use C for the default configuration in the libtool script
  7497. lt_save_CC="$CC"
  7498. ac_ext=c
  7499. ac_cpp='$CPP $CPPFLAGS'
  7500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7503. # Source file extension for C test sources.
  7504. ac_ext=c
  7505. # Object file extension for compiled C test sources.
  7506. objext=o
  7507. objext=$objext
  7508. # Code to be used in simple compile tests
  7509. lt_simple_compile_test_code="int some_variable = 0;"
  7510. # Code to be used in simple link tests
  7511. lt_simple_link_test_code='int main(){return(0);}'
  7512. # If no C compiler was specified, use CC.
  7513. LTCC=${LTCC-"$CC"}
  7514. # If no C compiler flags were specified, use CFLAGS.
  7515. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7516. # Allow CC to be a program name with arguments.
  7517. compiler=$CC
  7518. # Save the default compiler, since it gets overwritten when the other
  7519. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7520. compiler_DEFAULT=$CC
  7521. # save warnings/boilerplate of simple test code
  7522. ac_outfile=conftest.$ac_objext
  7523. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7524. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7525. _lt_compiler_boilerplate=`cat conftest.err`
  7526. $RM conftest*
  7527. ac_outfile=conftest.$ac_objext
  7528. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7529. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7530. _lt_linker_boilerplate=`cat conftest.err`
  7531. $RM -r conftest*
  7532. ## CAVEAT EMPTOR:
  7533. ## There is no encapsulation within the following macros, do not change
  7534. ## the running order or otherwise move them around unless you know exactly
  7535. ## what you are doing...
  7536. if test -n "$compiler"; then
  7537. lt_prog_compiler_no_builtin_flag=
  7538. if test "$GCC" = yes; then
  7539. case $cc_basename in
  7540. nvcc*)
  7541. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7542. *)
  7543. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7544. esac
  7545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7546. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7547. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7548. $as_echo_n "(cached) " >&6
  7549. else
  7550. lt_cv_prog_compiler_rtti_exceptions=no
  7551. ac_outfile=conftest.$ac_objext
  7552. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7553. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7554. # Insert the option either (1) after the last *FLAGS variable, or
  7555. # (2) before a word containing "conftest.", or (3) at the end.
  7556. # Note that $ac_compile itself does not contain backslashes and begins
  7557. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7558. # The option is referenced via a variable to avoid confusing sed.
  7559. lt_compile=`echo "$ac_compile" | $SED \
  7560. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7561. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7562. -e 's:$: $lt_compiler_flag:'`
  7563. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7564. (eval "$lt_compile" 2>conftest.err)
  7565. ac_status=$?
  7566. cat conftest.err >&5
  7567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7568. if (exit $ac_status) && test -s "$ac_outfile"; then
  7569. # The compiler can only warn and ignore the option if not recognized
  7570. # So say no if there are warnings other than the usual output.
  7571. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7572. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7573. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7574. lt_cv_prog_compiler_rtti_exceptions=yes
  7575. fi
  7576. fi
  7577. $RM conftest*
  7578. fi
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7580. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7581. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7582. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7583. else
  7584. :
  7585. fi
  7586. fi
  7587. lt_prog_compiler_wl=
  7588. lt_prog_compiler_pic=
  7589. lt_prog_compiler_static=
  7590. if test "$GCC" = yes; then
  7591. lt_prog_compiler_wl='-Wl,'
  7592. lt_prog_compiler_static='-static'
  7593. case $host_os in
  7594. aix*)
  7595. # All AIX code is PIC.
  7596. if test "$host_cpu" = ia64; then
  7597. # AIX 5 now supports IA64 processor
  7598. lt_prog_compiler_static='-Bstatic'
  7599. fi
  7600. ;;
  7601. amigaos*)
  7602. case $host_cpu in
  7603. powerpc)
  7604. # see comment about AmigaOS4 .so support
  7605. lt_prog_compiler_pic='-fPIC'
  7606. ;;
  7607. m68k)
  7608. # FIXME: we need at least 68020 code to build shared libraries, but
  7609. # adding the `-m68020' flag to GCC prevents building anything better,
  7610. # like `-m68040'.
  7611. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7612. ;;
  7613. esac
  7614. ;;
  7615. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7616. # PIC is the default for these OSes.
  7617. ;;
  7618. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7619. # This hack is so that the source file can tell whether it is being
  7620. # built for inclusion in a dll (and should export symbols for example).
  7621. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7622. # (--disable-auto-import) libraries
  7623. lt_prog_compiler_pic='-DDLL_EXPORT'
  7624. ;;
  7625. darwin* | rhapsody*)
  7626. # PIC is the default on this platform
  7627. # Common symbols not allowed in MH_DYLIB files
  7628. lt_prog_compiler_pic='-fno-common'
  7629. ;;
  7630. haiku*)
  7631. # PIC is the default for Haiku.
  7632. # The "-static" flag exists, but is broken.
  7633. lt_prog_compiler_static=
  7634. ;;
  7635. hpux*)
  7636. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7637. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7638. # sets the default TLS model and affects inlining.
  7639. case $host_cpu in
  7640. hppa*64*)
  7641. # +Z the default
  7642. ;;
  7643. *)
  7644. lt_prog_compiler_pic='-fPIC'
  7645. ;;
  7646. esac
  7647. ;;
  7648. interix[3-9]*)
  7649. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7650. # Instead, we relocate shared libraries at runtime.
  7651. ;;
  7652. msdosdjgpp*)
  7653. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7654. # on systems that don't support them.
  7655. lt_prog_compiler_can_build_shared=no
  7656. enable_shared=no
  7657. ;;
  7658. *nto* | *qnx*)
  7659. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7660. # it will coredump.
  7661. lt_prog_compiler_pic='-fPIC -shared'
  7662. ;;
  7663. sysv4*MP*)
  7664. if test -d /usr/nec; then
  7665. lt_prog_compiler_pic=-Kconform_pic
  7666. fi
  7667. ;;
  7668. *)
  7669. lt_prog_compiler_pic='-fPIC'
  7670. ;;
  7671. esac
  7672. case $cc_basename in
  7673. nvcc*) # Cuda Compiler Driver 2.2
  7674. lt_prog_compiler_wl='-Xlinker '
  7675. if test -n "$lt_prog_compiler_pic"; then
  7676. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7677. fi
  7678. ;;
  7679. esac
  7680. else
  7681. # PORTME Check for flag to pass linker flags through the system compiler.
  7682. case $host_os in
  7683. aix*)
  7684. lt_prog_compiler_wl='-Wl,'
  7685. if test "$host_cpu" = ia64; then
  7686. # AIX 5 now supports IA64 processor
  7687. lt_prog_compiler_static='-Bstatic'
  7688. else
  7689. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7690. fi
  7691. ;;
  7692. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7693. # This hack is so that the source file can tell whether it is being
  7694. # built for inclusion in a dll (and should export symbols for example).
  7695. lt_prog_compiler_pic='-DDLL_EXPORT'
  7696. ;;
  7697. hpux9* | hpux10* | hpux11*)
  7698. lt_prog_compiler_wl='-Wl,'
  7699. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7700. # not for PA HP-UX.
  7701. case $host_cpu in
  7702. hppa*64*|ia64*)
  7703. # +Z the default
  7704. ;;
  7705. *)
  7706. lt_prog_compiler_pic='+Z'
  7707. ;;
  7708. esac
  7709. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7710. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7711. ;;
  7712. irix5* | irix6* | nonstopux*)
  7713. lt_prog_compiler_wl='-Wl,'
  7714. # PIC (with -KPIC) is the default.
  7715. lt_prog_compiler_static='-non_shared'
  7716. ;;
  7717. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7718. case $cc_basename in
  7719. # old Intel for x86_64 which still supported -KPIC.
  7720. ecc*)
  7721. lt_prog_compiler_wl='-Wl,'
  7722. lt_prog_compiler_pic='-KPIC'
  7723. lt_prog_compiler_static='-static'
  7724. ;;
  7725. # icc used to be incompatible with GCC.
  7726. # ICC 10 doesn't accept -KPIC any more.
  7727. icc* | ifort*)
  7728. lt_prog_compiler_wl='-Wl,'
  7729. lt_prog_compiler_pic='-fPIC'
  7730. lt_prog_compiler_static='-static'
  7731. ;;
  7732. # Lahey Fortran 8.1.
  7733. lf95*)
  7734. lt_prog_compiler_wl='-Wl,'
  7735. lt_prog_compiler_pic='--shared'
  7736. lt_prog_compiler_static='--static'
  7737. ;;
  7738. nagfor*)
  7739. # NAG Fortran compiler
  7740. lt_prog_compiler_wl='-Wl,-Wl,,'
  7741. lt_prog_compiler_pic='-PIC'
  7742. lt_prog_compiler_static='-Bstatic'
  7743. ;;
  7744. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7745. # Portland Group compilers (*not* the Pentium gcc compiler,
  7746. # which looks to be a dead project)
  7747. lt_prog_compiler_wl='-Wl,'
  7748. lt_prog_compiler_pic='-fpic'
  7749. lt_prog_compiler_static='-Bstatic'
  7750. ;;
  7751. ccc*)
  7752. lt_prog_compiler_wl='-Wl,'
  7753. # All Alpha code is PIC.
  7754. lt_prog_compiler_static='-non_shared'
  7755. ;;
  7756. xl* | bgxl* | bgf* | mpixl*)
  7757. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7758. lt_prog_compiler_wl='-Wl,'
  7759. lt_prog_compiler_pic='-qpic'
  7760. lt_prog_compiler_static='-qstaticlink'
  7761. ;;
  7762. *)
  7763. case `$CC -V 2>&1 | sed 5q` in
  7764. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7765. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7766. lt_prog_compiler_pic='-KPIC'
  7767. lt_prog_compiler_static='-Bstatic'
  7768. lt_prog_compiler_wl=''
  7769. ;;
  7770. *Sun\ F* | *Sun*Fortran*)
  7771. lt_prog_compiler_pic='-KPIC'
  7772. lt_prog_compiler_static='-Bstatic'
  7773. lt_prog_compiler_wl='-Qoption ld '
  7774. ;;
  7775. *Sun\ C*)
  7776. # Sun C 5.9
  7777. lt_prog_compiler_pic='-KPIC'
  7778. lt_prog_compiler_static='-Bstatic'
  7779. lt_prog_compiler_wl='-Wl,'
  7780. ;;
  7781. *Intel*\ [CF]*Compiler*)
  7782. lt_prog_compiler_wl='-Wl,'
  7783. lt_prog_compiler_pic='-fPIC'
  7784. lt_prog_compiler_static='-static'
  7785. ;;
  7786. *Portland\ Group*)
  7787. lt_prog_compiler_wl='-Wl,'
  7788. lt_prog_compiler_pic='-fpic'
  7789. lt_prog_compiler_static='-Bstatic'
  7790. ;;
  7791. esac
  7792. ;;
  7793. esac
  7794. ;;
  7795. newsos6)
  7796. lt_prog_compiler_pic='-KPIC'
  7797. lt_prog_compiler_static='-Bstatic'
  7798. ;;
  7799. *nto* | *qnx*)
  7800. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7801. # it will coredump.
  7802. lt_prog_compiler_pic='-fPIC -shared'
  7803. ;;
  7804. osf3* | osf4* | osf5*)
  7805. lt_prog_compiler_wl='-Wl,'
  7806. # All OSF/1 code is PIC.
  7807. lt_prog_compiler_static='-non_shared'
  7808. ;;
  7809. rdos*)
  7810. lt_prog_compiler_static='-non_shared'
  7811. ;;
  7812. solaris*)
  7813. lt_prog_compiler_pic='-KPIC'
  7814. lt_prog_compiler_static='-Bstatic'
  7815. case $cc_basename in
  7816. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7817. lt_prog_compiler_wl='-Qoption ld ';;
  7818. *)
  7819. lt_prog_compiler_wl='-Wl,';;
  7820. esac
  7821. ;;
  7822. sunos4*)
  7823. lt_prog_compiler_wl='-Qoption ld '
  7824. lt_prog_compiler_pic='-PIC'
  7825. lt_prog_compiler_static='-Bstatic'
  7826. ;;
  7827. sysv4 | sysv4.2uw2* | sysv4.3*)
  7828. lt_prog_compiler_wl='-Wl,'
  7829. lt_prog_compiler_pic='-KPIC'
  7830. lt_prog_compiler_static='-Bstatic'
  7831. ;;
  7832. sysv4*MP*)
  7833. if test -d /usr/nec ;then
  7834. lt_prog_compiler_pic='-Kconform_pic'
  7835. lt_prog_compiler_static='-Bstatic'
  7836. fi
  7837. ;;
  7838. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7839. lt_prog_compiler_wl='-Wl,'
  7840. lt_prog_compiler_pic='-KPIC'
  7841. lt_prog_compiler_static='-Bstatic'
  7842. ;;
  7843. unicos*)
  7844. lt_prog_compiler_wl='-Wl,'
  7845. lt_prog_compiler_can_build_shared=no
  7846. ;;
  7847. uts4*)
  7848. lt_prog_compiler_pic='-pic'
  7849. lt_prog_compiler_static='-Bstatic'
  7850. ;;
  7851. *)
  7852. lt_prog_compiler_can_build_shared=no
  7853. ;;
  7854. esac
  7855. fi
  7856. case $host_os in
  7857. # For platforms which do not support PIC, -DPIC is meaningless:
  7858. *djgpp*)
  7859. lt_prog_compiler_pic=
  7860. ;;
  7861. *)
  7862. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7863. ;;
  7864. esac
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7866. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7867. if ${lt_cv_prog_compiler_pic+:} false; then :
  7868. $as_echo_n "(cached) " >&6
  7869. else
  7870. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7871. fi
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7873. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7874. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7875. #
  7876. # Check to make sure the PIC flag actually works.
  7877. #
  7878. if test -n "$lt_prog_compiler_pic"; then
  7879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7880. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7881. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7882. $as_echo_n "(cached) " >&6
  7883. else
  7884. lt_cv_prog_compiler_pic_works=no
  7885. ac_outfile=conftest.$ac_objext
  7886. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7887. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7888. # Insert the option either (1) after the last *FLAGS variable, or
  7889. # (2) before a word containing "conftest.", or (3) at the end.
  7890. # Note that $ac_compile itself does not contain backslashes and begins
  7891. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7892. # The option is referenced via a variable to avoid confusing sed.
  7893. lt_compile=`echo "$ac_compile" | $SED \
  7894. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7895. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7896. -e 's:$: $lt_compiler_flag:'`
  7897. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7898. (eval "$lt_compile" 2>conftest.err)
  7899. ac_status=$?
  7900. cat conftest.err >&5
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. if (exit $ac_status) && test -s "$ac_outfile"; then
  7903. # The compiler can only warn and ignore the option if not recognized
  7904. # So say no if there are warnings other than the usual output.
  7905. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7906. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7907. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7908. lt_cv_prog_compiler_pic_works=yes
  7909. fi
  7910. fi
  7911. $RM conftest*
  7912. fi
  7913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7914. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7915. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7916. case $lt_prog_compiler_pic in
  7917. "" | " "*) ;;
  7918. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7919. esac
  7920. else
  7921. lt_prog_compiler_pic=
  7922. lt_prog_compiler_can_build_shared=no
  7923. fi
  7924. fi
  7925. #
  7926. # Check to make sure the static flag actually works.
  7927. #
  7928. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7930. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7931. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7932. $as_echo_n "(cached) " >&6
  7933. else
  7934. lt_cv_prog_compiler_static_works=no
  7935. save_LDFLAGS="$LDFLAGS"
  7936. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7937. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7938. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7939. # The linker can only warn and ignore the option if not recognized
  7940. # So say no if there are warnings
  7941. if test -s conftest.err; then
  7942. # Append any errors to the config.log.
  7943. cat conftest.err 1>&5
  7944. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7945. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7946. if diff conftest.exp conftest.er2 >/dev/null; then
  7947. lt_cv_prog_compiler_static_works=yes
  7948. fi
  7949. else
  7950. lt_cv_prog_compiler_static_works=yes
  7951. fi
  7952. fi
  7953. $RM -r conftest*
  7954. LDFLAGS="$save_LDFLAGS"
  7955. fi
  7956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7957. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7958. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7959. :
  7960. else
  7961. lt_prog_compiler_static=
  7962. fi
  7963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7964. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7965. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7966. $as_echo_n "(cached) " >&6
  7967. else
  7968. lt_cv_prog_compiler_c_o=no
  7969. $RM -r conftest 2>/dev/null
  7970. mkdir conftest
  7971. cd conftest
  7972. mkdir out
  7973. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7974. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7975. # Insert the option either (1) after the last *FLAGS variable, or
  7976. # (2) before a word containing "conftest.", or (3) at the end.
  7977. # Note that $ac_compile itself does not contain backslashes and begins
  7978. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7979. lt_compile=`echo "$ac_compile" | $SED \
  7980. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7981. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7982. -e 's:$: $lt_compiler_flag:'`
  7983. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7984. (eval "$lt_compile" 2>out/conftest.err)
  7985. ac_status=$?
  7986. cat out/conftest.err >&5
  7987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7988. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7989. then
  7990. # The compiler can only warn and ignore the option if not recognized
  7991. # So say no if there are warnings
  7992. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7993. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7994. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7995. lt_cv_prog_compiler_c_o=yes
  7996. fi
  7997. fi
  7998. chmod u+w . 2>&5
  7999. $RM conftest*
  8000. # SGI C++ compiler will create directory out/ii_files/ for
  8001. # template instantiation
  8002. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8003. $RM out/* && rmdir out
  8004. cd ..
  8005. $RM -r conftest
  8006. $RM conftest*
  8007. fi
  8008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8009. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8011. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8012. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8013. $as_echo_n "(cached) " >&6
  8014. else
  8015. lt_cv_prog_compiler_c_o=no
  8016. $RM -r conftest 2>/dev/null
  8017. mkdir conftest
  8018. cd conftest
  8019. mkdir out
  8020. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8021. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8022. # Insert the option either (1) after the last *FLAGS variable, or
  8023. # (2) before a word containing "conftest.", or (3) at the end.
  8024. # Note that $ac_compile itself does not contain backslashes and begins
  8025. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8026. lt_compile=`echo "$ac_compile" | $SED \
  8027. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8028. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8029. -e 's:$: $lt_compiler_flag:'`
  8030. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8031. (eval "$lt_compile" 2>out/conftest.err)
  8032. ac_status=$?
  8033. cat out/conftest.err >&5
  8034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8035. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8036. then
  8037. # The compiler can only warn and ignore the option if not recognized
  8038. # So say no if there are warnings
  8039. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8040. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8041. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8042. lt_cv_prog_compiler_c_o=yes
  8043. fi
  8044. fi
  8045. chmod u+w . 2>&5
  8046. $RM conftest*
  8047. # SGI C++ compiler will create directory out/ii_files/ for
  8048. # template instantiation
  8049. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8050. $RM out/* && rmdir out
  8051. cd ..
  8052. $RM -r conftest
  8053. $RM conftest*
  8054. fi
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8056. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8057. hard_links="nottested"
  8058. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8059. # do not overwrite the value of need_locks provided by the user
  8060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8061. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8062. hard_links=yes
  8063. $RM conftest*
  8064. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8065. touch conftest.a
  8066. ln conftest.a conftest.b 2>&5 || hard_links=no
  8067. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8069. $as_echo "$hard_links" >&6; }
  8070. if test "$hard_links" = no; then
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8072. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8073. need_locks=warn
  8074. fi
  8075. else
  8076. need_locks=no
  8077. fi
  8078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8079. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8080. runpath_var=
  8081. allow_undefined_flag=
  8082. always_export_symbols=no
  8083. archive_cmds=
  8084. archive_expsym_cmds=
  8085. compiler_needs_object=no
  8086. enable_shared_with_static_runtimes=no
  8087. export_dynamic_flag_spec=
  8088. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8089. hardcode_automatic=no
  8090. hardcode_direct=no
  8091. hardcode_direct_absolute=no
  8092. hardcode_libdir_flag_spec=
  8093. hardcode_libdir_separator=
  8094. hardcode_minus_L=no
  8095. hardcode_shlibpath_var=unsupported
  8096. inherit_rpath=no
  8097. link_all_deplibs=unknown
  8098. module_cmds=
  8099. module_expsym_cmds=
  8100. old_archive_from_new_cmds=
  8101. old_archive_from_expsyms_cmds=
  8102. thread_safe_flag_spec=
  8103. whole_archive_flag_spec=
  8104. # include_expsyms should be a list of space-separated symbols to be *always*
  8105. # included in the symbol list
  8106. include_expsyms=
  8107. # exclude_expsyms can be an extended regexp of symbols to exclude
  8108. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8109. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8110. # as well as any symbol that contains `d'.
  8111. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8112. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8113. # platforms (ab)use it in PIC code, but their linkers get confused if
  8114. # the symbol is explicitly referenced. Since portable code cannot
  8115. # rely on this symbol name, it's probably fine to never include it in
  8116. # preloaded symbol tables.
  8117. # Exclude shared library initialization/finalization symbols.
  8118. extract_expsyms_cmds=
  8119. case $host_os in
  8120. cygwin* | mingw* | pw32* | cegcc*)
  8121. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8122. # When not using gcc, we currently assume that we are using
  8123. # Microsoft Visual C++.
  8124. if test "$GCC" != yes; then
  8125. with_gnu_ld=no
  8126. fi
  8127. ;;
  8128. interix*)
  8129. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8130. with_gnu_ld=yes
  8131. ;;
  8132. openbsd*)
  8133. with_gnu_ld=no
  8134. ;;
  8135. linux* | k*bsd*-gnu | gnu*)
  8136. link_all_deplibs=no
  8137. ;;
  8138. esac
  8139. ld_shlibs=yes
  8140. # On some targets, GNU ld is compatible enough with the native linker
  8141. # that we're better off using the native interface for both.
  8142. lt_use_gnu_ld_interface=no
  8143. if test "$with_gnu_ld" = yes; then
  8144. case $host_os in
  8145. aix*)
  8146. # The AIX port of GNU ld has always aspired to compatibility
  8147. # with the native linker. However, as the warning in the GNU ld
  8148. # block says, versions before 2.19.5* couldn't really create working
  8149. # shared libraries, regardless of the interface used.
  8150. case `$LD -v 2>&1` in
  8151. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8152. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8153. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8154. *)
  8155. lt_use_gnu_ld_interface=yes
  8156. ;;
  8157. esac
  8158. ;;
  8159. *)
  8160. lt_use_gnu_ld_interface=yes
  8161. ;;
  8162. esac
  8163. fi
  8164. if test "$lt_use_gnu_ld_interface" = yes; then
  8165. # If archive_cmds runs LD, not CC, wlarc should be empty
  8166. wlarc='${wl}'
  8167. # Set some defaults for GNU ld with shared library support. These
  8168. # are reset later if shared libraries are not supported. Putting them
  8169. # here allows them to be overridden if necessary.
  8170. runpath_var=LD_RUN_PATH
  8171. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8172. export_dynamic_flag_spec='${wl}--export-dynamic'
  8173. # ancient GNU ld didn't support --whole-archive et. al.
  8174. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8175. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8176. else
  8177. whole_archive_flag_spec=
  8178. fi
  8179. supports_anon_versioning=no
  8180. case `$LD -v 2>&1` in
  8181. *GNU\ gold*) supports_anon_versioning=yes ;;
  8182. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8183. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8184. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8185. *\ 2.11.*) ;; # other 2.11 versions
  8186. *) supports_anon_versioning=yes ;;
  8187. esac
  8188. # See if GNU ld supports shared libraries.
  8189. case $host_os in
  8190. aix[3-9]*)
  8191. # On AIX/PPC, the GNU linker is very broken
  8192. if test "$host_cpu" != ia64; then
  8193. ld_shlibs=no
  8194. cat <<_LT_EOF 1>&2
  8195. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8196. *** to be unable to reliably create shared libraries on AIX.
  8197. *** Therefore, libtool is disabling shared libraries support. If you
  8198. *** really care for shared libraries, you may want to install binutils
  8199. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8200. *** You will then need to restart the configuration process.
  8201. _LT_EOF
  8202. fi
  8203. ;;
  8204. amigaos*)
  8205. case $host_cpu in
  8206. powerpc)
  8207. # see comment about AmigaOS4 .so support
  8208. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8209. archive_expsym_cmds=''
  8210. ;;
  8211. m68k)
  8212. 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)'
  8213. hardcode_libdir_flag_spec='-L$libdir'
  8214. hardcode_minus_L=yes
  8215. ;;
  8216. esac
  8217. ;;
  8218. beos*)
  8219. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8220. allow_undefined_flag=unsupported
  8221. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8222. # support --undefined. This deserves some investigation. FIXME
  8223. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8224. else
  8225. ld_shlibs=no
  8226. fi
  8227. ;;
  8228. cygwin* | mingw* | pw32* | cegcc*)
  8229. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8230. # as there is no search path for DLLs.
  8231. hardcode_libdir_flag_spec='-L$libdir'
  8232. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8233. allow_undefined_flag=unsupported
  8234. always_export_symbols=no
  8235. enable_shared_with_static_runtimes=yes
  8236. 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'
  8237. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8238. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8239. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8240. # If the export-symbols file already is a .def file (1st line
  8241. # is EXPORTS), use it as is; otherwise, prepend...
  8242. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8243. cp $export_symbols $output_objdir/$soname.def;
  8244. else
  8245. echo EXPORTS > $output_objdir/$soname.def;
  8246. cat $export_symbols >> $output_objdir/$soname.def;
  8247. fi~
  8248. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8249. else
  8250. ld_shlibs=no
  8251. fi
  8252. ;;
  8253. haiku*)
  8254. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8255. link_all_deplibs=yes
  8256. ;;
  8257. interix[3-9]*)
  8258. hardcode_direct=no
  8259. hardcode_shlibpath_var=no
  8260. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8261. export_dynamic_flag_spec='${wl}-E'
  8262. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8263. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8264. # default) and relocated if they conflict, which is a slow very memory
  8265. # consuming and fragmenting process. To avoid this, we pick a random,
  8266. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8267. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8268. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8269. 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'
  8270. ;;
  8271. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8272. tmp_diet=no
  8273. if test "$host_os" = linux-dietlibc; then
  8274. case $cc_basename in
  8275. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8276. esac
  8277. fi
  8278. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8279. && test "$tmp_diet" = no
  8280. then
  8281. tmp_addflag=' $pic_flag'
  8282. tmp_sharedflag='-shared'
  8283. case $cc_basename,$host_cpu in
  8284. pgcc*) # Portland Group C compiler
  8285. 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'
  8286. tmp_addflag=' $pic_flag'
  8287. ;;
  8288. pgf77* | pgf90* | pgf95* | pgfortran*)
  8289. # Portland Group f77 and f90 compilers
  8290. 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'
  8291. tmp_addflag=' $pic_flag -Mnomain' ;;
  8292. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8293. tmp_addflag=' -i_dynamic' ;;
  8294. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8295. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8296. ifc* | ifort*) # Intel Fortran compiler
  8297. tmp_addflag=' -nofor_main' ;;
  8298. lf95*) # Lahey Fortran 8.1
  8299. whole_archive_flag_spec=
  8300. tmp_sharedflag='--shared' ;;
  8301. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8302. tmp_sharedflag='-qmkshrobj'
  8303. tmp_addflag= ;;
  8304. nvcc*) # Cuda Compiler Driver 2.2
  8305. 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'
  8306. compiler_needs_object=yes
  8307. ;;
  8308. esac
  8309. case `$CC -V 2>&1 | sed 5q` in
  8310. *Sun\ C*) # Sun C 5.9
  8311. 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'
  8312. compiler_needs_object=yes
  8313. tmp_sharedflag='-G' ;;
  8314. *Sun\ F*) # Sun Fortran 8.3
  8315. tmp_sharedflag='-G' ;;
  8316. esac
  8317. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8318. if test "x$supports_anon_versioning" = xyes; then
  8319. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8320. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8321. echo "local: *; };" >> $output_objdir/$libname.ver~
  8322. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8323. fi
  8324. case $cc_basename in
  8325. xlf* | bgf* | bgxlf* | mpixlf*)
  8326. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8327. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8328. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8329. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8330. if test "x$supports_anon_versioning" = xyes; then
  8331. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8332. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8333. echo "local: *; };" >> $output_objdir/$libname.ver~
  8334. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8335. fi
  8336. ;;
  8337. esac
  8338. else
  8339. ld_shlibs=no
  8340. fi
  8341. ;;
  8342. netbsd* | netbsdelf*-gnu)
  8343. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8344. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8345. wlarc=
  8346. else
  8347. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8348. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8349. fi
  8350. ;;
  8351. solaris*)
  8352. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8353. ld_shlibs=no
  8354. cat <<_LT_EOF 1>&2
  8355. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8356. *** create shared libraries on Solaris systems. Therefore, libtool
  8357. *** is disabling shared libraries support. We urge you to upgrade GNU
  8358. *** binutils to release 2.9.1 or newer. Another option is to modify
  8359. *** your PATH or compiler configuration so that the native linker is
  8360. *** used, and then restart.
  8361. _LT_EOF
  8362. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8363. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8364. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8365. else
  8366. ld_shlibs=no
  8367. fi
  8368. ;;
  8369. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8370. case `$LD -v 2>&1` in
  8371. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8372. ld_shlibs=no
  8373. cat <<_LT_EOF 1>&2
  8374. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8375. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8376. *** is disabling shared libraries support. We urge you to upgrade GNU
  8377. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8378. *** your PATH or compiler configuration so that the native linker is
  8379. *** used, and then restart.
  8380. _LT_EOF
  8381. ;;
  8382. *)
  8383. # For security reasons, it is highly recommended that you always
  8384. # use absolute paths for naming shared libraries, and exclude the
  8385. # DT_RUNPATH tag from executables and libraries. But doing so
  8386. # requires that you compile everything twice, which is a pain.
  8387. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8388. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8389. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8390. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8391. else
  8392. ld_shlibs=no
  8393. fi
  8394. ;;
  8395. esac
  8396. ;;
  8397. sunos4*)
  8398. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8399. wlarc=
  8400. hardcode_direct=yes
  8401. hardcode_shlibpath_var=no
  8402. ;;
  8403. *)
  8404. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8405. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8406. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8407. else
  8408. ld_shlibs=no
  8409. fi
  8410. ;;
  8411. esac
  8412. if test "$ld_shlibs" = no; then
  8413. runpath_var=
  8414. hardcode_libdir_flag_spec=
  8415. export_dynamic_flag_spec=
  8416. whole_archive_flag_spec=
  8417. fi
  8418. else
  8419. # PORTME fill in a description of your system's linker (not GNU ld)
  8420. case $host_os in
  8421. aix3*)
  8422. allow_undefined_flag=unsupported
  8423. always_export_symbols=yes
  8424. 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'
  8425. # Note: this linker hardcodes the directories in LIBPATH if there
  8426. # are no directories specified by -L.
  8427. hardcode_minus_L=yes
  8428. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8429. # Neither direct hardcoding nor static linking is supported with a
  8430. # broken collect2.
  8431. hardcode_direct=unsupported
  8432. fi
  8433. ;;
  8434. aix[4-9]*)
  8435. if test "$host_cpu" = ia64; then
  8436. # On IA64, the linker does run time linking by default, so we don't
  8437. # have to do anything special.
  8438. aix_use_runtimelinking=no
  8439. exp_sym_flag='-Bexport'
  8440. no_entry_flag=""
  8441. else
  8442. # If we're using GNU nm, then we don't want the "-C" option.
  8443. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8444. # Also, AIX nm treats weak defined symbols like other global
  8445. # defined symbols, whereas GNU nm marks them as "W".
  8446. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8447. 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'
  8448. else
  8449. 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'
  8450. fi
  8451. aix_use_runtimelinking=no
  8452. # Test if we are trying to use run time linking or normal
  8453. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8454. # need to do runtime linking.
  8455. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8456. for ld_flag in $LDFLAGS; do
  8457. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8458. aix_use_runtimelinking=yes
  8459. break
  8460. fi
  8461. done
  8462. ;;
  8463. esac
  8464. exp_sym_flag='-bexport'
  8465. no_entry_flag='-bnoentry'
  8466. fi
  8467. # When large executables or shared objects are built, AIX ld can
  8468. # have problems creating the table of contents. If linking a library
  8469. # or program results in "error TOC overflow" add -mminimal-toc to
  8470. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8471. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8472. archive_cmds=''
  8473. hardcode_direct=yes
  8474. hardcode_direct_absolute=yes
  8475. hardcode_libdir_separator=':'
  8476. link_all_deplibs=yes
  8477. file_list_spec='${wl}-f,'
  8478. if test "$GCC" = yes; then
  8479. case $host_os in aix4.[012]|aix4.[012].*)
  8480. # We only want to do this on AIX 4.2 and lower, the check
  8481. # below for broken collect2 doesn't work under 4.3+
  8482. collect2name=`${CC} -print-prog-name=collect2`
  8483. if test -f "$collect2name" &&
  8484. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8485. then
  8486. # We have reworked collect2
  8487. :
  8488. else
  8489. # We have old collect2
  8490. hardcode_direct=unsupported
  8491. # It fails to find uninstalled libraries when the uninstalled
  8492. # path is not listed in the libpath. Setting hardcode_minus_L
  8493. # to unsupported forces relinking
  8494. hardcode_minus_L=yes
  8495. hardcode_libdir_flag_spec='-L$libdir'
  8496. hardcode_libdir_separator=
  8497. fi
  8498. ;;
  8499. esac
  8500. shared_flag='-shared'
  8501. if test "$aix_use_runtimelinking" = yes; then
  8502. shared_flag="$shared_flag "'${wl}-G'
  8503. fi
  8504. link_all_deplibs=no
  8505. else
  8506. # not using gcc
  8507. if test "$host_cpu" = ia64; then
  8508. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8509. # chokes on -Wl,-G. The following line is correct:
  8510. shared_flag='-G'
  8511. else
  8512. if test "$aix_use_runtimelinking" = yes; then
  8513. shared_flag='${wl}-G'
  8514. else
  8515. shared_flag='${wl}-bM:SRE'
  8516. fi
  8517. fi
  8518. fi
  8519. export_dynamic_flag_spec='${wl}-bexpall'
  8520. # It seems that -bexpall does not export symbols beginning with
  8521. # underscore (_), so it is better to generate a list of symbols to export.
  8522. always_export_symbols=yes
  8523. if test "$aix_use_runtimelinking" = yes; then
  8524. # Warning - without using the other runtime loading flags (-brtl),
  8525. # -berok will link without error, but may produce a broken library.
  8526. allow_undefined_flag='-berok'
  8527. # Determine the default libpath from the value encoded in an
  8528. # empty executable.
  8529. if test "${lt_cv_aix_libpath+set}" = set; then
  8530. aix_libpath=$lt_cv_aix_libpath
  8531. else
  8532. if ${lt_cv_aix_libpath_+:} false; then :
  8533. $as_echo_n "(cached) " >&6
  8534. else
  8535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8536. /* end confdefs.h. */
  8537. int
  8538. main ()
  8539. {
  8540. ;
  8541. return 0;
  8542. }
  8543. _ACEOF
  8544. if ac_fn_c_try_link "$LINENO"; then :
  8545. lt_aix_libpath_sed='
  8546. /Import File Strings/,/^$/ {
  8547. /^0/ {
  8548. s/^0 *\([^ ]*\) *$/\1/
  8549. p
  8550. }
  8551. }'
  8552. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8553. # Check for a 64-bit object if we didn't find anything.
  8554. if test -z "$lt_cv_aix_libpath_"; then
  8555. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8556. fi
  8557. fi
  8558. rm -f core conftest.err conftest.$ac_objext \
  8559. conftest$ac_exeext conftest.$ac_ext
  8560. if test -z "$lt_cv_aix_libpath_"; then
  8561. lt_cv_aix_libpath_="/usr/lib:/lib"
  8562. fi
  8563. fi
  8564. aix_libpath=$lt_cv_aix_libpath_
  8565. fi
  8566. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8567. 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"
  8568. else
  8569. if test "$host_cpu" = ia64; then
  8570. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8571. allow_undefined_flag="-z nodefs"
  8572. 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"
  8573. else
  8574. # Determine the default libpath from the value encoded in an
  8575. # empty executable.
  8576. if test "${lt_cv_aix_libpath+set}" = set; then
  8577. aix_libpath=$lt_cv_aix_libpath
  8578. else
  8579. if ${lt_cv_aix_libpath_+:} false; then :
  8580. $as_echo_n "(cached) " >&6
  8581. else
  8582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8583. /* end confdefs.h. */
  8584. int
  8585. main ()
  8586. {
  8587. ;
  8588. return 0;
  8589. }
  8590. _ACEOF
  8591. if ac_fn_c_try_link "$LINENO"; then :
  8592. lt_aix_libpath_sed='
  8593. /Import File Strings/,/^$/ {
  8594. /^0/ {
  8595. s/^0 *\([^ ]*\) *$/\1/
  8596. p
  8597. }
  8598. }'
  8599. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8600. # Check for a 64-bit object if we didn't find anything.
  8601. if test -z "$lt_cv_aix_libpath_"; then
  8602. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8603. fi
  8604. fi
  8605. rm -f core conftest.err conftest.$ac_objext \
  8606. conftest$ac_exeext conftest.$ac_ext
  8607. if test -z "$lt_cv_aix_libpath_"; then
  8608. lt_cv_aix_libpath_="/usr/lib:/lib"
  8609. fi
  8610. fi
  8611. aix_libpath=$lt_cv_aix_libpath_
  8612. fi
  8613. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8614. # Warning - without using the other run time loading flags,
  8615. # -berok will link without error, but may produce a broken library.
  8616. no_undefined_flag=' ${wl}-bernotok'
  8617. allow_undefined_flag=' ${wl}-berok'
  8618. if test "$with_gnu_ld" = yes; then
  8619. # We only use this code for GNU lds that support --whole-archive.
  8620. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8621. else
  8622. # Exported symbols can be pulled into shared objects from archives
  8623. whole_archive_flag_spec='$convenience'
  8624. fi
  8625. archive_cmds_need_lc=yes
  8626. # This is similar to how AIX traditionally builds its shared libraries.
  8627. 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'
  8628. fi
  8629. fi
  8630. ;;
  8631. amigaos*)
  8632. case $host_cpu in
  8633. powerpc)
  8634. # see comment about AmigaOS4 .so support
  8635. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8636. archive_expsym_cmds=''
  8637. ;;
  8638. m68k)
  8639. 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)'
  8640. hardcode_libdir_flag_spec='-L$libdir'
  8641. hardcode_minus_L=yes
  8642. ;;
  8643. esac
  8644. ;;
  8645. bsdi[45]*)
  8646. export_dynamic_flag_spec=-rdynamic
  8647. ;;
  8648. cygwin* | mingw* | pw32* | cegcc*)
  8649. # When not using gcc, we currently assume that we are using
  8650. # Microsoft Visual C++.
  8651. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8652. # no search path for DLLs.
  8653. case $cc_basename in
  8654. cl*)
  8655. # Native MSVC
  8656. hardcode_libdir_flag_spec=' '
  8657. allow_undefined_flag=unsupported
  8658. always_export_symbols=yes
  8659. file_list_spec='@'
  8660. # Tell ltmain to make .lib files, not .a files.
  8661. libext=lib
  8662. # Tell ltmain to make .dll files, not .so files.
  8663. shrext_cmds=".dll"
  8664. # FIXME: Setting linknames here is a bad hack.
  8665. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8666. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8667. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8668. else
  8669. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8670. fi~
  8671. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8672. linknames='
  8673. # The linker will not automatically build a static lib if we build a DLL.
  8674. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8675. enable_shared_with_static_runtimes=yes
  8676. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8677. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8678. # Don't use ranlib
  8679. old_postinstall_cmds='chmod 644 $oldlib'
  8680. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8681. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8682. case $lt_outputfile in
  8683. *.exe|*.EXE) ;;
  8684. *)
  8685. lt_outputfile="$lt_outputfile.exe"
  8686. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8687. ;;
  8688. esac~
  8689. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8690. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8691. $RM "$lt_outputfile.manifest";
  8692. fi'
  8693. ;;
  8694. *)
  8695. # Assume MSVC wrapper
  8696. hardcode_libdir_flag_spec=' '
  8697. allow_undefined_flag=unsupported
  8698. # Tell ltmain to make .lib files, not .a files.
  8699. libext=lib
  8700. # Tell ltmain to make .dll files, not .so files.
  8701. shrext_cmds=".dll"
  8702. # FIXME: Setting linknames here is a bad hack.
  8703. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8704. # The linker will automatically build a .lib file if we build a DLL.
  8705. old_archive_from_new_cmds='true'
  8706. # FIXME: Should let the user specify the lib program.
  8707. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8708. enable_shared_with_static_runtimes=yes
  8709. ;;
  8710. esac
  8711. ;;
  8712. darwin* | rhapsody*)
  8713. archive_cmds_need_lc=no
  8714. hardcode_direct=no
  8715. hardcode_automatic=yes
  8716. hardcode_shlibpath_var=unsupported
  8717. if test "$lt_cv_ld_force_load" = "yes"; then
  8718. 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\"`'
  8719. else
  8720. whole_archive_flag_spec=''
  8721. fi
  8722. link_all_deplibs=yes
  8723. allow_undefined_flag="$_lt_dar_allow_undefined"
  8724. case $cc_basename in
  8725. ifort*) _lt_dar_can_shared=yes ;;
  8726. *) _lt_dar_can_shared=$GCC ;;
  8727. esac
  8728. if test "$_lt_dar_can_shared" = "yes"; then
  8729. output_verbose_link_cmd=func_echo_all
  8730. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8731. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8732. 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}"
  8733. 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}"
  8734. else
  8735. ld_shlibs=no
  8736. fi
  8737. ;;
  8738. dgux*)
  8739. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8740. hardcode_libdir_flag_spec='-L$libdir'
  8741. hardcode_shlibpath_var=no
  8742. ;;
  8743. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8744. # support. Future versions do this automatically, but an explicit c++rt0.o
  8745. # does not break anything, and helps significantly (at the cost of a little
  8746. # extra space).
  8747. freebsd2.2*)
  8748. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8749. hardcode_libdir_flag_spec='-R$libdir'
  8750. hardcode_direct=yes
  8751. hardcode_shlibpath_var=no
  8752. ;;
  8753. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8754. freebsd2.*)
  8755. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8756. hardcode_direct=yes
  8757. hardcode_minus_L=yes
  8758. hardcode_shlibpath_var=no
  8759. ;;
  8760. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8761. freebsd* | dragonfly*)
  8762. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8763. hardcode_libdir_flag_spec='-R$libdir'
  8764. hardcode_direct=yes
  8765. hardcode_shlibpath_var=no
  8766. ;;
  8767. hpux9*)
  8768. if test "$GCC" = yes; then
  8769. 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'
  8770. else
  8771. 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'
  8772. fi
  8773. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8774. hardcode_libdir_separator=:
  8775. hardcode_direct=yes
  8776. # hardcode_minus_L: Not really in the search PATH,
  8777. # but as the default location of the library.
  8778. hardcode_minus_L=yes
  8779. export_dynamic_flag_spec='${wl}-E'
  8780. ;;
  8781. hpux10*)
  8782. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8783. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8784. else
  8785. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8786. fi
  8787. if test "$with_gnu_ld" = no; then
  8788. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8789. hardcode_libdir_separator=:
  8790. hardcode_direct=yes
  8791. hardcode_direct_absolute=yes
  8792. export_dynamic_flag_spec='${wl}-E'
  8793. # hardcode_minus_L: Not really in the search PATH,
  8794. # but as the default location of the library.
  8795. hardcode_minus_L=yes
  8796. fi
  8797. ;;
  8798. hpux11*)
  8799. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8800. case $host_cpu in
  8801. hppa*64*)
  8802. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8803. ;;
  8804. ia64*)
  8805. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8806. ;;
  8807. *)
  8808. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8809. ;;
  8810. esac
  8811. else
  8812. case $host_cpu in
  8813. hppa*64*)
  8814. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8815. ;;
  8816. ia64*)
  8817. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8818. ;;
  8819. *)
  8820. # Older versions of the 11.00 compiler do not understand -b yet
  8821. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8823. $as_echo_n "checking if $CC understands -b... " >&6; }
  8824. if ${lt_cv_prog_compiler__b+:} false; then :
  8825. $as_echo_n "(cached) " >&6
  8826. else
  8827. lt_cv_prog_compiler__b=no
  8828. save_LDFLAGS="$LDFLAGS"
  8829. LDFLAGS="$LDFLAGS -b"
  8830. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8831. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8832. # The linker can only warn and ignore the option if not recognized
  8833. # So say no if there are warnings
  8834. if test -s conftest.err; then
  8835. # Append any errors to the config.log.
  8836. cat conftest.err 1>&5
  8837. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8838. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8839. if diff conftest.exp conftest.er2 >/dev/null; then
  8840. lt_cv_prog_compiler__b=yes
  8841. fi
  8842. else
  8843. lt_cv_prog_compiler__b=yes
  8844. fi
  8845. fi
  8846. $RM -r conftest*
  8847. LDFLAGS="$save_LDFLAGS"
  8848. fi
  8849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8850. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8851. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8852. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8853. else
  8854. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8855. fi
  8856. ;;
  8857. esac
  8858. fi
  8859. if test "$with_gnu_ld" = no; then
  8860. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8861. hardcode_libdir_separator=:
  8862. case $host_cpu in
  8863. hppa*64*|ia64*)
  8864. hardcode_direct=no
  8865. hardcode_shlibpath_var=no
  8866. ;;
  8867. *)
  8868. hardcode_direct=yes
  8869. hardcode_direct_absolute=yes
  8870. export_dynamic_flag_spec='${wl}-E'
  8871. # hardcode_minus_L: Not really in the search PATH,
  8872. # but as the default location of the library.
  8873. hardcode_minus_L=yes
  8874. ;;
  8875. esac
  8876. fi
  8877. ;;
  8878. irix5* | irix6* | nonstopux*)
  8879. if test "$GCC" = yes; then
  8880. 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'
  8881. # Try to use the -exported_symbol ld option, if it does not
  8882. # work, assume that -exports_file does not work either and
  8883. # implicitly export all symbols.
  8884. # This should be the same for all languages, so no per-tag cache variable.
  8885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8886. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8887. if ${lt_cv_irix_exported_symbol+:} false; then :
  8888. $as_echo_n "(cached) " >&6
  8889. else
  8890. save_LDFLAGS="$LDFLAGS"
  8891. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8893. /* end confdefs.h. */
  8894. int foo (void) { return 0; }
  8895. _ACEOF
  8896. if ac_fn_c_try_link "$LINENO"; then :
  8897. lt_cv_irix_exported_symbol=yes
  8898. else
  8899. lt_cv_irix_exported_symbol=no
  8900. fi
  8901. rm -f core conftest.err conftest.$ac_objext \
  8902. conftest$ac_exeext conftest.$ac_ext
  8903. LDFLAGS="$save_LDFLAGS"
  8904. fi
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8906. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8907. if test "$lt_cv_irix_exported_symbol" = yes; then
  8908. 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'
  8909. fi
  8910. else
  8911. 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'
  8912. 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'
  8913. fi
  8914. archive_cmds_need_lc='no'
  8915. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8916. hardcode_libdir_separator=:
  8917. inherit_rpath=yes
  8918. link_all_deplibs=yes
  8919. ;;
  8920. netbsd* | netbsdelf*-gnu)
  8921. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8922. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8923. else
  8924. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8925. fi
  8926. hardcode_libdir_flag_spec='-R$libdir'
  8927. hardcode_direct=yes
  8928. hardcode_shlibpath_var=no
  8929. ;;
  8930. newsos6)
  8931. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8932. hardcode_direct=yes
  8933. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8934. hardcode_libdir_separator=:
  8935. hardcode_shlibpath_var=no
  8936. ;;
  8937. *nto* | *qnx*)
  8938. ;;
  8939. openbsd*)
  8940. if test -f /usr/libexec/ld.so; then
  8941. hardcode_direct=yes
  8942. hardcode_shlibpath_var=no
  8943. hardcode_direct_absolute=yes
  8944. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8945. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8946. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8947. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8948. export_dynamic_flag_spec='${wl}-E'
  8949. else
  8950. case $host_os in
  8951. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8952. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8953. hardcode_libdir_flag_spec='-R$libdir'
  8954. ;;
  8955. *)
  8956. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8957. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8958. ;;
  8959. esac
  8960. fi
  8961. else
  8962. ld_shlibs=no
  8963. fi
  8964. ;;
  8965. os2*)
  8966. hardcode_libdir_flag_spec='-L$libdir'
  8967. hardcode_minus_L=yes
  8968. allow_undefined_flag=unsupported
  8969. 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'
  8970. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8971. ;;
  8972. osf3*)
  8973. if test "$GCC" = yes; then
  8974. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8975. 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'
  8976. else
  8977. allow_undefined_flag=' -expect_unresolved \*'
  8978. 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'
  8979. fi
  8980. archive_cmds_need_lc='no'
  8981. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8982. hardcode_libdir_separator=:
  8983. ;;
  8984. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8985. if test "$GCC" = yes; then
  8986. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8987. 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'
  8988. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8989. else
  8990. allow_undefined_flag=' -expect_unresolved \*'
  8991. 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'
  8992. 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~
  8993. $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'
  8994. # Both c and cxx compiler support -rpath directly
  8995. hardcode_libdir_flag_spec='-rpath $libdir'
  8996. fi
  8997. archive_cmds_need_lc='no'
  8998. hardcode_libdir_separator=:
  8999. ;;
  9000. solaris*)
  9001. no_undefined_flag=' -z defs'
  9002. if test "$GCC" = yes; then
  9003. wlarc='${wl}'
  9004. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9005. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9006. $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'
  9007. else
  9008. case `$CC -V 2>&1` in
  9009. *"Compilers 5.0"*)
  9010. wlarc=''
  9011. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9012. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9013. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9014. ;;
  9015. *)
  9016. wlarc='${wl}'
  9017. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9018. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9019. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9020. ;;
  9021. esac
  9022. fi
  9023. hardcode_libdir_flag_spec='-R$libdir'
  9024. hardcode_shlibpath_var=no
  9025. case $host_os in
  9026. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9027. *)
  9028. # The compiler driver will combine and reorder linker options,
  9029. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9030. # but is careful enough not to reorder.
  9031. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9032. if test "$GCC" = yes; then
  9033. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9034. else
  9035. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9036. fi
  9037. ;;
  9038. esac
  9039. link_all_deplibs=yes
  9040. ;;
  9041. sunos4*)
  9042. if test "x$host_vendor" = xsequent; then
  9043. # Use $CC to link under sequent, because it throws in some extra .o
  9044. # files that make .init and .fini sections work.
  9045. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9046. else
  9047. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9048. fi
  9049. hardcode_libdir_flag_spec='-L$libdir'
  9050. hardcode_direct=yes
  9051. hardcode_minus_L=yes
  9052. hardcode_shlibpath_var=no
  9053. ;;
  9054. sysv4)
  9055. case $host_vendor in
  9056. sni)
  9057. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9058. hardcode_direct=yes # is this really true???
  9059. ;;
  9060. siemens)
  9061. ## LD is ld it makes a PLAMLIB
  9062. ## CC just makes a GrossModule.
  9063. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9064. reload_cmds='$CC -r -o $output$reload_objs'
  9065. hardcode_direct=no
  9066. ;;
  9067. motorola)
  9068. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9069. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9070. ;;
  9071. esac
  9072. runpath_var='LD_RUN_PATH'
  9073. hardcode_shlibpath_var=no
  9074. ;;
  9075. sysv4.3*)
  9076. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9077. hardcode_shlibpath_var=no
  9078. export_dynamic_flag_spec='-Bexport'
  9079. ;;
  9080. sysv4*MP*)
  9081. if test -d /usr/nec; then
  9082. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9083. hardcode_shlibpath_var=no
  9084. runpath_var=LD_RUN_PATH
  9085. hardcode_runpath_var=yes
  9086. ld_shlibs=yes
  9087. fi
  9088. ;;
  9089. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9090. no_undefined_flag='${wl}-z,text'
  9091. archive_cmds_need_lc=no
  9092. hardcode_shlibpath_var=no
  9093. runpath_var='LD_RUN_PATH'
  9094. if test "$GCC" = yes; then
  9095. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9096. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9097. else
  9098. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9099. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9100. fi
  9101. ;;
  9102. sysv5* | sco3.2v5* | sco5v6*)
  9103. # Note: We can NOT use -z defs as we might desire, because we do not
  9104. # link with -lc, and that would cause any symbols used from libc to
  9105. # always be unresolved, which means just about no library would
  9106. # ever link correctly. If we're not using GNU ld we use -z text
  9107. # though, which does catch some bad symbols but isn't as heavy-handed
  9108. # as -z defs.
  9109. no_undefined_flag='${wl}-z,text'
  9110. allow_undefined_flag='${wl}-z,nodefs'
  9111. archive_cmds_need_lc=no
  9112. hardcode_shlibpath_var=no
  9113. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9114. hardcode_libdir_separator=':'
  9115. link_all_deplibs=yes
  9116. export_dynamic_flag_spec='${wl}-Bexport'
  9117. runpath_var='LD_RUN_PATH'
  9118. if test "$GCC" = yes; then
  9119. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9120. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9121. else
  9122. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9123. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9124. fi
  9125. ;;
  9126. uts4*)
  9127. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9128. hardcode_libdir_flag_spec='-L$libdir'
  9129. hardcode_shlibpath_var=no
  9130. ;;
  9131. *)
  9132. ld_shlibs=no
  9133. ;;
  9134. esac
  9135. if test x$host_vendor = xsni; then
  9136. case $host in
  9137. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9138. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9139. ;;
  9140. esac
  9141. fi
  9142. fi
  9143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9144. $as_echo "$ld_shlibs" >&6; }
  9145. test "$ld_shlibs" = no && can_build_shared=no
  9146. with_gnu_ld=$with_gnu_ld
  9147. #
  9148. # Do we need to explicitly link libc?
  9149. #
  9150. case "x$archive_cmds_need_lc" in
  9151. x|xyes)
  9152. # Assume -lc should be added
  9153. archive_cmds_need_lc=yes
  9154. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9155. case $archive_cmds in
  9156. *'~'*)
  9157. # FIXME: we may have to deal with multi-command sequences.
  9158. ;;
  9159. '$CC '*)
  9160. # Test whether the compiler implicitly links with -lc since on some
  9161. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9162. # to ld, don't add -lc before -lgcc.
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9164. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9165. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9166. $as_echo_n "(cached) " >&6
  9167. else
  9168. $RM conftest*
  9169. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9170. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9171. (eval $ac_compile) 2>&5
  9172. ac_status=$?
  9173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9174. test $ac_status = 0; } 2>conftest.err; then
  9175. soname=conftest
  9176. lib=conftest
  9177. libobjs=conftest.$ac_objext
  9178. deplibs=
  9179. wl=$lt_prog_compiler_wl
  9180. pic_flag=$lt_prog_compiler_pic
  9181. compiler_flags=-v
  9182. linker_flags=-v
  9183. verstring=
  9184. output_objdir=.
  9185. libname=conftest
  9186. lt_save_allow_undefined_flag=$allow_undefined_flag
  9187. allow_undefined_flag=
  9188. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9189. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9190. ac_status=$?
  9191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9192. test $ac_status = 0; }
  9193. then
  9194. lt_cv_archive_cmds_need_lc=no
  9195. else
  9196. lt_cv_archive_cmds_need_lc=yes
  9197. fi
  9198. allow_undefined_flag=$lt_save_allow_undefined_flag
  9199. else
  9200. cat conftest.err 1>&5
  9201. fi
  9202. $RM conftest*
  9203. fi
  9204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9205. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9206. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9207. ;;
  9208. esac
  9209. fi
  9210. ;;
  9211. esac
  9212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9213. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9214. if test "$GCC" = yes; then
  9215. case $host_os in
  9216. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9217. *) lt_awk_arg="/^libraries:/" ;;
  9218. esac
  9219. case $host_os in
  9220. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9221. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9222. esac
  9223. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9224. case $lt_search_path_spec in
  9225. *\;*)
  9226. # if the path contains ";" then we assume it to be the separator
  9227. # otherwise default to the standard path separator (i.e. ":") - it is
  9228. # assumed that no part of a normal pathname contains ";" but that should
  9229. # okay in the real world where ";" in dirpaths is itself problematic.
  9230. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9231. ;;
  9232. *)
  9233. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9234. ;;
  9235. esac
  9236. # Ok, now we have the path, separated by spaces, we can step through it
  9237. # and add multilib dir if necessary.
  9238. lt_tmp_lt_search_path_spec=
  9239. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9240. for lt_sys_path in $lt_search_path_spec; do
  9241. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9242. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9243. else
  9244. test -d "$lt_sys_path" && \
  9245. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9246. fi
  9247. done
  9248. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9249. BEGIN {RS=" "; FS="/|\n";} {
  9250. lt_foo="";
  9251. lt_count=0;
  9252. for (lt_i = NF; lt_i > 0; lt_i--) {
  9253. if ($lt_i != "" && $lt_i != ".") {
  9254. if ($lt_i == "..") {
  9255. lt_count++;
  9256. } else {
  9257. if (lt_count == 0) {
  9258. lt_foo="/" $lt_i lt_foo;
  9259. } else {
  9260. lt_count--;
  9261. }
  9262. }
  9263. }
  9264. }
  9265. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9266. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9267. }'`
  9268. # AWK program above erroneously prepends '/' to C:/dos/paths
  9269. # for these hosts.
  9270. case $host_os in
  9271. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9272. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9273. esac
  9274. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9275. else
  9276. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9277. fi
  9278. library_names_spec=
  9279. libname_spec='lib$name'
  9280. soname_spec=
  9281. shrext_cmds=".so"
  9282. postinstall_cmds=
  9283. postuninstall_cmds=
  9284. finish_cmds=
  9285. finish_eval=
  9286. shlibpath_var=
  9287. shlibpath_overrides_runpath=unknown
  9288. version_type=none
  9289. dynamic_linker="$host_os ld.so"
  9290. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9291. need_lib_prefix=unknown
  9292. hardcode_into_libs=no
  9293. # when you set need_version to no, make sure it does not cause -set_version
  9294. # flags to be left without arguments
  9295. need_version=unknown
  9296. case $host_os in
  9297. aix3*)
  9298. version_type=linux # correct to gnu/linux during the next big refactor
  9299. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9300. shlibpath_var=LIBPATH
  9301. # AIX 3 has no versioning support, so we append a major version to the name.
  9302. soname_spec='${libname}${release}${shared_ext}$major'
  9303. ;;
  9304. aix[4-9]*)
  9305. version_type=linux # correct to gnu/linux during the next big refactor
  9306. need_lib_prefix=no
  9307. need_version=no
  9308. hardcode_into_libs=yes
  9309. if test "$host_cpu" = ia64; then
  9310. # AIX 5 supports IA64
  9311. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9312. shlibpath_var=LD_LIBRARY_PATH
  9313. else
  9314. # With GCC up to 2.95.x, collect2 would create an import file
  9315. # for dependence libraries. The import file would start with
  9316. # the line `#! .'. This would cause the generated library to
  9317. # depend on `.', always an invalid library. This was fixed in
  9318. # development snapshots of GCC prior to 3.0.
  9319. case $host_os in
  9320. aix4 | aix4.[01] | aix4.[01].*)
  9321. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9322. echo ' yes '
  9323. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9324. :
  9325. else
  9326. can_build_shared=no
  9327. fi
  9328. ;;
  9329. esac
  9330. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9331. # soname into executable. Probably we can add versioning support to
  9332. # collect2, so additional links can be useful in future.
  9333. if test "$aix_use_runtimelinking" = yes; then
  9334. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9335. # instead of lib<name>.a to let people know that these are not
  9336. # typical AIX shared libraries.
  9337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9338. else
  9339. # We preserve .a as extension for shared libraries through AIX4.2
  9340. # and later when we are not doing run time linking.
  9341. library_names_spec='${libname}${release}.a $libname.a'
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. fi
  9344. shlibpath_var=LIBPATH
  9345. fi
  9346. ;;
  9347. amigaos*)
  9348. case $host_cpu in
  9349. powerpc)
  9350. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9351. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9353. ;;
  9354. m68k)
  9355. library_names_spec='$libname.ixlibrary $libname.a'
  9356. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9357. 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'
  9358. ;;
  9359. esac
  9360. ;;
  9361. beos*)
  9362. library_names_spec='${libname}${shared_ext}'
  9363. dynamic_linker="$host_os ld.so"
  9364. shlibpath_var=LIBRARY_PATH
  9365. ;;
  9366. bsdi[45]*)
  9367. version_type=linux # correct to gnu/linux during the next big refactor
  9368. need_version=no
  9369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9370. soname_spec='${libname}${release}${shared_ext}$major'
  9371. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9372. shlibpath_var=LD_LIBRARY_PATH
  9373. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9374. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9375. # the default ld.so.conf also contains /usr/contrib/lib and
  9376. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9377. # libtool to hard-code these into programs
  9378. ;;
  9379. cygwin* | mingw* | pw32* | cegcc*)
  9380. version_type=windows
  9381. shrext_cmds=".dll"
  9382. need_version=no
  9383. need_lib_prefix=no
  9384. case $GCC,$cc_basename in
  9385. yes,*)
  9386. # gcc
  9387. library_names_spec='$libname.dll.a'
  9388. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9389. postinstall_cmds='base_file=`basename \${file}`~
  9390. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9391. dldir=$destdir/`dirname \$dlpath`~
  9392. test -d \$dldir || mkdir -p \$dldir~
  9393. $install_prog $dir/$dlname \$dldir/$dlname~
  9394. chmod a+x \$dldir/$dlname~
  9395. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9396. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9397. fi'
  9398. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9399. dlpath=$dir/\$dldll~
  9400. $RM \$dlpath'
  9401. shlibpath_overrides_runpath=yes
  9402. case $host_os in
  9403. cygwin*)
  9404. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9405. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9406. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9407. ;;
  9408. mingw* | cegcc*)
  9409. # MinGW DLLs use traditional 'lib' prefix
  9410. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9411. ;;
  9412. pw32*)
  9413. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9414. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9415. ;;
  9416. esac
  9417. dynamic_linker='Win32 ld.exe'
  9418. ;;
  9419. *,cl*)
  9420. # Native MSVC
  9421. libname_spec='$name'
  9422. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9423. library_names_spec='${libname}.dll.lib'
  9424. case $build_os in
  9425. mingw*)
  9426. sys_lib_search_path_spec=
  9427. lt_save_ifs=$IFS
  9428. IFS=';'
  9429. for lt_path in $LIB
  9430. do
  9431. IFS=$lt_save_ifs
  9432. # Let DOS variable expansion print the short 8.3 style file name.
  9433. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9434. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9435. done
  9436. IFS=$lt_save_ifs
  9437. # Convert to MSYS style.
  9438. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9439. ;;
  9440. cygwin*)
  9441. # Convert to unix form, then to dos form, then back to unix form
  9442. # but this time dos style (no spaces!) so that the unix form looks
  9443. # like /cygdrive/c/PROGRA~1:/cygdr...
  9444. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9445. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9446. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9447. ;;
  9448. *)
  9449. sys_lib_search_path_spec="$LIB"
  9450. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9451. # It is most probably a Windows format PATH.
  9452. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9453. else
  9454. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9455. fi
  9456. # FIXME: find the short name or the path components, as spaces are
  9457. # common. (e.g. "Program Files" -> "PROGRA~1")
  9458. ;;
  9459. esac
  9460. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9461. postinstall_cmds='base_file=`basename \${file}`~
  9462. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9463. dldir=$destdir/`dirname \$dlpath`~
  9464. test -d \$dldir || mkdir -p \$dldir~
  9465. $install_prog $dir/$dlname \$dldir/$dlname'
  9466. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9467. dlpath=$dir/\$dldll~
  9468. $RM \$dlpath'
  9469. shlibpath_overrides_runpath=yes
  9470. dynamic_linker='Win32 link.exe'
  9471. ;;
  9472. *)
  9473. # Assume MSVC wrapper
  9474. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9475. dynamic_linker='Win32 ld.exe'
  9476. ;;
  9477. esac
  9478. # FIXME: first we should search . and the directory the executable is in
  9479. shlibpath_var=PATH
  9480. ;;
  9481. darwin* | rhapsody*)
  9482. dynamic_linker="$host_os dyld"
  9483. version_type=darwin
  9484. need_lib_prefix=no
  9485. need_version=no
  9486. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9487. soname_spec='${libname}${release}${major}$shared_ext'
  9488. shlibpath_overrides_runpath=yes
  9489. shlibpath_var=DYLD_LIBRARY_PATH
  9490. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9491. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9492. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9493. ;;
  9494. dgux*)
  9495. version_type=linux # correct to gnu/linux during the next big refactor
  9496. need_lib_prefix=no
  9497. need_version=no
  9498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9499. soname_spec='${libname}${release}${shared_ext}$major'
  9500. shlibpath_var=LD_LIBRARY_PATH
  9501. ;;
  9502. freebsd* | dragonfly*)
  9503. # DragonFly does not have aout. When/if they implement a new
  9504. # versioning mechanism, adjust this.
  9505. if test -x /usr/bin/objformat; then
  9506. objformat=`/usr/bin/objformat`
  9507. else
  9508. case $host_os in
  9509. freebsd[23].*) objformat=aout ;;
  9510. *) objformat=elf ;;
  9511. esac
  9512. fi
  9513. version_type=freebsd-$objformat
  9514. case $version_type in
  9515. freebsd-elf*)
  9516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9517. need_version=no
  9518. need_lib_prefix=no
  9519. ;;
  9520. freebsd-*)
  9521. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9522. need_version=yes
  9523. ;;
  9524. esac
  9525. shlibpath_var=LD_LIBRARY_PATH
  9526. case $host_os in
  9527. freebsd2.*)
  9528. shlibpath_overrides_runpath=yes
  9529. ;;
  9530. freebsd3.[01]* | freebsdelf3.[01]*)
  9531. shlibpath_overrides_runpath=yes
  9532. hardcode_into_libs=yes
  9533. ;;
  9534. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9535. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9536. shlibpath_overrides_runpath=no
  9537. hardcode_into_libs=yes
  9538. ;;
  9539. *) # from 4.6 on, and DragonFly
  9540. shlibpath_overrides_runpath=yes
  9541. hardcode_into_libs=yes
  9542. ;;
  9543. esac
  9544. ;;
  9545. gnu*)
  9546. version_type=linux # correct to gnu/linux during the next big refactor
  9547. need_lib_prefix=no
  9548. need_version=no
  9549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9550. soname_spec='${libname}${release}${shared_ext}$major'
  9551. shlibpath_var=LD_LIBRARY_PATH
  9552. shlibpath_overrides_runpath=no
  9553. hardcode_into_libs=yes
  9554. ;;
  9555. haiku*)
  9556. version_type=linux # correct to gnu/linux during the next big refactor
  9557. need_lib_prefix=no
  9558. need_version=no
  9559. dynamic_linker="$host_os runtime_loader"
  9560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9561. soname_spec='${libname}${release}${shared_ext}$major'
  9562. shlibpath_var=LIBRARY_PATH
  9563. shlibpath_overrides_runpath=yes
  9564. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9565. hardcode_into_libs=yes
  9566. ;;
  9567. hpux9* | hpux10* | hpux11*)
  9568. # Give a soname corresponding to the major version so that dld.sl refuses to
  9569. # link against other versions.
  9570. version_type=sunos
  9571. need_lib_prefix=no
  9572. need_version=no
  9573. case $host_cpu in
  9574. ia64*)
  9575. shrext_cmds='.so'
  9576. hardcode_into_libs=yes
  9577. dynamic_linker="$host_os dld.so"
  9578. shlibpath_var=LD_LIBRARY_PATH
  9579. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9581. soname_spec='${libname}${release}${shared_ext}$major'
  9582. if test "X$HPUX_IA64_MODE" = X32; then
  9583. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9584. else
  9585. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9586. fi
  9587. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9588. ;;
  9589. hppa*64*)
  9590. shrext_cmds='.sl'
  9591. hardcode_into_libs=yes
  9592. dynamic_linker="$host_os dld.sl"
  9593. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9594. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9596. soname_spec='${libname}${release}${shared_ext}$major'
  9597. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9598. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9599. ;;
  9600. *)
  9601. shrext_cmds='.sl'
  9602. dynamic_linker="$host_os dld.sl"
  9603. shlibpath_var=SHLIB_PATH
  9604. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9606. soname_spec='${libname}${release}${shared_ext}$major'
  9607. ;;
  9608. esac
  9609. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9610. postinstall_cmds='chmod 555 $lib'
  9611. # or fails outright, so override atomically:
  9612. install_override_mode=555
  9613. ;;
  9614. interix[3-9]*)
  9615. version_type=linux # correct to gnu/linux during the next big refactor
  9616. need_lib_prefix=no
  9617. need_version=no
  9618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9619. soname_spec='${libname}${release}${shared_ext}$major'
  9620. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9621. shlibpath_var=LD_LIBRARY_PATH
  9622. shlibpath_overrides_runpath=no
  9623. hardcode_into_libs=yes
  9624. ;;
  9625. irix5* | irix6* | nonstopux*)
  9626. case $host_os in
  9627. nonstopux*) version_type=nonstopux ;;
  9628. *)
  9629. if test "$lt_cv_prog_gnu_ld" = yes; then
  9630. version_type=linux # correct to gnu/linux during the next big refactor
  9631. else
  9632. version_type=irix
  9633. fi ;;
  9634. esac
  9635. need_lib_prefix=no
  9636. need_version=no
  9637. soname_spec='${libname}${release}${shared_ext}$major'
  9638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9639. case $host_os in
  9640. irix5* | nonstopux*)
  9641. libsuff= shlibsuff=
  9642. ;;
  9643. *)
  9644. case $LD in # libtool.m4 will add one of these switches to LD
  9645. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9646. libsuff= shlibsuff= libmagic=32-bit;;
  9647. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9648. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9649. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9650. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9651. *) libsuff= shlibsuff= libmagic=never-match;;
  9652. esac
  9653. ;;
  9654. esac
  9655. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9656. shlibpath_overrides_runpath=no
  9657. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9658. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9659. hardcode_into_libs=yes
  9660. ;;
  9661. # No shared lib support for Linux oldld, aout, or coff.
  9662. linux*oldld* | linux*aout* | linux*coff*)
  9663. dynamic_linker=no
  9664. ;;
  9665. # This must be glibc/ELF.
  9666. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9667. version_type=linux # correct to gnu/linux during the next big refactor
  9668. need_lib_prefix=no
  9669. need_version=no
  9670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9671. soname_spec='${libname}${release}${shared_ext}$major'
  9672. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9673. shlibpath_var=LD_LIBRARY_PATH
  9674. shlibpath_overrides_runpath=no
  9675. # Some binutils ld are patched to set DT_RUNPATH
  9676. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9677. $as_echo_n "(cached) " >&6
  9678. else
  9679. lt_cv_shlibpath_overrides_runpath=no
  9680. save_LDFLAGS=$LDFLAGS
  9681. save_libdir=$libdir
  9682. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9683. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9685. /* end confdefs.h. */
  9686. int
  9687. main ()
  9688. {
  9689. ;
  9690. return 0;
  9691. }
  9692. _ACEOF
  9693. if ac_fn_c_try_link "$LINENO"; then :
  9694. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9695. lt_cv_shlibpath_overrides_runpath=yes
  9696. fi
  9697. fi
  9698. rm -f core conftest.err conftest.$ac_objext \
  9699. conftest$ac_exeext conftest.$ac_ext
  9700. LDFLAGS=$save_LDFLAGS
  9701. libdir=$save_libdir
  9702. fi
  9703. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9704. # This implies no fast_install, which is unacceptable.
  9705. # Some rework will be needed to allow for fast_install
  9706. # before this can be enabled.
  9707. hardcode_into_libs=yes
  9708. # Append ld.so.conf contents to the search path
  9709. if test -f /etc/ld.so.conf; then
  9710. 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' ' '`
  9711. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9712. fi
  9713. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9714. # powerpc, because MkLinux only supported shared libraries with the
  9715. # GNU dynamic linker. Since this was broken with cross compilers,
  9716. # most powerpc-linux boxes support dynamic linking these days and
  9717. # people can always --disable-shared, the test was removed, and we
  9718. # assume the GNU/Linux dynamic linker is in use.
  9719. dynamic_linker='GNU/Linux ld.so'
  9720. ;;
  9721. netbsdelf*-gnu)
  9722. version_type=linux
  9723. need_lib_prefix=no
  9724. need_version=no
  9725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9726. soname_spec='${libname}${release}${shared_ext}$major'
  9727. shlibpath_var=LD_LIBRARY_PATH
  9728. shlibpath_overrides_runpath=no
  9729. hardcode_into_libs=yes
  9730. dynamic_linker='NetBSD ld.elf_so'
  9731. ;;
  9732. netbsd*)
  9733. version_type=sunos
  9734. need_lib_prefix=no
  9735. need_version=no
  9736. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9738. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9739. dynamic_linker='NetBSD (a.out) ld.so'
  9740. else
  9741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9742. soname_spec='${libname}${release}${shared_ext}$major'
  9743. dynamic_linker='NetBSD ld.elf_so'
  9744. fi
  9745. shlibpath_var=LD_LIBRARY_PATH
  9746. shlibpath_overrides_runpath=yes
  9747. hardcode_into_libs=yes
  9748. ;;
  9749. newsos6)
  9750. version_type=linux # correct to gnu/linux during the next big refactor
  9751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9752. shlibpath_var=LD_LIBRARY_PATH
  9753. shlibpath_overrides_runpath=yes
  9754. ;;
  9755. *nto* | *qnx*)
  9756. version_type=qnx
  9757. need_lib_prefix=no
  9758. need_version=no
  9759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9760. soname_spec='${libname}${release}${shared_ext}$major'
  9761. shlibpath_var=LD_LIBRARY_PATH
  9762. shlibpath_overrides_runpath=no
  9763. hardcode_into_libs=yes
  9764. dynamic_linker='ldqnx.so'
  9765. ;;
  9766. openbsd*)
  9767. version_type=sunos
  9768. sys_lib_dlsearch_path_spec="/usr/lib"
  9769. need_lib_prefix=no
  9770. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9771. case $host_os in
  9772. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9773. *) need_version=no ;;
  9774. esac
  9775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9776. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9777. shlibpath_var=LD_LIBRARY_PATH
  9778. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9779. case $host_os in
  9780. openbsd2.[89] | openbsd2.[89].*)
  9781. shlibpath_overrides_runpath=no
  9782. ;;
  9783. *)
  9784. shlibpath_overrides_runpath=yes
  9785. ;;
  9786. esac
  9787. else
  9788. shlibpath_overrides_runpath=yes
  9789. fi
  9790. ;;
  9791. os2*)
  9792. libname_spec='$name'
  9793. shrext_cmds=".dll"
  9794. need_lib_prefix=no
  9795. library_names_spec='$libname${shared_ext} $libname.a'
  9796. dynamic_linker='OS/2 ld.exe'
  9797. shlibpath_var=LIBPATH
  9798. ;;
  9799. osf3* | osf4* | osf5*)
  9800. version_type=osf
  9801. need_lib_prefix=no
  9802. need_version=no
  9803. soname_spec='${libname}${release}${shared_ext}$major'
  9804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9805. shlibpath_var=LD_LIBRARY_PATH
  9806. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9807. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9808. ;;
  9809. rdos*)
  9810. dynamic_linker=no
  9811. ;;
  9812. solaris*)
  9813. version_type=linux # correct to gnu/linux during the next big refactor
  9814. need_lib_prefix=no
  9815. need_version=no
  9816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9817. soname_spec='${libname}${release}${shared_ext}$major'
  9818. shlibpath_var=LD_LIBRARY_PATH
  9819. shlibpath_overrides_runpath=yes
  9820. hardcode_into_libs=yes
  9821. # ldd complains unless libraries are executable
  9822. postinstall_cmds='chmod +x $lib'
  9823. ;;
  9824. sunos4*)
  9825. version_type=sunos
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9827. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9828. shlibpath_var=LD_LIBRARY_PATH
  9829. shlibpath_overrides_runpath=yes
  9830. if test "$with_gnu_ld" = yes; then
  9831. need_lib_prefix=no
  9832. fi
  9833. need_version=yes
  9834. ;;
  9835. sysv4 | sysv4.3*)
  9836. version_type=linux # correct to gnu/linux during the next big refactor
  9837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9838. soname_spec='${libname}${release}${shared_ext}$major'
  9839. shlibpath_var=LD_LIBRARY_PATH
  9840. case $host_vendor in
  9841. sni)
  9842. shlibpath_overrides_runpath=no
  9843. need_lib_prefix=no
  9844. runpath_var=LD_RUN_PATH
  9845. ;;
  9846. siemens)
  9847. need_lib_prefix=no
  9848. ;;
  9849. motorola)
  9850. need_lib_prefix=no
  9851. need_version=no
  9852. shlibpath_overrides_runpath=no
  9853. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9854. ;;
  9855. esac
  9856. ;;
  9857. sysv4*MP*)
  9858. if test -d /usr/nec ;then
  9859. version_type=linux # correct to gnu/linux during the next big refactor
  9860. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9861. soname_spec='$libname${shared_ext}.$major'
  9862. shlibpath_var=LD_LIBRARY_PATH
  9863. fi
  9864. ;;
  9865. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9866. version_type=freebsd-elf
  9867. need_lib_prefix=no
  9868. need_version=no
  9869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9870. soname_spec='${libname}${release}${shared_ext}$major'
  9871. shlibpath_var=LD_LIBRARY_PATH
  9872. shlibpath_overrides_runpath=yes
  9873. hardcode_into_libs=yes
  9874. if test "$with_gnu_ld" = yes; then
  9875. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9876. else
  9877. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9878. case $host_os in
  9879. sco3.2v5*)
  9880. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9881. ;;
  9882. esac
  9883. fi
  9884. sys_lib_dlsearch_path_spec='/usr/lib'
  9885. ;;
  9886. tpf*)
  9887. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9888. version_type=linux # correct to gnu/linux during the next big refactor
  9889. need_lib_prefix=no
  9890. need_version=no
  9891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9892. shlibpath_var=LD_LIBRARY_PATH
  9893. shlibpath_overrides_runpath=no
  9894. hardcode_into_libs=yes
  9895. ;;
  9896. uts4*)
  9897. version_type=linux # correct to gnu/linux during the next big refactor
  9898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9899. soname_spec='${libname}${release}${shared_ext}$major'
  9900. shlibpath_var=LD_LIBRARY_PATH
  9901. ;;
  9902. *)
  9903. dynamic_linker=no
  9904. ;;
  9905. esac
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9907. $as_echo "$dynamic_linker" >&6; }
  9908. test "$dynamic_linker" = no && can_build_shared=no
  9909. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9910. if test "$GCC" = yes; then
  9911. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9912. fi
  9913. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9914. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9915. fi
  9916. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9917. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9918. fi
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9920. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9921. hardcode_action=
  9922. if test -n "$hardcode_libdir_flag_spec" ||
  9923. test -n "$runpath_var" ||
  9924. test "X$hardcode_automatic" = "Xyes" ; then
  9925. # We can hardcode non-existent directories.
  9926. if test "$hardcode_direct" != no &&
  9927. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9928. # have to relink, otherwise we might link with an installed library
  9929. # when we should be linking with a yet-to-be-installed one
  9930. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9931. test "$hardcode_minus_L" != no; then
  9932. # Linking always hardcodes the temporary library directory.
  9933. hardcode_action=relink
  9934. else
  9935. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9936. hardcode_action=immediate
  9937. fi
  9938. else
  9939. # We cannot hardcode anything, or else we can only hardcode existing
  9940. # directories.
  9941. hardcode_action=unsupported
  9942. fi
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9944. $as_echo "$hardcode_action" >&6; }
  9945. if test "$hardcode_action" = relink ||
  9946. test "$inherit_rpath" = yes; then
  9947. # Fast installation is not supported
  9948. enable_fast_install=no
  9949. elif test "$shlibpath_overrides_runpath" = yes ||
  9950. test "$enable_shared" = no; then
  9951. # Fast installation is not necessary
  9952. enable_fast_install=needless
  9953. fi
  9954. if test "x$enable_dlopen" != xyes; then
  9955. enable_dlopen=unknown
  9956. enable_dlopen_self=unknown
  9957. enable_dlopen_self_static=unknown
  9958. else
  9959. lt_cv_dlopen=no
  9960. lt_cv_dlopen_libs=
  9961. case $host_os in
  9962. beos*)
  9963. lt_cv_dlopen="load_add_on"
  9964. lt_cv_dlopen_libs=
  9965. lt_cv_dlopen_self=yes
  9966. ;;
  9967. mingw* | pw32* | cegcc*)
  9968. lt_cv_dlopen="LoadLibrary"
  9969. lt_cv_dlopen_libs=
  9970. ;;
  9971. cygwin*)
  9972. lt_cv_dlopen="dlopen"
  9973. lt_cv_dlopen_libs=
  9974. ;;
  9975. darwin*)
  9976. # if libdl is installed we need to link against it
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9978. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9979. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9980. $as_echo_n "(cached) " >&6
  9981. else
  9982. ac_check_lib_save_LIBS=$LIBS
  9983. LIBS="-ldl $LIBS"
  9984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9985. /* end confdefs.h. */
  9986. /* Override any GCC internal prototype to avoid an error.
  9987. Use char because int might match the return type of a GCC
  9988. builtin and then its argument prototype would still apply. */
  9989. #ifdef __cplusplus
  9990. extern "C"
  9991. #endif
  9992. char dlopen ();
  9993. int
  9994. main ()
  9995. {
  9996. return dlopen ();
  9997. ;
  9998. return 0;
  9999. }
  10000. _ACEOF
  10001. if ac_fn_c_try_link "$LINENO"; then :
  10002. ac_cv_lib_dl_dlopen=yes
  10003. else
  10004. ac_cv_lib_dl_dlopen=no
  10005. fi
  10006. rm -f core conftest.err conftest.$ac_objext \
  10007. conftest$ac_exeext conftest.$ac_ext
  10008. LIBS=$ac_check_lib_save_LIBS
  10009. fi
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10011. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10012. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10013. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10014. else
  10015. lt_cv_dlopen="dyld"
  10016. lt_cv_dlopen_libs=
  10017. lt_cv_dlopen_self=yes
  10018. fi
  10019. ;;
  10020. *)
  10021. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10022. if test "x$ac_cv_func_shl_load" = xyes; then :
  10023. lt_cv_dlopen="shl_load"
  10024. else
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10026. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10027. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10028. $as_echo_n "(cached) " >&6
  10029. else
  10030. ac_check_lib_save_LIBS=$LIBS
  10031. LIBS="-ldld $LIBS"
  10032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10033. /* end confdefs.h. */
  10034. /* Override any GCC internal prototype to avoid an error.
  10035. Use char because int might match the return type of a GCC
  10036. builtin and then its argument prototype would still apply. */
  10037. #ifdef __cplusplus
  10038. extern "C"
  10039. #endif
  10040. char shl_load ();
  10041. int
  10042. main ()
  10043. {
  10044. return shl_load ();
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. if ac_fn_c_try_link "$LINENO"; then :
  10050. ac_cv_lib_dld_shl_load=yes
  10051. else
  10052. ac_cv_lib_dld_shl_load=no
  10053. fi
  10054. rm -f core conftest.err conftest.$ac_objext \
  10055. conftest$ac_exeext conftest.$ac_ext
  10056. LIBS=$ac_check_lib_save_LIBS
  10057. fi
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10059. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10060. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10061. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10062. else
  10063. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10064. if test "x$ac_cv_func_dlopen" = xyes; then :
  10065. lt_cv_dlopen="dlopen"
  10066. else
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10068. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10069. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10070. $as_echo_n "(cached) " >&6
  10071. else
  10072. ac_check_lib_save_LIBS=$LIBS
  10073. LIBS="-ldl $LIBS"
  10074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10075. /* end confdefs.h. */
  10076. /* Override any GCC internal prototype to avoid an error.
  10077. Use char because int might match the return type of a GCC
  10078. builtin and then its argument prototype would still apply. */
  10079. #ifdef __cplusplus
  10080. extern "C"
  10081. #endif
  10082. char dlopen ();
  10083. int
  10084. main ()
  10085. {
  10086. return dlopen ();
  10087. ;
  10088. return 0;
  10089. }
  10090. _ACEOF
  10091. if ac_fn_c_try_link "$LINENO"; then :
  10092. ac_cv_lib_dl_dlopen=yes
  10093. else
  10094. ac_cv_lib_dl_dlopen=no
  10095. fi
  10096. rm -f core conftest.err conftest.$ac_objext \
  10097. conftest$ac_exeext conftest.$ac_ext
  10098. LIBS=$ac_check_lib_save_LIBS
  10099. fi
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10101. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10102. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10103. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10104. else
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10106. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10107. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. ac_check_lib_save_LIBS=$LIBS
  10111. LIBS="-lsvld $LIBS"
  10112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10113. /* end confdefs.h. */
  10114. /* Override any GCC internal prototype to avoid an error.
  10115. Use char because int might match the return type of a GCC
  10116. builtin and then its argument prototype would still apply. */
  10117. #ifdef __cplusplus
  10118. extern "C"
  10119. #endif
  10120. char dlopen ();
  10121. int
  10122. main ()
  10123. {
  10124. return dlopen ();
  10125. ;
  10126. return 0;
  10127. }
  10128. _ACEOF
  10129. if ac_fn_c_try_link "$LINENO"; then :
  10130. ac_cv_lib_svld_dlopen=yes
  10131. else
  10132. ac_cv_lib_svld_dlopen=no
  10133. fi
  10134. rm -f core conftest.err conftest.$ac_objext \
  10135. conftest$ac_exeext conftest.$ac_ext
  10136. LIBS=$ac_check_lib_save_LIBS
  10137. fi
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10139. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10140. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10141. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10142. else
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10144. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10145. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10146. $as_echo_n "(cached) " >&6
  10147. else
  10148. ac_check_lib_save_LIBS=$LIBS
  10149. LIBS="-ldld $LIBS"
  10150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10151. /* end confdefs.h. */
  10152. /* Override any GCC internal prototype to avoid an error.
  10153. Use char because int might match the return type of a GCC
  10154. builtin and then its argument prototype would still apply. */
  10155. #ifdef __cplusplus
  10156. extern "C"
  10157. #endif
  10158. char dld_link ();
  10159. int
  10160. main ()
  10161. {
  10162. return dld_link ();
  10163. ;
  10164. return 0;
  10165. }
  10166. _ACEOF
  10167. if ac_fn_c_try_link "$LINENO"; then :
  10168. ac_cv_lib_dld_dld_link=yes
  10169. else
  10170. ac_cv_lib_dld_dld_link=no
  10171. fi
  10172. rm -f core conftest.err conftest.$ac_objext \
  10173. conftest$ac_exeext conftest.$ac_ext
  10174. LIBS=$ac_check_lib_save_LIBS
  10175. fi
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10177. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10178. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10179. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10180. fi
  10181. fi
  10182. fi
  10183. fi
  10184. fi
  10185. fi
  10186. ;;
  10187. esac
  10188. if test "x$lt_cv_dlopen" != xno; then
  10189. enable_dlopen=yes
  10190. else
  10191. enable_dlopen=no
  10192. fi
  10193. case $lt_cv_dlopen in
  10194. dlopen)
  10195. save_CPPFLAGS="$CPPFLAGS"
  10196. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10197. save_LDFLAGS="$LDFLAGS"
  10198. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10199. save_LIBS="$LIBS"
  10200. LIBS="$lt_cv_dlopen_libs $LIBS"
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10202. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10203. if ${lt_cv_dlopen_self+:} false; then :
  10204. $as_echo_n "(cached) " >&6
  10205. else
  10206. if test "$cross_compiling" = yes; then :
  10207. lt_cv_dlopen_self=cross
  10208. else
  10209. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10210. lt_status=$lt_dlunknown
  10211. cat > conftest.$ac_ext <<_LT_EOF
  10212. #line $LINENO "configure"
  10213. #include "confdefs.h"
  10214. #if HAVE_DLFCN_H
  10215. #include <dlfcn.h>
  10216. #endif
  10217. #include <stdio.h>
  10218. #ifdef RTLD_GLOBAL
  10219. # define LT_DLGLOBAL RTLD_GLOBAL
  10220. #else
  10221. # ifdef DL_GLOBAL
  10222. # define LT_DLGLOBAL DL_GLOBAL
  10223. # else
  10224. # define LT_DLGLOBAL 0
  10225. # endif
  10226. #endif
  10227. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10228. find out it does not work in some platform. */
  10229. #ifndef LT_DLLAZY_OR_NOW
  10230. # ifdef RTLD_LAZY
  10231. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10232. # else
  10233. # ifdef DL_LAZY
  10234. # define LT_DLLAZY_OR_NOW DL_LAZY
  10235. # else
  10236. # ifdef RTLD_NOW
  10237. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10238. # else
  10239. # ifdef DL_NOW
  10240. # define LT_DLLAZY_OR_NOW DL_NOW
  10241. # else
  10242. # define LT_DLLAZY_OR_NOW 0
  10243. # endif
  10244. # endif
  10245. # endif
  10246. # endif
  10247. #endif
  10248. /* When -fvisbility=hidden is used, assume the code has been annotated
  10249. correspondingly for the symbols needed. */
  10250. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10251. int fnord () __attribute__((visibility("default")));
  10252. #endif
  10253. int fnord () { return 42; }
  10254. int main ()
  10255. {
  10256. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10257. int status = $lt_dlunknown;
  10258. if (self)
  10259. {
  10260. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10261. else
  10262. {
  10263. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10264. else puts (dlerror ());
  10265. }
  10266. /* dlclose (self); */
  10267. }
  10268. else
  10269. puts (dlerror ());
  10270. return status;
  10271. }
  10272. _LT_EOF
  10273. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10274. (eval $ac_link) 2>&5
  10275. ac_status=$?
  10276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10277. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10278. (./conftest; exit; ) >&5 2>/dev/null
  10279. lt_status=$?
  10280. case x$lt_status in
  10281. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10282. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10283. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10284. esac
  10285. else :
  10286. # compilation failed
  10287. lt_cv_dlopen_self=no
  10288. fi
  10289. fi
  10290. rm -fr conftest*
  10291. fi
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10293. $as_echo "$lt_cv_dlopen_self" >&6; }
  10294. if test "x$lt_cv_dlopen_self" = xyes; then
  10295. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10297. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10298. if ${lt_cv_dlopen_self_static+:} false; then :
  10299. $as_echo_n "(cached) " >&6
  10300. else
  10301. if test "$cross_compiling" = yes; then :
  10302. lt_cv_dlopen_self_static=cross
  10303. else
  10304. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10305. lt_status=$lt_dlunknown
  10306. cat > conftest.$ac_ext <<_LT_EOF
  10307. #line $LINENO "configure"
  10308. #include "confdefs.h"
  10309. #if HAVE_DLFCN_H
  10310. #include <dlfcn.h>
  10311. #endif
  10312. #include <stdio.h>
  10313. #ifdef RTLD_GLOBAL
  10314. # define LT_DLGLOBAL RTLD_GLOBAL
  10315. #else
  10316. # ifdef DL_GLOBAL
  10317. # define LT_DLGLOBAL DL_GLOBAL
  10318. # else
  10319. # define LT_DLGLOBAL 0
  10320. # endif
  10321. #endif
  10322. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10323. find out it does not work in some platform. */
  10324. #ifndef LT_DLLAZY_OR_NOW
  10325. # ifdef RTLD_LAZY
  10326. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10327. # else
  10328. # ifdef DL_LAZY
  10329. # define LT_DLLAZY_OR_NOW DL_LAZY
  10330. # else
  10331. # ifdef RTLD_NOW
  10332. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10333. # else
  10334. # ifdef DL_NOW
  10335. # define LT_DLLAZY_OR_NOW DL_NOW
  10336. # else
  10337. # define LT_DLLAZY_OR_NOW 0
  10338. # endif
  10339. # endif
  10340. # endif
  10341. # endif
  10342. #endif
  10343. /* When -fvisbility=hidden is used, assume the code has been annotated
  10344. correspondingly for the symbols needed. */
  10345. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10346. int fnord () __attribute__((visibility("default")));
  10347. #endif
  10348. int fnord () { return 42; }
  10349. int main ()
  10350. {
  10351. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10352. int status = $lt_dlunknown;
  10353. if (self)
  10354. {
  10355. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10356. else
  10357. {
  10358. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10359. else puts (dlerror ());
  10360. }
  10361. /* dlclose (self); */
  10362. }
  10363. else
  10364. puts (dlerror ());
  10365. return status;
  10366. }
  10367. _LT_EOF
  10368. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10369. (eval $ac_link) 2>&5
  10370. ac_status=$?
  10371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10372. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10373. (./conftest; exit; ) >&5 2>/dev/null
  10374. lt_status=$?
  10375. case x$lt_status in
  10376. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10377. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10378. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10379. esac
  10380. else :
  10381. # compilation failed
  10382. lt_cv_dlopen_self_static=no
  10383. fi
  10384. fi
  10385. rm -fr conftest*
  10386. fi
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10388. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10389. fi
  10390. CPPFLAGS="$save_CPPFLAGS"
  10391. LDFLAGS="$save_LDFLAGS"
  10392. LIBS="$save_LIBS"
  10393. ;;
  10394. esac
  10395. case $lt_cv_dlopen_self in
  10396. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10397. *) enable_dlopen_self=unknown ;;
  10398. esac
  10399. case $lt_cv_dlopen_self_static in
  10400. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10401. *) enable_dlopen_self_static=unknown ;;
  10402. esac
  10403. fi
  10404. striplib=
  10405. old_striplib=
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10407. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10408. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10409. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10410. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10412. $as_echo "yes" >&6; }
  10413. else
  10414. # FIXME - insert some real tests, host_os isn't really good enough
  10415. case $host_os in
  10416. darwin*)
  10417. if test -n "$STRIP" ; then
  10418. striplib="$STRIP -x"
  10419. old_striplib="$STRIP -S"
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10421. $as_echo "yes" >&6; }
  10422. else
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10424. $as_echo "no" >&6; }
  10425. fi
  10426. ;;
  10427. *)
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10429. $as_echo "no" >&6; }
  10430. ;;
  10431. esac
  10432. fi
  10433. # Report which library types will actually be built
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10435. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10437. $as_echo "$can_build_shared" >&6; }
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10439. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10440. test "$can_build_shared" = "no" && enable_shared=no
  10441. # On AIX, shared libraries and static libraries use the same namespace, and
  10442. # are all built from PIC.
  10443. case $host_os in
  10444. aix3*)
  10445. test "$enable_shared" = yes && enable_static=no
  10446. if test -n "$RANLIB"; then
  10447. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10448. postinstall_cmds='$RANLIB $lib'
  10449. fi
  10450. ;;
  10451. aix[4-9]*)
  10452. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10453. test "$enable_shared" = yes && enable_static=no
  10454. fi
  10455. ;;
  10456. esac
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10458. $as_echo "$enable_shared" >&6; }
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10460. $as_echo_n "checking whether to build static libraries... " >&6; }
  10461. # Make sure either enable_shared or enable_static is yes.
  10462. test "$enable_shared" = yes || enable_static=yes
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10464. $as_echo "$enable_static" >&6; }
  10465. fi
  10466. ac_ext=cpp
  10467. ac_cpp='$CXXCPP $CPPFLAGS'
  10468. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10469. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10470. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10471. CC="$lt_save_CC"
  10472. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10473. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10474. (test "X$CXX" != "Xg++"))) ; then
  10475. ac_ext=cpp
  10476. ac_cpp='$CXXCPP $CPPFLAGS'
  10477. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10478. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10479. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10481. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10482. if test -z "$CXXCPP"; then
  10483. if ${ac_cv_prog_CXXCPP+:} false; then :
  10484. $as_echo_n "(cached) " >&6
  10485. else
  10486. # Double quotes because CXXCPP needs to be expanded
  10487. for CXXCPP in "$CXX -E" "/lib/cpp"
  10488. do
  10489. ac_preproc_ok=false
  10490. for ac_cxx_preproc_warn_flag in '' yes
  10491. do
  10492. # Use a header file that comes with gcc, so configuring glibc
  10493. # with a fresh cross-compiler works.
  10494. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10495. # <limits.h> exists even on freestanding compilers.
  10496. # On the NeXT, cc -E runs the code through the compiler's parser,
  10497. # not just through cpp. "Syntax error" is here to catch this case.
  10498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10499. /* end confdefs.h. */
  10500. #ifdef __STDC__
  10501. # include <limits.h>
  10502. #else
  10503. # include <assert.h>
  10504. #endif
  10505. Syntax error
  10506. _ACEOF
  10507. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10508. else
  10509. # Broken: fails on valid input.
  10510. continue
  10511. fi
  10512. rm -f conftest.err conftest.i conftest.$ac_ext
  10513. # OK, works on sane cases. Now check whether nonexistent headers
  10514. # can be detected and how.
  10515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10516. /* end confdefs.h. */
  10517. #include <ac_nonexistent.h>
  10518. _ACEOF
  10519. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10520. # Broken: success on invalid input.
  10521. continue
  10522. else
  10523. # Passes both tests.
  10524. ac_preproc_ok=:
  10525. break
  10526. fi
  10527. rm -f conftest.err conftest.i conftest.$ac_ext
  10528. done
  10529. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10530. rm -f conftest.i conftest.err conftest.$ac_ext
  10531. if $ac_preproc_ok; then :
  10532. break
  10533. fi
  10534. done
  10535. ac_cv_prog_CXXCPP=$CXXCPP
  10536. fi
  10537. CXXCPP=$ac_cv_prog_CXXCPP
  10538. else
  10539. ac_cv_prog_CXXCPP=$CXXCPP
  10540. fi
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10542. $as_echo "$CXXCPP" >&6; }
  10543. ac_preproc_ok=false
  10544. for ac_cxx_preproc_warn_flag in '' yes
  10545. do
  10546. # Use a header file that comes with gcc, so configuring glibc
  10547. # with a fresh cross-compiler works.
  10548. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10549. # <limits.h> exists even on freestanding compilers.
  10550. # On the NeXT, cc -E runs the code through the compiler's parser,
  10551. # not just through cpp. "Syntax error" is here to catch this case.
  10552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10553. /* end confdefs.h. */
  10554. #ifdef __STDC__
  10555. # include <limits.h>
  10556. #else
  10557. # include <assert.h>
  10558. #endif
  10559. Syntax error
  10560. _ACEOF
  10561. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10562. else
  10563. # Broken: fails on valid input.
  10564. continue
  10565. fi
  10566. rm -f conftest.err conftest.i conftest.$ac_ext
  10567. # OK, works on sane cases. Now check whether nonexistent headers
  10568. # can be detected and how.
  10569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10570. /* end confdefs.h. */
  10571. #include <ac_nonexistent.h>
  10572. _ACEOF
  10573. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10574. # Broken: success on invalid input.
  10575. continue
  10576. else
  10577. # Passes both tests.
  10578. ac_preproc_ok=:
  10579. break
  10580. fi
  10581. rm -f conftest.err conftest.i conftest.$ac_ext
  10582. done
  10583. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10584. rm -f conftest.i conftest.err conftest.$ac_ext
  10585. if $ac_preproc_ok; then :
  10586. else
  10587. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10588. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10589. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10590. See \`config.log' for more details" "$LINENO" 5; }
  10591. fi
  10592. ac_ext=cpp
  10593. ac_cpp='$CXXCPP $CPPFLAGS'
  10594. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10595. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10596. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10597. else
  10598. _lt_caught_CXX_error=yes
  10599. fi
  10600. ac_ext=cpp
  10601. ac_cpp='$CXXCPP $CPPFLAGS'
  10602. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10603. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10604. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10605. archive_cmds_need_lc_CXX=no
  10606. allow_undefined_flag_CXX=
  10607. always_export_symbols_CXX=no
  10608. archive_expsym_cmds_CXX=
  10609. compiler_needs_object_CXX=no
  10610. export_dynamic_flag_spec_CXX=
  10611. hardcode_direct_CXX=no
  10612. hardcode_direct_absolute_CXX=no
  10613. hardcode_libdir_flag_spec_CXX=
  10614. hardcode_libdir_separator_CXX=
  10615. hardcode_minus_L_CXX=no
  10616. hardcode_shlibpath_var_CXX=unsupported
  10617. hardcode_automatic_CXX=no
  10618. inherit_rpath_CXX=no
  10619. module_cmds_CXX=
  10620. module_expsym_cmds_CXX=
  10621. link_all_deplibs_CXX=unknown
  10622. old_archive_cmds_CXX=$old_archive_cmds
  10623. reload_flag_CXX=$reload_flag
  10624. reload_cmds_CXX=$reload_cmds
  10625. no_undefined_flag_CXX=
  10626. whole_archive_flag_spec_CXX=
  10627. enable_shared_with_static_runtimes_CXX=no
  10628. # Source file extension for C++ test sources.
  10629. ac_ext=cpp
  10630. # Object file extension for compiled C++ test sources.
  10631. objext=o
  10632. objext_CXX=$objext
  10633. # No sense in running all these tests if we already determined that
  10634. # the CXX compiler isn't working. Some variables (like enable_shared)
  10635. # are currently assumed to apply to all compilers on this platform,
  10636. # and will be corrupted by setting them based on a non-working compiler.
  10637. if test "$_lt_caught_CXX_error" != yes; then
  10638. # Code to be used in simple compile tests
  10639. lt_simple_compile_test_code="int some_variable = 0;"
  10640. # Code to be used in simple link tests
  10641. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10642. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10643. # If no C compiler was specified, use CC.
  10644. LTCC=${LTCC-"$CC"}
  10645. # If no C compiler flags were specified, use CFLAGS.
  10646. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10647. # Allow CC to be a program name with arguments.
  10648. compiler=$CC
  10649. # save warnings/boilerplate of simple test code
  10650. ac_outfile=conftest.$ac_objext
  10651. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10652. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10653. _lt_compiler_boilerplate=`cat conftest.err`
  10654. $RM conftest*
  10655. ac_outfile=conftest.$ac_objext
  10656. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10657. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10658. _lt_linker_boilerplate=`cat conftest.err`
  10659. $RM -r conftest*
  10660. # Allow CC to be a program name with arguments.
  10661. lt_save_CC=$CC
  10662. lt_save_CFLAGS=$CFLAGS
  10663. lt_save_LD=$LD
  10664. lt_save_GCC=$GCC
  10665. GCC=$GXX
  10666. lt_save_with_gnu_ld=$with_gnu_ld
  10667. lt_save_path_LD=$lt_cv_path_LD
  10668. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10669. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10670. else
  10671. $as_unset lt_cv_prog_gnu_ld
  10672. fi
  10673. if test -n "${lt_cv_path_LDCXX+set}"; then
  10674. lt_cv_path_LD=$lt_cv_path_LDCXX
  10675. else
  10676. $as_unset lt_cv_path_LD
  10677. fi
  10678. test -z "${LDCXX+set}" || LD=$LDCXX
  10679. CC=${CXX-"c++"}
  10680. CFLAGS=$CXXFLAGS
  10681. compiler=$CC
  10682. compiler_CXX=$CC
  10683. for cc_temp in $compiler""; do
  10684. case $cc_temp in
  10685. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10686. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10687. \-*) ;;
  10688. *) break;;
  10689. esac
  10690. done
  10691. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10692. if test -n "$compiler"; then
  10693. # We don't want -fno-exception when compiling C++ code, so set the
  10694. # no_builtin_flag separately
  10695. if test "$GXX" = yes; then
  10696. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10697. else
  10698. lt_prog_compiler_no_builtin_flag_CXX=
  10699. fi
  10700. if test "$GXX" = yes; then
  10701. # Set up default GNU C++ configuration
  10702. # Check whether --with-gnu-ld was given.
  10703. if test "${with_gnu_ld+set}" = set; then :
  10704. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10705. else
  10706. with_gnu_ld=no
  10707. fi
  10708. ac_prog=ld
  10709. if test "$GCC" = yes; then
  10710. # Check if gcc -print-prog-name=ld gives a path.
  10711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10712. $as_echo_n "checking for ld used by $CC... " >&6; }
  10713. case $host in
  10714. *-*-mingw*)
  10715. # gcc leaves a trailing carriage return which upsets mingw
  10716. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10717. *)
  10718. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10719. esac
  10720. case $ac_prog in
  10721. # Accept absolute paths.
  10722. [\\/]* | ?:[\\/]*)
  10723. re_direlt='/[^/][^/]*/\.\./'
  10724. # Canonicalize the pathname of ld
  10725. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10726. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10727. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10728. done
  10729. test -z "$LD" && LD="$ac_prog"
  10730. ;;
  10731. "")
  10732. # If it fails, then pretend we aren't using GCC.
  10733. ac_prog=ld
  10734. ;;
  10735. *)
  10736. # If it is relative, then search for the first ld in PATH.
  10737. with_gnu_ld=unknown
  10738. ;;
  10739. esac
  10740. elif test "$with_gnu_ld" = yes; then
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10742. $as_echo_n "checking for GNU ld... " >&6; }
  10743. else
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10745. $as_echo_n "checking for non-GNU ld... " >&6; }
  10746. fi
  10747. if ${lt_cv_path_LD+:} false; then :
  10748. $as_echo_n "(cached) " >&6
  10749. else
  10750. if test -z "$LD"; then
  10751. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10752. for ac_dir in $PATH; do
  10753. IFS="$lt_save_ifs"
  10754. test -z "$ac_dir" && ac_dir=.
  10755. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10756. lt_cv_path_LD="$ac_dir/$ac_prog"
  10757. # Check to see if the program is GNU ld. I'd rather use --version,
  10758. # but apparently some variants of GNU ld only accept -v.
  10759. # Break only if it was the GNU/non-GNU ld that we prefer.
  10760. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10761. *GNU* | *'with BFD'*)
  10762. test "$with_gnu_ld" != no && break
  10763. ;;
  10764. *)
  10765. test "$with_gnu_ld" != yes && break
  10766. ;;
  10767. esac
  10768. fi
  10769. done
  10770. IFS="$lt_save_ifs"
  10771. else
  10772. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10773. fi
  10774. fi
  10775. LD="$lt_cv_path_LD"
  10776. if test -n "$LD"; then
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10778. $as_echo "$LD" >&6; }
  10779. else
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10781. $as_echo "no" >&6; }
  10782. fi
  10783. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10785. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10786. if ${lt_cv_prog_gnu_ld+:} false; then :
  10787. $as_echo_n "(cached) " >&6
  10788. else
  10789. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10790. case `$LD -v 2>&1 </dev/null` in
  10791. *GNU* | *'with BFD'*)
  10792. lt_cv_prog_gnu_ld=yes
  10793. ;;
  10794. *)
  10795. lt_cv_prog_gnu_ld=no
  10796. ;;
  10797. esac
  10798. fi
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10800. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10801. with_gnu_ld=$lt_cv_prog_gnu_ld
  10802. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10803. # archiving commands below assume that GNU ld is being used.
  10804. if test "$with_gnu_ld" = yes; then
  10805. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10806. 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'
  10807. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10808. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10809. # If archive_cmds runs LD, not CC, wlarc should be empty
  10810. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10811. # investigate it a little bit more. (MM)
  10812. wlarc='${wl}'
  10813. # ancient GNU ld didn't support --whole-archive et. al.
  10814. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10815. $GREP 'no-whole-archive' > /dev/null; then
  10816. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10817. else
  10818. whole_archive_flag_spec_CXX=
  10819. fi
  10820. else
  10821. with_gnu_ld=no
  10822. wlarc=
  10823. # A generic and very simple default shared library creation
  10824. # command for GNU C++ for the case where it uses the native
  10825. # linker, instead of GNU ld. If possible, this setting should
  10826. # overridden to take advantage of the native linker features on
  10827. # the platform it is being used on.
  10828. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10829. fi
  10830. # Commands to make compiler produce verbose output that lists
  10831. # what "hidden" libraries, object files and flags are used when
  10832. # linking a shared library.
  10833. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10834. else
  10835. GXX=no
  10836. with_gnu_ld=no
  10837. wlarc=
  10838. fi
  10839. # PORTME: fill in a description of your system's C++ link characteristics
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10841. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10842. ld_shlibs_CXX=yes
  10843. case $host_os in
  10844. aix3*)
  10845. # FIXME: insert proper C++ library support
  10846. ld_shlibs_CXX=no
  10847. ;;
  10848. aix[4-9]*)
  10849. if test "$host_cpu" = ia64; then
  10850. # On IA64, the linker does run time linking by default, so we don't
  10851. # have to do anything special.
  10852. aix_use_runtimelinking=no
  10853. exp_sym_flag='-Bexport'
  10854. no_entry_flag=""
  10855. else
  10856. aix_use_runtimelinking=no
  10857. # Test if we are trying to use run time linking or normal
  10858. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10859. # need to do runtime linking.
  10860. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10861. for ld_flag in $LDFLAGS; do
  10862. case $ld_flag in
  10863. *-brtl*)
  10864. aix_use_runtimelinking=yes
  10865. break
  10866. ;;
  10867. esac
  10868. done
  10869. ;;
  10870. esac
  10871. exp_sym_flag='-bexport'
  10872. no_entry_flag='-bnoentry'
  10873. fi
  10874. # When large executables or shared objects are built, AIX ld can
  10875. # have problems creating the table of contents. If linking a library
  10876. # or program results in "error TOC overflow" add -mminimal-toc to
  10877. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10878. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10879. archive_cmds_CXX=''
  10880. hardcode_direct_CXX=yes
  10881. hardcode_direct_absolute_CXX=yes
  10882. hardcode_libdir_separator_CXX=':'
  10883. link_all_deplibs_CXX=yes
  10884. file_list_spec_CXX='${wl}-f,'
  10885. if test "$GXX" = yes; then
  10886. case $host_os in aix4.[012]|aix4.[012].*)
  10887. # We only want to do this on AIX 4.2 and lower, the check
  10888. # below for broken collect2 doesn't work under 4.3+
  10889. collect2name=`${CC} -print-prog-name=collect2`
  10890. if test -f "$collect2name" &&
  10891. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10892. then
  10893. # We have reworked collect2
  10894. :
  10895. else
  10896. # We have old collect2
  10897. hardcode_direct_CXX=unsupported
  10898. # It fails to find uninstalled libraries when the uninstalled
  10899. # path is not listed in the libpath. Setting hardcode_minus_L
  10900. # to unsupported forces relinking
  10901. hardcode_minus_L_CXX=yes
  10902. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10903. hardcode_libdir_separator_CXX=
  10904. fi
  10905. esac
  10906. shared_flag='-shared'
  10907. if test "$aix_use_runtimelinking" = yes; then
  10908. shared_flag="$shared_flag "'${wl}-G'
  10909. fi
  10910. else
  10911. # not using gcc
  10912. if test "$host_cpu" = ia64; then
  10913. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10914. # chokes on -Wl,-G. The following line is correct:
  10915. shared_flag='-G'
  10916. else
  10917. if test "$aix_use_runtimelinking" = yes; then
  10918. shared_flag='${wl}-G'
  10919. else
  10920. shared_flag='${wl}-bM:SRE'
  10921. fi
  10922. fi
  10923. fi
  10924. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10925. # It seems that -bexpall does not export symbols beginning with
  10926. # underscore (_), so it is better to generate a list of symbols to
  10927. # export.
  10928. always_export_symbols_CXX=yes
  10929. if test "$aix_use_runtimelinking" = yes; then
  10930. # Warning - without using the other runtime loading flags (-brtl),
  10931. # -berok will link without error, but may produce a broken library.
  10932. allow_undefined_flag_CXX='-berok'
  10933. # Determine the default libpath from the value encoded in an empty
  10934. # executable.
  10935. if test "${lt_cv_aix_libpath+set}" = set; then
  10936. aix_libpath=$lt_cv_aix_libpath
  10937. else
  10938. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10939. $as_echo_n "(cached) " >&6
  10940. else
  10941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10942. /* end confdefs.h. */
  10943. int
  10944. main ()
  10945. {
  10946. ;
  10947. return 0;
  10948. }
  10949. _ACEOF
  10950. if ac_fn_cxx_try_link "$LINENO"; then :
  10951. lt_aix_libpath_sed='
  10952. /Import File Strings/,/^$/ {
  10953. /^0/ {
  10954. s/^0 *\([^ ]*\) *$/\1/
  10955. p
  10956. }
  10957. }'
  10958. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10959. # Check for a 64-bit object if we didn't find anything.
  10960. if test -z "$lt_cv_aix_libpath__CXX"; then
  10961. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10962. fi
  10963. fi
  10964. rm -f core conftest.err conftest.$ac_objext \
  10965. conftest$ac_exeext conftest.$ac_ext
  10966. if test -z "$lt_cv_aix_libpath__CXX"; then
  10967. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10968. fi
  10969. fi
  10970. aix_libpath=$lt_cv_aix_libpath__CXX
  10971. fi
  10972. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10973. 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"
  10974. else
  10975. if test "$host_cpu" = ia64; then
  10976. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10977. allow_undefined_flag_CXX="-z nodefs"
  10978. 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"
  10979. else
  10980. # Determine the default libpath from the value encoded in an
  10981. # empty executable.
  10982. if test "${lt_cv_aix_libpath+set}" = set; then
  10983. aix_libpath=$lt_cv_aix_libpath
  10984. else
  10985. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10986. $as_echo_n "(cached) " >&6
  10987. else
  10988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10989. /* end confdefs.h. */
  10990. int
  10991. main ()
  10992. {
  10993. ;
  10994. return 0;
  10995. }
  10996. _ACEOF
  10997. if ac_fn_cxx_try_link "$LINENO"; then :
  10998. lt_aix_libpath_sed='
  10999. /Import File Strings/,/^$/ {
  11000. /^0/ {
  11001. s/^0 *\([^ ]*\) *$/\1/
  11002. p
  11003. }
  11004. }'
  11005. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11006. # Check for a 64-bit object if we didn't find anything.
  11007. if test -z "$lt_cv_aix_libpath__CXX"; then
  11008. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11009. fi
  11010. fi
  11011. rm -f core conftest.err conftest.$ac_objext \
  11012. conftest$ac_exeext conftest.$ac_ext
  11013. if test -z "$lt_cv_aix_libpath__CXX"; then
  11014. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11015. fi
  11016. fi
  11017. aix_libpath=$lt_cv_aix_libpath__CXX
  11018. fi
  11019. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11020. # Warning - without using the other run time loading flags,
  11021. # -berok will link without error, but may produce a broken library.
  11022. no_undefined_flag_CXX=' ${wl}-bernotok'
  11023. allow_undefined_flag_CXX=' ${wl}-berok'
  11024. if test "$with_gnu_ld" = yes; then
  11025. # We only use this code for GNU lds that support --whole-archive.
  11026. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11027. else
  11028. # Exported symbols can be pulled into shared objects from archives
  11029. whole_archive_flag_spec_CXX='$convenience'
  11030. fi
  11031. archive_cmds_need_lc_CXX=yes
  11032. # This is similar to how AIX traditionally builds its shared
  11033. # libraries.
  11034. 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'
  11035. fi
  11036. fi
  11037. ;;
  11038. beos*)
  11039. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11040. allow_undefined_flag_CXX=unsupported
  11041. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11042. # support --undefined. This deserves some investigation. FIXME
  11043. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11044. else
  11045. ld_shlibs_CXX=no
  11046. fi
  11047. ;;
  11048. chorus*)
  11049. case $cc_basename in
  11050. *)
  11051. # FIXME: insert proper C++ library support
  11052. ld_shlibs_CXX=no
  11053. ;;
  11054. esac
  11055. ;;
  11056. cygwin* | mingw* | pw32* | cegcc*)
  11057. case $GXX,$cc_basename in
  11058. ,cl* | no,cl*)
  11059. # Native MSVC
  11060. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11061. # no search path for DLLs.
  11062. hardcode_libdir_flag_spec_CXX=' '
  11063. allow_undefined_flag_CXX=unsupported
  11064. always_export_symbols_CXX=yes
  11065. file_list_spec_CXX='@'
  11066. # Tell ltmain to make .lib files, not .a files.
  11067. libext=lib
  11068. # Tell ltmain to make .dll files, not .so files.
  11069. shrext_cmds=".dll"
  11070. # FIXME: Setting linknames here is a bad hack.
  11071. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11072. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11073. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11074. else
  11075. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11076. fi~
  11077. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11078. linknames='
  11079. # The linker will not automatically build a static lib if we build a DLL.
  11080. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11081. enable_shared_with_static_runtimes_CXX=yes
  11082. # Don't use ranlib
  11083. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11084. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11085. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11086. case $lt_outputfile in
  11087. *.exe|*.EXE) ;;
  11088. *)
  11089. lt_outputfile="$lt_outputfile.exe"
  11090. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11091. ;;
  11092. esac~
  11093. func_to_tool_file "$lt_outputfile"~
  11094. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11095. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11096. $RM "$lt_outputfile.manifest";
  11097. fi'
  11098. ;;
  11099. *)
  11100. # g++
  11101. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11102. # as there is no search path for DLLs.
  11103. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11104. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11105. allow_undefined_flag_CXX=unsupported
  11106. always_export_symbols_CXX=no
  11107. enable_shared_with_static_runtimes_CXX=yes
  11108. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11109. 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'
  11110. # If the export-symbols file already is a .def file (1st line
  11111. # is EXPORTS), use it as is; otherwise, prepend...
  11112. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11113. cp $export_symbols $output_objdir/$soname.def;
  11114. else
  11115. echo EXPORTS > $output_objdir/$soname.def;
  11116. cat $export_symbols >> $output_objdir/$soname.def;
  11117. fi~
  11118. $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'
  11119. else
  11120. ld_shlibs_CXX=no
  11121. fi
  11122. ;;
  11123. esac
  11124. ;;
  11125. darwin* | rhapsody*)
  11126. archive_cmds_need_lc_CXX=no
  11127. hardcode_direct_CXX=no
  11128. hardcode_automatic_CXX=yes
  11129. hardcode_shlibpath_var_CXX=unsupported
  11130. if test "$lt_cv_ld_force_load" = "yes"; then
  11131. 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\"`'
  11132. else
  11133. whole_archive_flag_spec_CXX=''
  11134. fi
  11135. link_all_deplibs_CXX=yes
  11136. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11137. case $cc_basename in
  11138. ifort*) _lt_dar_can_shared=yes ;;
  11139. *) _lt_dar_can_shared=$GCC ;;
  11140. esac
  11141. if test "$_lt_dar_can_shared" = "yes"; then
  11142. output_verbose_link_cmd=func_echo_all
  11143. 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}"
  11144. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11145. 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}"
  11146. 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}"
  11147. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11148. 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}"
  11149. 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}"
  11150. fi
  11151. else
  11152. ld_shlibs_CXX=no
  11153. fi
  11154. ;;
  11155. dgux*)
  11156. case $cc_basename in
  11157. ec++*)
  11158. # FIXME: insert proper C++ library support
  11159. ld_shlibs_CXX=no
  11160. ;;
  11161. ghcx*)
  11162. # Green Hills C++ Compiler
  11163. # FIXME: insert proper C++ library support
  11164. ld_shlibs_CXX=no
  11165. ;;
  11166. *)
  11167. # FIXME: insert proper C++ library support
  11168. ld_shlibs_CXX=no
  11169. ;;
  11170. esac
  11171. ;;
  11172. freebsd2.*)
  11173. # C++ shared libraries reported to be fairly broken before
  11174. # switch to ELF
  11175. ld_shlibs_CXX=no
  11176. ;;
  11177. freebsd-elf*)
  11178. archive_cmds_need_lc_CXX=no
  11179. ;;
  11180. freebsd* | dragonfly*)
  11181. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11182. # conventions
  11183. ld_shlibs_CXX=yes
  11184. ;;
  11185. gnu*)
  11186. ;;
  11187. haiku*)
  11188. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11189. link_all_deplibs_CXX=yes
  11190. ;;
  11191. hpux9*)
  11192. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11193. hardcode_libdir_separator_CXX=:
  11194. export_dynamic_flag_spec_CXX='${wl}-E'
  11195. hardcode_direct_CXX=yes
  11196. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11197. # but as the default
  11198. # location of the library.
  11199. case $cc_basename in
  11200. CC*)
  11201. # FIXME: insert proper C++ library support
  11202. ld_shlibs_CXX=no
  11203. ;;
  11204. aCC*)
  11205. 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'
  11206. # Commands to make compiler produce verbose output that lists
  11207. # what "hidden" libraries, object files and flags are used when
  11208. # linking a shared library.
  11209. #
  11210. # There doesn't appear to be a way to prevent this compiler from
  11211. # explicitly linking system object files so we need to strip them
  11212. # from the output so that they don't get included in the library
  11213. # dependencies.
  11214. 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"'
  11215. ;;
  11216. *)
  11217. if test "$GXX" = yes; then
  11218. 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'
  11219. else
  11220. # FIXME: insert proper C++ library support
  11221. ld_shlibs_CXX=no
  11222. fi
  11223. ;;
  11224. esac
  11225. ;;
  11226. hpux10*|hpux11*)
  11227. if test $with_gnu_ld = no; then
  11228. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11229. hardcode_libdir_separator_CXX=:
  11230. case $host_cpu in
  11231. hppa*64*|ia64*)
  11232. ;;
  11233. *)
  11234. export_dynamic_flag_spec_CXX='${wl}-E'
  11235. ;;
  11236. esac
  11237. fi
  11238. case $host_cpu in
  11239. hppa*64*|ia64*)
  11240. hardcode_direct_CXX=no
  11241. hardcode_shlibpath_var_CXX=no
  11242. ;;
  11243. *)
  11244. hardcode_direct_CXX=yes
  11245. hardcode_direct_absolute_CXX=yes
  11246. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11247. # but as the default
  11248. # location of the library.
  11249. ;;
  11250. esac
  11251. case $cc_basename in
  11252. CC*)
  11253. # FIXME: insert proper C++ library support
  11254. ld_shlibs_CXX=no
  11255. ;;
  11256. aCC*)
  11257. case $host_cpu in
  11258. hppa*64*)
  11259. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11260. ;;
  11261. ia64*)
  11262. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11263. ;;
  11264. *)
  11265. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11266. ;;
  11267. esac
  11268. # Commands to make compiler produce verbose output that lists
  11269. # what "hidden" libraries, object files and flags are used when
  11270. # linking a shared library.
  11271. #
  11272. # There doesn't appear to be a way to prevent this compiler from
  11273. # explicitly linking system object files so we need to strip them
  11274. # from the output so that they don't get included in the library
  11275. # dependencies.
  11276. 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"'
  11277. ;;
  11278. *)
  11279. if test "$GXX" = yes; then
  11280. if test $with_gnu_ld = no; then
  11281. case $host_cpu in
  11282. hppa*64*)
  11283. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11284. ;;
  11285. ia64*)
  11286. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11287. ;;
  11288. *)
  11289. 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'
  11290. ;;
  11291. esac
  11292. fi
  11293. else
  11294. # FIXME: insert proper C++ library support
  11295. ld_shlibs_CXX=no
  11296. fi
  11297. ;;
  11298. esac
  11299. ;;
  11300. interix[3-9]*)
  11301. hardcode_direct_CXX=no
  11302. hardcode_shlibpath_var_CXX=no
  11303. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11304. export_dynamic_flag_spec_CXX='${wl}-E'
  11305. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11306. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11307. # default) and relocated if they conflict, which is a slow very memory
  11308. # consuming and fragmenting process. To avoid this, we pick a random,
  11309. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11310. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11311. 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'
  11312. 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'
  11313. ;;
  11314. irix5* | irix6*)
  11315. case $cc_basename in
  11316. CC*)
  11317. # SGI C++
  11318. 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'
  11319. # Archives containing C++ object files must be created using
  11320. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11321. # necessary to make sure instantiated templates are included
  11322. # in the archive.
  11323. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11324. ;;
  11325. *)
  11326. if test "$GXX" = yes; then
  11327. if test "$with_gnu_ld" = no; then
  11328. 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'
  11329. else
  11330. 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'
  11331. fi
  11332. fi
  11333. link_all_deplibs_CXX=yes
  11334. ;;
  11335. esac
  11336. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11337. hardcode_libdir_separator_CXX=:
  11338. inherit_rpath_CXX=yes
  11339. ;;
  11340. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11341. case $cc_basename in
  11342. KCC*)
  11343. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11344. # KCC will only create a shared library if the output file
  11345. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11346. # to its proper name (with version) after linking.
  11347. 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'
  11348. 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'
  11349. # Commands to make compiler produce verbose output that lists
  11350. # what "hidden" libraries, object files and flags are used when
  11351. # linking a shared library.
  11352. #
  11353. # There doesn't appear to be a way to prevent this compiler from
  11354. # explicitly linking system object files so we need to strip them
  11355. # from the output so that they don't get included in the library
  11356. # dependencies.
  11357. 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"'
  11358. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11359. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11360. # Archives containing C++ object files must be created using
  11361. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11362. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11363. ;;
  11364. icpc* | ecpc* )
  11365. # Intel C++
  11366. with_gnu_ld=yes
  11367. # version 8.0 and above of icpc choke on multiply defined symbols
  11368. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11369. # earlier do not add the objects themselves.
  11370. case `$CC -V 2>&1` in
  11371. *"Version 7."*)
  11372. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11373. 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'
  11374. ;;
  11375. *) # Version 8.0 or newer
  11376. tmp_idyn=
  11377. case $host_cpu in
  11378. ia64*) tmp_idyn=' -i_dynamic';;
  11379. esac
  11380. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11381. 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'
  11382. ;;
  11383. esac
  11384. archive_cmds_need_lc_CXX=no
  11385. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11386. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11387. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11388. ;;
  11389. pgCC* | pgcpp*)
  11390. # Portland Group C++ compiler
  11391. case `$CC -V` in
  11392. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11393. prelink_cmds_CXX='tpldir=Template.dir~
  11394. rm -rf $tpldir~
  11395. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11396. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11397. old_archive_cmds_CXX='tpldir=Template.dir~
  11398. rm -rf $tpldir~
  11399. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11400. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11401. $RANLIB $oldlib'
  11402. archive_cmds_CXX='tpldir=Template.dir~
  11403. rm -rf $tpldir~
  11404. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11405. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11406. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11407. rm -rf $tpldir~
  11408. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11409. $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'
  11410. ;;
  11411. *) # Version 6 and above use weak symbols
  11412. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11413. 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'
  11414. ;;
  11415. esac
  11416. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11417. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11418. 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'
  11419. ;;
  11420. cxx*)
  11421. # Compaq C++
  11422. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11423. 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'
  11424. runpath_var=LD_RUN_PATH
  11425. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11426. hardcode_libdir_separator_CXX=:
  11427. # Commands to make compiler produce verbose output that lists
  11428. # what "hidden" libraries, object files and flags are used when
  11429. # linking a shared library.
  11430. #
  11431. # There doesn't appear to be a way to prevent this compiler from
  11432. # explicitly linking system object files so we need to strip them
  11433. # from the output so that they don't get included in the library
  11434. # dependencies.
  11435. 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'
  11436. ;;
  11437. xl* | mpixl* | bgxl*)
  11438. # IBM XL 8.0 on PPC, with GNU ld
  11439. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11440. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11441. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11442. if test "x$supports_anon_versioning" = xyes; then
  11443. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11444. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11445. echo "local: *; };" >> $output_objdir/$libname.ver~
  11446. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11447. fi
  11448. ;;
  11449. *)
  11450. case `$CC -V 2>&1 | sed 5q` in
  11451. *Sun\ C*)
  11452. # Sun C++ 5.9
  11453. no_undefined_flag_CXX=' -zdefs'
  11454. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11455. 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'
  11456. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11457. 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'
  11458. compiler_needs_object_CXX=yes
  11459. # Not sure whether something based on
  11460. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11461. # would be better.
  11462. output_verbose_link_cmd='func_echo_all'
  11463. # Archives containing C++ object files must be created using
  11464. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11465. # necessary to make sure instantiated templates are included
  11466. # in the archive.
  11467. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11468. ;;
  11469. esac
  11470. ;;
  11471. esac
  11472. ;;
  11473. lynxos*)
  11474. # FIXME: insert proper C++ library support
  11475. ld_shlibs_CXX=no
  11476. ;;
  11477. m88k*)
  11478. # FIXME: insert proper C++ library support
  11479. ld_shlibs_CXX=no
  11480. ;;
  11481. mvs*)
  11482. case $cc_basename in
  11483. cxx*)
  11484. # FIXME: insert proper C++ library support
  11485. ld_shlibs_CXX=no
  11486. ;;
  11487. *)
  11488. # FIXME: insert proper C++ library support
  11489. ld_shlibs_CXX=no
  11490. ;;
  11491. esac
  11492. ;;
  11493. netbsd*)
  11494. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11495. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11496. wlarc=
  11497. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11498. hardcode_direct_CXX=yes
  11499. hardcode_shlibpath_var_CXX=no
  11500. fi
  11501. # Workaround some broken pre-1.5 toolchains
  11502. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11503. ;;
  11504. *nto* | *qnx*)
  11505. ld_shlibs_CXX=yes
  11506. ;;
  11507. openbsd2*)
  11508. # C++ shared libraries are fairly broken
  11509. ld_shlibs_CXX=no
  11510. ;;
  11511. openbsd*)
  11512. if test -f /usr/libexec/ld.so; then
  11513. hardcode_direct_CXX=yes
  11514. hardcode_shlibpath_var_CXX=no
  11515. hardcode_direct_absolute_CXX=yes
  11516. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11517. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11518. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11519. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11520. export_dynamic_flag_spec_CXX='${wl}-E'
  11521. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11522. fi
  11523. output_verbose_link_cmd=func_echo_all
  11524. else
  11525. ld_shlibs_CXX=no
  11526. fi
  11527. ;;
  11528. osf3* | osf4* | osf5*)
  11529. case $cc_basename in
  11530. KCC*)
  11531. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11532. # KCC will only create a shared library if the output file
  11533. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11534. # to its proper name (with version) after linking.
  11535. 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'
  11536. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11537. hardcode_libdir_separator_CXX=:
  11538. # Archives containing C++ object files must be created using
  11539. # the KAI C++ compiler.
  11540. case $host in
  11541. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11542. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11543. esac
  11544. ;;
  11545. RCC*)
  11546. # Rational C++ 2.4.1
  11547. # FIXME: insert proper C++ library support
  11548. ld_shlibs_CXX=no
  11549. ;;
  11550. cxx*)
  11551. case $host in
  11552. osf3*)
  11553. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11554. 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'
  11555. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11556. ;;
  11557. *)
  11558. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11559. 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'
  11560. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11561. echo "-hidden">> $lib.exp~
  11562. $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~
  11563. $RM $lib.exp'
  11564. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11565. ;;
  11566. esac
  11567. hardcode_libdir_separator_CXX=:
  11568. # Commands to make compiler produce verbose output that lists
  11569. # what "hidden" libraries, object files and flags are used when
  11570. # linking a shared library.
  11571. #
  11572. # There doesn't appear to be a way to prevent this compiler from
  11573. # explicitly linking system object files so we need to strip them
  11574. # from the output so that they don't get included in the library
  11575. # dependencies.
  11576. 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"'
  11577. ;;
  11578. *)
  11579. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11580. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11581. case $host in
  11582. osf3*)
  11583. 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'
  11584. ;;
  11585. *)
  11586. 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'
  11587. ;;
  11588. esac
  11589. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11590. hardcode_libdir_separator_CXX=:
  11591. # Commands to make compiler produce verbose output that lists
  11592. # what "hidden" libraries, object files and flags are used when
  11593. # linking a shared library.
  11594. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11595. else
  11596. # FIXME: insert proper C++ library support
  11597. ld_shlibs_CXX=no
  11598. fi
  11599. ;;
  11600. esac
  11601. ;;
  11602. psos*)
  11603. # FIXME: insert proper C++ library support
  11604. ld_shlibs_CXX=no
  11605. ;;
  11606. sunos4*)
  11607. case $cc_basename in
  11608. CC*)
  11609. # Sun C++ 4.x
  11610. # FIXME: insert proper C++ library support
  11611. ld_shlibs_CXX=no
  11612. ;;
  11613. lcc*)
  11614. # Lucid
  11615. # FIXME: insert proper C++ library support
  11616. ld_shlibs_CXX=no
  11617. ;;
  11618. *)
  11619. # FIXME: insert proper C++ library support
  11620. ld_shlibs_CXX=no
  11621. ;;
  11622. esac
  11623. ;;
  11624. solaris*)
  11625. case $cc_basename in
  11626. CC* | sunCC*)
  11627. # Sun C++ 4.2, 5.x and Centerline C++
  11628. archive_cmds_need_lc_CXX=yes
  11629. no_undefined_flag_CXX=' -zdefs'
  11630. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11631. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11632. $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'
  11633. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11634. hardcode_shlibpath_var_CXX=no
  11635. case $host_os in
  11636. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11637. *)
  11638. # The compiler driver will combine and reorder linker options,
  11639. # but understands `-z linker_flag'.
  11640. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11641. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11642. ;;
  11643. esac
  11644. link_all_deplibs_CXX=yes
  11645. output_verbose_link_cmd='func_echo_all'
  11646. # Archives containing C++ object files must be created using
  11647. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11648. # necessary to make sure instantiated templates are included
  11649. # in the archive.
  11650. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11651. ;;
  11652. gcx*)
  11653. # Green Hills C++ Compiler
  11654. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11655. # The C++ compiler must be used to create the archive.
  11656. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11657. ;;
  11658. *)
  11659. # GNU C++ compiler with Solaris linker
  11660. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11661. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11662. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11663. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11664. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11665. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11666. # Commands to make compiler produce verbose output that lists
  11667. # what "hidden" libraries, object files and flags are used when
  11668. # linking a shared library.
  11669. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11670. else
  11671. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11672. # platform.
  11673. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11674. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11675. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11676. # Commands to make compiler produce verbose output that lists
  11677. # what "hidden" libraries, object files and flags are used when
  11678. # linking a shared library.
  11679. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11680. fi
  11681. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11682. case $host_os in
  11683. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11684. *)
  11685. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11686. ;;
  11687. esac
  11688. fi
  11689. ;;
  11690. esac
  11691. ;;
  11692. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11693. no_undefined_flag_CXX='${wl}-z,text'
  11694. archive_cmds_need_lc_CXX=no
  11695. hardcode_shlibpath_var_CXX=no
  11696. runpath_var='LD_RUN_PATH'
  11697. case $cc_basename in
  11698. CC*)
  11699. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11700. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11701. ;;
  11702. *)
  11703. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11704. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11705. ;;
  11706. esac
  11707. ;;
  11708. sysv5* | sco3.2v5* | sco5v6*)
  11709. # Note: We can NOT use -z defs as we might desire, because we do not
  11710. # link with -lc, and that would cause any symbols used from libc to
  11711. # always be unresolved, which means just about no library would
  11712. # ever link correctly. If we're not using GNU ld we use -z text
  11713. # though, which does catch some bad symbols but isn't as heavy-handed
  11714. # as -z defs.
  11715. no_undefined_flag_CXX='${wl}-z,text'
  11716. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11717. archive_cmds_need_lc_CXX=no
  11718. hardcode_shlibpath_var_CXX=no
  11719. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11720. hardcode_libdir_separator_CXX=':'
  11721. link_all_deplibs_CXX=yes
  11722. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11723. runpath_var='LD_RUN_PATH'
  11724. case $cc_basename in
  11725. CC*)
  11726. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11727. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11728. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11729. '"$old_archive_cmds_CXX"
  11730. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11731. '"$reload_cmds_CXX"
  11732. ;;
  11733. *)
  11734. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11735. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11736. ;;
  11737. esac
  11738. ;;
  11739. tandem*)
  11740. case $cc_basename in
  11741. NCC*)
  11742. # NonStop-UX NCC 3.20
  11743. # FIXME: insert proper C++ library support
  11744. ld_shlibs_CXX=no
  11745. ;;
  11746. *)
  11747. # FIXME: insert proper C++ library support
  11748. ld_shlibs_CXX=no
  11749. ;;
  11750. esac
  11751. ;;
  11752. vxworks*)
  11753. # FIXME: insert proper C++ library support
  11754. ld_shlibs_CXX=no
  11755. ;;
  11756. *)
  11757. # FIXME: insert proper C++ library support
  11758. ld_shlibs_CXX=no
  11759. ;;
  11760. esac
  11761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11762. $as_echo "$ld_shlibs_CXX" >&6; }
  11763. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11764. GCC_CXX="$GXX"
  11765. LD_CXX="$LD"
  11766. ## CAVEAT EMPTOR:
  11767. ## There is no encapsulation within the following macros, do not change
  11768. ## the running order or otherwise move them around unless you know exactly
  11769. ## what you are doing...
  11770. # Dependencies to place before and after the object being linked:
  11771. predep_objects_CXX=
  11772. postdep_objects_CXX=
  11773. predeps_CXX=
  11774. postdeps_CXX=
  11775. compiler_lib_search_path_CXX=
  11776. cat > conftest.$ac_ext <<_LT_EOF
  11777. class Foo
  11778. {
  11779. public:
  11780. Foo (void) { a = 0; }
  11781. private:
  11782. int a;
  11783. };
  11784. _LT_EOF
  11785. _lt_libdeps_save_CFLAGS=$CFLAGS
  11786. case "$CC $CFLAGS " in #(
  11787. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11788. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11789. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11790. esac
  11791. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11792. (eval $ac_compile) 2>&5
  11793. ac_status=$?
  11794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11795. test $ac_status = 0; }; then
  11796. # Parse the compiler output and extract the necessary
  11797. # objects, libraries and library flags.
  11798. # Sentinel used to keep track of whether or not we are before
  11799. # the conftest object file.
  11800. pre_test_object_deps_done=no
  11801. for p in `eval "$output_verbose_link_cmd"`; do
  11802. case ${prev}${p} in
  11803. -L* | -R* | -l*)
  11804. # Some compilers place space between "-{L,R}" and the path.
  11805. # Remove the space.
  11806. if test $p = "-L" ||
  11807. test $p = "-R"; then
  11808. prev=$p
  11809. continue
  11810. fi
  11811. # Expand the sysroot to ease extracting the directories later.
  11812. if test -z "$prev"; then
  11813. case $p in
  11814. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11815. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11816. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11817. esac
  11818. fi
  11819. case $p in
  11820. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11821. esac
  11822. if test "$pre_test_object_deps_done" = no; then
  11823. case ${prev} in
  11824. -L | -R)
  11825. # Internal compiler library paths should come after those
  11826. # provided the user. The postdeps already come after the
  11827. # user supplied libs so there is no need to process them.
  11828. if test -z "$compiler_lib_search_path_CXX"; then
  11829. compiler_lib_search_path_CXX="${prev}${p}"
  11830. else
  11831. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11832. fi
  11833. ;;
  11834. # The "-l" case would never come before the object being
  11835. # linked, so don't bother handling this case.
  11836. esac
  11837. else
  11838. if test -z "$postdeps_CXX"; then
  11839. postdeps_CXX="${prev}${p}"
  11840. else
  11841. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11842. fi
  11843. fi
  11844. prev=
  11845. ;;
  11846. *.lto.$objext) ;; # Ignore GCC LTO objects
  11847. *.$objext)
  11848. # This assumes that the test object file only shows up
  11849. # once in the compiler output.
  11850. if test "$p" = "conftest.$objext"; then
  11851. pre_test_object_deps_done=yes
  11852. continue
  11853. fi
  11854. if test "$pre_test_object_deps_done" = no; then
  11855. if test -z "$predep_objects_CXX"; then
  11856. predep_objects_CXX="$p"
  11857. else
  11858. predep_objects_CXX="$predep_objects_CXX $p"
  11859. fi
  11860. else
  11861. if test -z "$postdep_objects_CXX"; then
  11862. postdep_objects_CXX="$p"
  11863. else
  11864. postdep_objects_CXX="$postdep_objects_CXX $p"
  11865. fi
  11866. fi
  11867. ;;
  11868. *) ;; # Ignore the rest.
  11869. esac
  11870. done
  11871. # Clean up.
  11872. rm -f a.out a.exe
  11873. else
  11874. echo "libtool.m4: error: problem compiling CXX test program"
  11875. fi
  11876. $RM -f confest.$objext
  11877. CFLAGS=$_lt_libdeps_save_CFLAGS
  11878. # PORTME: override above test on systems where it is broken
  11879. case $host_os in
  11880. interix[3-9]*)
  11881. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11882. # hack all around it, let's just trust "g++" to DTRT.
  11883. predep_objects_CXX=
  11884. postdep_objects_CXX=
  11885. postdeps_CXX=
  11886. ;;
  11887. linux*)
  11888. case `$CC -V 2>&1 | sed 5q` in
  11889. *Sun\ C*)
  11890. # Sun C++ 5.9
  11891. # The more standards-conforming stlport4 library is
  11892. # incompatible with the Cstd library. Avoid specifying
  11893. # it if it's in CXXFLAGS. Ignore libCrun as
  11894. # -library=stlport4 depends on it.
  11895. case " $CXX $CXXFLAGS " in
  11896. *" -library=stlport4 "*)
  11897. solaris_use_stlport4=yes
  11898. ;;
  11899. esac
  11900. if test "$solaris_use_stlport4" != yes; then
  11901. postdeps_CXX='-library=Cstd -library=Crun'
  11902. fi
  11903. ;;
  11904. esac
  11905. ;;
  11906. solaris*)
  11907. case $cc_basename in
  11908. CC* | sunCC*)
  11909. # The more standards-conforming stlport4 library is
  11910. # incompatible with the Cstd library. Avoid specifying
  11911. # it if it's in CXXFLAGS. Ignore libCrun as
  11912. # -library=stlport4 depends on it.
  11913. case " $CXX $CXXFLAGS " in
  11914. *" -library=stlport4 "*)
  11915. solaris_use_stlport4=yes
  11916. ;;
  11917. esac
  11918. # Adding this requires a known-good setup of shared libraries for
  11919. # Sun compiler versions before 5.6, else PIC objects from an old
  11920. # archive will be linked into the output, leading to subtle bugs.
  11921. if test "$solaris_use_stlport4" != yes; then
  11922. postdeps_CXX='-library=Cstd -library=Crun'
  11923. fi
  11924. ;;
  11925. esac
  11926. ;;
  11927. esac
  11928. case " $postdeps_CXX " in
  11929. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11930. esac
  11931. compiler_lib_search_dirs_CXX=
  11932. if test -n "${compiler_lib_search_path_CXX}"; then
  11933. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11934. fi
  11935. lt_prog_compiler_wl_CXX=
  11936. lt_prog_compiler_pic_CXX=
  11937. lt_prog_compiler_static_CXX=
  11938. # C++ specific cases for pic, static, wl, etc.
  11939. if test "$GXX" = yes; then
  11940. lt_prog_compiler_wl_CXX='-Wl,'
  11941. lt_prog_compiler_static_CXX='-static'
  11942. case $host_os in
  11943. aix*)
  11944. # All AIX code is PIC.
  11945. if test "$host_cpu" = ia64; then
  11946. # AIX 5 now supports IA64 processor
  11947. lt_prog_compiler_static_CXX='-Bstatic'
  11948. fi
  11949. ;;
  11950. amigaos*)
  11951. case $host_cpu in
  11952. powerpc)
  11953. # see comment about AmigaOS4 .so support
  11954. lt_prog_compiler_pic_CXX='-fPIC'
  11955. ;;
  11956. m68k)
  11957. # FIXME: we need at least 68020 code to build shared libraries, but
  11958. # adding the `-m68020' flag to GCC prevents building anything better,
  11959. # like `-m68040'.
  11960. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11961. ;;
  11962. esac
  11963. ;;
  11964. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11965. # PIC is the default for these OSes.
  11966. ;;
  11967. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11968. # This hack is so that the source file can tell whether it is being
  11969. # built for inclusion in a dll (and should export symbols for example).
  11970. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11971. # (--disable-auto-import) libraries
  11972. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11973. ;;
  11974. darwin* | rhapsody*)
  11975. # PIC is the default on this platform
  11976. # Common symbols not allowed in MH_DYLIB files
  11977. lt_prog_compiler_pic_CXX='-fno-common'
  11978. ;;
  11979. *djgpp*)
  11980. # DJGPP does not support shared libraries at all
  11981. lt_prog_compiler_pic_CXX=
  11982. ;;
  11983. haiku*)
  11984. # PIC is the default for Haiku.
  11985. # The "-static" flag exists, but is broken.
  11986. lt_prog_compiler_static_CXX=
  11987. ;;
  11988. interix[3-9]*)
  11989. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11990. # Instead, we relocate shared libraries at runtime.
  11991. ;;
  11992. sysv4*MP*)
  11993. if test -d /usr/nec; then
  11994. lt_prog_compiler_pic_CXX=-Kconform_pic
  11995. fi
  11996. ;;
  11997. hpux*)
  11998. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11999. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12000. # sets the default TLS model and affects inlining.
  12001. case $host_cpu in
  12002. hppa*64*)
  12003. ;;
  12004. *)
  12005. lt_prog_compiler_pic_CXX='-fPIC'
  12006. ;;
  12007. esac
  12008. ;;
  12009. *qnx* | *nto*)
  12010. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12011. # it will coredump.
  12012. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12013. ;;
  12014. *)
  12015. lt_prog_compiler_pic_CXX='-fPIC'
  12016. ;;
  12017. esac
  12018. else
  12019. case $host_os in
  12020. aix[4-9]*)
  12021. # All AIX code is PIC.
  12022. if test "$host_cpu" = ia64; then
  12023. # AIX 5 now supports IA64 processor
  12024. lt_prog_compiler_static_CXX='-Bstatic'
  12025. else
  12026. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12027. fi
  12028. ;;
  12029. chorus*)
  12030. case $cc_basename in
  12031. cxch68*)
  12032. # Green Hills C++ Compiler
  12033. # _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"
  12034. ;;
  12035. esac
  12036. ;;
  12037. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12038. # This hack is so that the source file can tell whether it is being
  12039. # built for inclusion in a dll (and should export symbols for example).
  12040. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12041. ;;
  12042. dgux*)
  12043. case $cc_basename in
  12044. ec++*)
  12045. lt_prog_compiler_pic_CXX='-KPIC'
  12046. ;;
  12047. ghcx*)
  12048. # Green Hills C++ Compiler
  12049. lt_prog_compiler_pic_CXX='-pic'
  12050. ;;
  12051. *)
  12052. ;;
  12053. esac
  12054. ;;
  12055. freebsd* | dragonfly*)
  12056. # FreeBSD uses GNU C++
  12057. ;;
  12058. hpux9* | hpux10* | hpux11*)
  12059. case $cc_basename in
  12060. CC*)
  12061. lt_prog_compiler_wl_CXX='-Wl,'
  12062. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12063. if test "$host_cpu" != ia64; then
  12064. lt_prog_compiler_pic_CXX='+Z'
  12065. fi
  12066. ;;
  12067. aCC*)
  12068. lt_prog_compiler_wl_CXX='-Wl,'
  12069. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12070. case $host_cpu in
  12071. hppa*64*|ia64*)
  12072. # +Z the default
  12073. ;;
  12074. *)
  12075. lt_prog_compiler_pic_CXX='+Z'
  12076. ;;
  12077. esac
  12078. ;;
  12079. *)
  12080. ;;
  12081. esac
  12082. ;;
  12083. interix*)
  12084. # This is c89, which is MS Visual C++ (no shared libs)
  12085. # Anyone wants to do a port?
  12086. ;;
  12087. irix5* | irix6* | nonstopux*)
  12088. case $cc_basename in
  12089. CC*)
  12090. lt_prog_compiler_wl_CXX='-Wl,'
  12091. lt_prog_compiler_static_CXX='-non_shared'
  12092. # CC pic flag -KPIC is the default.
  12093. ;;
  12094. *)
  12095. ;;
  12096. esac
  12097. ;;
  12098. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12099. case $cc_basename in
  12100. KCC*)
  12101. # KAI C++ Compiler
  12102. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12103. lt_prog_compiler_pic_CXX='-fPIC'
  12104. ;;
  12105. ecpc* )
  12106. # old Intel C++ for x86_64 which still supported -KPIC.
  12107. lt_prog_compiler_wl_CXX='-Wl,'
  12108. lt_prog_compiler_pic_CXX='-KPIC'
  12109. lt_prog_compiler_static_CXX='-static'
  12110. ;;
  12111. icpc* )
  12112. # Intel C++, used to be incompatible with GCC.
  12113. # ICC 10 doesn't accept -KPIC any more.
  12114. lt_prog_compiler_wl_CXX='-Wl,'
  12115. lt_prog_compiler_pic_CXX='-fPIC'
  12116. lt_prog_compiler_static_CXX='-static'
  12117. ;;
  12118. pgCC* | pgcpp*)
  12119. # Portland Group C++ compiler
  12120. lt_prog_compiler_wl_CXX='-Wl,'
  12121. lt_prog_compiler_pic_CXX='-fpic'
  12122. lt_prog_compiler_static_CXX='-Bstatic'
  12123. ;;
  12124. cxx*)
  12125. # Compaq C++
  12126. # Make sure the PIC flag is empty. It appears that all Alpha
  12127. # Linux and Compaq Tru64 Unix objects are PIC.
  12128. lt_prog_compiler_pic_CXX=
  12129. lt_prog_compiler_static_CXX='-non_shared'
  12130. ;;
  12131. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12132. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12133. lt_prog_compiler_wl_CXX='-Wl,'
  12134. lt_prog_compiler_pic_CXX='-qpic'
  12135. lt_prog_compiler_static_CXX='-qstaticlink'
  12136. ;;
  12137. *)
  12138. case `$CC -V 2>&1 | sed 5q` in
  12139. *Sun\ C*)
  12140. # Sun C++ 5.9
  12141. lt_prog_compiler_pic_CXX='-KPIC'
  12142. lt_prog_compiler_static_CXX='-Bstatic'
  12143. lt_prog_compiler_wl_CXX='-Qoption ld '
  12144. ;;
  12145. esac
  12146. ;;
  12147. esac
  12148. ;;
  12149. lynxos*)
  12150. ;;
  12151. m88k*)
  12152. ;;
  12153. mvs*)
  12154. case $cc_basename in
  12155. cxx*)
  12156. lt_prog_compiler_pic_CXX='-W c,exportall'
  12157. ;;
  12158. *)
  12159. ;;
  12160. esac
  12161. ;;
  12162. netbsd* | netbsdelf*-gnu)
  12163. ;;
  12164. *qnx* | *nto*)
  12165. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12166. # it will coredump.
  12167. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12168. ;;
  12169. osf3* | osf4* | osf5*)
  12170. case $cc_basename in
  12171. KCC*)
  12172. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12173. ;;
  12174. RCC*)
  12175. # Rational C++ 2.4.1
  12176. lt_prog_compiler_pic_CXX='-pic'
  12177. ;;
  12178. cxx*)
  12179. # Digital/Compaq C++
  12180. lt_prog_compiler_wl_CXX='-Wl,'
  12181. # Make sure the PIC flag is empty. It appears that all Alpha
  12182. # Linux and Compaq Tru64 Unix objects are PIC.
  12183. lt_prog_compiler_pic_CXX=
  12184. lt_prog_compiler_static_CXX='-non_shared'
  12185. ;;
  12186. *)
  12187. ;;
  12188. esac
  12189. ;;
  12190. psos*)
  12191. ;;
  12192. solaris*)
  12193. case $cc_basename in
  12194. CC* | sunCC*)
  12195. # Sun C++ 4.2, 5.x and Centerline C++
  12196. lt_prog_compiler_pic_CXX='-KPIC'
  12197. lt_prog_compiler_static_CXX='-Bstatic'
  12198. lt_prog_compiler_wl_CXX='-Qoption ld '
  12199. ;;
  12200. gcx*)
  12201. # Green Hills C++ Compiler
  12202. lt_prog_compiler_pic_CXX='-PIC'
  12203. ;;
  12204. *)
  12205. ;;
  12206. esac
  12207. ;;
  12208. sunos4*)
  12209. case $cc_basename in
  12210. CC*)
  12211. # Sun C++ 4.x
  12212. lt_prog_compiler_pic_CXX='-pic'
  12213. lt_prog_compiler_static_CXX='-Bstatic'
  12214. ;;
  12215. lcc*)
  12216. # Lucid
  12217. lt_prog_compiler_pic_CXX='-pic'
  12218. ;;
  12219. *)
  12220. ;;
  12221. esac
  12222. ;;
  12223. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12224. case $cc_basename in
  12225. CC*)
  12226. lt_prog_compiler_wl_CXX='-Wl,'
  12227. lt_prog_compiler_pic_CXX='-KPIC'
  12228. lt_prog_compiler_static_CXX='-Bstatic'
  12229. ;;
  12230. esac
  12231. ;;
  12232. tandem*)
  12233. case $cc_basename in
  12234. NCC*)
  12235. # NonStop-UX NCC 3.20
  12236. lt_prog_compiler_pic_CXX='-KPIC'
  12237. ;;
  12238. *)
  12239. ;;
  12240. esac
  12241. ;;
  12242. vxworks*)
  12243. ;;
  12244. *)
  12245. lt_prog_compiler_can_build_shared_CXX=no
  12246. ;;
  12247. esac
  12248. fi
  12249. case $host_os in
  12250. # For platforms which do not support PIC, -DPIC is meaningless:
  12251. *djgpp*)
  12252. lt_prog_compiler_pic_CXX=
  12253. ;;
  12254. *)
  12255. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12256. ;;
  12257. esac
  12258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12259. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12260. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12261. $as_echo_n "(cached) " >&6
  12262. else
  12263. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12264. fi
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12266. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12267. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12268. #
  12269. # Check to make sure the PIC flag actually works.
  12270. #
  12271. if test -n "$lt_prog_compiler_pic_CXX"; then
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12273. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12274. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12275. $as_echo_n "(cached) " >&6
  12276. else
  12277. lt_cv_prog_compiler_pic_works_CXX=no
  12278. ac_outfile=conftest.$ac_objext
  12279. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12280. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12281. # Insert the option either (1) after the last *FLAGS variable, or
  12282. # (2) before a word containing "conftest.", or (3) at the end.
  12283. # Note that $ac_compile itself does not contain backslashes and begins
  12284. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12285. # The option is referenced via a variable to avoid confusing sed.
  12286. lt_compile=`echo "$ac_compile" | $SED \
  12287. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12288. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12289. -e 's:$: $lt_compiler_flag:'`
  12290. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12291. (eval "$lt_compile" 2>conftest.err)
  12292. ac_status=$?
  12293. cat conftest.err >&5
  12294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12295. if (exit $ac_status) && test -s "$ac_outfile"; then
  12296. # The compiler can only warn and ignore the option if not recognized
  12297. # So say no if there are warnings other than the usual output.
  12298. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12299. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12300. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12301. lt_cv_prog_compiler_pic_works_CXX=yes
  12302. fi
  12303. fi
  12304. $RM conftest*
  12305. fi
  12306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12307. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12308. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12309. case $lt_prog_compiler_pic_CXX in
  12310. "" | " "*) ;;
  12311. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12312. esac
  12313. else
  12314. lt_prog_compiler_pic_CXX=
  12315. lt_prog_compiler_can_build_shared_CXX=no
  12316. fi
  12317. fi
  12318. #
  12319. # Check to make sure the static flag actually works.
  12320. #
  12321. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12323. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12324. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12325. $as_echo_n "(cached) " >&6
  12326. else
  12327. lt_cv_prog_compiler_static_works_CXX=no
  12328. save_LDFLAGS="$LDFLAGS"
  12329. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12330. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12331. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12332. # The linker can only warn and ignore the option if not recognized
  12333. # So say no if there are warnings
  12334. if test -s conftest.err; then
  12335. # Append any errors to the config.log.
  12336. cat conftest.err 1>&5
  12337. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12338. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12339. if diff conftest.exp conftest.er2 >/dev/null; then
  12340. lt_cv_prog_compiler_static_works_CXX=yes
  12341. fi
  12342. else
  12343. lt_cv_prog_compiler_static_works_CXX=yes
  12344. fi
  12345. fi
  12346. $RM -r conftest*
  12347. LDFLAGS="$save_LDFLAGS"
  12348. fi
  12349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12350. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12351. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12352. :
  12353. else
  12354. lt_prog_compiler_static_CXX=
  12355. fi
  12356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12357. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12358. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12359. $as_echo_n "(cached) " >&6
  12360. else
  12361. lt_cv_prog_compiler_c_o_CXX=no
  12362. $RM -r conftest 2>/dev/null
  12363. mkdir conftest
  12364. cd conftest
  12365. mkdir out
  12366. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12367. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12368. # Insert the option either (1) after the last *FLAGS variable, or
  12369. # (2) before a word containing "conftest.", or (3) at the end.
  12370. # Note that $ac_compile itself does not contain backslashes and begins
  12371. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12372. lt_compile=`echo "$ac_compile" | $SED \
  12373. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12374. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12375. -e 's:$: $lt_compiler_flag:'`
  12376. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12377. (eval "$lt_compile" 2>out/conftest.err)
  12378. ac_status=$?
  12379. cat out/conftest.err >&5
  12380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12381. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12382. then
  12383. # The compiler can only warn and ignore the option if not recognized
  12384. # So say no if there are warnings
  12385. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12386. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12387. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12388. lt_cv_prog_compiler_c_o_CXX=yes
  12389. fi
  12390. fi
  12391. chmod u+w . 2>&5
  12392. $RM conftest*
  12393. # SGI C++ compiler will create directory out/ii_files/ for
  12394. # template instantiation
  12395. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12396. $RM out/* && rmdir out
  12397. cd ..
  12398. $RM -r conftest
  12399. $RM conftest*
  12400. fi
  12401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12402. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12404. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12405. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12406. $as_echo_n "(cached) " >&6
  12407. else
  12408. lt_cv_prog_compiler_c_o_CXX=no
  12409. $RM -r conftest 2>/dev/null
  12410. mkdir conftest
  12411. cd conftest
  12412. mkdir out
  12413. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12414. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12415. # Insert the option either (1) after the last *FLAGS variable, or
  12416. # (2) before a word containing "conftest.", or (3) at the end.
  12417. # Note that $ac_compile itself does not contain backslashes and begins
  12418. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12419. lt_compile=`echo "$ac_compile" | $SED \
  12420. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12421. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12422. -e 's:$: $lt_compiler_flag:'`
  12423. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12424. (eval "$lt_compile" 2>out/conftest.err)
  12425. ac_status=$?
  12426. cat out/conftest.err >&5
  12427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12428. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12429. then
  12430. # The compiler can only warn and ignore the option if not recognized
  12431. # So say no if there are warnings
  12432. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12433. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12434. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12435. lt_cv_prog_compiler_c_o_CXX=yes
  12436. fi
  12437. fi
  12438. chmod u+w . 2>&5
  12439. $RM conftest*
  12440. # SGI C++ compiler will create directory out/ii_files/ for
  12441. # template instantiation
  12442. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12443. $RM out/* && rmdir out
  12444. cd ..
  12445. $RM -r conftest
  12446. $RM conftest*
  12447. fi
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12449. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12450. hard_links="nottested"
  12451. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12452. # do not overwrite the value of need_locks provided by the user
  12453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12454. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12455. hard_links=yes
  12456. $RM conftest*
  12457. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12458. touch conftest.a
  12459. ln conftest.a conftest.b 2>&5 || hard_links=no
  12460. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12462. $as_echo "$hard_links" >&6; }
  12463. if test "$hard_links" = no; then
  12464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12465. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12466. need_locks=warn
  12467. fi
  12468. else
  12469. need_locks=no
  12470. fi
  12471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12472. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12473. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12474. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12475. case $host_os in
  12476. aix[4-9]*)
  12477. # If we're using GNU nm, then we don't want the "-C" option.
  12478. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12479. # Also, AIX nm treats weak defined symbols like other global defined
  12480. # symbols, whereas GNU nm marks them as "W".
  12481. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12482. 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'
  12483. else
  12484. 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'
  12485. fi
  12486. ;;
  12487. pw32*)
  12488. export_symbols_cmds_CXX="$ltdll_cmds"
  12489. ;;
  12490. cygwin* | mingw* | cegcc*)
  12491. case $cc_basename in
  12492. cl*)
  12493. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12494. ;;
  12495. *)
  12496. 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'
  12497. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12498. ;;
  12499. esac
  12500. ;;
  12501. linux* | k*bsd*-gnu | gnu*)
  12502. link_all_deplibs_CXX=no
  12503. ;;
  12504. *)
  12505. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12506. ;;
  12507. esac
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12509. $as_echo "$ld_shlibs_CXX" >&6; }
  12510. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12511. with_gnu_ld_CXX=$with_gnu_ld
  12512. #
  12513. # Do we need to explicitly link libc?
  12514. #
  12515. case "x$archive_cmds_need_lc_CXX" in
  12516. x|xyes)
  12517. # Assume -lc should be added
  12518. archive_cmds_need_lc_CXX=yes
  12519. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12520. case $archive_cmds_CXX in
  12521. *'~'*)
  12522. # FIXME: we may have to deal with multi-command sequences.
  12523. ;;
  12524. '$CC '*)
  12525. # Test whether the compiler implicitly links with -lc since on some
  12526. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12527. # to ld, don't add -lc before -lgcc.
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12529. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12530. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12531. $as_echo_n "(cached) " >&6
  12532. else
  12533. $RM conftest*
  12534. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12535. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12536. (eval $ac_compile) 2>&5
  12537. ac_status=$?
  12538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12539. test $ac_status = 0; } 2>conftest.err; then
  12540. soname=conftest
  12541. lib=conftest
  12542. libobjs=conftest.$ac_objext
  12543. deplibs=
  12544. wl=$lt_prog_compiler_wl_CXX
  12545. pic_flag=$lt_prog_compiler_pic_CXX
  12546. compiler_flags=-v
  12547. linker_flags=-v
  12548. verstring=
  12549. output_objdir=.
  12550. libname=conftest
  12551. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12552. allow_undefined_flag_CXX=
  12553. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12554. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12555. ac_status=$?
  12556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12557. test $ac_status = 0; }
  12558. then
  12559. lt_cv_archive_cmds_need_lc_CXX=no
  12560. else
  12561. lt_cv_archive_cmds_need_lc_CXX=yes
  12562. fi
  12563. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12564. else
  12565. cat conftest.err 1>&5
  12566. fi
  12567. $RM conftest*
  12568. fi
  12569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12570. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12571. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12572. ;;
  12573. esac
  12574. fi
  12575. ;;
  12576. esac
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12578. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12579. library_names_spec=
  12580. libname_spec='lib$name'
  12581. soname_spec=
  12582. shrext_cmds=".so"
  12583. postinstall_cmds=
  12584. postuninstall_cmds=
  12585. finish_cmds=
  12586. finish_eval=
  12587. shlibpath_var=
  12588. shlibpath_overrides_runpath=unknown
  12589. version_type=none
  12590. dynamic_linker="$host_os ld.so"
  12591. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12592. need_lib_prefix=unknown
  12593. hardcode_into_libs=no
  12594. # when you set need_version to no, make sure it does not cause -set_version
  12595. # flags to be left without arguments
  12596. need_version=unknown
  12597. case $host_os in
  12598. aix3*)
  12599. version_type=linux # correct to gnu/linux during the next big refactor
  12600. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12601. shlibpath_var=LIBPATH
  12602. # AIX 3 has no versioning support, so we append a major version to the name.
  12603. soname_spec='${libname}${release}${shared_ext}$major'
  12604. ;;
  12605. aix[4-9]*)
  12606. version_type=linux # correct to gnu/linux during the next big refactor
  12607. need_lib_prefix=no
  12608. need_version=no
  12609. hardcode_into_libs=yes
  12610. if test "$host_cpu" = ia64; then
  12611. # AIX 5 supports IA64
  12612. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12613. shlibpath_var=LD_LIBRARY_PATH
  12614. else
  12615. # With GCC up to 2.95.x, collect2 would create an import file
  12616. # for dependence libraries. The import file would start with
  12617. # the line `#! .'. This would cause the generated library to
  12618. # depend on `.', always an invalid library. This was fixed in
  12619. # development snapshots of GCC prior to 3.0.
  12620. case $host_os in
  12621. aix4 | aix4.[01] | aix4.[01].*)
  12622. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12623. echo ' yes '
  12624. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12625. :
  12626. else
  12627. can_build_shared=no
  12628. fi
  12629. ;;
  12630. esac
  12631. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12632. # soname into executable. Probably we can add versioning support to
  12633. # collect2, so additional links can be useful in future.
  12634. if test "$aix_use_runtimelinking" = yes; then
  12635. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12636. # instead of lib<name>.a to let people know that these are not
  12637. # typical AIX shared libraries.
  12638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12639. else
  12640. # We preserve .a as extension for shared libraries through AIX4.2
  12641. # and later when we are not doing run time linking.
  12642. library_names_spec='${libname}${release}.a $libname.a'
  12643. soname_spec='${libname}${release}${shared_ext}$major'
  12644. fi
  12645. shlibpath_var=LIBPATH
  12646. fi
  12647. ;;
  12648. amigaos*)
  12649. case $host_cpu in
  12650. powerpc)
  12651. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12652. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12654. ;;
  12655. m68k)
  12656. library_names_spec='$libname.ixlibrary $libname.a'
  12657. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12658. 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'
  12659. ;;
  12660. esac
  12661. ;;
  12662. beos*)
  12663. library_names_spec='${libname}${shared_ext}'
  12664. dynamic_linker="$host_os ld.so"
  12665. shlibpath_var=LIBRARY_PATH
  12666. ;;
  12667. bsdi[45]*)
  12668. version_type=linux # correct to gnu/linux during the next big refactor
  12669. need_version=no
  12670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12671. soname_spec='${libname}${release}${shared_ext}$major'
  12672. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12673. shlibpath_var=LD_LIBRARY_PATH
  12674. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12675. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12676. # the default ld.so.conf also contains /usr/contrib/lib and
  12677. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12678. # libtool to hard-code these into programs
  12679. ;;
  12680. cygwin* | mingw* | pw32* | cegcc*)
  12681. version_type=windows
  12682. shrext_cmds=".dll"
  12683. need_version=no
  12684. need_lib_prefix=no
  12685. case $GCC,$cc_basename in
  12686. yes,*)
  12687. # gcc
  12688. library_names_spec='$libname.dll.a'
  12689. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12690. postinstall_cmds='base_file=`basename \${file}`~
  12691. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12692. dldir=$destdir/`dirname \$dlpath`~
  12693. test -d \$dldir || mkdir -p \$dldir~
  12694. $install_prog $dir/$dlname \$dldir/$dlname~
  12695. chmod a+x \$dldir/$dlname~
  12696. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12697. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12698. fi'
  12699. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12700. dlpath=$dir/\$dldll~
  12701. $RM \$dlpath'
  12702. shlibpath_overrides_runpath=yes
  12703. case $host_os in
  12704. cygwin*)
  12705. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12706. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12707. ;;
  12708. mingw* | cegcc*)
  12709. # MinGW DLLs use traditional 'lib' prefix
  12710. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12711. ;;
  12712. pw32*)
  12713. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12714. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12715. ;;
  12716. esac
  12717. dynamic_linker='Win32 ld.exe'
  12718. ;;
  12719. *,cl*)
  12720. # Native MSVC
  12721. libname_spec='$name'
  12722. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12723. library_names_spec='${libname}.dll.lib'
  12724. case $build_os in
  12725. mingw*)
  12726. sys_lib_search_path_spec=
  12727. lt_save_ifs=$IFS
  12728. IFS=';'
  12729. for lt_path in $LIB
  12730. do
  12731. IFS=$lt_save_ifs
  12732. # Let DOS variable expansion print the short 8.3 style file name.
  12733. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12734. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12735. done
  12736. IFS=$lt_save_ifs
  12737. # Convert to MSYS style.
  12738. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12739. ;;
  12740. cygwin*)
  12741. # Convert to unix form, then to dos form, then back to unix form
  12742. # but this time dos style (no spaces!) so that the unix form looks
  12743. # like /cygdrive/c/PROGRA~1:/cygdr...
  12744. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12745. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12746. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12747. ;;
  12748. *)
  12749. sys_lib_search_path_spec="$LIB"
  12750. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12751. # It is most probably a Windows format PATH.
  12752. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12753. else
  12754. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12755. fi
  12756. # FIXME: find the short name or the path components, as spaces are
  12757. # common. (e.g. "Program Files" -> "PROGRA~1")
  12758. ;;
  12759. esac
  12760. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12761. postinstall_cmds='base_file=`basename \${file}`~
  12762. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12763. dldir=$destdir/`dirname \$dlpath`~
  12764. test -d \$dldir || mkdir -p \$dldir~
  12765. $install_prog $dir/$dlname \$dldir/$dlname'
  12766. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12767. dlpath=$dir/\$dldll~
  12768. $RM \$dlpath'
  12769. shlibpath_overrides_runpath=yes
  12770. dynamic_linker='Win32 link.exe'
  12771. ;;
  12772. *)
  12773. # Assume MSVC wrapper
  12774. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12775. dynamic_linker='Win32 ld.exe'
  12776. ;;
  12777. esac
  12778. # FIXME: first we should search . and the directory the executable is in
  12779. shlibpath_var=PATH
  12780. ;;
  12781. darwin* | rhapsody*)
  12782. dynamic_linker="$host_os dyld"
  12783. version_type=darwin
  12784. need_lib_prefix=no
  12785. need_version=no
  12786. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12787. soname_spec='${libname}${release}${major}$shared_ext'
  12788. shlibpath_overrides_runpath=yes
  12789. shlibpath_var=DYLD_LIBRARY_PATH
  12790. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12791. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12792. ;;
  12793. dgux*)
  12794. version_type=linux # correct to gnu/linux during the next big refactor
  12795. need_lib_prefix=no
  12796. need_version=no
  12797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12798. soname_spec='${libname}${release}${shared_ext}$major'
  12799. shlibpath_var=LD_LIBRARY_PATH
  12800. ;;
  12801. freebsd* | dragonfly*)
  12802. # DragonFly does not have aout. When/if they implement a new
  12803. # versioning mechanism, adjust this.
  12804. if test -x /usr/bin/objformat; then
  12805. objformat=`/usr/bin/objformat`
  12806. else
  12807. case $host_os in
  12808. freebsd[23].*) objformat=aout ;;
  12809. *) objformat=elf ;;
  12810. esac
  12811. fi
  12812. version_type=freebsd-$objformat
  12813. case $version_type in
  12814. freebsd-elf*)
  12815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12816. need_version=no
  12817. need_lib_prefix=no
  12818. ;;
  12819. freebsd-*)
  12820. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12821. need_version=yes
  12822. ;;
  12823. esac
  12824. shlibpath_var=LD_LIBRARY_PATH
  12825. case $host_os in
  12826. freebsd2.*)
  12827. shlibpath_overrides_runpath=yes
  12828. ;;
  12829. freebsd3.[01]* | freebsdelf3.[01]*)
  12830. shlibpath_overrides_runpath=yes
  12831. hardcode_into_libs=yes
  12832. ;;
  12833. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12834. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12835. shlibpath_overrides_runpath=no
  12836. hardcode_into_libs=yes
  12837. ;;
  12838. *) # from 4.6 on, and DragonFly
  12839. shlibpath_overrides_runpath=yes
  12840. hardcode_into_libs=yes
  12841. ;;
  12842. esac
  12843. ;;
  12844. gnu*)
  12845. version_type=linux # correct to gnu/linux during the next big refactor
  12846. need_lib_prefix=no
  12847. need_version=no
  12848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12849. soname_spec='${libname}${release}${shared_ext}$major'
  12850. shlibpath_var=LD_LIBRARY_PATH
  12851. shlibpath_overrides_runpath=no
  12852. hardcode_into_libs=yes
  12853. ;;
  12854. haiku*)
  12855. version_type=linux # correct to gnu/linux during the next big refactor
  12856. need_lib_prefix=no
  12857. need_version=no
  12858. dynamic_linker="$host_os runtime_loader"
  12859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12860. soname_spec='${libname}${release}${shared_ext}$major'
  12861. shlibpath_var=LIBRARY_PATH
  12862. shlibpath_overrides_runpath=yes
  12863. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12864. hardcode_into_libs=yes
  12865. ;;
  12866. hpux9* | hpux10* | hpux11*)
  12867. # Give a soname corresponding to the major version so that dld.sl refuses to
  12868. # link against other versions.
  12869. version_type=sunos
  12870. need_lib_prefix=no
  12871. need_version=no
  12872. case $host_cpu in
  12873. ia64*)
  12874. shrext_cmds='.so'
  12875. hardcode_into_libs=yes
  12876. dynamic_linker="$host_os dld.so"
  12877. shlibpath_var=LD_LIBRARY_PATH
  12878. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12880. soname_spec='${libname}${release}${shared_ext}$major'
  12881. if test "X$HPUX_IA64_MODE" = X32; then
  12882. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12883. else
  12884. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12885. fi
  12886. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12887. ;;
  12888. hppa*64*)
  12889. shrext_cmds='.sl'
  12890. hardcode_into_libs=yes
  12891. dynamic_linker="$host_os dld.sl"
  12892. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12893. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12895. soname_spec='${libname}${release}${shared_ext}$major'
  12896. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12897. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12898. ;;
  12899. *)
  12900. shrext_cmds='.sl'
  12901. dynamic_linker="$host_os dld.sl"
  12902. shlibpath_var=SHLIB_PATH
  12903. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12905. soname_spec='${libname}${release}${shared_ext}$major'
  12906. ;;
  12907. esac
  12908. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12909. postinstall_cmds='chmod 555 $lib'
  12910. # or fails outright, so override atomically:
  12911. install_override_mode=555
  12912. ;;
  12913. interix[3-9]*)
  12914. version_type=linux # correct to gnu/linux during the next big refactor
  12915. need_lib_prefix=no
  12916. need_version=no
  12917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12918. soname_spec='${libname}${release}${shared_ext}$major'
  12919. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. shlibpath_overrides_runpath=no
  12922. hardcode_into_libs=yes
  12923. ;;
  12924. irix5* | irix6* | nonstopux*)
  12925. case $host_os in
  12926. nonstopux*) version_type=nonstopux ;;
  12927. *)
  12928. if test "$lt_cv_prog_gnu_ld" = yes; then
  12929. version_type=linux # correct to gnu/linux during the next big refactor
  12930. else
  12931. version_type=irix
  12932. fi ;;
  12933. esac
  12934. need_lib_prefix=no
  12935. need_version=no
  12936. soname_spec='${libname}${release}${shared_ext}$major'
  12937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12938. case $host_os in
  12939. irix5* | nonstopux*)
  12940. libsuff= shlibsuff=
  12941. ;;
  12942. *)
  12943. case $LD in # libtool.m4 will add one of these switches to LD
  12944. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12945. libsuff= shlibsuff= libmagic=32-bit;;
  12946. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12947. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12948. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12949. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12950. *) libsuff= shlibsuff= libmagic=never-match;;
  12951. esac
  12952. ;;
  12953. esac
  12954. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12955. shlibpath_overrides_runpath=no
  12956. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12957. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12958. hardcode_into_libs=yes
  12959. ;;
  12960. # No shared lib support for Linux oldld, aout, or coff.
  12961. linux*oldld* | linux*aout* | linux*coff*)
  12962. dynamic_linker=no
  12963. ;;
  12964. # This must be glibc/ELF.
  12965. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12966. version_type=linux # correct to gnu/linux during the next big refactor
  12967. need_lib_prefix=no
  12968. need_version=no
  12969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12970. soname_spec='${libname}${release}${shared_ext}$major'
  12971. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12972. shlibpath_var=LD_LIBRARY_PATH
  12973. shlibpath_overrides_runpath=no
  12974. # Some binutils ld are patched to set DT_RUNPATH
  12975. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12976. $as_echo_n "(cached) " >&6
  12977. else
  12978. lt_cv_shlibpath_overrides_runpath=no
  12979. save_LDFLAGS=$LDFLAGS
  12980. save_libdir=$libdir
  12981. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12982. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12984. /* end confdefs.h. */
  12985. int
  12986. main ()
  12987. {
  12988. ;
  12989. return 0;
  12990. }
  12991. _ACEOF
  12992. if ac_fn_cxx_try_link "$LINENO"; then :
  12993. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12994. lt_cv_shlibpath_overrides_runpath=yes
  12995. fi
  12996. fi
  12997. rm -f core conftest.err conftest.$ac_objext \
  12998. conftest$ac_exeext conftest.$ac_ext
  12999. LDFLAGS=$save_LDFLAGS
  13000. libdir=$save_libdir
  13001. fi
  13002. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13003. # This implies no fast_install, which is unacceptable.
  13004. # Some rework will be needed to allow for fast_install
  13005. # before this can be enabled.
  13006. hardcode_into_libs=yes
  13007. # Append ld.so.conf contents to the search path
  13008. if test -f /etc/ld.so.conf; then
  13009. 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' ' '`
  13010. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13011. fi
  13012. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13013. # powerpc, because MkLinux only supported shared libraries with the
  13014. # GNU dynamic linker. Since this was broken with cross compilers,
  13015. # most powerpc-linux boxes support dynamic linking these days and
  13016. # people can always --disable-shared, the test was removed, and we
  13017. # assume the GNU/Linux dynamic linker is in use.
  13018. dynamic_linker='GNU/Linux ld.so'
  13019. ;;
  13020. netbsdelf*-gnu)
  13021. version_type=linux
  13022. need_lib_prefix=no
  13023. need_version=no
  13024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13025. soname_spec='${libname}${release}${shared_ext}$major'
  13026. shlibpath_var=LD_LIBRARY_PATH
  13027. shlibpath_overrides_runpath=no
  13028. hardcode_into_libs=yes
  13029. dynamic_linker='NetBSD ld.elf_so'
  13030. ;;
  13031. netbsd*)
  13032. version_type=sunos
  13033. need_lib_prefix=no
  13034. need_version=no
  13035. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13037. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13038. dynamic_linker='NetBSD (a.out) ld.so'
  13039. else
  13040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13041. soname_spec='${libname}${release}${shared_ext}$major'
  13042. dynamic_linker='NetBSD ld.elf_so'
  13043. fi
  13044. shlibpath_var=LD_LIBRARY_PATH
  13045. shlibpath_overrides_runpath=yes
  13046. hardcode_into_libs=yes
  13047. ;;
  13048. newsos6)
  13049. version_type=linux # correct to gnu/linux during the next big refactor
  13050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13051. shlibpath_var=LD_LIBRARY_PATH
  13052. shlibpath_overrides_runpath=yes
  13053. ;;
  13054. *nto* | *qnx*)
  13055. version_type=qnx
  13056. need_lib_prefix=no
  13057. need_version=no
  13058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13059. soname_spec='${libname}${release}${shared_ext}$major'
  13060. shlibpath_var=LD_LIBRARY_PATH
  13061. shlibpath_overrides_runpath=no
  13062. hardcode_into_libs=yes
  13063. dynamic_linker='ldqnx.so'
  13064. ;;
  13065. openbsd*)
  13066. version_type=sunos
  13067. sys_lib_dlsearch_path_spec="/usr/lib"
  13068. need_lib_prefix=no
  13069. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13070. case $host_os in
  13071. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13072. *) need_version=no ;;
  13073. esac
  13074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13075. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13076. shlibpath_var=LD_LIBRARY_PATH
  13077. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13078. case $host_os in
  13079. openbsd2.[89] | openbsd2.[89].*)
  13080. shlibpath_overrides_runpath=no
  13081. ;;
  13082. *)
  13083. shlibpath_overrides_runpath=yes
  13084. ;;
  13085. esac
  13086. else
  13087. shlibpath_overrides_runpath=yes
  13088. fi
  13089. ;;
  13090. os2*)
  13091. libname_spec='$name'
  13092. shrext_cmds=".dll"
  13093. need_lib_prefix=no
  13094. library_names_spec='$libname${shared_ext} $libname.a'
  13095. dynamic_linker='OS/2 ld.exe'
  13096. shlibpath_var=LIBPATH
  13097. ;;
  13098. osf3* | osf4* | osf5*)
  13099. version_type=osf
  13100. need_lib_prefix=no
  13101. need_version=no
  13102. soname_spec='${libname}${release}${shared_ext}$major'
  13103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13104. shlibpath_var=LD_LIBRARY_PATH
  13105. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13106. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13107. ;;
  13108. rdos*)
  13109. dynamic_linker=no
  13110. ;;
  13111. solaris*)
  13112. version_type=linux # correct to gnu/linux during the next big refactor
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13116. soname_spec='${libname}${release}${shared_ext}$major'
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. shlibpath_overrides_runpath=yes
  13119. hardcode_into_libs=yes
  13120. # ldd complains unless libraries are executable
  13121. postinstall_cmds='chmod +x $lib'
  13122. ;;
  13123. sunos4*)
  13124. version_type=sunos
  13125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13126. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13127. shlibpath_var=LD_LIBRARY_PATH
  13128. shlibpath_overrides_runpath=yes
  13129. if test "$with_gnu_ld" = yes; then
  13130. need_lib_prefix=no
  13131. fi
  13132. need_version=yes
  13133. ;;
  13134. sysv4 | sysv4.3*)
  13135. version_type=linux # correct to gnu/linux during the next big refactor
  13136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13137. soname_spec='${libname}${release}${shared_ext}$major'
  13138. shlibpath_var=LD_LIBRARY_PATH
  13139. case $host_vendor in
  13140. sni)
  13141. shlibpath_overrides_runpath=no
  13142. need_lib_prefix=no
  13143. runpath_var=LD_RUN_PATH
  13144. ;;
  13145. siemens)
  13146. need_lib_prefix=no
  13147. ;;
  13148. motorola)
  13149. need_lib_prefix=no
  13150. need_version=no
  13151. shlibpath_overrides_runpath=no
  13152. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13153. ;;
  13154. esac
  13155. ;;
  13156. sysv4*MP*)
  13157. if test -d /usr/nec ;then
  13158. version_type=linux # correct to gnu/linux during the next big refactor
  13159. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13160. soname_spec='$libname${shared_ext}.$major'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. fi
  13163. ;;
  13164. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13165. version_type=freebsd-elf
  13166. need_lib_prefix=no
  13167. need_version=no
  13168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13169. soname_spec='${libname}${release}${shared_ext}$major'
  13170. shlibpath_var=LD_LIBRARY_PATH
  13171. shlibpath_overrides_runpath=yes
  13172. hardcode_into_libs=yes
  13173. if test "$with_gnu_ld" = yes; then
  13174. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13175. else
  13176. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13177. case $host_os in
  13178. sco3.2v5*)
  13179. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13180. ;;
  13181. esac
  13182. fi
  13183. sys_lib_dlsearch_path_spec='/usr/lib'
  13184. ;;
  13185. tpf*)
  13186. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13187. version_type=linux # correct to gnu/linux during the next big refactor
  13188. need_lib_prefix=no
  13189. need_version=no
  13190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13191. shlibpath_var=LD_LIBRARY_PATH
  13192. shlibpath_overrides_runpath=no
  13193. hardcode_into_libs=yes
  13194. ;;
  13195. uts4*)
  13196. version_type=linux # correct to gnu/linux during the next big refactor
  13197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13198. soname_spec='${libname}${release}${shared_ext}$major'
  13199. shlibpath_var=LD_LIBRARY_PATH
  13200. ;;
  13201. *)
  13202. dynamic_linker=no
  13203. ;;
  13204. esac
  13205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13206. $as_echo "$dynamic_linker" >&6; }
  13207. test "$dynamic_linker" = no && can_build_shared=no
  13208. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13209. if test "$GCC" = yes; then
  13210. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13211. fi
  13212. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13213. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13214. fi
  13215. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13216. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13217. fi
  13218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13219. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13220. hardcode_action_CXX=
  13221. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13222. test -n "$runpath_var_CXX" ||
  13223. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13224. # We can hardcode non-existent directories.
  13225. if test "$hardcode_direct_CXX" != no &&
  13226. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13227. # have to relink, otherwise we might link with an installed library
  13228. # when we should be linking with a yet-to-be-installed one
  13229. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13230. test "$hardcode_minus_L_CXX" != no; then
  13231. # Linking always hardcodes the temporary library directory.
  13232. hardcode_action_CXX=relink
  13233. else
  13234. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13235. hardcode_action_CXX=immediate
  13236. fi
  13237. else
  13238. # We cannot hardcode anything, or else we can only hardcode existing
  13239. # directories.
  13240. hardcode_action_CXX=unsupported
  13241. fi
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13243. $as_echo "$hardcode_action_CXX" >&6; }
  13244. if test "$hardcode_action_CXX" = relink ||
  13245. test "$inherit_rpath_CXX" = yes; then
  13246. # Fast installation is not supported
  13247. enable_fast_install=no
  13248. elif test "$shlibpath_overrides_runpath" = yes ||
  13249. test "$enable_shared" = no; then
  13250. # Fast installation is not necessary
  13251. enable_fast_install=needless
  13252. fi
  13253. fi # test -n "$compiler"
  13254. CC=$lt_save_CC
  13255. CFLAGS=$lt_save_CFLAGS
  13256. LDCXX=$LD
  13257. LD=$lt_save_LD
  13258. GCC=$lt_save_GCC
  13259. with_gnu_ld=$lt_save_with_gnu_ld
  13260. lt_cv_path_LDCXX=$lt_cv_path_LD
  13261. lt_cv_path_LD=$lt_save_path_LD
  13262. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13263. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13264. fi # test "$_lt_caught_CXX_error" != yes
  13265. ac_ext=cpp
  13266. ac_cpp='$CXXCPP $CPPFLAGS'
  13267. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13268. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13269. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13270. ac_config_commands="$ac_config_commands libtool"
  13271. # Only expand once:
  13272. # Checks for header files.
  13273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13274. $as_echo_n "checking for ANSI C header files... " >&6; }
  13275. if ${ac_cv_header_stdc+:} false; then :
  13276. $as_echo_n "(cached) " >&6
  13277. else
  13278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13279. /* end confdefs.h. */
  13280. #include <stdlib.h>
  13281. #include <stdarg.h>
  13282. #include <string.h>
  13283. #include <float.h>
  13284. int
  13285. main ()
  13286. {
  13287. ;
  13288. return 0;
  13289. }
  13290. _ACEOF
  13291. if ac_fn_cxx_try_compile "$LINENO"; then :
  13292. ac_cv_header_stdc=yes
  13293. else
  13294. ac_cv_header_stdc=no
  13295. fi
  13296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13297. if test $ac_cv_header_stdc = yes; then
  13298. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13300. /* end confdefs.h. */
  13301. #include <string.h>
  13302. _ACEOF
  13303. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13304. $EGREP "memchr" >/dev/null 2>&1; then :
  13305. else
  13306. ac_cv_header_stdc=no
  13307. fi
  13308. rm -f conftest*
  13309. fi
  13310. if test $ac_cv_header_stdc = yes; then
  13311. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13313. /* end confdefs.h. */
  13314. #include <stdlib.h>
  13315. _ACEOF
  13316. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13317. $EGREP "free" >/dev/null 2>&1; then :
  13318. else
  13319. ac_cv_header_stdc=no
  13320. fi
  13321. rm -f conftest*
  13322. fi
  13323. if test $ac_cv_header_stdc = yes; then
  13324. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13325. if test "$cross_compiling" = yes; then :
  13326. :
  13327. else
  13328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13329. /* end confdefs.h. */
  13330. #include <ctype.h>
  13331. #include <stdlib.h>
  13332. #if ((' ' & 0x0FF) == 0x020)
  13333. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13334. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13335. #else
  13336. # define ISLOWER(c) \
  13337. (('a' <= (c) && (c) <= 'i') \
  13338. || ('j' <= (c) && (c) <= 'r') \
  13339. || ('s' <= (c) && (c) <= 'z'))
  13340. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13341. #endif
  13342. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13343. int
  13344. main ()
  13345. {
  13346. int i;
  13347. for (i = 0; i < 256; i++)
  13348. if (XOR (islower (i), ISLOWER (i))
  13349. || toupper (i) != TOUPPER (i))
  13350. return 2;
  13351. return 0;
  13352. }
  13353. _ACEOF
  13354. if ac_fn_cxx_try_run "$LINENO"; then :
  13355. else
  13356. ac_cv_header_stdc=no
  13357. fi
  13358. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13359. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13360. fi
  13361. fi
  13362. fi
  13363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13364. $as_echo "$ac_cv_header_stdc" >&6; }
  13365. if test $ac_cv_header_stdc = yes; then
  13366. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13367. fi
  13368. for ac_header in fcntl.h inttypes.h limits.h stdlib.h unistd.h
  13369. do :
  13370. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13371. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13372. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13373. cat >>confdefs.h <<_ACEOF
  13374. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13375. _ACEOF
  13376. fi
  13377. done
  13378. # Checks for library functions.
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  13380. $as_echo_n "checking for working memcmp... " >&6; }
  13381. if ${ac_cv_func_memcmp_working+:} false; then :
  13382. $as_echo_n "(cached) " >&6
  13383. else
  13384. if test "$cross_compiling" = yes; then :
  13385. ac_cv_func_memcmp_working=no
  13386. else
  13387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13388. /* end confdefs.h. */
  13389. $ac_includes_default
  13390. int
  13391. main ()
  13392. {
  13393. /* Some versions of memcmp are not 8-bit clean. */
  13394. char c0 = '\100', c1 = '\200', c2 = '\201';
  13395. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  13396. return 1;
  13397. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  13398. or more and with at least one buffer not starting on a 4-byte boundary.
  13399. William Lewis provided this test program. */
  13400. {
  13401. char foo[21];
  13402. char bar[21];
  13403. int i;
  13404. for (i = 0; i < 4; i++)
  13405. {
  13406. char *a = foo + i;
  13407. char *b = bar + i;
  13408. strcpy (a, "--------01111111");
  13409. strcpy (b, "--------10000000");
  13410. if (memcmp (a, b, 16) >= 0)
  13411. return 1;
  13412. }
  13413. return 0;
  13414. }
  13415. ;
  13416. return 0;
  13417. }
  13418. _ACEOF
  13419. if ac_fn_cxx_try_run "$LINENO"; then :
  13420. ac_cv_func_memcmp_working=yes
  13421. else
  13422. ac_cv_func_memcmp_working=no
  13423. fi
  13424. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13425. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13426. fi
  13427. fi
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  13429. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  13430. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  13431. *" memcmp.$ac_objext "* ) ;;
  13432. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  13433. ;;
  13434. esac
  13435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  13436. $as_echo_n "checking for working strtod... " >&6; }
  13437. if ${ac_cv_func_strtod+:} false; then :
  13438. $as_echo_n "(cached) " >&6
  13439. else
  13440. if test "$cross_compiling" = yes; then :
  13441. ac_cv_func_strtod=no
  13442. else
  13443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13444. /* end confdefs.h. */
  13445. $ac_includes_default
  13446. #ifndef strtod
  13447. double strtod ();
  13448. #endif
  13449. int
  13450. main()
  13451. {
  13452. {
  13453. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  13454. char *string = " +69";
  13455. char *term;
  13456. double value;
  13457. value = strtod (string, &term);
  13458. if (value != 69 || term != (string + 4))
  13459. return 1;
  13460. }
  13461. {
  13462. /* Under Solaris 2.4, strtod returns the wrong value for the
  13463. terminating character under some conditions. */
  13464. char *string = "NaN";
  13465. char *term;
  13466. strtod (string, &term);
  13467. if (term != string && *(term - 1) == 0)
  13468. return 1;
  13469. }
  13470. return 0;
  13471. }
  13472. _ACEOF
  13473. if ac_fn_cxx_try_run "$LINENO"; then :
  13474. ac_cv_func_strtod=yes
  13475. else
  13476. ac_cv_func_strtod=no
  13477. fi
  13478. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13479. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13480. fi
  13481. fi
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  13483. $as_echo "$ac_cv_func_strtod" >&6; }
  13484. if test $ac_cv_func_strtod = no; then
  13485. case " $LIBOBJS " in
  13486. *" strtod.$ac_objext "* ) ;;
  13487. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  13488. ;;
  13489. esac
  13490. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  13491. if test "x$ac_cv_func_pow" = xyes; then :
  13492. fi
  13493. if test $ac_cv_func_pow = no; then
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  13495. $as_echo_n "checking for pow in -lm... " >&6; }
  13496. if ${ac_cv_lib_m_pow+:} false; then :
  13497. $as_echo_n "(cached) " >&6
  13498. else
  13499. ac_check_lib_save_LIBS=$LIBS
  13500. LIBS="-lm $LIBS"
  13501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13502. /* end confdefs.h. */
  13503. /* Override any GCC internal prototype to avoid an error.
  13504. Use char because int might match the return type of a GCC
  13505. builtin and then its argument prototype would still apply. */
  13506. #ifdef __cplusplus
  13507. extern "C"
  13508. #endif
  13509. char pow ();
  13510. int
  13511. main ()
  13512. {
  13513. return pow ();
  13514. ;
  13515. return 0;
  13516. }
  13517. _ACEOF
  13518. if ac_fn_cxx_try_link "$LINENO"; then :
  13519. ac_cv_lib_m_pow=yes
  13520. else
  13521. ac_cv_lib_m_pow=no
  13522. fi
  13523. rm -f core conftest.err conftest.$ac_objext \
  13524. conftest$ac_exeext conftest.$ac_ext
  13525. LIBS=$ac_check_lib_save_LIBS
  13526. fi
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  13528. $as_echo "$ac_cv_lib_m_pow" >&6; }
  13529. if test "x$ac_cv_lib_m_pow" = xyes; then :
  13530. POW_LIB=-lm
  13531. else
  13532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  13533. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  13534. fi
  13535. fi
  13536. fi
  13537. for ac_func in ftruncate memset mkdir strchr strerror strtol
  13538. do :
  13539. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13540. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13541. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13542. cat >>confdefs.h <<_ACEOF
  13543. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13544. _ACEOF
  13545. fi
  13546. done
  13547. # Check for zlib.
  13548. HAVE_ZLIB=0
  13549. if test "$with_zlib" != no; then :
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib version" >&5
  13551. $as_echo_n "checking zlib version... " >&6; }
  13552. # First check the zlib header version.
  13553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13554. /* end confdefs.h. */
  13555. #include <zlib.h>
  13556. #if !defined(ZLIB_VERNUM) || (ZLIB_VERNUM < 0x1204)
  13557. # error zlib version too old
  13558. #endif
  13559. int
  13560. main ()
  13561. {
  13562. ;
  13563. return 0;
  13564. }
  13565. _ACEOF
  13566. if ac_fn_cxx_try_compile "$LINENO"; then :
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (1.2.0.4 or later)" >&5
  13568. $as_echo "ok (1.2.0.4 or later)" >&6; }
  13569. # Also need to add -lz to the linker flags and make sure this succeeds.
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
  13571. $as_echo_n "checking for library containing zlibVersion... " >&6; }
  13572. if ${ac_cv_search_zlibVersion+:} false; then :
  13573. $as_echo_n "(cached) " >&6
  13574. else
  13575. ac_func_search_save_LIBS=$LIBS
  13576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13577. /* end confdefs.h. */
  13578. /* Override any GCC internal prototype to avoid an error.
  13579. Use char because int might match the return type of a GCC
  13580. builtin and then its argument prototype would still apply. */
  13581. #ifdef __cplusplus
  13582. extern "C"
  13583. #endif
  13584. char zlibVersion ();
  13585. int
  13586. main ()
  13587. {
  13588. return zlibVersion ();
  13589. ;
  13590. return 0;
  13591. }
  13592. _ACEOF
  13593. for ac_lib in '' z; do
  13594. if test -z "$ac_lib"; then
  13595. ac_res="none required"
  13596. else
  13597. ac_res=-l$ac_lib
  13598. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13599. fi
  13600. if ac_fn_cxx_try_link "$LINENO"; then :
  13601. ac_cv_search_zlibVersion=$ac_res
  13602. fi
  13603. rm -f core conftest.err conftest.$ac_objext \
  13604. conftest$ac_exeext
  13605. if ${ac_cv_search_zlibVersion+:} false; then :
  13606. break
  13607. fi
  13608. done
  13609. if ${ac_cv_search_zlibVersion+:} false; then :
  13610. else
  13611. ac_cv_search_zlibVersion=no
  13612. fi
  13613. rm conftest.$ac_ext
  13614. LIBS=$ac_func_search_save_LIBS
  13615. fi
  13616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
  13617. $as_echo "$ac_cv_search_zlibVersion" >&6; }
  13618. ac_res=$ac_cv_search_zlibVersion
  13619. if test "$ac_res" != no; then :
  13620. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13621. $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
  13622. HAVE_ZLIB=1
  13623. else
  13624. if test "$with_zlib" != check; then :
  13625. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13626. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13627. as_fn_error $? "--with-zlib was given, but no working zlib library was found
  13628. See \`config.log' for more details" "$LINENO" 5; }
  13629. fi
  13630. fi
  13631. else
  13632. if test "$with_zlib" = check; then :
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers missing or too old (requires 1.2.0.4)" >&5
  13634. $as_echo "headers missing or too old (requires 1.2.0.4)" >&6; }
  13635. else
  13636. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13637. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13638. as_fn_error $? "--with-zlib was given, but zlib headers were not present or were too old (requires 1.2.0.4)
  13639. See \`config.log' for more details" "$LINENO" 5; }
  13640. fi
  13641. fi
  13642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13643. fi
  13644. if test $HAVE_ZLIB = 1; then
  13645. HAVE_ZLIB_TRUE=
  13646. HAVE_ZLIB_FALSE='#'
  13647. else
  13648. HAVE_ZLIB_TRUE='#'
  13649. HAVE_ZLIB_FALSE=
  13650. fi
  13651. if test "$with_protoc" != "no"; then :
  13652. PROTOC=$with_protoc
  13653. if test "$with_protoc" = "yes"; then :
  13654. # No argument given. Use system protoc.
  13655. PROTOC=protoc
  13656. fi
  13657. if echo "$PROTOC" | grep -q '^[^/].*/'; then :
  13658. # Does not start with a slash, but contains a slash. So, it's a relative
  13659. # path (as opposed to an absolute path or an executable in $PATH).
  13660. # Since it will actually be executed from the src directory, prefix with
  13661. # the current directory. We also insert $ac_top_build_prefix in case this
  13662. # is a nested package and --with-protoc was actually given on the outer
  13663. # package's configure script.
  13664. PROTOC=`pwd`/${ac_top_build_prefix}$PROTOC
  13665. fi
  13666. fi
  13667. if test "$with_protoc" != "no"; then
  13668. USE_EXTERNAL_PROTOC_TRUE=
  13669. USE_EXTERNAL_PROTOC_FALSE='#'
  13670. else
  13671. USE_EXTERNAL_PROTOC_TRUE='#'
  13672. USE_EXTERNAL_PROTOC_FALSE=
  13673. fi
  13674. ac_ext=c
  13675. ac_cpp='$CPP $CPPFLAGS'
  13676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13679. acx_pthread_ok=no
  13680. # We used to check for pthread.h first, but this fails if pthread.h
  13681. # requires special compiler flags (e.g. on True64 or Sequent).
  13682. # It gets checked for in the link test anyway.
  13683. # First of all, check if the user has set any of the PTHREAD_LIBS,
  13684. # etcetera environment variables, and if threads linking works using
  13685. # them:
  13686. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  13687. save_CFLAGS="$CFLAGS"
  13688. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13689. save_LIBS="$LIBS"
  13690. LIBS="$PTHREAD_LIBS $LIBS"
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  13692. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  13693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13694. /* end confdefs.h. */
  13695. /* Override any GCC internal prototype to avoid an error.
  13696. Use char because int might match the return type of a GCC
  13697. builtin and then its argument prototype would still apply. */
  13698. #ifdef __cplusplus
  13699. extern "C"
  13700. #endif
  13701. char pthread_join ();
  13702. int
  13703. main ()
  13704. {
  13705. return pthread_join ();
  13706. ;
  13707. return 0;
  13708. }
  13709. _ACEOF
  13710. if ac_fn_c_try_link "$LINENO"; then :
  13711. acx_pthread_ok=yes
  13712. fi
  13713. rm -f core conftest.err conftest.$ac_objext \
  13714. conftest$ac_exeext conftest.$ac_ext
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  13716. $as_echo "$acx_pthread_ok" >&6; }
  13717. if test x"$acx_pthread_ok" = xno; then
  13718. PTHREAD_LIBS=""
  13719. PTHREAD_CFLAGS=""
  13720. fi
  13721. LIBS="$save_LIBS"
  13722. CFLAGS="$save_CFLAGS"
  13723. fi
  13724. # We must check for the threads library under a number of different
  13725. # names; the ordering is very important because some systems
  13726. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  13727. # libraries is broken (non-POSIX).
  13728. # Create a list of thread flags to try. Items starting with a "-" are
  13729. # C compiler flags, and other items are library names, except for "none"
  13730. # which indicates that we try without any flags at all, and "pthread-config"
  13731. # which is a program returning the flags for the Pth emulation library.
  13732. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  13733. # The ordering *is* (sometimes) important. Some notes on the
  13734. # individual items follow:
  13735. # pthreads: AIX (must check this before -lpthread)
  13736. # none: in case threads are in libc; should be tried before -Kthread and
  13737. # other compiler flags to prevent continual compiler warnings
  13738. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  13739. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  13740. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  13741. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  13742. # -pthreads: Solaris/gcc
  13743. # -mthreads: Mingw32/gcc, Lynx/gcc
  13744. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  13745. # doesn't hurt to check since this sometimes defines pthreads too;
  13746. # also defines -D_REENTRANT)
  13747. # ... -mt is also the pthreads flag for HP/aCC
  13748. # pthread: Linux, etcetera
  13749. # --thread-safe: KAI C++
  13750. # pthread-config: use pthread-config program (for GNU Pth library)
  13751. case "${host_cpu}-${host_os}" in
  13752. *solaris*)
  13753. # On Solaris (at least, for some versions), libc contains stubbed
  13754. # (non-functional) versions of the pthreads routines, so link-based
  13755. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  13756. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  13757. # a function called by this macro, so we could check for that, but
  13758. # who knows whether they'll stub that too in a future libc.) So,
  13759. # we'll just look for -pthreads and -lpthread first:
  13760. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  13761. ;;
  13762. esac
  13763. if test x"$acx_pthread_ok" = xno; then
  13764. for flag in $acx_pthread_flags; do
  13765. case $flag in
  13766. none)
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  13768. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  13769. ;;
  13770. -*)
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  13772. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  13773. PTHREAD_CFLAGS="$flag"
  13774. ;;
  13775. pthread-config)
  13776. # Extract the first word of "pthread-config", so it can be a program name with args.
  13777. set dummy pthread-config; ac_word=$2
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13779. $as_echo_n "checking for $ac_word... " >&6; }
  13780. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  13781. $as_echo_n "(cached) " >&6
  13782. else
  13783. if test -n "$acx_pthread_config"; then
  13784. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  13785. else
  13786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13787. for as_dir in $PATH
  13788. do
  13789. IFS=$as_save_IFS
  13790. test -z "$as_dir" && as_dir=.
  13791. for ac_exec_ext in '' $ac_executable_extensions; do
  13792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13793. ac_cv_prog_acx_pthread_config="yes"
  13794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13795. break 2
  13796. fi
  13797. done
  13798. done
  13799. IFS=$as_save_IFS
  13800. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  13801. fi
  13802. fi
  13803. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  13804. if test -n "$acx_pthread_config"; then
  13805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  13806. $as_echo "$acx_pthread_config" >&6; }
  13807. else
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13809. $as_echo "no" >&6; }
  13810. fi
  13811. if test x"$acx_pthread_config" = xno; then continue; fi
  13812. PTHREAD_CFLAGS="`pthread-config --cflags`"
  13813. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  13814. ;;
  13815. *)
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  13817. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  13818. PTHREAD_LIBS="-l$flag"
  13819. ;;
  13820. esac
  13821. save_LIBS="$LIBS"
  13822. save_CFLAGS="$CFLAGS"
  13823. LIBS="$PTHREAD_LIBS $LIBS"
  13824. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13825. # Check for various functions. We must include pthread.h,
  13826. # since some functions may be macros. (On the Sequent, we
  13827. # need a special flag -Kthread to make this header compile.)
  13828. # We check for pthread_join because it is in -lpthread on IRIX
  13829. # while pthread_create is in libc. We check for pthread_attr_init
  13830. # due to DEC craziness with -lpthreads. We check for
  13831. # pthread_cleanup_push because it is one of the few pthread
  13832. # functions on Solaris that doesn't have a non-functional libc stub.
  13833. # We try pthread_create on general principles.
  13834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13835. /* end confdefs.h. */
  13836. #include <pthread.h>
  13837. int
  13838. main ()
  13839. {
  13840. pthread_t th; pthread_join(th, 0);
  13841. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  13842. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  13843. ;
  13844. return 0;
  13845. }
  13846. _ACEOF
  13847. if ac_fn_c_try_link "$LINENO"; then :
  13848. acx_pthread_ok=yes
  13849. fi
  13850. rm -f core conftest.err conftest.$ac_objext \
  13851. conftest$ac_exeext conftest.$ac_ext
  13852. LIBS="$save_LIBS"
  13853. CFLAGS="$save_CFLAGS"
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  13855. $as_echo "$acx_pthread_ok" >&6; }
  13856. if test "x$acx_pthread_ok" = xyes; then
  13857. break;
  13858. fi
  13859. PTHREAD_LIBS=""
  13860. PTHREAD_CFLAGS=""
  13861. done
  13862. fi
  13863. # Various other checks:
  13864. if test "x$acx_pthread_ok" = xyes; then
  13865. save_LIBS="$LIBS"
  13866. LIBS="$PTHREAD_LIBS $LIBS"
  13867. save_CFLAGS="$CFLAGS"
  13868. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13869. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  13871. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  13872. attr_name=unknown
  13873. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  13874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13875. /* end confdefs.h. */
  13876. #include <pthread.h>
  13877. int
  13878. main ()
  13879. {
  13880. int attr=$attr; return attr;
  13881. ;
  13882. return 0;
  13883. }
  13884. _ACEOF
  13885. if ac_fn_c_try_link "$LINENO"; then :
  13886. attr_name=$attr; break
  13887. fi
  13888. rm -f core conftest.err conftest.$ac_objext \
  13889. conftest$ac_exeext conftest.$ac_ext
  13890. done
  13891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  13892. $as_echo "$attr_name" >&6; }
  13893. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  13894. cat >>confdefs.h <<_ACEOF
  13895. #define PTHREAD_CREATE_JOINABLE $attr_name
  13896. _ACEOF
  13897. fi
  13898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  13899. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  13900. flag=no
  13901. case "${host_cpu}-${host_os}" in
  13902. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  13903. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  13904. esac
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  13906. $as_echo "${flag}" >&6; }
  13907. if test "x$flag" != xno; then
  13908. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  13909. fi
  13910. LIBS="$save_LIBS"
  13911. CFLAGS="$save_CFLAGS"
  13912. # More AIX lossage: must compile with xlc_r or cc_r
  13913. if test x"$GCC" != xyes; then
  13914. for ac_prog in xlc_r cc_r
  13915. do
  13916. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13917. set dummy $ac_prog; ac_word=$2
  13918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13919. $as_echo_n "checking for $ac_word... " >&6; }
  13920. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  13921. $as_echo_n "(cached) " >&6
  13922. else
  13923. if test -n "$PTHREAD_CC"; then
  13924. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  13925. else
  13926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13927. for as_dir in $PATH
  13928. do
  13929. IFS=$as_save_IFS
  13930. test -z "$as_dir" && as_dir=.
  13931. for ac_exec_ext in '' $ac_executable_extensions; do
  13932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13933. ac_cv_prog_PTHREAD_CC="$ac_prog"
  13934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13935. break 2
  13936. fi
  13937. done
  13938. done
  13939. IFS=$as_save_IFS
  13940. fi
  13941. fi
  13942. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  13943. if test -n "$PTHREAD_CC"; then
  13944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  13945. $as_echo "$PTHREAD_CC" >&6; }
  13946. else
  13947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13948. $as_echo "no" >&6; }
  13949. fi
  13950. test -n "$PTHREAD_CC" && break
  13951. done
  13952. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  13953. else
  13954. PTHREAD_CC=$CC
  13955. fi
  13956. # The next part tries to detect GCC inconsistency with -shared on some
  13957. # architectures and systems. The problem is that in certain
  13958. # configurations, when -shared is specified, GCC "forgets" to
  13959. # internally use various flags which are still necessary.
  13960. #
  13961. # Prepare the flags
  13962. #
  13963. save_CFLAGS="$CFLAGS"
  13964. save_LIBS="$LIBS"
  13965. save_CC="$CC"
  13966. # Try with the flags determined by the earlier checks.
  13967. #
  13968. # -Wl,-z,defs forces link-time symbol resolution, so that the
  13969. # linking checks with -shared actually have any value
  13970. #
  13971. # FIXME: -fPIC is required for -shared on many architectures,
  13972. # so we specify it here, but the right way would probably be to
  13973. # properly detect whether it is actually required.
  13974. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
  13975. LIBS="$PTHREAD_LIBS $LIBS"
  13976. CC="$PTHREAD_CC"
  13977. # In order not to create several levels of indentation, we test
  13978. # the value of "$done" until we find the cure or run out of ideas.
  13979. done="no"
  13980. # First, make sure the CFLAGS we added are actually accepted by our
  13981. # compiler. If not (and OS X's ld, for instance, does not accept -z),
  13982. # then we can't do this test.
  13983. if test x"$done" = xno; then
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
  13985. $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
  13986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13987. /* end confdefs.h. */
  13988. int
  13989. main ()
  13990. {
  13991. ;
  13992. return 0;
  13993. }
  13994. _ACEOF
  13995. if ac_fn_c_try_link "$LINENO"; then :
  13996. else
  13997. done=yes
  13998. fi
  13999. rm -f core conftest.err conftest.$ac_objext \
  14000. conftest$ac_exeext conftest.$ac_ext
  14001. if test "x$done" = xyes ; then
  14002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14003. $as_echo "no" >&6; }
  14004. else
  14005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14006. $as_echo "yes" >&6; }
  14007. fi
  14008. fi
  14009. if test x"$done" = xno; then
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
  14011. $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
  14012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14013. /* end confdefs.h. */
  14014. #include <pthread.h>
  14015. int
  14016. main ()
  14017. {
  14018. pthread_t th; pthread_join(th, 0);
  14019. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14020. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14021. ;
  14022. return 0;
  14023. }
  14024. _ACEOF
  14025. if ac_fn_c_try_link "$LINENO"; then :
  14026. done=yes
  14027. fi
  14028. rm -f core conftest.err conftest.$ac_objext \
  14029. conftest$ac_exeext conftest.$ac_ext
  14030. if test "x$done" = xyes; then
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14032. $as_echo "yes" >&6; }
  14033. else
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14035. $as_echo "no" >&6; }
  14036. fi
  14037. fi
  14038. #
  14039. # Linux gcc on some architectures such as mips/mipsel forgets
  14040. # about -lpthread
  14041. #
  14042. if test x"$done" = xno; then
  14043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
  14044. $as_echo_n "checking whether -lpthread fixes that... " >&6; }
  14045. LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
  14046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14047. /* end confdefs.h. */
  14048. #include <pthread.h>
  14049. int
  14050. main ()
  14051. {
  14052. pthread_t th; pthread_join(th, 0);
  14053. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14054. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14055. ;
  14056. return 0;
  14057. }
  14058. _ACEOF
  14059. if ac_fn_c_try_link "$LINENO"; then :
  14060. done=yes
  14061. fi
  14062. rm -f core conftest.err conftest.$ac_objext \
  14063. conftest$ac_exeext conftest.$ac_ext
  14064. if test "x$done" = xyes; then
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14066. $as_echo "yes" >&6; }
  14067. PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
  14068. else
  14069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14070. $as_echo "no" >&6; }
  14071. fi
  14072. fi
  14073. #
  14074. # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
  14075. #
  14076. if test x"$done" = xno; then
  14077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
  14078. $as_echo_n "checking whether -lc_r fixes that... " >&6; }
  14079. LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
  14080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14081. /* end confdefs.h. */
  14082. #include <pthread.h>
  14083. int
  14084. main ()
  14085. {
  14086. pthread_t th; pthread_join(th, 0);
  14087. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14088. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14089. ;
  14090. return 0;
  14091. }
  14092. _ACEOF
  14093. if ac_fn_c_try_link "$LINENO"; then :
  14094. done=yes
  14095. fi
  14096. rm -f core conftest.err conftest.$ac_objext \
  14097. conftest$ac_exeext conftest.$ac_ext
  14098. if test "x$done" = xyes; then
  14099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14100. $as_echo "yes" >&6; }
  14101. PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
  14102. else
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14104. $as_echo "no" >&6; }
  14105. fi
  14106. fi
  14107. if test x"$done" = xno; then
  14108. # OK, we have run out of ideas
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
  14110. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
  14111. # so it's not safe to assume that we may use pthreads
  14112. acx_pthread_ok=no
  14113. fi
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
  14115. $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
  14116. CFLAGS="-nostdlib $CFLAGS"
  14117. # we need c with nostdlib
  14118. LIBS="$LIBS -lc"
  14119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14120. /* end confdefs.h. */
  14121. #include <pthread.h>
  14122. int
  14123. main ()
  14124. {
  14125. pthread_t th; pthread_join(th, 0);
  14126. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14127. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14128. ;
  14129. return 0;
  14130. }
  14131. _ACEOF
  14132. if ac_fn_c_try_link "$LINENO"; then :
  14133. done=yes
  14134. else
  14135. done=no
  14136. fi
  14137. rm -f core conftest.err conftest.$ac_objext \
  14138. conftest$ac_exeext conftest.$ac_ext
  14139. if test "x$done" = xyes; then
  14140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14141. $as_echo "yes" >&6; }
  14142. else
  14143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14144. $as_echo "no" >&6; }
  14145. fi
  14146. if test x"$done" = xno; then
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
  14148. $as_echo_n "checking whether -lpthread saves the day... " >&6; }
  14149. LIBS="-lpthread $LIBS"
  14150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14151. /* end confdefs.h. */
  14152. #include <pthread.h>
  14153. int
  14154. main ()
  14155. {
  14156. pthread_t th; pthread_join(th, 0);
  14157. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14158. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14159. ;
  14160. return 0;
  14161. }
  14162. _ACEOF
  14163. if ac_fn_c_try_link "$LINENO"; then :
  14164. done=yes
  14165. else
  14166. done=no
  14167. fi
  14168. rm -f core conftest.err conftest.$ac_objext \
  14169. conftest$ac_exeext conftest.$ac_ext
  14170. if test "x$done" = xyes; then
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14172. $as_echo "yes" >&6; }
  14173. PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
  14174. else
  14175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14176. $as_echo "no" >&6; }
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
  14178. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
  14179. fi
  14180. fi
  14181. CFLAGS="$save_CFLAGS"
  14182. LIBS="$save_LIBS"
  14183. CC="$save_CC"
  14184. else
  14185. PTHREAD_CC="$CC"
  14186. fi
  14187. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  14188. if test x"$acx_pthread_ok" = xyes; then
  14189. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  14190. :
  14191. else
  14192. acx_pthread_ok=no
  14193. fi
  14194. ac_ext=cpp
  14195. ac_cpp='$CXXCPP $CPPFLAGS'
  14196. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14197. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14198. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the location of hash_map" >&5
  14200. $as_echo_n "checking the location of hash_map... " >&6; }
  14201. ac_ext=cpp
  14202. ac_cpp='$CXXCPP $CPPFLAGS'
  14203. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14204. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14205. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14206. ac_cv_cxx_hash_map=""
  14207. # First try unordered_map, but not on gcc's before 4.2 -- I've
  14208. # seen unexplainable unordered_map bugs with -O2 on older gcc's.
  14209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14210. /* end confdefs.h. */
  14211. #if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))
  14212. # error GCC too old for unordered_map
  14213. #endif
  14214. int
  14215. main ()
  14216. {
  14217. /* no program body necessary */
  14218. ;
  14219. return 0;
  14220. }
  14221. _ACEOF
  14222. if ac_fn_cxx_try_compile "$LINENO"; then :
  14223. stl_hash_old_gcc=no
  14224. else
  14225. stl_hash_old_gcc=yes
  14226. fi
  14227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14228. for location in unordered_map tr1/unordered_map; do
  14229. for namespace in std std::tr1; do
  14230. if test -z "$ac_cv_cxx_hash_map" -a "$stl_hash_old_gcc" != yes; then
  14231. # Some older gcc's have a buggy tr1, so test a bit of code.
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. #include <$location>
  14235. int
  14236. main ()
  14237. {
  14238. const ${namespace}::unordered_map<int, int> t;
  14239. return t.find(5) == t.end();
  14240. ;
  14241. return 0;
  14242. }
  14243. _ACEOF
  14244. if ac_fn_cxx_try_compile "$LINENO"; then :
  14245. ac_cv_cxx_hash_map="<$location>";
  14246. ac_cv_cxx_hash_namespace="$namespace";
  14247. ac_cv_cxx_hash_map_class="unordered_map";
  14248. fi
  14249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14250. fi
  14251. done
  14252. done
  14253. # Now try hash_map
  14254. for location in ext/hash_map hash_map; do
  14255. for namespace in __gnu_cxx "" std stdext; do
  14256. if test -z "$ac_cv_cxx_hash_map"; then
  14257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14258. /* end confdefs.h. */
  14259. #include <$location>
  14260. int
  14261. main ()
  14262. {
  14263. ${namespace}::hash_map<int, int> t
  14264. ;
  14265. return 0;
  14266. }
  14267. _ACEOF
  14268. if ac_fn_cxx_try_compile "$LINENO"; then :
  14269. ac_cv_cxx_hash_map="<$location>";
  14270. ac_cv_cxx_hash_namespace="$namespace";
  14271. ac_cv_cxx_hash_map_class="hash_map";
  14272. fi
  14273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14274. fi
  14275. done
  14276. done
  14277. ac_cv_cxx_hash_set=`echo "$ac_cv_cxx_hash_map" | sed s/map/set/`;
  14278. ac_cv_cxx_hash_set_class=`echo "$ac_cv_cxx_hash_map_class" | sed s/map/set/`;
  14279. if test -n "$ac_cv_cxx_hash_map"; then
  14280. $as_echo "#define HAVE_HASH_MAP 1" >>confdefs.h
  14281. $as_echo "#define HAVE_HASH_SET 1" >>confdefs.h
  14282. cat >>confdefs.h <<_ACEOF
  14283. #define HASH_MAP_H $ac_cv_cxx_hash_map
  14284. _ACEOF
  14285. cat >>confdefs.h <<_ACEOF
  14286. #define HASH_SET_H $ac_cv_cxx_hash_set
  14287. _ACEOF
  14288. cat >>confdefs.h <<_ACEOF
  14289. #define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
  14290. _ACEOF
  14291. cat >>confdefs.h <<_ACEOF
  14292. #define HASH_MAP_CLASS $ac_cv_cxx_hash_map_class
  14293. _ACEOF
  14294. cat >>confdefs.h <<_ACEOF
  14295. #define HASH_SET_CLASS $ac_cv_cxx_hash_set_class
  14296. _ACEOF
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_hash_map" >&5
  14298. $as_echo "$ac_cv_cxx_hash_map" >&6; }
  14299. else
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  14301. $as_echo "" >&6; }
  14302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find an STL hash_map" >&5
  14303. $as_echo "$as_me: WARNING: could not find an STL hash_map" >&2;}
  14304. fi
  14305. # HACK: Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS,
  14306. # since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest
  14307. # too.
  14308. export CFLAGS
  14309. export CXXFLAGS
  14310. subdirs="$subdirs gtest"
  14311. ac_config_files="$ac_config_files Makefile src/Makefile protobuf.pc protobuf-lite.pc"
  14312. cat >confcache <<\_ACEOF
  14313. # This file is a shell script that caches the results of configure
  14314. # tests run on this system so they can be shared between configure
  14315. # scripts and configure runs, see configure's option --config-cache.
  14316. # It is not useful on other systems. If it contains results you don't
  14317. # want to keep, you may remove or edit it.
  14318. #
  14319. # config.status only pays attention to the cache file if you give it
  14320. # the --recheck option to rerun configure.
  14321. #
  14322. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14323. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14324. # following values.
  14325. _ACEOF
  14326. # The following way of writing the cache mishandles newlines in values,
  14327. # but we know of no workaround that is simple, portable, and efficient.
  14328. # So, we kill variables containing newlines.
  14329. # Ultrix sh set writes to stderr and can't be redirected directly,
  14330. # and sets the high bit in the cache file unless we assign to the vars.
  14331. (
  14332. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14333. eval ac_val=\$$ac_var
  14334. case $ac_val in #(
  14335. *${as_nl}*)
  14336. case $ac_var in #(
  14337. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14338. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14339. esac
  14340. case $ac_var in #(
  14341. _ | IFS | as_nl) ;; #(
  14342. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14343. *) { eval $ac_var=; unset $ac_var;} ;;
  14344. esac ;;
  14345. esac
  14346. done
  14347. (set) 2>&1 |
  14348. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14349. *${as_nl}ac_space=\ *)
  14350. # `set' does not quote correctly, so add quotes: double-quote
  14351. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14352. sed -n \
  14353. "s/'/'\\\\''/g;
  14354. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14355. ;; #(
  14356. *)
  14357. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14358. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14359. ;;
  14360. esac |
  14361. sort
  14362. ) |
  14363. sed '
  14364. /^ac_cv_env_/b end
  14365. t clear
  14366. :clear
  14367. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14368. t end
  14369. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14370. :end' >>confcache
  14371. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14372. if test -w "$cache_file"; then
  14373. if test "x$cache_file" != "x/dev/null"; then
  14374. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14375. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14376. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14377. cat confcache >"$cache_file"
  14378. else
  14379. case $cache_file in #(
  14380. */* | ?:*)
  14381. mv -f confcache "$cache_file"$$ &&
  14382. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14383. *)
  14384. mv -f confcache "$cache_file" ;;
  14385. esac
  14386. fi
  14387. fi
  14388. else
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14390. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14391. fi
  14392. fi
  14393. rm -f confcache
  14394. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14395. # Let make expand exec_prefix.
  14396. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14397. DEFS=-DHAVE_CONFIG_H
  14398. ac_libobjs=
  14399. ac_ltlibobjs=
  14400. U=
  14401. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14402. # 1. Remove the extension, and $U if already installed.
  14403. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14404. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14405. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14406. # will be set to the directory where LIBOBJS objects are built.
  14407. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14408. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14409. done
  14410. LIBOBJS=$ac_libobjs
  14411. LTLIBOBJS=$ac_ltlibobjs
  14412. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14413. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14414. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14415. fi
  14416. if test -n "$EXEEXT"; then
  14417. am__EXEEXT_TRUE=
  14418. am__EXEEXT_FALSE='#'
  14419. else
  14420. am__EXEEXT_TRUE='#'
  14421. am__EXEEXT_FALSE=
  14422. fi
  14423. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14424. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14425. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14426. fi
  14427. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14428. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14429. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14430. fi
  14431. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14432. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14433. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14434. fi
  14435. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  14436. as_fn_error $? "conditional \"GCC\" was never defined.
  14437. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14438. fi
  14439. if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
  14440. as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
  14441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14442. fi
  14443. if test -z "${USE_EXTERNAL_PROTOC_TRUE}" && test -z "${USE_EXTERNAL_PROTOC_FALSE}"; then
  14444. as_fn_error $? "conditional \"USE_EXTERNAL_PROTOC\" was never defined.
  14445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14446. fi
  14447. : "${CONFIG_STATUS=./config.status}"
  14448. ac_write_fail=0
  14449. ac_clean_files_save=$ac_clean_files
  14450. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14451. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14452. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14453. as_write_fail=0
  14454. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14455. #! $SHELL
  14456. # Generated by $as_me.
  14457. # Run this file to recreate the current configuration.
  14458. # Compiler output produced by configure, useful for debugging
  14459. # configure, is in config.log if it exists.
  14460. debug=false
  14461. ac_cs_recheck=false
  14462. ac_cs_silent=false
  14463. SHELL=\${CONFIG_SHELL-$SHELL}
  14464. export SHELL
  14465. _ASEOF
  14466. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14467. ## -------------------- ##
  14468. ## M4sh Initialization. ##
  14469. ## -------------------- ##
  14470. # Be more Bourne compatible
  14471. DUALCASE=1; export DUALCASE # for MKS sh
  14472. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14473. emulate sh
  14474. NULLCMD=:
  14475. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14476. # is contrary to our usage. Disable this feature.
  14477. alias -g '${1+"$@"}'='"$@"'
  14478. setopt NO_GLOB_SUBST
  14479. else
  14480. case `(set -o) 2>/dev/null` in #(
  14481. *posix*) :
  14482. set -o posix ;; #(
  14483. *) :
  14484. ;;
  14485. esac
  14486. fi
  14487. as_nl='
  14488. '
  14489. export as_nl
  14490. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14491. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14492. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14493. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14494. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14495. # but without wasting forks for bash or zsh.
  14496. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14497. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14498. as_echo='print -r --'
  14499. as_echo_n='print -rn --'
  14500. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14501. as_echo='printf %s\n'
  14502. as_echo_n='printf %s'
  14503. else
  14504. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14505. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14506. as_echo_n='/usr/ucb/echo -n'
  14507. else
  14508. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14509. as_echo_n_body='eval
  14510. arg=$1;
  14511. case $arg in #(
  14512. *"$as_nl"*)
  14513. expr "X$arg" : "X\\(.*\\)$as_nl";
  14514. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14515. esac;
  14516. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14517. '
  14518. export as_echo_n_body
  14519. as_echo_n='sh -c $as_echo_n_body as_echo'
  14520. fi
  14521. export as_echo_body
  14522. as_echo='sh -c $as_echo_body as_echo'
  14523. fi
  14524. # The user is always right.
  14525. if test "${PATH_SEPARATOR+set}" != set; then
  14526. PATH_SEPARATOR=:
  14527. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14528. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14529. PATH_SEPARATOR=';'
  14530. }
  14531. fi
  14532. # IFS
  14533. # We need space, tab and new line, in precisely that order. Quoting is
  14534. # there to prevent editors from complaining about space-tab.
  14535. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14536. # splitting by setting IFS to empty value.)
  14537. IFS=" "" $as_nl"
  14538. # Find who we are. Look in the path if we contain no directory separator.
  14539. as_myself=
  14540. case $0 in #((
  14541. *[\\/]* ) as_myself=$0 ;;
  14542. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14543. for as_dir in $PATH
  14544. do
  14545. IFS=$as_save_IFS
  14546. test -z "$as_dir" && as_dir=.
  14547. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14548. done
  14549. IFS=$as_save_IFS
  14550. ;;
  14551. esac
  14552. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14553. # in which case we are not to be found in the path.
  14554. if test "x$as_myself" = x; then
  14555. as_myself=$0
  14556. fi
  14557. if test ! -f "$as_myself"; then
  14558. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14559. exit 1
  14560. fi
  14561. # Unset variables that we do not need and which cause bugs (e.g. in
  14562. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14563. # suppresses any "Segmentation fault" message there. '((' could
  14564. # trigger a bug in pdksh 5.2.14.
  14565. for as_var in BASH_ENV ENV MAIL MAILPATH
  14566. do eval test x\${$as_var+set} = xset \
  14567. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14568. done
  14569. PS1='$ '
  14570. PS2='> '
  14571. PS4='+ '
  14572. # NLS nuisances.
  14573. LC_ALL=C
  14574. export LC_ALL
  14575. LANGUAGE=C
  14576. export LANGUAGE
  14577. # CDPATH.
  14578. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14579. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14580. # ----------------------------------------
  14581. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14582. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14583. # script with STATUS, using 1 if that was 0.
  14584. as_fn_error ()
  14585. {
  14586. as_status=$1; test $as_status -eq 0 && as_status=1
  14587. if test "$4"; then
  14588. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14589. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14590. fi
  14591. $as_echo "$as_me: error: $2" >&2
  14592. as_fn_exit $as_status
  14593. } # as_fn_error
  14594. # as_fn_set_status STATUS
  14595. # -----------------------
  14596. # Set $? to STATUS, without forking.
  14597. as_fn_set_status ()
  14598. {
  14599. return $1
  14600. } # as_fn_set_status
  14601. # as_fn_exit STATUS
  14602. # -----------------
  14603. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14604. as_fn_exit ()
  14605. {
  14606. set +e
  14607. as_fn_set_status $1
  14608. exit $1
  14609. } # as_fn_exit
  14610. # as_fn_unset VAR
  14611. # ---------------
  14612. # Portably unset VAR.
  14613. as_fn_unset ()
  14614. {
  14615. { eval $1=; unset $1;}
  14616. }
  14617. as_unset=as_fn_unset
  14618. # as_fn_append VAR VALUE
  14619. # ----------------------
  14620. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14621. # advantage of any shell optimizations that allow amortized linear growth over
  14622. # repeated appends, instead of the typical quadratic growth present in naive
  14623. # implementations.
  14624. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14625. eval 'as_fn_append ()
  14626. {
  14627. eval $1+=\$2
  14628. }'
  14629. else
  14630. as_fn_append ()
  14631. {
  14632. eval $1=\$$1\$2
  14633. }
  14634. fi # as_fn_append
  14635. # as_fn_arith ARG...
  14636. # ------------------
  14637. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14638. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14639. # must be portable across $(()) and expr.
  14640. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14641. eval 'as_fn_arith ()
  14642. {
  14643. as_val=$(( $* ))
  14644. }'
  14645. else
  14646. as_fn_arith ()
  14647. {
  14648. as_val=`expr "$@" || test $? -eq 1`
  14649. }
  14650. fi # as_fn_arith
  14651. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14652. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14653. as_expr=expr
  14654. else
  14655. as_expr=false
  14656. fi
  14657. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14658. as_basename=basename
  14659. else
  14660. as_basename=false
  14661. fi
  14662. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14663. as_dirname=dirname
  14664. else
  14665. as_dirname=false
  14666. fi
  14667. as_me=`$as_basename -- "$0" ||
  14668. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14669. X"$0" : 'X\(//\)$' \| \
  14670. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14671. $as_echo X/"$0" |
  14672. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14673. s//\1/
  14674. q
  14675. }
  14676. /^X\/\(\/\/\)$/{
  14677. s//\1/
  14678. q
  14679. }
  14680. /^X\/\(\/\).*/{
  14681. s//\1/
  14682. q
  14683. }
  14684. s/.*/./; q'`
  14685. # Avoid depending upon Character Ranges.
  14686. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14687. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14688. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14689. as_cr_digits='0123456789'
  14690. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14691. ECHO_C= ECHO_N= ECHO_T=
  14692. case `echo -n x` in #(((((
  14693. -n*)
  14694. case `echo 'xy\c'` in
  14695. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14696. xy) ECHO_C='\c';;
  14697. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14698. ECHO_T=' ';;
  14699. esac;;
  14700. *)
  14701. ECHO_N='-n';;
  14702. esac
  14703. rm -f conf$$ conf$$.exe conf$$.file
  14704. if test -d conf$$.dir; then
  14705. rm -f conf$$.dir/conf$$.file
  14706. else
  14707. rm -f conf$$.dir
  14708. mkdir conf$$.dir 2>/dev/null
  14709. fi
  14710. if (echo >conf$$.file) 2>/dev/null; then
  14711. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14712. as_ln_s='ln -s'
  14713. # ... but there are two gotchas:
  14714. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14715. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14716. # In both cases, we have to default to `cp -p'.
  14717. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14718. as_ln_s='cp -p'
  14719. elif ln conf$$.file conf$$ 2>/dev/null; then
  14720. as_ln_s=ln
  14721. else
  14722. as_ln_s='cp -p'
  14723. fi
  14724. else
  14725. as_ln_s='cp -p'
  14726. fi
  14727. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14728. rmdir conf$$.dir 2>/dev/null
  14729. # as_fn_mkdir_p
  14730. # -------------
  14731. # Create "$as_dir" as a directory, including parents if necessary.
  14732. as_fn_mkdir_p ()
  14733. {
  14734. case $as_dir in #(
  14735. -*) as_dir=./$as_dir;;
  14736. esac
  14737. test -d "$as_dir" || eval $as_mkdir_p || {
  14738. as_dirs=
  14739. while :; do
  14740. case $as_dir in #(
  14741. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14742. *) as_qdir=$as_dir;;
  14743. esac
  14744. as_dirs="'$as_qdir' $as_dirs"
  14745. as_dir=`$as_dirname -- "$as_dir" ||
  14746. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14747. X"$as_dir" : 'X\(//\)[^/]' \| \
  14748. X"$as_dir" : 'X\(//\)$' \| \
  14749. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14750. $as_echo X"$as_dir" |
  14751. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14752. s//\1/
  14753. q
  14754. }
  14755. /^X\(\/\/\)[^/].*/{
  14756. s//\1/
  14757. q
  14758. }
  14759. /^X\(\/\/\)$/{
  14760. s//\1/
  14761. q
  14762. }
  14763. /^X\(\/\).*/{
  14764. s//\1/
  14765. q
  14766. }
  14767. s/.*/./; q'`
  14768. test -d "$as_dir" && break
  14769. done
  14770. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14771. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14772. } # as_fn_mkdir_p
  14773. if mkdir -p . 2>/dev/null; then
  14774. as_mkdir_p='mkdir -p "$as_dir"'
  14775. else
  14776. test -d ./-p && rmdir ./-p
  14777. as_mkdir_p=false
  14778. fi
  14779. if test -x / >/dev/null 2>&1; then
  14780. as_test_x='test -x'
  14781. else
  14782. if ls -dL / >/dev/null 2>&1; then
  14783. as_ls_L_option=L
  14784. else
  14785. as_ls_L_option=
  14786. fi
  14787. as_test_x='
  14788. eval sh -c '\''
  14789. if test -d "$1"; then
  14790. test -d "$1/.";
  14791. else
  14792. case $1 in #(
  14793. -*)set "./$1";;
  14794. esac;
  14795. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14796. ???[sx]*):;;*)false;;esac;fi
  14797. '\'' sh
  14798. '
  14799. fi
  14800. as_executable_p=$as_test_x
  14801. # Sed expression to map a string onto a valid CPP name.
  14802. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14803. # Sed expression to map a string onto a valid variable name.
  14804. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14805. exec 6>&1
  14806. ## ----------------------------------- ##
  14807. ## Main body of $CONFIG_STATUS script. ##
  14808. ## ----------------------------------- ##
  14809. _ASEOF
  14810. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14812. # Save the log message, to keep $0 and so on meaningful, and to
  14813. # report actual input values of CONFIG_FILES etc. instead of their
  14814. # values after options handling.
  14815. ac_log="
  14816. This file was extended by Protocol Buffers $as_me 2.5.0, which was
  14817. generated by GNU Autoconf 2.68. Invocation command line was
  14818. CONFIG_FILES = $CONFIG_FILES
  14819. CONFIG_HEADERS = $CONFIG_HEADERS
  14820. CONFIG_LINKS = $CONFIG_LINKS
  14821. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14822. $ $0 $@
  14823. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14824. "
  14825. _ACEOF
  14826. case $ac_config_files in *"
  14827. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14828. esac
  14829. case $ac_config_headers in *"
  14830. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14831. esac
  14832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14833. # Files that config.status was made for.
  14834. config_files="$ac_config_files"
  14835. config_headers="$ac_config_headers"
  14836. config_commands="$ac_config_commands"
  14837. _ACEOF
  14838. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14839. ac_cs_usage="\
  14840. \`$as_me' instantiates files and other configuration actions
  14841. from templates according to the current configuration. Unless the files
  14842. and actions are specified as TAGs, all are instantiated by default.
  14843. Usage: $0 [OPTION]... [TAG]...
  14844. -h, --help print this help, then exit
  14845. -V, --version print version number and configuration settings, then exit
  14846. --config print configuration, then exit
  14847. -q, --quiet, --silent
  14848. do not print progress messages
  14849. -d, --debug don't remove temporary files
  14850. --recheck update $as_me by reconfiguring in the same conditions
  14851. --file=FILE[:TEMPLATE]
  14852. instantiate the configuration file FILE
  14853. --header=FILE[:TEMPLATE]
  14854. instantiate the configuration header FILE
  14855. Configuration files:
  14856. $config_files
  14857. Configuration headers:
  14858. $config_headers
  14859. Configuration commands:
  14860. $config_commands
  14861. Report bugs to <[email protected]>."
  14862. _ACEOF
  14863. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14864. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14865. ac_cs_version="\\
  14866. Protocol Buffers config.status 2.5.0
  14867. configured by $0, generated by GNU Autoconf 2.68,
  14868. with options \\"\$ac_cs_config\\"
  14869. Copyright (C) 2010 Free Software Foundation, Inc.
  14870. This config.status script is free software; the Free Software Foundation
  14871. gives unlimited permission to copy, distribute and modify it."
  14872. ac_pwd='$ac_pwd'
  14873. srcdir='$srcdir'
  14874. INSTALL='$INSTALL'
  14875. MKDIR_P='$MKDIR_P'
  14876. AWK='$AWK'
  14877. test -n "\$AWK" || AWK=awk
  14878. _ACEOF
  14879. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14880. # The default lists apply if the user does not specify any file.
  14881. ac_need_defaults=:
  14882. while test $# != 0
  14883. do
  14884. case $1 in
  14885. --*=?*)
  14886. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14887. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14888. ac_shift=:
  14889. ;;
  14890. --*=)
  14891. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14892. ac_optarg=
  14893. ac_shift=:
  14894. ;;
  14895. *)
  14896. ac_option=$1
  14897. ac_optarg=$2
  14898. ac_shift=shift
  14899. ;;
  14900. esac
  14901. case $ac_option in
  14902. # Handling of the options.
  14903. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14904. ac_cs_recheck=: ;;
  14905. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14906. $as_echo "$ac_cs_version"; exit ;;
  14907. --config | --confi | --conf | --con | --co | --c )
  14908. $as_echo "$ac_cs_config"; exit ;;
  14909. --debug | --debu | --deb | --de | --d | -d )
  14910. debug=: ;;
  14911. --file | --fil | --fi | --f )
  14912. $ac_shift
  14913. case $ac_optarg in
  14914. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14915. '') as_fn_error $? "missing file argument" ;;
  14916. esac
  14917. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14918. ac_need_defaults=false;;
  14919. --header | --heade | --head | --hea )
  14920. $ac_shift
  14921. case $ac_optarg in
  14922. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14923. esac
  14924. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14925. ac_need_defaults=false;;
  14926. --he | --h)
  14927. # Conflict between --help and --header
  14928. as_fn_error $? "ambiguous option: \`$1'
  14929. Try \`$0 --help' for more information.";;
  14930. --help | --hel | -h )
  14931. $as_echo "$ac_cs_usage"; exit ;;
  14932. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14933. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14934. ac_cs_silent=: ;;
  14935. # This is an error.
  14936. -*) as_fn_error $? "unrecognized option: \`$1'
  14937. Try \`$0 --help' for more information." ;;
  14938. *) as_fn_append ac_config_targets " $1"
  14939. ac_need_defaults=false ;;
  14940. esac
  14941. shift
  14942. done
  14943. ac_configure_extra_args=
  14944. if $ac_cs_silent; then
  14945. exec 6>/dev/null
  14946. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14947. fi
  14948. _ACEOF
  14949. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14950. if \$ac_cs_recheck; then
  14951. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14952. shift
  14953. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14954. CONFIG_SHELL='$SHELL'
  14955. export CONFIG_SHELL
  14956. exec "\$@"
  14957. fi
  14958. _ACEOF
  14959. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14960. exec 5>>config.log
  14961. {
  14962. echo
  14963. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14964. ## Running $as_me. ##
  14965. _ASBOX
  14966. $as_echo "$ac_log"
  14967. } >&5
  14968. _ACEOF
  14969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14970. #
  14971. # INIT-COMMANDS
  14972. #
  14973. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14974. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14975. # if CDPATH is set.
  14976. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14977. sed_quote_subst='$sed_quote_subst'
  14978. double_quote_subst='$double_quote_subst'
  14979. delay_variable_subst='$delay_variable_subst'
  14980. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14981. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14982. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14983. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14984. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14985. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14986. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14987. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14988. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14989. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14990. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14991. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14992. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14993. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14994. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14995. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14996. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14997. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14998. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14999. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15000. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15001. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15002. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15003. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15004. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15005. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15006. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15007. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15008. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15009. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15010. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15011. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15012. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15013. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15014. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15015. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15016. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15017. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15018. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15019. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15020. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15021. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15022. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15023. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15024. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15025. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15026. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15027. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15028. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15029. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15030. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15031. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15032. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15033. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15034. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15035. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15036. 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"`'
  15037. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15038. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15039. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15040. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15041. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15042. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15043. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15044. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15045. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15046. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15047. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15048. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15049. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15050. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15051. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15052. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15053. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15054. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15055. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15056. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15057. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15058. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15059. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15060. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15061. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15062. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15063. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15064. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15065. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15066. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15067. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15068. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15069. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15070. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15071. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15072. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15073. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15074. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15075. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15076. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15077. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15078. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15079. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15080. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15081. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15082. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15083. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15084. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15085. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15086. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15087. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15088. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15089. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15090. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15091. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15092. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15093. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15094. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15095. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15096. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15097. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15098. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15099. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15100. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15101. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15102. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15103. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15104. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15105. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15106. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15107. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15108. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15109. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15110. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15111. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15112. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15113. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15114. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15115. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15116. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15117. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15118. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15119. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15120. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15121. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15122. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15123. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15124. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15125. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15126. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15127. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15128. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15129. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15130. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15131. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15132. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15133. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15134. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15135. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15136. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15137. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15138. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15139. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15140. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15141. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15142. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15143. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15144. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15145. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15146. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15147. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15148. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15149. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15150. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15151. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15152. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15153. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15154. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15155. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15156. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15157. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15158. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15159. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15160. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15161. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15162. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15163. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15164. LTCC='$LTCC'
  15165. LTCFLAGS='$LTCFLAGS'
  15166. compiler='$compiler_DEFAULT'
  15167. # A function that is used when there is no print builtin or printf.
  15168. func_fallback_echo ()
  15169. {
  15170. eval 'cat <<_LTECHO_EOF
  15171. \$1
  15172. _LTECHO_EOF'
  15173. }
  15174. # Quote evaled strings.
  15175. for var in SHELL \
  15176. ECHO \
  15177. PATH_SEPARATOR \
  15178. SED \
  15179. GREP \
  15180. EGREP \
  15181. FGREP \
  15182. LD \
  15183. NM \
  15184. LN_S \
  15185. lt_SP2NL \
  15186. lt_NL2SP \
  15187. reload_flag \
  15188. OBJDUMP \
  15189. deplibs_check_method \
  15190. file_magic_cmd \
  15191. file_magic_glob \
  15192. want_nocaseglob \
  15193. DLLTOOL \
  15194. sharedlib_from_linklib_cmd \
  15195. AR \
  15196. AR_FLAGS \
  15197. archiver_list_spec \
  15198. STRIP \
  15199. RANLIB \
  15200. CC \
  15201. CFLAGS \
  15202. compiler \
  15203. lt_cv_sys_global_symbol_pipe \
  15204. lt_cv_sys_global_symbol_to_cdecl \
  15205. lt_cv_sys_global_symbol_to_c_name_address \
  15206. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15207. nm_file_list_spec \
  15208. lt_prog_compiler_no_builtin_flag \
  15209. lt_prog_compiler_pic \
  15210. lt_prog_compiler_wl \
  15211. lt_prog_compiler_static \
  15212. lt_cv_prog_compiler_c_o \
  15213. need_locks \
  15214. MANIFEST_TOOL \
  15215. DSYMUTIL \
  15216. NMEDIT \
  15217. LIPO \
  15218. OTOOL \
  15219. OTOOL64 \
  15220. shrext_cmds \
  15221. export_dynamic_flag_spec \
  15222. whole_archive_flag_spec \
  15223. compiler_needs_object \
  15224. with_gnu_ld \
  15225. allow_undefined_flag \
  15226. no_undefined_flag \
  15227. hardcode_libdir_flag_spec \
  15228. hardcode_libdir_separator \
  15229. exclude_expsyms \
  15230. include_expsyms \
  15231. file_list_spec \
  15232. variables_saved_for_relink \
  15233. libname_spec \
  15234. library_names_spec \
  15235. soname_spec \
  15236. install_override_mode \
  15237. finish_eval \
  15238. old_striplib \
  15239. striplib \
  15240. compiler_lib_search_dirs \
  15241. predep_objects \
  15242. postdep_objects \
  15243. predeps \
  15244. postdeps \
  15245. compiler_lib_search_path \
  15246. LD_CXX \
  15247. reload_flag_CXX \
  15248. compiler_CXX \
  15249. lt_prog_compiler_no_builtin_flag_CXX \
  15250. lt_prog_compiler_pic_CXX \
  15251. lt_prog_compiler_wl_CXX \
  15252. lt_prog_compiler_static_CXX \
  15253. lt_cv_prog_compiler_c_o_CXX \
  15254. export_dynamic_flag_spec_CXX \
  15255. whole_archive_flag_spec_CXX \
  15256. compiler_needs_object_CXX \
  15257. with_gnu_ld_CXX \
  15258. allow_undefined_flag_CXX \
  15259. no_undefined_flag_CXX \
  15260. hardcode_libdir_flag_spec_CXX \
  15261. hardcode_libdir_separator_CXX \
  15262. exclude_expsyms_CXX \
  15263. include_expsyms_CXX \
  15264. file_list_spec_CXX \
  15265. compiler_lib_search_dirs_CXX \
  15266. predep_objects_CXX \
  15267. postdep_objects_CXX \
  15268. predeps_CXX \
  15269. postdeps_CXX \
  15270. compiler_lib_search_path_CXX; do
  15271. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15272. *[\\\\\\\`\\"\\\$]*)
  15273. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15274. ;;
  15275. *)
  15276. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15277. ;;
  15278. esac
  15279. done
  15280. # Double-quote double-evaled strings.
  15281. for var in reload_cmds \
  15282. old_postinstall_cmds \
  15283. old_postuninstall_cmds \
  15284. old_archive_cmds \
  15285. extract_expsyms_cmds \
  15286. old_archive_from_new_cmds \
  15287. old_archive_from_expsyms_cmds \
  15288. archive_cmds \
  15289. archive_expsym_cmds \
  15290. module_cmds \
  15291. module_expsym_cmds \
  15292. export_symbols_cmds \
  15293. prelink_cmds \
  15294. postlink_cmds \
  15295. postinstall_cmds \
  15296. postuninstall_cmds \
  15297. finish_cmds \
  15298. sys_lib_search_path_spec \
  15299. sys_lib_dlsearch_path_spec \
  15300. reload_cmds_CXX \
  15301. old_archive_cmds_CXX \
  15302. old_archive_from_new_cmds_CXX \
  15303. old_archive_from_expsyms_cmds_CXX \
  15304. archive_cmds_CXX \
  15305. archive_expsym_cmds_CXX \
  15306. module_cmds_CXX \
  15307. module_expsym_cmds_CXX \
  15308. export_symbols_cmds_CXX \
  15309. prelink_cmds_CXX \
  15310. postlink_cmds_CXX; do
  15311. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15312. *[\\\\\\\`\\"\\\$]*)
  15313. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15314. ;;
  15315. *)
  15316. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15317. ;;
  15318. esac
  15319. done
  15320. ac_aux_dir='$ac_aux_dir'
  15321. xsi_shell='$xsi_shell'
  15322. lt_shell_append='$lt_shell_append'
  15323. # See if we are running on zsh, and set the options which allow our
  15324. # commands through without removal of \ escapes INIT.
  15325. if test -n "\${ZSH_VERSION+set}" ; then
  15326. setopt NO_GLOB_SUBST
  15327. fi
  15328. PACKAGE='$PACKAGE'
  15329. VERSION='$VERSION'
  15330. TIMESTAMP='$TIMESTAMP'
  15331. RM='$RM'
  15332. ofile='$ofile'
  15333. _ACEOF
  15334. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15335. # Handling of arguments.
  15336. for ac_config_target in $ac_config_targets
  15337. do
  15338. case $ac_config_target in
  15339. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15340. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15341. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15342. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15343. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15344. "protobuf.pc") CONFIG_FILES="$CONFIG_FILES protobuf.pc" ;;
  15345. "protobuf-lite.pc") CONFIG_FILES="$CONFIG_FILES protobuf-lite.pc" ;;
  15346. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15347. esac
  15348. done
  15349. # If the user did not use the arguments to specify the items to instantiate,
  15350. # then the envvar interface is used. Set only those that are not.
  15351. # We use the long form for the default assignment because of an extremely
  15352. # bizarre bug on SunOS 4.1.3.
  15353. if $ac_need_defaults; then
  15354. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15355. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15356. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15357. fi
  15358. # Have a temporary directory for convenience. Make it in the build tree
  15359. # simply because there is no reason against having it here, and in addition,
  15360. # creating and moving files from /tmp can sometimes cause problems.
  15361. # Hook for its removal unless debugging.
  15362. # Note that there is a small window in which the directory will not be cleaned:
  15363. # after its creation but before its name has been assigned to `$tmp'.
  15364. $debug ||
  15365. {
  15366. tmp= ac_tmp=
  15367. trap 'exit_status=$?
  15368. : "${ac_tmp:=$tmp}"
  15369. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15370. ' 0
  15371. trap 'as_fn_exit 1' 1 2 13 15
  15372. }
  15373. # Create a (secure) tmp directory for tmp files.
  15374. {
  15375. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15376. test -d "$tmp"
  15377. } ||
  15378. {
  15379. tmp=./conf$$-$RANDOM
  15380. (umask 077 && mkdir "$tmp")
  15381. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15382. ac_tmp=$tmp
  15383. # Set up the scripts for CONFIG_FILES section.
  15384. # No need to generate them if there are no CONFIG_FILES.
  15385. # This happens for instance with `./config.status config.h'.
  15386. if test -n "$CONFIG_FILES"; then
  15387. ac_cr=`echo X | tr X '\015'`
  15388. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15389. # But we know of no other shell where ac_cr would be empty at this
  15390. # point, so we can use a bashism as a fallback.
  15391. if test "x$ac_cr" = x; then
  15392. eval ac_cr=\$\'\\r\'
  15393. fi
  15394. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15395. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15396. ac_cs_awk_cr='\\r'
  15397. else
  15398. ac_cs_awk_cr=$ac_cr
  15399. fi
  15400. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15401. _ACEOF
  15402. {
  15403. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15404. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15405. echo "_ACEOF"
  15406. } >conf$$subs.sh ||
  15407. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15408. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15409. ac_delim='%!_!# '
  15410. for ac_last_try in false false false false false :; do
  15411. . ./conf$$subs.sh ||
  15412. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15413. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15414. if test $ac_delim_n = $ac_delim_num; then
  15415. break
  15416. elif $ac_last_try; then
  15417. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15418. else
  15419. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15420. fi
  15421. done
  15422. rm -f conf$$subs.sh
  15423. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15424. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15425. _ACEOF
  15426. sed -n '
  15427. h
  15428. s/^/S["/; s/!.*/"]=/
  15429. p
  15430. g
  15431. s/^[^!]*!//
  15432. :repl
  15433. t repl
  15434. s/'"$ac_delim"'$//
  15435. t delim
  15436. :nl
  15437. h
  15438. s/\(.\{148\}\)..*/\1/
  15439. t more1
  15440. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15441. p
  15442. n
  15443. b repl
  15444. :more1
  15445. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15446. p
  15447. g
  15448. s/.\{148\}//
  15449. t nl
  15450. :delim
  15451. h
  15452. s/\(.\{148\}\)..*/\1/
  15453. t more2
  15454. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15455. p
  15456. b
  15457. :more2
  15458. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15459. p
  15460. g
  15461. s/.\{148\}//
  15462. t delim
  15463. ' <conf$$subs.awk | sed '
  15464. /^[^""]/{
  15465. N
  15466. s/\n//
  15467. }
  15468. ' >>$CONFIG_STATUS || ac_write_fail=1
  15469. rm -f conf$$subs.awk
  15470. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15471. _ACAWK
  15472. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15473. for (key in S) S_is_set[key] = 1
  15474. FS = ""
  15475. }
  15476. {
  15477. line = $ 0
  15478. nfields = split(line, field, "@")
  15479. substed = 0
  15480. len = length(field[1])
  15481. for (i = 2; i < nfields; i++) {
  15482. key = field[i]
  15483. keylen = length(key)
  15484. if (S_is_set[key]) {
  15485. value = S[key]
  15486. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15487. len += length(value) + length(field[++i])
  15488. substed = 1
  15489. } else
  15490. len += 1 + keylen
  15491. }
  15492. print line
  15493. }
  15494. _ACAWK
  15495. _ACEOF
  15496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15497. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15498. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15499. else
  15500. cat
  15501. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15502. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15503. _ACEOF
  15504. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15505. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15506. # trailing colons and then remove the whole line if VPATH becomes empty
  15507. # (actually we leave an empty line to preserve line numbers).
  15508. if test "x$srcdir" = x.; then
  15509. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15510. h
  15511. s///
  15512. s/^/:/
  15513. s/[ ]*$/:/
  15514. s/:\$(srcdir):/:/g
  15515. s/:\${srcdir}:/:/g
  15516. s/:@srcdir@:/:/g
  15517. s/^:*//
  15518. s/:*$//
  15519. x
  15520. s/\(=[ ]*\).*/\1/
  15521. G
  15522. s/\n//
  15523. s/^[^=]*=[ ]*$//
  15524. }'
  15525. fi
  15526. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15527. fi # test -n "$CONFIG_FILES"
  15528. # Set up the scripts for CONFIG_HEADERS section.
  15529. # No need to generate them if there are no CONFIG_HEADERS.
  15530. # This happens for instance with `./config.status Makefile'.
  15531. if test -n "$CONFIG_HEADERS"; then
  15532. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15533. BEGIN {
  15534. _ACEOF
  15535. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15536. # here-document in config.status, that substitutes the proper values into
  15537. # config.h.in to produce config.h.
  15538. # Create a delimiter string that does not exist in confdefs.h, to ease
  15539. # handling of long lines.
  15540. ac_delim='%!_!# '
  15541. for ac_last_try in false false :; do
  15542. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15543. if test -z "$ac_tt"; then
  15544. break
  15545. elif $ac_last_try; then
  15546. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15547. else
  15548. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15549. fi
  15550. done
  15551. # For the awk script, D is an array of macro values keyed by name,
  15552. # likewise P contains macro parameters if any. Preserve backslash
  15553. # newline sequences.
  15554. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15555. sed -n '
  15556. s/.\{148\}/&'"$ac_delim"'/g
  15557. t rset
  15558. :rset
  15559. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15560. t def
  15561. d
  15562. :def
  15563. s/\\$//
  15564. t bsnl
  15565. s/["\\]/\\&/g
  15566. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15567. D["\1"]=" \3"/p
  15568. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15569. d
  15570. :bsnl
  15571. s/["\\]/\\&/g
  15572. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15573. D["\1"]=" \3\\\\\\n"\\/p
  15574. t cont
  15575. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15576. t cont
  15577. d
  15578. :cont
  15579. n
  15580. s/.\{148\}/&'"$ac_delim"'/g
  15581. t clear
  15582. :clear
  15583. s/\\$//
  15584. t bsnlc
  15585. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15586. d
  15587. :bsnlc
  15588. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15589. b cont
  15590. ' <confdefs.h | sed '
  15591. s/'"$ac_delim"'/"\\\
  15592. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15593. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15594. for (key in D) D_is_set[key] = 1
  15595. FS = ""
  15596. }
  15597. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15598. line = \$ 0
  15599. split(line, arg, " ")
  15600. if (arg[1] == "#") {
  15601. defundef = arg[2]
  15602. mac1 = arg[3]
  15603. } else {
  15604. defundef = substr(arg[1], 2)
  15605. mac1 = arg[2]
  15606. }
  15607. split(mac1, mac2, "(") #)
  15608. macro = mac2[1]
  15609. prefix = substr(line, 1, index(line, defundef) - 1)
  15610. if (D_is_set[macro]) {
  15611. # Preserve the white space surrounding the "#".
  15612. print prefix "define", macro P[macro] D[macro]
  15613. next
  15614. } else {
  15615. # Replace #undef with comments. This is necessary, for example,
  15616. # in the case of _POSIX_SOURCE, which is predefined and required
  15617. # on some systems where configure will not decide to define it.
  15618. if (defundef == "undef") {
  15619. print "/*", prefix defundef, macro, "*/"
  15620. next
  15621. }
  15622. }
  15623. }
  15624. { print }
  15625. _ACAWK
  15626. _ACEOF
  15627. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15628. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15629. fi # test -n "$CONFIG_HEADERS"
  15630. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15631. shift
  15632. for ac_tag
  15633. do
  15634. case $ac_tag in
  15635. :[FHLC]) ac_mode=$ac_tag; continue;;
  15636. esac
  15637. case $ac_mode$ac_tag in
  15638. :[FHL]*:*);;
  15639. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15640. :[FH]-) ac_tag=-:-;;
  15641. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15642. esac
  15643. ac_save_IFS=$IFS
  15644. IFS=:
  15645. set x $ac_tag
  15646. IFS=$ac_save_IFS
  15647. shift
  15648. ac_file=$1
  15649. shift
  15650. case $ac_mode in
  15651. :L) ac_source=$1;;
  15652. :[FH])
  15653. ac_file_inputs=
  15654. for ac_f
  15655. do
  15656. case $ac_f in
  15657. -) ac_f="$ac_tmp/stdin";;
  15658. *) # Look for the file first in the build tree, then in the source tree
  15659. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15660. # because $ac_f cannot contain `:'.
  15661. test -f "$ac_f" ||
  15662. case $ac_f in
  15663. [\\/$]*) false;;
  15664. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15665. esac ||
  15666. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15667. esac
  15668. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15669. as_fn_append ac_file_inputs " '$ac_f'"
  15670. done
  15671. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15672. # use $as_me), people would be surprised to read:
  15673. # /* config.h. Generated by config.status. */
  15674. configure_input='Generated from '`
  15675. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15676. `' by configure.'
  15677. if test x"$ac_file" != x-; then
  15678. configure_input="$ac_file. $configure_input"
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15680. $as_echo "$as_me: creating $ac_file" >&6;}
  15681. fi
  15682. # Neutralize special characters interpreted by sed in replacement strings.
  15683. case $configure_input in #(
  15684. *\&* | *\|* | *\\* )
  15685. ac_sed_conf_input=`$as_echo "$configure_input" |
  15686. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15687. *) ac_sed_conf_input=$configure_input;;
  15688. esac
  15689. case $ac_tag in
  15690. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15691. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15692. esac
  15693. ;;
  15694. esac
  15695. ac_dir=`$as_dirname -- "$ac_file" ||
  15696. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15697. X"$ac_file" : 'X\(//\)[^/]' \| \
  15698. X"$ac_file" : 'X\(//\)$' \| \
  15699. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15700. $as_echo X"$ac_file" |
  15701. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15702. s//\1/
  15703. q
  15704. }
  15705. /^X\(\/\/\)[^/].*/{
  15706. s//\1/
  15707. q
  15708. }
  15709. /^X\(\/\/\)$/{
  15710. s//\1/
  15711. q
  15712. }
  15713. /^X\(\/\).*/{
  15714. s//\1/
  15715. q
  15716. }
  15717. s/.*/./; q'`
  15718. as_dir="$ac_dir"; as_fn_mkdir_p
  15719. ac_builddir=.
  15720. case "$ac_dir" in
  15721. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15722. *)
  15723. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15724. # A ".." for each directory in $ac_dir_suffix.
  15725. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15726. case $ac_top_builddir_sub in
  15727. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15728. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15729. esac ;;
  15730. esac
  15731. ac_abs_top_builddir=$ac_pwd
  15732. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15733. # for backward compatibility:
  15734. ac_top_builddir=$ac_top_build_prefix
  15735. case $srcdir in
  15736. .) # We are building in place.
  15737. ac_srcdir=.
  15738. ac_top_srcdir=$ac_top_builddir_sub
  15739. ac_abs_top_srcdir=$ac_pwd ;;
  15740. [\\/]* | ?:[\\/]* ) # Absolute name.
  15741. ac_srcdir=$srcdir$ac_dir_suffix;
  15742. ac_top_srcdir=$srcdir
  15743. ac_abs_top_srcdir=$srcdir ;;
  15744. *) # Relative name.
  15745. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15746. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15747. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15748. esac
  15749. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15750. case $ac_mode in
  15751. :F)
  15752. #
  15753. # CONFIG_FILE
  15754. #
  15755. case $INSTALL in
  15756. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15757. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15758. esac
  15759. ac_MKDIR_P=$MKDIR_P
  15760. case $MKDIR_P in
  15761. [\\/$]* | ?:[\\/]* ) ;;
  15762. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15763. esac
  15764. _ACEOF
  15765. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15766. # If the template does not know about datarootdir, expand it.
  15767. # FIXME: This hack should be removed a few years after 2.60.
  15768. ac_datarootdir_hack=; ac_datarootdir_seen=
  15769. ac_sed_dataroot='
  15770. /datarootdir/ {
  15771. p
  15772. q
  15773. }
  15774. /@datadir@/p
  15775. /@docdir@/p
  15776. /@infodir@/p
  15777. /@localedir@/p
  15778. /@mandir@/p'
  15779. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15780. *datarootdir*) ac_datarootdir_seen=yes;;
  15781. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15783. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15784. _ACEOF
  15785. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15786. ac_datarootdir_hack='
  15787. s&@datadir@&$datadir&g
  15788. s&@docdir@&$docdir&g
  15789. s&@infodir@&$infodir&g
  15790. s&@localedir@&$localedir&g
  15791. s&@mandir@&$mandir&g
  15792. s&\\\${datarootdir}&$datarootdir&g' ;;
  15793. esac
  15794. _ACEOF
  15795. # Neutralize VPATH when `$srcdir' = `.'.
  15796. # Shell code in configure.ac might set extrasub.
  15797. # FIXME: do we really want to maintain this feature?
  15798. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15799. ac_sed_extra="$ac_vpsub
  15800. $extrasub
  15801. _ACEOF
  15802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15803. :t
  15804. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15805. s|@configure_input@|$ac_sed_conf_input|;t t
  15806. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15807. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15808. s&@srcdir@&$ac_srcdir&;t t
  15809. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15810. s&@top_srcdir@&$ac_top_srcdir&;t t
  15811. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15812. s&@builddir@&$ac_builddir&;t t
  15813. s&@abs_builddir@&$ac_abs_builddir&;t t
  15814. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15815. s&@INSTALL@&$ac_INSTALL&;t t
  15816. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15817. $ac_datarootdir_hack
  15818. "
  15819. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15820. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15821. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15822. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15823. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15824. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15826. which seems to be undefined. Please make sure it is defined" >&5
  15827. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15828. which seems to be undefined. Please make sure it is defined" >&2;}
  15829. rm -f "$ac_tmp/stdin"
  15830. case $ac_file in
  15831. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15832. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15833. esac \
  15834. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15835. ;;
  15836. :H)
  15837. #
  15838. # CONFIG_HEADER
  15839. #
  15840. if test x"$ac_file" != x-; then
  15841. {
  15842. $as_echo "/* $configure_input */" \
  15843. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15844. } >"$ac_tmp/config.h" \
  15845. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15846. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15847. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15848. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15849. else
  15850. rm -f "$ac_file"
  15851. mv "$ac_tmp/config.h" "$ac_file" \
  15852. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15853. fi
  15854. else
  15855. $as_echo "/* $configure_input */" \
  15856. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15857. || as_fn_error $? "could not create -" "$LINENO" 5
  15858. fi
  15859. # Compute "$ac_file"'s index in $config_headers.
  15860. _am_arg="$ac_file"
  15861. _am_stamp_count=1
  15862. for _am_header in $config_headers :; do
  15863. case $_am_header in
  15864. $_am_arg | $_am_arg:* )
  15865. break ;;
  15866. * )
  15867. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15868. esac
  15869. done
  15870. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15871. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15872. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15873. X"$_am_arg" : 'X\(//\)$' \| \
  15874. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15875. $as_echo X"$_am_arg" |
  15876. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15877. s//\1/
  15878. q
  15879. }
  15880. /^X\(\/\/\)[^/].*/{
  15881. s//\1/
  15882. q
  15883. }
  15884. /^X\(\/\/\)$/{
  15885. s//\1/
  15886. q
  15887. }
  15888. /^X\(\/\).*/{
  15889. s//\1/
  15890. q
  15891. }
  15892. s/.*/./; q'`/stamp-h$_am_stamp_count
  15893. ;;
  15894. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15895. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15896. ;;
  15897. esac
  15898. case $ac_file$ac_mode in
  15899. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15900. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15901. # are listed without --file. Let's play safe and only enable the eval
  15902. # if we detect the quoting.
  15903. case $CONFIG_FILES in
  15904. *\'*) eval set x "$CONFIG_FILES" ;;
  15905. *) set x $CONFIG_FILES ;;
  15906. esac
  15907. shift
  15908. for mf
  15909. do
  15910. # Strip MF so we end up with the name of the file.
  15911. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15912. # Check whether this is an Automake generated Makefile or not.
  15913. # We used to match only the files named `Makefile.in', but
  15914. # some people rename them; so instead we look at the file content.
  15915. # Grep'ing the first line is not enough: some people post-process
  15916. # each Makefile.in and add a new line on top of each file to say so.
  15917. # Grep'ing the whole file is not good either: AIX grep has a line
  15918. # limit of 2048, but all sed's we know have understand at least 4000.
  15919. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15920. dirpart=`$as_dirname -- "$mf" ||
  15921. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15922. X"$mf" : 'X\(//\)[^/]' \| \
  15923. X"$mf" : 'X\(//\)$' \| \
  15924. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15925. $as_echo X"$mf" |
  15926. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15927. s//\1/
  15928. q
  15929. }
  15930. /^X\(\/\/\)[^/].*/{
  15931. s//\1/
  15932. q
  15933. }
  15934. /^X\(\/\/\)$/{
  15935. s//\1/
  15936. q
  15937. }
  15938. /^X\(\/\).*/{
  15939. s//\1/
  15940. q
  15941. }
  15942. s/.*/./; q'`
  15943. else
  15944. continue
  15945. fi
  15946. # Extract the definition of DEPDIR, am__include, and am__quote
  15947. # from the Makefile without running `make'.
  15948. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15949. test -z "$DEPDIR" && continue
  15950. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15951. test -z "am__include" && continue
  15952. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15953. # When using ansi2knr, U may be empty or an underscore; expand it
  15954. U=`sed -n 's/^U = //p' < "$mf"`
  15955. # Find all dependency output files, they are included files with
  15956. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15957. # simplest approach to changing $(DEPDIR) to its actual value in the
  15958. # expansion.
  15959. for file in `sed -n "
  15960. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15961. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15962. # Make sure the directory exists.
  15963. test -f "$dirpart/$file" && continue
  15964. fdir=`$as_dirname -- "$file" ||
  15965. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15966. X"$file" : 'X\(//\)[^/]' \| \
  15967. X"$file" : 'X\(//\)$' \| \
  15968. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15969. $as_echo X"$file" |
  15970. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15971. s//\1/
  15972. q
  15973. }
  15974. /^X\(\/\/\)[^/].*/{
  15975. s//\1/
  15976. q
  15977. }
  15978. /^X\(\/\/\)$/{
  15979. s//\1/
  15980. q
  15981. }
  15982. /^X\(\/\).*/{
  15983. s//\1/
  15984. q
  15985. }
  15986. s/.*/./; q'`
  15987. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15988. # echo "creating $dirpart/$file"
  15989. echo '# dummy' > "$dirpart/$file"
  15990. done
  15991. done
  15992. }
  15993. ;;
  15994. "libtool":C)
  15995. # See if we are running on zsh, and set the options which allow our
  15996. # commands through without removal of \ escapes.
  15997. if test -n "${ZSH_VERSION+set}" ; then
  15998. setopt NO_GLOB_SUBST
  15999. fi
  16000. cfgfile="${ofile}T"
  16001. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16002. $RM "$cfgfile"
  16003. cat <<_LT_EOF >> "$cfgfile"
  16004. #! $SHELL
  16005. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16006. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16007. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16008. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16009. #
  16010. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16011. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16012. # Foundation, Inc.
  16013. # Written by Gordon Matzigkeit, 1996
  16014. #
  16015. # This file is part of GNU Libtool.
  16016. #
  16017. # GNU Libtool is free software; you can redistribute it and/or
  16018. # modify it under the terms of the GNU General Public License as
  16019. # published by the Free Software Foundation; either version 2 of
  16020. # the License, or (at your option) any later version.
  16021. #
  16022. # As a special exception to the GNU General Public License,
  16023. # if you distribute this file as part of a program or library that
  16024. # is built using GNU Libtool, you may include this file under the
  16025. # same distribution terms that you use for the rest of that program.
  16026. #
  16027. # GNU Libtool is distributed in the hope that it will be useful,
  16028. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16029. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16030. # GNU General Public License for more details.
  16031. #
  16032. # You should have received a copy of the GNU General Public License
  16033. # along with GNU Libtool; see the file COPYING. If not, a copy
  16034. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16035. # obtained by writing to the Free Software Foundation, Inc.,
  16036. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16037. # The names of the tagged configurations supported by this script.
  16038. available_tags="CXX "
  16039. # ### BEGIN LIBTOOL CONFIG
  16040. # Which release of libtool.m4 was used?
  16041. macro_version=$macro_version
  16042. macro_revision=$macro_revision
  16043. # Whether or not to build shared libraries.
  16044. build_libtool_libs=$enable_shared
  16045. # Whether or not to build static libraries.
  16046. build_old_libs=$enable_static
  16047. # What type of objects to build.
  16048. pic_mode=$pic_mode
  16049. # Whether or not to optimize for fast installation.
  16050. fast_install=$enable_fast_install
  16051. # Shell to use when invoking shell scripts.
  16052. SHELL=$lt_SHELL
  16053. # An echo program that protects backslashes.
  16054. ECHO=$lt_ECHO
  16055. # The PATH separator for the build system.
  16056. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16057. # The host system.
  16058. host_alias=$host_alias
  16059. host=$host
  16060. host_os=$host_os
  16061. # The build system.
  16062. build_alias=$build_alias
  16063. build=$build
  16064. build_os=$build_os
  16065. # A sed program that does not truncate output.
  16066. SED=$lt_SED
  16067. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16068. Xsed="\$SED -e 1s/^X//"
  16069. # A grep program that handles long lines.
  16070. GREP=$lt_GREP
  16071. # An ERE matcher.
  16072. EGREP=$lt_EGREP
  16073. # A literal string matcher.
  16074. FGREP=$lt_FGREP
  16075. # A BSD- or MS-compatible name lister.
  16076. NM=$lt_NM
  16077. # Whether we need soft or hard links.
  16078. LN_S=$lt_LN_S
  16079. # What is the maximum length of a command?
  16080. max_cmd_len=$max_cmd_len
  16081. # Object file suffix (normally "o").
  16082. objext=$ac_objext
  16083. # Executable file suffix (normally "").
  16084. exeext=$exeext
  16085. # whether the shell understands "unset".
  16086. lt_unset=$lt_unset
  16087. # turn spaces into newlines.
  16088. SP2NL=$lt_lt_SP2NL
  16089. # turn newlines into spaces.
  16090. NL2SP=$lt_lt_NL2SP
  16091. # convert \$build file names to \$host format.
  16092. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16093. # convert \$build files to toolchain format.
  16094. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16095. # An object symbol dumper.
  16096. OBJDUMP=$lt_OBJDUMP
  16097. # Method to check whether dependent libraries are shared objects.
  16098. deplibs_check_method=$lt_deplibs_check_method
  16099. # Command to use when deplibs_check_method = "file_magic".
  16100. file_magic_cmd=$lt_file_magic_cmd
  16101. # How to find potential files when deplibs_check_method = "file_magic".
  16102. file_magic_glob=$lt_file_magic_glob
  16103. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16104. want_nocaseglob=$lt_want_nocaseglob
  16105. # DLL creation program.
  16106. DLLTOOL=$lt_DLLTOOL
  16107. # Command to associate shared and link libraries.
  16108. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16109. # The archiver.
  16110. AR=$lt_AR
  16111. # Flags to create an archive.
  16112. AR_FLAGS=$lt_AR_FLAGS
  16113. # How to feed a file listing to the archiver.
  16114. archiver_list_spec=$lt_archiver_list_spec
  16115. # A symbol stripping program.
  16116. STRIP=$lt_STRIP
  16117. # Commands used to install an old-style archive.
  16118. RANLIB=$lt_RANLIB
  16119. old_postinstall_cmds=$lt_old_postinstall_cmds
  16120. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16121. # Whether to use a lock for old archive extraction.
  16122. lock_old_archive_extraction=$lock_old_archive_extraction
  16123. # A C compiler.
  16124. LTCC=$lt_CC
  16125. # LTCC compiler flags.
  16126. LTCFLAGS=$lt_CFLAGS
  16127. # Take the output of nm and produce a listing of raw symbols and C names.
  16128. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16129. # Transform the output of nm in a proper C declaration.
  16130. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16131. # Transform the output of nm in a C name address pair.
  16132. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16133. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16134. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16135. # Specify filename containing input files for \$NM.
  16136. nm_file_list_spec=$lt_nm_file_list_spec
  16137. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16138. lt_sysroot=$lt_sysroot
  16139. # The name of the directory that contains temporary libtool files.
  16140. objdir=$objdir
  16141. # Used to examine libraries when file_magic_cmd begins with "file".
  16142. MAGIC_CMD=$MAGIC_CMD
  16143. # Must we lock files when doing compilation?
  16144. need_locks=$lt_need_locks
  16145. # Manifest tool.
  16146. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16147. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16148. DSYMUTIL=$lt_DSYMUTIL
  16149. # Tool to change global to local symbols on Mac OS X.
  16150. NMEDIT=$lt_NMEDIT
  16151. # Tool to manipulate fat objects and archives on Mac OS X.
  16152. LIPO=$lt_LIPO
  16153. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16154. OTOOL=$lt_OTOOL
  16155. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16156. OTOOL64=$lt_OTOOL64
  16157. # Old archive suffix (normally "a").
  16158. libext=$libext
  16159. # Shared library suffix (normally ".so").
  16160. shrext_cmds=$lt_shrext_cmds
  16161. # The commands to extract the exported symbol list from a shared archive.
  16162. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16163. # Variables whose values should be saved in libtool wrapper scripts and
  16164. # restored at link time.
  16165. variables_saved_for_relink=$lt_variables_saved_for_relink
  16166. # Do we need the "lib" prefix for modules?
  16167. need_lib_prefix=$need_lib_prefix
  16168. # Do we need a version for libraries?
  16169. need_version=$need_version
  16170. # Library versioning type.
  16171. version_type=$version_type
  16172. # Shared library runtime path variable.
  16173. runpath_var=$runpath_var
  16174. # Shared library path variable.
  16175. shlibpath_var=$shlibpath_var
  16176. # Is shlibpath searched before the hard-coded library search path?
  16177. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16178. # Format of library name prefix.
  16179. libname_spec=$lt_libname_spec
  16180. # List of archive names. First name is the real one, the rest are links.
  16181. # The last name is the one that the linker finds with -lNAME
  16182. library_names_spec=$lt_library_names_spec
  16183. # The coded name of the library, if different from the real name.
  16184. soname_spec=$lt_soname_spec
  16185. # Permission mode override for installation of shared libraries.
  16186. install_override_mode=$lt_install_override_mode
  16187. # Command to use after installation of a shared archive.
  16188. postinstall_cmds=$lt_postinstall_cmds
  16189. # Command to use after uninstallation of a shared archive.
  16190. postuninstall_cmds=$lt_postuninstall_cmds
  16191. # Commands used to finish a libtool library installation in a directory.
  16192. finish_cmds=$lt_finish_cmds
  16193. # As "finish_cmds", except a single script fragment to be evaled but
  16194. # not shown.
  16195. finish_eval=$lt_finish_eval
  16196. # Whether we should hardcode library paths into libraries.
  16197. hardcode_into_libs=$hardcode_into_libs
  16198. # Compile-time system search path for libraries.
  16199. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16200. # Run-time system search path for libraries.
  16201. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16202. # Whether dlopen is supported.
  16203. dlopen_support=$enable_dlopen
  16204. # Whether dlopen of programs is supported.
  16205. dlopen_self=$enable_dlopen_self
  16206. # Whether dlopen of statically linked programs is supported.
  16207. dlopen_self_static=$enable_dlopen_self_static
  16208. # Commands to strip libraries.
  16209. old_striplib=$lt_old_striplib
  16210. striplib=$lt_striplib
  16211. # The linker used to build libraries.
  16212. LD=$lt_LD
  16213. # How to create reloadable object files.
  16214. reload_flag=$lt_reload_flag
  16215. reload_cmds=$lt_reload_cmds
  16216. # Commands used to build an old-style archive.
  16217. old_archive_cmds=$lt_old_archive_cmds
  16218. # A language specific compiler.
  16219. CC=$lt_compiler
  16220. # Is the compiler the GNU compiler?
  16221. with_gcc=$GCC
  16222. # Compiler flag to turn off builtin functions.
  16223. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16224. # Additional compiler flags for building library objects.
  16225. pic_flag=$lt_lt_prog_compiler_pic
  16226. # How to pass a linker flag through the compiler.
  16227. wl=$lt_lt_prog_compiler_wl
  16228. # Compiler flag to prevent dynamic linking.
  16229. link_static_flag=$lt_lt_prog_compiler_static
  16230. # Does compiler simultaneously support -c and -o options?
  16231. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16232. # Whether or not to add -lc for building shared libraries.
  16233. build_libtool_need_lc=$archive_cmds_need_lc
  16234. # Whether or not to disallow shared libs when runtime libs are static.
  16235. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16236. # Compiler flag to allow reflexive dlopens.
  16237. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16238. # Compiler flag to generate shared objects directly from archives.
  16239. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16240. # Whether the compiler copes with passing no objects directly.
  16241. compiler_needs_object=$lt_compiler_needs_object
  16242. # Create an old-style archive from a shared archive.
  16243. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16244. # Create a temporary old-style archive to link instead of a shared archive.
  16245. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16246. # Commands used to build a shared archive.
  16247. archive_cmds=$lt_archive_cmds
  16248. archive_expsym_cmds=$lt_archive_expsym_cmds
  16249. # Commands used to build a loadable module if different from building
  16250. # a shared archive.
  16251. module_cmds=$lt_module_cmds
  16252. module_expsym_cmds=$lt_module_expsym_cmds
  16253. # Whether we are building with GNU ld or not.
  16254. with_gnu_ld=$lt_with_gnu_ld
  16255. # Flag that allows shared libraries with undefined symbols to be built.
  16256. allow_undefined_flag=$lt_allow_undefined_flag
  16257. # Flag that enforces no undefined symbols.
  16258. no_undefined_flag=$lt_no_undefined_flag
  16259. # Flag to hardcode \$libdir into a binary during linking.
  16260. # This must work even if \$libdir does not exist
  16261. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16262. # Whether we need a single "-rpath" flag with a separated argument.
  16263. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16264. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16265. # DIR into the resulting binary.
  16266. hardcode_direct=$hardcode_direct
  16267. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16268. # DIR into the resulting binary and the resulting library dependency is
  16269. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16270. # library is relocated.
  16271. hardcode_direct_absolute=$hardcode_direct_absolute
  16272. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16273. # into the resulting binary.
  16274. hardcode_minus_L=$hardcode_minus_L
  16275. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16276. # into the resulting binary.
  16277. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16278. # Set to "yes" if building a shared library automatically hardcodes DIR
  16279. # into the library and all subsequent libraries and executables linked
  16280. # against it.
  16281. hardcode_automatic=$hardcode_automatic
  16282. # Set to yes if linker adds runtime paths of dependent libraries
  16283. # to runtime path list.
  16284. inherit_rpath=$inherit_rpath
  16285. # Whether libtool must link a program against all its dependency libraries.
  16286. link_all_deplibs=$link_all_deplibs
  16287. # Set to "yes" if exported symbols are required.
  16288. always_export_symbols=$always_export_symbols
  16289. # The commands to list exported symbols.
  16290. export_symbols_cmds=$lt_export_symbols_cmds
  16291. # Symbols that should not be listed in the preloaded symbols.
  16292. exclude_expsyms=$lt_exclude_expsyms
  16293. # Symbols that must always be exported.
  16294. include_expsyms=$lt_include_expsyms
  16295. # Commands necessary for linking programs (against libraries) with templates.
  16296. prelink_cmds=$lt_prelink_cmds
  16297. # Commands necessary for finishing linking programs.
  16298. postlink_cmds=$lt_postlink_cmds
  16299. # Specify filename containing input files.
  16300. file_list_spec=$lt_file_list_spec
  16301. # How to hardcode a shared library path into an executable.
  16302. hardcode_action=$hardcode_action
  16303. # The directories searched by this compiler when creating a shared library.
  16304. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16305. # Dependencies to place before and after the objects being linked to
  16306. # create a shared library.
  16307. predep_objects=$lt_predep_objects
  16308. postdep_objects=$lt_postdep_objects
  16309. predeps=$lt_predeps
  16310. postdeps=$lt_postdeps
  16311. # The library search path used internally by the compiler when linking
  16312. # a shared library.
  16313. compiler_lib_search_path=$lt_compiler_lib_search_path
  16314. # ### END LIBTOOL CONFIG
  16315. _LT_EOF
  16316. case $host_os in
  16317. aix3*)
  16318. cat <<\_LT_EOF >> "$cfgfile"
  16319. # AIX sometimes has problems with the GCC collect2 program. For some
  16320. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16321. # vanish in a puff of smoke.
  16322. if test "X${COLLECT_NAMES+set}" != Xset; then
  16323. COLLECT_NAMES=
  16324. export COLLECT_NAMES
  16325. fi
  16326. _LT_EOF
  16327. ;;
  16328. esac
  16329. ltmain="$ac_aux_dir/ltmain.sh"
  16330. # We use sed instead of cat because bash on DJGPP gets confused if
  16331. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16332. # text mode, it properly converts lines to CR/LF. This bash problem
  16333. # is reportedly fixed, but why not run on old versions too?
  16334. sed '$q' "$ltmain" >> "$cfgfile" \
  16335. || (rm -f "$cfgfile"; exit 1)
  16336. if test x"$xsi_shell" = xyes; then
  16337. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16338. func_dirname ()\
  16339. {\
  16340. \ case ${1} in\
  16341. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16342. \ * ) func_dirname_result="${3}" ;;\
  16343. \ esac\
  16344. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16345. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16346. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16347. test 0 -eq $? || _lt_function_replace_fail=:
  16348. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16349. func_basename ()\
  16350. {\
  16351. \ func_basename_result="${1##*/}"\
  16352. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16353. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16354. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16355. test 0 -eq $? || _lt_function_replace_fail=:
  16356. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16357. func_dirname_and_basename ()\
  16358. {\
  16359. \ case ${1} in\
  16360. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16361. \ * ) func_dirname_result="${3}" ;;\
  16362. \ esac\
  16363. \ func_basename_result="${1##*/}"\
  16364. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16365. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16366. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16367. test 0 -eq $? || _lt_function_replace_fail=:
  16368. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16369. func_stripname ()\
  16370. {\
  16371. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16372. \ # positional parameters, so assign one to ordinary parameter first.\
  16373. \ func_stripname_result=${3}\
  16374. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16375. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16376. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16377. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16378. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16379. test 0 -eq $? || _lt_function_replace_fail=:
  16380. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16381. func_split_long_opt ()\
  16382. {\
  16383. \ func_split_long_opt_name=${1%%=*}\
  16384. \ func_split_long_opt_arg=${1#*=}\
  16385. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16386. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16387. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16388. test 0 -eq $? || _lt_function_replace_fail=:
  16389. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16390. func_split_short_opt ()\
  16391. {\
  16392. \ func_split_short_opt_arg=${1#??}\
  16393. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16394. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16395. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16396. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16397. test 0 -eq $? || _lt_function_replace_fail=:
  16398. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16399. func_lo2o ()\
  16400. {\
  16401. \ case ${1} in\
  16402. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16403. \ *) func_lo2o_result=${1} ;;\
  16404. \ esac\
  16405. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16406. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16407. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16408. test 0 -eq $? || _lt_function_replace_fail=:
  16409. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16410. func_xform ()\
  16411. {\
  16412. func_xform_result=${1%.*}.lo\
  16413. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16414. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16415. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16416. test 0 -eq $? || _lt_function_replace_fail=:
  16417. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16418. func_arith ()\
  16419. {\
  16420. func_arith_result=$(( $* ))\
  16421. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16422. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16423. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16424. test 0 -eq $? || _lt_function_replace_fail=:
  16425. sed -e '/^func_len ()$/,/^} # func_len /c\
  16426. func_len ()\
  16427. {\
  16428. func_len_result=${#1}\
  16429. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16430. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16431. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16432. test 0 -eq $? || _lt_function_replace_fail=:
  16433. fi
  16434. if test x"$lt_shell_append" = xyes; then
  16435. sed -e '/^func_append ()$/,/^} # func_append /c\
  16436. func_append ()\
  16437. {\
  16438. eval "${1}+=\\${2}"\
  16439. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16440. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16441. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16442. test 0 -eq $? || _lt_function_replace_fail=:
  16443. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16444. func_append_quoted ()\
  16445. {\
  16446. \ func_quote_for_eval "${2}"\
  16447. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16448. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16449. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16450. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16451. test 0 -eq $? || _lt_function_replace_fail=:
  16452. # Save a `func_append' function call where possible by direct use of '+='
  16453. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16454. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16455. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16456. test 0 -eq $? || _lt_function_replace_fail=:
  16457. else
  16458. # Save a `func_append' function call even when '+=' is not available
  16459. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16460. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16461. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16462. test 0 -eq $? || _lt_function_replace_fail=:
  16463. fi
  16464. if test x"$_lt_function_replace_fail" = x":"; then
  16465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16466. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16467. fi
  16468. mv -f "$cfgfile" "$ofile" ||
  16469. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16470. chmod +x "$ofile"
  16471. cat <<_LT_EOF >> "$ofile"
  16472. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16473. # The linker used to build libraries.
  16474. LD=$lt_LD_CXX
  16475. # How to create reloadable object files.
  16476. reload_flag=$lt_reload_flag_CXX
  16477. reload_cmds=$lt_reload_cmds_CXX
  16478. # Commands used to build an old-style archive.
  16479. old_archive_cmds=$lt_old_archive_cmds_CXX
  16480. # A language specific compiler.
  16481. CC=$lt_compiler_CXX
  16482. # Is the compiler the GNU compiler?
  16483. with_gcc=$GCC_CXX
  16484. # Compiler flag to turn off builtin functions.
  16485. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16486. # Additional compiler flags for building library objects.
  16487. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16488. # How to pass a linker flag through the compiler.
  16489. wl=$lt_lt_prog_compiler_wl_CXX
  16490. # Compiler flag to prevent dynamic linking.
  16491. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16492. # Does compiler simultaneously support -c and -o options?
  16493. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16494. # Whether or not to add -lc for building shared libraries.
  16495. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16496. # Whether or not to disallow shared libs when runtime libs are static.
  16497. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16498. # Compiler flag to allow reflexive dlopens.
  16499. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16500. # Compiler flag to generate shared objects directly from archives.
  16501. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16502. # Whether the compiler copes with passing no objects directly.
  16503. compiler_needs_object=$lt_compiler_needs_object_CXX
  16504. # Create an old-style archive from a shared archive.
  16505. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16506. # Create a temporary old-style archive to link instead of a shared archive.
  16507. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16508. # Commands used to build a shared archive.
  16509. archive_cmds=$lt_archive_cmds_CXX
  16510. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16511. # Commands used to build a loadable module if different from building
  16512. # a shared archive.
  16513. module_cmds=$lt_module_cmds_CXX
  16514. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16515. # Whether we are building with GNU ld or not.
  16516. with_gnu_ld=$lt_with_gnu_ld_CXX
  16517. # Flag that allows shared libraries with undefined symbols to be built.
  16518. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16519. # Flag that enforces no undefined symbols.
  16520. no_undefined_flag=$lt_no_undefined_flag_CXX
  16521. # Flag to hardcode \$libdir into a binary during linking.
  16522. # This must work even if \$libdir does not exist
  16523. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16524. # Whether we need a single "-rpath" flag with a separated argument.
  16525. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16526. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16527. # DIR into the resulting binary.
  16528. hardcode_direct=$hardcode_direct_CXX
  16529. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16530. # DIR into the resulting binary and the resulting library dependency is
  16531. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16532. # library is relocated.
  16533. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16534. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16535. # into the resulting binary.
  16536. hardcode_minus_L=$hardcode_minus_L_CXX
  16537. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16538. # into the resulting binary.
  16539. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16540. # Set to "yes" if building a shared library automatically hardcodes DIR
  16541. # into the library and all subsequent libraries and executables linked
  16542. # against it.
  16543. hardcode_automatic=$hardcode_automatic_CXX
  16544. # Set to yes if linker adds runtime paths of dependent libraries
  16545. # to runtime path list.
  16546. inherit_rpath=$inherit_rpath_CXX
  16547. # Whether libtool must link a program against all its dependency libraries.
  16548. link_all_deplibs=$link_all_deplibs_CXX
  16549. # Set to "yes" if exported symbols are required.
  16550. always_export_symbols=$always_export_symbols_CXX
  16551. # The commands to list exported symbols.
  16552. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16553. # Symbols that should not be listed in the preloaded symbols.
  16554. exclude_expsyms=$lt_exclude_expsyms_CXX
  16555. # Symbols that must always be exported.
  16556. include_expsyms=$lt_include_expsyms_CXX
  16557. # Commands necessary for linking programs (against libraries) with templates.
  16558. prelink_cmds=$lt_prelink_cmds_CXX
  16559. # Commands necessary for finishing linking programs.
  16560. postlink_cmds=$lt_postlink_cmds_CXX
  16561. # Specify filename containing input files.
  16562. file_list_spec=$lt_file_list_spec_CXX
  16563. # How to hardcode a shared library path into an executable.
  16564. hardcode_action=$hardcode_action_CXX
  16565. # The directories searched by this compiler when creating a shared library.
  16566. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16567. # Dependencies to place before and after the objects being linked to
  16568. # create a shared library.
  16569. predep_objects=$lt_predep_objects_CXX
  16570. postdep_objects=$lt_postdep_objects_CXX
  16571. predeps=$lt_predeps_CXX
  16572. postdeps=$lt_postdeps_CXX
  16573. # The library search path used internally by the compiler when linking
  16574. # a shared library.
  16575. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16576. # ### END LIBTOOL TAG CONFIG: CXX
  16577. _LT_EOF
  16578. ;;
  16579. esac
  16580. done # for ac_tag
  16581. as_fn_exit 0
  16582. _ACEOF
  16583. ac_clean_files=$ac_clean_files_save
  16584. test $ac_write_fail = 0 ||
  16585. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16586. # configure is writing to config.log, and then calls config.status.
  16587. # config.status does its own redirection, appending to config.log.
  16588. # Unfortunately, on DOS this fails, as config.log is still kept open
  16589. # by configure, so config.status won't be able to write to it; its
  16590. # output is simply discarded. So we exec the FD to /dev/null,
  16591. # effectively closing config.log, so it can be properly (re)opened and
  16592. # appended to by config.status. When coming back to configure, we
  16593. # need to make the FD available again.
  16594. if test "$no_create" != yes; then
  16595. ac_cs_success=:
  16596. ac_config_status_args=
  16597. test "$silent" = yes &&
  16598. ac_config_status_args="$ac_config_status_args --quiet"
  16599. exec 5>/dev/null
  16600. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16601. exec 5>>config.log
  16602. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16603. # would make configure fail if this is the last instruction.
  16604. $ac_cs_success || as_fn_exit 1
  16605. fi
  16606. #
  16607. # CONFIG_SUBDIRS section.
  16608. #
  16609. if test "$no_recursion" != yes; then
  16610. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  16611. # so they do not pile up.
  16612. ac_sub_configure_args=
  16613. ac_prev=
  16614. eval "set x $ac_configure_args"
  16615. shift
  16616. for ac_arg
  16617. do
  16618. if test -n "$ac_prev"; then
  16619. ac_prev=
  16620. continue
  16621. fi
  16622. case $ac_arg in
  16623. -cache-file | --cache-file | --cache-fil | --cache-fi \
  16624. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  16625. ac_prev=cache_file ;;
  16626. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  16627. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  16628. | --c=*)
  16629. ;;
  16630. --config-cache | -C)
  16631. ;;
  16632. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  16633. ac_prev=srcdir ;;
  16634. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  16635. ;;
  16636. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  16637. ac_prev=prefix ;;
  16638. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  16639. ;;
  16640. --disable-option-checking)
  16641. ;;
  16642. *)
  16643. case $ac_arg in
  16644. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16645. esac
  16646. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  16647. esac
  16648. done
  16649. # Always prepend --prefix to ensure using the same prefix
  16650. # in subdir configurations.
  16651. ac_arg="--prefix=$prefix"
  16652. case $ac_arg in
  16653. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16654. esac
  16655. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  16656. # Pass --silent
  16657. if test "$silent" = yes; then
  16658. ac_sub_configure_args="--silent $ac_sub_configure_args"
  16659. fi
  16660. # Always prepend --disable-option-checking to silence warnings, since
  16661. # different subdirs can have different --enable and --with options.
  16662. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  16663. ac_popdir=`pwd`
  16664. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  16665. # Do not complain, so a configure script can configure whichever
  16666. # parts of a large source tree are present.
  16667. test -d "$srcdir/$ac_dir" || continue
  16668. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  16669. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  16670. $as_echo "$ac_msg" >&6
  16671. as_dir="$ac_dir"; as_fn_mkdir_p
  16672. ac_builddir=.
  16673. case "$ac_dir" in
  16674. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16675. *)
  16676. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16677. # A ".." for each directory in $ac_dir_suffix.
  16678. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16679. case $ac_top_builddir_sub in
  16680. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16681. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16682. esac ;;
  16683. esac
  16684. ac_abs_top_builddir=$ac_pwd
  16685. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16686. # for backward compatibility:
  16687. ac_top_builddir=$ac_top_build_prefix
  16688. case $srcdir in
  16689. .) # We are building in place.
  16690. ac_srcdir=.
  16691. ac_top_srcdir=$ac_top_builddir_sub
  16692. ac_abs_top_srcdir=$ac_pwd ;;
  16693. [\\/]* | ?:[\\/]* ) # Absolute name.
  16694. ac_srcdir=$srcdir$ac_dir_suffix;
  16695. ac_top_srcdir=$srcdir
  16696. ac_abs_top_srcdir=$srcdir ;;
  16697. *) # Relative name.
  16698. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16699. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16700. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16701. esac
  16702. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16703. cd "$ac_dir"
  16704. # Check for guested configure; otherwise get Cygnus style configure.
  16705. if test -f "$ac_srcdir/configure.gnu"; then
  16706. ac_sub_configure=$ac_srcdir/configure.gnu
  16707. elif test -f "$ac_srcdir/configure"; then
  16708. ac_sub_configure=$ac_srcdir/configure
  16709. elif test -f "$ac_srcdir/configure.in"; then
  16710. # This should be Cygnus configure.
  16711. ac_sub_configure=$ac_aux_dir/configure
  16712. else
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  16714. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  16715. ac_sub_configure=
  16716. fi
  16717. # The recursion is here.
  16718. if test -n "$ac_sub_configure"; then
  16719. # Make the cache file name correct relative to the subdirectory.
  16720. case $cache_file in
  16721. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  16722. *) # Relative name.
  16723. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  16724. esac
  16725. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  16726. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  16727. # The eval makes quoting arguments work.
  16728. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  16729. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  16730. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  16731. fi
  16732. cd "$ac_popdir"
  16733. done
  16734. fi
  16735. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16737. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16738. fi