/configure

http://google-perftools.googlecode.com/ · Shell · 19832 lines · 18894 code · 424 blank · 514 comment · 584 complexity · 20c7eedfe88196592a0379ef92328d6b MD5 · raw file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for google-perftools 1.9.1.
  4. #
  5. # Report bugs to <opensource@google.com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # 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. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: opensource@google.com about your system, including any
  217. $0: error possibly output before this message. Then install
  218. $0: a modern shell, or manually run the script under such a
  219. $0: shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. # Check that we are running under the correct shell.
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. case X$lt_ECHO in
  491. X*--fallback-echo)
  492. # Remove one level of quotation (which was required for Make).
  493. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  494. ;;
  495. esac
  496. ECHO=${lt_ECHO-echo}
  497. if test "X$1" = X--no-reexec; then
  498. # Discard the --no-reexec flag, and continue.
  499. shift
  500. elif test "X$1" = X--fallback-echo; then
  501. # Avoid inline document here, it may be left over
  502. :
  503. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  504. # Yippee, $ECHO works!
  505. :
  506. else
  507. # Restart under the correct shell.
  508. exec $SHELL "$0" --no-reexec ${1+"$@"}
  509. fi
  510. if test "X$1" = X--fallback-echo; then
  511. # used as fallback echo
  512. shift
  513. cat <<_LT_EOF
  514. $*
  515. _LT_EOF
  516. exit 0
  517. fi
  518. # The HP-UX ksh and POSIX shell print the target directory to stdout
  519. # if CDPATH is set.
  520. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  521. if test -z "$lt_ECHO"; then
  522. if test "X${echo_test_string+set}" != Xset; then
  523. # find a string as large as possible, as long as the shell can cope with it
  524. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  525. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  526. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  527. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  528. then
  529. break
  530. fi
  531. done
  532. fi
  533. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. :
  537. else
  538. # The Solaris, AIX, and Digital Unix default echo programs unquote
  539. # backslashes. This makes it impossible to quote backslashes using
  540. # echo "$something" | sed 's/\\/\\\\/g'
  541. #
  542. # So, first we look for a working echo in the user's PATH.
  543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  544. for dir in $PATH /usr/ucb; do
  545. IFS="$lt_save_ifs"
  546. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  547. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  548. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  549. test "X$echo_testing_string" = "X$echo_test_string"; then
  550. ECHO="$dir/echo"
  551. break
  552. fi
  553. done
  554. IFS="$lt_save_ifs"
  555. if test "X$ECHO" = Xecho; then
  556. # We didn't find a better echo, so look for alternatives.
  557. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. # This shell has a builtin print -r that does the trick.
  561. ECHO='print -r'
  562. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  563. test "X$CONFIG_SHELL" != X/bin/ksh; then
  564. # If we have ksh, try running configure again with it.
  565. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  566. export ORIGINAL_CONFIG_SHELL
  567. CONFIG_SHELL=/bin/ksh
  568. export CONFIG_SHELL
  569. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  570. else
  571. # Try using printf.
  572. ECHO='printf %s\n'
  573. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  574. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  575. test "X$echo_testing_string" = "X$echo_test_string"; then
  576. # Cool, printf works
  577. :
  578. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  579. test "X$echo_testing_string" = 'X\t' &&
  580. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  581. test "X$echo_testing_string" = "X$echo_test_string"; then
  582. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  583. export CONFIG_SHELL
  584. SHELL="$CONFIG_SHELL"
  585. export SHELL
  586. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  587. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  592. else
  593. # maybe with a smaller string...
  594. prev=:
  595. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  596. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  597. then
  598. break
  599. fi
  600. prev="$cmd"
  601. done
  602. if test "$prev" != 'sed 50q "$0"'; then
  603. echo_test_string=`eval $prev`
  604. export echo_test_string
  605. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  606. else
  607. # Oops. We lost completely, so just stick with echo.
  608. ECHO=echo
  609. fi
  610. fi
  611. fi
  612. fi
  613. fi
  614. fi
  615. # Copy echo and quote the copy suitably for passing to libtool from
  616. # the Makefile, instead of quoting the original, which is used later.
  617. lt_ECHO=$ECHO
  618. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  619. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  620. fi
  621. test -n "$DJDIR" || exec 7<&0 </dev/null
  622. exec 6>&1
  623. # Name of the host.
  624. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  625. # so uname gets run too.
  626. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  627. #
  628. # Initializations.
  629. #
  630. ac_default_prefix=/usr/local
  631. ac_clean_files=
  632. ac_config_libobj_dir=.
  633. LIBOBJS=
  634. cross_compiling=no
  635. subdirs=
  636. MFLAGS=
  637. MAKEFLAGS=
  638. # Identity of this package.
  639. PACKAGE_NAME='google-perftools'
  640. PACKAGE_TARNAME='google-perftools'
  641. PACKAGE_VERSION='1.9.1'
  642. PACKAGE_STRING='google-perftools 1.9.1'
  643. PACKAGE_BUGREPORT='opensource@google.com'
  644. PACKAGE_URL=''
  645. ac_unique_file="README"
  646. # Factoring default headers for most tests.
  647. ac_includes_default="\
  648. #include <stdio.h>
  649. #ifdef HAVE_SYS_TYPES_H
  650. # include <sys/types.h>
  651. #endif
  652. #ifdef HAVE_SYS_STAT_H
  653. # include <sys/stat.h>
  654. #endif
  655. #ifdef STDC_HEADERS
  656. # include <stdlib.h>
  657. # include <stddef.h>
  658. #else
  659. # ifdef HAVE_STDLIB_H
  660. # include <stdlib.h>
  661. # endif
  662. #endif
  663. #ifdef HAVE_STRING_H
  664. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  665. # include <memory.h>
  666. # endif
  667. # include <string.h>
  668. #endif
  669. #ifdef HAVE_STRINGS_H
  670. # include <strings.h>
  671. #endif
  672. #ifdef HAVE_INTTYPES_H
  673. # include <inttypes.h>
  674. #endif
  675. #ifdef HAVE_STDINT_H
  676. # include <stdint.h>
  677. #endif
  678. #ifdef HAVE_UNISTD_H
  679. # include <unistd.h>
  680. #endif"
  681. ac_header_list=
  682. ac_subst_vars='LTLIBOBJS
  683. LIBOBJS
  684. WITH_STACK_TRACE_FALSE
  685. WITH_STACK_TRACE_TRUE
  686. WITH_HEAP_PROFILER_OR_CHECKER_FALSE
  687. WITH_HEAP_PROFILER_OR_CHECKER_TRUE
  688. WITH_DEBUGALLOC_FALSE
  689. WITH_DEBUGALLOC_TRUE
  690. WITH_HEAP_CHECKER_FALSE
  691. WITH_HEAP_CHECKER_TRUE
  692. WITH_HEAP_PROFILER_FALSE
  693. WITH_HEAP_PROFILER_TRUE
  694. WITH_CPU_PROFILER_FALSE
  695. WITH_CPU_PROFILER_TRUE
  696. OSX_FALSE
  697. OSX_TRUE
  698. MINGW_FALSE
  699. MINGW_TRUE
  700. PTHREAD_CFLAGS
  701. PTHREAD_LIBS
  702. PTHREAD_CC
  703. acx_pthread_config
  704. LIBSTDCXX_LA_LINKER_FLAG
  705. NANOSLEEP_LIBS
  706. HAVE_W_NO_UNUSED_RESULT_FALSE
  707. HAVE_W_NO_UNUSED_RESULT_TRUE
  708. I386_FALSE
  709. I386_TRUE
  710. X86_64_AND_NO_FP_BY_DEFAULT_FALSE
  711. X86_64_AND_NO_FP_BY_DEFAULT_TRUE
  712. ENABLE_FRAME_POINTERS_FALSE
  713. ENABLE_FRAME_POINTERS_TRUE
  714. UNWIND_LIBS
  715. ENABLE_STATIC_FALSE
  716. ENABLE_STATIC_TRUE
  717. ac_cv_have_struct_mallinfo
  718. USE_LIBTOOL_FALSE
  719. USE_LIBTOOL_TRUE
  720. LIBTOOL_DEPS
  721. CXXCPP
  722. OTOOL64
  723. OTOOL
  724. LIPO
  725. NMEDIT
  726. DSYMUTIL
  727. lt_ECHO
  728. RANLIB
  729. AR
  730. OBJDUMP
  731. LN_S
  732. NM
  733. ac_ct_DUMPBIN
  734. DUMPBIN
  735. LD
  736. FGREP
  737. EGREP
  738. GREP
  739. SED
  740. LIBTOOL
  741. HAVE_OBJCOPY_WEAKEN_FALSE
  742. HAVE_OBJCOPY_WEAKEN_TRUE
  743. OBJCOPY
  744. GCC_FALSE
  745. GCC_TRUE
  746. CPP
  747. am__fastdepCC_FALSE
  748. am__fastdepCC_TRUE
  749. CCDEPMODE
  750. ac_ct_CC
  751. CFLAGS
  752. CC
  753. am__fastdepCXX_FALSE
  754. am__fastdepCXX_TRUE
  755. CXXDEPMODE
  756. AMDEPBACKSLASH
  757. AMDEP_FALSE
  758. AMDEP_TRUE
  759. am__quote
  760. am__include
  761. DEPDIR
  762. OBJEXT
  763. EXEEXT
  764. ac_ct_CXX
  765. CPPFLAGS
  766. LDFLAGS
  767. CXXFLAGS
  768. CXX
  769. TC_VERSION_PATCH
  770. TC_VERSION_MINOR
  771. TC_VERSION_MAJOR
  772. am__untar
  773. am__tar
  774. AMTAR
  775. am__leading_dot
  776. SET_MAKE
  777. AWK
  778. mkdir_p
  779. INSTALL_STRIP_PROGRAM
  780. STRIP
  781. install_sh
  782. MAKEINFO
  783. AUTOHEADER
  784. AUTOMAKE
  785. AUTOCONF
  786. ACLOCAL
  787. VERSION
  788. PACKAGE
  789. CYGPATH_W
  790. INSTALL_DATA
  791. INSTALL_SCRIPT
  792. INSTALL_PROGRAM
  793. host_os
  794. host_vendor
  795. host_cpu
  796. host
  797. build_os
  798. build_vendor
  799. build_cpu
  800. build
  801. PROFILER_SO_VERSION
  802. TCMALLOC_SO_VERSION
  803. target_alias
  804. host_alias
  805. build_alias
  806. LIBS
  807. ECHO_T
  808. ECHO_N
  809. ECHO_C
  810. DEFS
  811. mandir
  812. localedir
  813. libdir
  814. psdir
  815. pdfdir
  816. dvidir
  817. htmldir
  818. infodir
  819. docdir
  820. oldincludedir
  821. includedir
  822. localstatedir
  823. sharedstatedir
  824. sysconfdir
  825. datadir
  826. datarootdir
  827. libexecdir
  828. sbindir
  829. bindir
  830. program_transform_name
  831. prefix
  832. exec_prefix
  833. PACKAGE_URL
  834. PACKAGE_BUGREPORT
  835. PACKAGE_STRING
  836. PACKAGE_VERSION
  837. PACKAGE_TARNAME
  838. PACKAGE_NAME
  839. PATH_SEPARATOR
  840. SHELL'
  841. ac_subst_files=''
  842. ac_user_opts='
  843. enable_option_checking
  844. enable_cpu_profiler
  845. enable_heap_profiler
  846. enable_heap_checker
  847. enable_debugalloc
  848. enable_minimal
  849. enable_dependency_tracking
  850. enable_fast_install
  851. enable_shared
  852. enable_static
  853. with_pic
  854. with_gnu_ld
  855. enable_libtool_lock
  856. enable_frame_pointers
  857. '
  858. ac_precious_vars='build_alias
  859. host_alias
  860. target_alias
  861. CXX
  862. CXXFLAGS
  863. LDFLAGS
  864. LIBS
  865. CPPFLAGS
  866. CCC
  867. CC
  868. CFLAGS
  869. CPP
  870. CXXCPP'
  871. # Initialize some variables set by options.
  872. ac_init_help=
  873. ac_init_version=false
  874. ac_unrecognized_opts=
  875. ac_unrecognized_sep=
  876. # The variables have the same names as the options, with
  877. # dashes changed to underlines.
  878. cache_file=/dev/null
  879. exec_prefix=NONE
  880. no_create=
  881. no_recursion=
  882. prefix=NONE
  883. program_prefix=NONE
  884. program_suffix=NONE
  885. program_transform_name=s,x,x,
  886. silent=
  887. site=
  888. srcdir=
  889. verbose=
  890. x_includes=NONE
  891. x_libraries=NONE
  892. # Installation directory options.
  893. # These are left unexpanded so users can "make install exec_prefix=/foo"
  894. # and all the variables that are supposed to be based on exec_prefix
  895. # by default will actually change.
  896. # Use braces instead of parens because sh, perl, etc. also accept them.
  897. # (The list follows the same order as the GNU Coding Standards.)
  898. bindir='${exec_prefix}/bin'
  899. sbindir='${exec_prefix}/sbin'
  900. libexecdir='${exec_prefix}/libexec'
  901. datarootdir='${prefix}/share'
  902. datadir='${datarootdir}'
  903. sysconfdir='${prefix}/etc'
  904. sharedstatedir='${prefix}/com'
  905. localstatedir='${prefix}/var'
  906. includedir='${prefix}/include'
  907. oldincludedir='/usr/include'
  908. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  909. infodir='${datarootdir}/info'
  910. htmldir='${docdir}'
  911. dvidir='${docdir}'
  912. pdfdir='${docdir}'
  913. psdir='${docdir}'
  914. libdir='${exec_prefix}/lib'
  915. localedir='${datarootdir}/locale'
  916. mandir='${datarootdir}/man'
  917. ac_prev=
  918. ac_dashdash=
  919. for ac_option
  920. do
  921. # If the previous option needs an argument, assign it.
  922. if test -n "$ac_prev"; then
  923. eval $ac_prev=\$ac_option
  924. ac_prev=
  925. continue
  926. fi
  927. case $ac_option in
  928. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  929. *) ac_optarg=yes ;;
  930. esac
  931. # Accept the important Cygnus configure options, so we can diagnose typos.
  932. case $ac_dashdash$ac_option in
  933. --)
  934. ac_dashdash=yes ;;
  935. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  936. ac_prev=bindir ;;
  937. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  938. bindir=$ac_optarg ;;
  939. -build | --build | --buil | --bui | --bu)
  940. ac_prev=build_alias ;;
  941. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  942. build_alias=$ac_optarg ;;
  943. -cache-file | --cache-file | --cache-fil | --cache-fi \
  944. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  945. ac_prev=cache_file ;;
  946. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  947. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  948. cache_file=$ac_optarg ;;
  949. --config-cache | -C)
  950. cache_file=config.cache ;;
  951. -datadir | --datadir | --datadi | --datad)
  952. ac_prev=datadir ;;
  953. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  954. datadir=$ac_optarg ;;
  955. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  956. | --dataroo | --dataro | --datar)
  957. ac_prev=datarootdir ;;
  958. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  959. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  960. datarootdir=$ac_optarg ;;
  961. -disable-* | --disable-*)
  962. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  963. # Reject names that are not valid shell variable names.
  964. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  965. as_fn_error "invalid feature name: $ac_useropt"
  966. ac_useropt_orig=$ac_useropt
  967. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  968. case $ac_user_opts in
  969. *"
  970. "enable_$ac_useropt"
  971. "*) ;;
  972. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  973. ac_unrecognized_sep=', ';;
  974. esac
  975. eval enable_$ac_useropt=no ;;
  976. -docdir | --docdir | --docdi | --doc | --do)
  977. ac_prev=docdir ;;
  978. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  979. docdir=$ac_optarg ;;
  980. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  981. ac_prev=dvidir ;;
  982. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  983. dvidir=$ac_optarg ;;
  984. -enable-* | --enable-*)
  985. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. as_fn_error "invalid feature name: $ac_useropt"
  989. ac_useropt_orig=$ac_useropt
  990. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. case $ac_user_opts in
  992. *"
  993. "enable_$ac_useropt"
  994. "*) ;;
  995. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  996. ac_unrecognized_sep=', ';;
  997. esac
  998. eval enable_$ac_useropt=\$ac_optarg ;;
  999. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1000. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1001. | --exec | --exe | --ex)
  1002. ac_prev=exec_prefix ;;
  1003. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1004. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1005. | --exec=* | --exe=* | --ex=*)
  1006. exec_prefix=$ac_optarg ;;
  1007. -gas | --gas | --ga | --g)
  1008. # Obsolete; use --with-gas.
  1009. with_gas=yes ;;
  1010. -help | --help | --hel | --he | -h)
  1011. ac_init_help=long ;;
  1012. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1013. ac_init_help=recursive ;;
  1014. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1015. ac_init_help=short ;;
  1016. -host | --host | --hos | --ho)
  1017. ac_prev=host_alias ;;
  1018. -host=* | --host=* | --hos=* | --ho=*)
  1019. host_alias=$ac_optarg ;;
  1020. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1021. ac_prev=htmldir ;;
  1022. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1023. | --ht=*)
  1024. htmldir=$ac_optarg ;;
  1025. -includedir | --includedir | --includedi | --included | --include \
  1026. | --includ | --inclu | --incl | --inc)
  1027. ac_prev=includedir ;;
  1028. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1029. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1030. includedir=$ac_optarg ;;
  1031. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1032. ac_prev=infodir ;;
  1033. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1034. infodir=$ac_optarg ;;
  1035. -libdir | --libdir | --libdi | --libd)
  1036. ac_prev=libdir ;;
  1037. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1038. libdir=$ac_optarg ;;
  1039. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1040. | --libexe | --libex | --libe)
  1041. ac_prev=libexecdir ;;
  1042. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1043. | --libexe=* | --libex=* | --libe=*)
  1044. libexecdir=$ac_optarg ;;
  1045. -localedir | --localedir | --localedi | --localed | --locale)
  1046. ac_prev=localedir ;;
  1047. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1048. localedir=$ac_optarg ;;
  1049. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1050. | --localstate | --localstat | --localsta | --localst | --locals)
  1051. ac_prev=localstatedir ;;
  1052. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1053. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1054. localstatedir=$ac_optarg ;;
  1055. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1056. ac_prev=mandir ;;
  1057. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1058. mandir=$ac_optarg ;;
  1059. -nfp | --nfp | --nf)
  1060. # Obsolete; use --without-fp.
  1061. with_fp=no ;;
  1062. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1063. | --no-cr | --no-c | -n)
  1064. no_create=yes ;;
  1065. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1066. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1067. no_recursion=yes ;;
  1068. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1069. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1070. | --oldin | --oldi | --old | --ol | --o)
  1071. ac_prev=oldincludedir ;;
  1072. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1073. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1074. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1075. oldincludedir=$ac_optarg ;;
  1076. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1077. ac_prev=prefix ;;
  1078. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1079. prefix=$ac_optarg ;;
  1080. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1081. | --program-pre | --program-pr | --program-p)
  1082. ac_prev=program_prefix ;;
  1083. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1084. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1085. program_prefix=$ac_optarg ;;
  1086. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1087. | --program-suf | --program-su | --program-s)
  1088. ac_prev=program_suffix ;;
  1089. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1090. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1091. program_suffix=$ac_optarg ;;
  1092. -program-transform-name | --program-transform-name \
  1093. | --program-transform-nam | --program-transform-na \
  1094. | --program-transform-n | --program-transform- \
  1095. | --program-transform | --program-transfor \
  1096. | --program-transfo | --program-transf \
  1097. | --program-trans | --program-tran \
  1098. | --progr-tra | --program-tr | --program-t)
  1099. ac_prev=program_transform_name ;;
  1100. -program-transform-name=* | --program-transform-name=* \
  1101. | --program-transform-nam=* | --program-transform-na=* \
  1102. | --program-transform-n=* | --program-transform-=* \
  1103. | --program-transform=* | --program-transfor=* \
  1104. | --program-transfo=* | --program-transf=* \
  1105. | --program-trans=* | --program-tran=* \
  1106. | --progr-tra=* | --program-tr=* | --program-t=*)
  1107. program_transform_name=$ac_optarg ;;
  1108. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1109. ac_prev=pdfdir ;;
  1110. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1111. pdfdir=$ac_optarg ;;
  1112. -psdir | --psdir | --psdi | --psd | --ps)
  1113. ac_prev=psdir ;;
  1114. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1115. psdir=$ac_optarg ;;
  1116. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1117. | -silent | --silent | --silen | --sile | --sil)
  1118. silent=yes ;;
  1119. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1120. ac_prev=sbindir ;;
  1121. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1122. | --sbi=* | --sb=*)
  1123. sbindir=$ac_optarg ;;
  1124. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1125. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1126. | --sharedst | --shareds | --shared | --share | --shar \
  1127. | --sha | --sh)
  1128. ac_prev=sharedstatedir ;;
  1129. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1130. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1131. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1132. | --sha=* | --sh=*)
  1133. sharedstatedir=$ac_optarg ;;
  1134. -site | --site | --sit)
  1135. ac_prev=site ;;
  1136. -site=* | --site=* | --sit=*)
  1137. site=$ac_optarg ;;
  1138. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1139. ac_prev=srcdir ;;
  1140. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1141. srcdir=$ac_optarg ;;
  1142. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1143. | --syscon | --sysco | --sysc | --sys | --sy)
  1144. ac_prev=sysconfdir ;;
  1145. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1146. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1147. sysconfdir=$ac_optarg ;;
  1148. -target | --target | --targe | --targ | --tar | --ta | --t)
  1149. ac_prev=target_alias ;;
  1150. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1151. target_alias=$ac_optarg ;;
  1152. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1153. verbose=yes ;;
  1154. -version | --version | --versio | --versi | --vers | -V)
  1155. ac_init_version=: ;;
  1156. -with-* | --with-*)
  1157. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1158. # Reject names that are not valid shell variable names.
  1159. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1160. as_fn_error "invalid package name: $ac_useropt"
  1161. ac_useropt_orig=$ac_useropt
  1162. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1163. case $ac_user_opts in
  1164. *"
  1165. "with_$ac_useropt"
  1166. "*) ;;
  1167. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1168. ac_unrecognized_sep=', ';;
  1169. esac
  1170. eval with_$ac_useropt=\$ac_optarg ;;
  1171. -without-* | --without-*)
  1172. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1173. # Reject names that are not valid shell variable names.
  1174. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1175. as_fn_error "invalid package name: $ac_useropt"
  1176. ac_useropt_orig=$ac_useropt
  1177. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1178. case $ac_user_opts in
  1179. *"
  1180. "with_$ac_useropt"
  1181. "*) ;;
  1182. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1183. ac_unrecognized_sep=', ';;
  1184. esac
  1185. eval with_$ac_useropt=no ;;
  1186. --x)
  1187. # Obsolete; use --with-x.
  1188. with_x=yes ;;
  1189. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1190. | --x-incl | --x-inc | --x-in | --x-i)
  1191. ac_prev=x_includes ;;
  1192. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1193. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1194. x_includes=$ac_optarg ;;
  1195. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1196. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1197. ac_prev=x_libraries ;;
  1198. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1199. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1200. x_libraries=$ac_optarg ;;
  1201. -*) as_fn_error "unrecognized option: \`$ac_option'
  1202. Try \`$0 --help' for more information."
  1203. ;;
  1204. *=*)
  1205. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1206. # Reject names that are not valid shell variable names.
  1207. case $ac_envvar in #(
  1208. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1209. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1210. esac
  1211. eval $ac_envvar=\$ac_optarg
  1212. export $ac_envvar ;;
  1213. *)
  1214. # FIXME: should be removed in autoconf 3.0.
  1215. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1216. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1217. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1218. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1219. ;;
  1220. esac
  1221. done
  1222. if test -n "$ac_prev"; then
  1223. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1224. as_fn_error "missing argument to $ac_option"
  1225. fi
  1226. if test -n "$ac_unrecognized_opts"; then
  1227. case $enable_option_checking in
  1228. no) ;;
  1229. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1230. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1231. esac
  1232. fi
  1233. # Check all directory arguments for consistency.
  1234. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1235. datadir sysconfdir sharedstatedir localstatedir includedir \
  1236. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1237. libdir localedir mandir
  1238. do
  1239. eval ac_val=\$$ac_var
  1240. # Remove trailing slashes.
  1241. case $ac_val in
  1242. */ )
  1243. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1244. eval $ac_var=\$ac_val;;
  1245. esac
  1246. # Be sure to have absolute directory names.
  1247. case $ac_val in
  1248. [\\/$]* | ?:[\\/]* ) continue;;
  1249. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1250. esac
  1251. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1252. done
  1253. # There might be people who depend on the old broken behavior: `$host'
  1254. # used to hold the argument of --host etc.
  1255. # FIXME: To remove some day.
  1256. build=$build_alias
  1257. host=$host_alias
  1258. target=$target_alias
  1259. # FIXME: To remove some day.
  1260. if test "x$host_alias" != x; then
  1261. if test "x$build_alias" = x; then
  1262. cross_compiling=maybe
  1263. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1264. If a cross compiler is detected then cross compile mode will be used." >&2
  1265. elif test "x$build_alias" != "x$host_alias"; then
  1266. cross_compiling=yes
  1267. fi
  1268. fi
  1269. ac_tool_prefix=
  1270. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1271. test "$silent" = yes && exec 6>/dev/null
  1272. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1273. ac_ls_di=`ls -di .` &&
  1274. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1275. as_fn_error "working directory cannot be determined"
  1276. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1277. as_fn_error "pwd does not report name of working directory"
  1278. # Find the source files, if location was not specified.
  1279. if test -z "$srcdir"; then
  1280. ac_srcdir_defaulted=yes
  1281. # Try the directory containing this script, then the parent directory.
  1282. ac_confdir=`$as_dirname -- "$as_myself" ||
  1283. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1284. X"$as_myself" : 'X\(//\)[^/]' \| \
  1285. X"$as_myself" : 'X\(//\)$' \| \
  1286. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1287. $as_echo X"$as_myself" |
  1288. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1289. s//\1/
  1290. q
  1291. }
  1292. /^X\(\/\/\)[^/].*/{
  1293. s//\1/
  1294. q
  1295. }
  1296. /^X\(\/\/\)$/{
  1297. s//\1/
  1298. q
  1299. }
  1300. /^X\(\/\).*/{
  1301. s//\1/
  1302. q
  1303. }
  1304. s/.*/./; q'`
  1305. srcdir=$ac_confdir
  1306. if test ! -r "$srcdir/$ac_unique_file"; then
  1307. srcdir=..
  1308. fi
  1309. else
  1310. ac_srcdir_defaulted=no
  1311. fi
  1312. if test ! -r "$srcdir/$ac_unique_file"; then
  1313. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1314. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1315. fi
  1316. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1317. ac_abs_confdir=`(
  1318. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1319. pwd)`
  1320. # When building in place, set srcdir=.
  1321. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1322. srcdir=.
  1323. fi
  1324. # Remove unnecessary trailing slashes from srcdir.
  1325. # Double slashes in file names in object file debugging info
  1326. # mess up M-x gdb in Emacs.
  1327. case $srcdir in
  1328. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1329. esac
  1330. for ac_var in $ac_precious_vars; do
  1331. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1332. eval ac_env_${ac_var}_value=\$${ac_var}
  1333. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1334. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1335. done
  1336. #
  1337. # Report the --help message.
  1338. #
  1339. if test "$ac_init_help" = "long"; then
  1340. # Omit some internal or obsolete options to make the list less imposing.
  1341. # This message is too long to be a string in the A/UX 3.1 sh.
  1342. cat <<_ACEOF
  1343. \`configure' configures google-perftools 1.9.1 to adapt to many kinds of systems.
  1344. Usage: $0 [OPTION]... [VAR=VALUE]...
  1345. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1346. VAR=VALUE. See below for descriptions of some of the useful variables.
  1347. Defaults for the options are specified in brackets.
  1348. Configuration:
  1349. -h, --help display this help and exit
  1350. --help=short display options specific to this package
  1351. --help=recursive display the short help of all the included packages
  1352. -V, --version display version information and exit
  1353. -q, --quiet, --silent do not print \`checking...' messages
  1354. --cache-file=FILE cache test results in FILE [disabled]
  1355. -C, --config-cache alias for \`--cache-file=config.cache'
  1356. -n, --no-create do not create output files
  1357. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1358. Installation directories:
  1359. --prefix=PREFIX install architecture-independent files in PREFIX
  1360. [$ac_default_prefix]
  1361. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1362. [PREFIX]
  1363. By default, \`make install' will install all the files in
  1364. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1365. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1366. for instance \`--prefix=\$HOME'.
  1367. For better control, use the options below.
  1368. Fine tuning of the installation directories:
  1369. --bindir=DIR user executables [EPREFIX/bin]
  1370. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1371. --libexecdir=DIR program executables [EPREFIX/libexec]
  1372. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1373. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1374. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1375. --libdir=DIR object code libraries [EPREFIX/lib]
  1376. --includedir=DIR C header files [PREFIX/include]
  1377. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1378. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1379. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1380. --infodir=DIR info documentation [DATAROOTDIR/info]
  1381. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1382. --mandir=DIR man documentation [DATAROOTDIR/man]
  1383. --docdir=DIR documentation root
  1384. [DATAROOTDIR/doc/google-perftools]
  1385. --htmldir=DIR html documentation [DOCDIR]
  1386. --dvidir=DIR dvi documentation [DOCDIR]
  1387. --pdfdir=DIR pdf documentation [DOCDIR]
  1388. --psdir=DIR ps documentation [DOCDIR]
  1389. _ACEOF
  1390. cat <<\_ACEOF
  1391. Program names:
  1392. --program-prefix=PREFIX prepend PREFIX to installed program names
  1393. --program-suffix=SUFFIX append SUFFIX to installed program names
  1394. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1395. System types:
  1396. --build=BUILD configure for building on BUILD [guessed]
  1397. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1398. _ACEOF
  1399. fi
  1400. if test -n "$ac_init_help"; then
  1401. case $ac_init_help in
  1402. short | recursive ) echo "Configuration of google-perftools 1.9.1:";;
  1403. esac
  1404. cat <<\_ACEOF
  1405. Optional Features:
  1406. --disable-option-checking ignore unrecognized --enable/--with options
  1407. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1408. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1409. --disable-cpu-profiler do not build the cpu profiler
  1410. --disable-heap-profiler do not build the heap profiler
  1411. --disable-heap-checker do not build the heap checker
  1412. --disable-debugalloc do not build versions of libs with debugalloc
  1413. --enable-minimal build only tcmalloc-minimal (and maybe
  1414. tcmalloc-minimal-debug)
  1415. --disable-dependency-tracking speeds up one-time build
  1416. --enable-dependency-tracking do not reject slow dependency extractors
  1417. --enable-fast-install[=PKGS]
  1418. optimize for fast installation [default=no]
  1419. --enable-shared[=PKGS] build shared libraries [default=yes]
  1420. --enable-static[=PKGS] build static libraries [default=yes]
  1421. --disable-libtool-lock avoid locking (might break parallel builds)
  1422. --enable-frame-pointers On x86_64 systems, compile with
  1423. -fno-omit-frame-pointer (see INSTALL)
  1424. Optional Packages:
  1425. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1426. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1427. --with-pic try to use only PIC/non-PIC objects [default=use
  1428. both]
  1429. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1430. Some influential environment variables:
  1431. CXX C++ compiler command
  1432. CXXFLAGS C++ compiler flags
  1433. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1434. nonstandard directory <lib dir>
  1435. LIBS libraries to pass to the linker, e.g. -l<library>
  1436. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1437. you have headers in a nonstandard directory <include dir>
  1438. CC C compiler command
  1439. CFLAGS C compiler flags
  1440. CPP C preprocessor
  1441. CXXCPP C++ preprocessor
  1442. Use these variables to override the choices made by `configure' or to help
  1443. it to find libraries and programs with nonstandard names/locations.
  1444. Report bugs to <opensource@google.com>.
  1445. _ACEOF
  1446. ac_status=$?
  1447. fi
  1448. if test "$ac_init_help" = "recursive"; then
  1449. # If there are subdirs, report their specific --help.
  1450. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1451. test -d "$ac_dir" ||
  1452. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1453. continue
  1454. ac_builddir=.
  1455. case "$ac_dir" in
  1456. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1457. *)
  1458. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1459. # A ".." for each directory in $ac_dir_suffix.
  1460. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1461. case $ac_top_builddir_sub in
  1462. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1463. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1464. esac ;;
  1465. esac
  1466. ac_abs_top_builddir=$ac_pwd
  1467. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1468. # for backward compatibility:
  1469. ac_top_builddir=$ac_top_build_prefix
  1470. case $srcdir in
  1471. .) # We are building in place.
  1472. ac_srcdir=.
  1473. ac_top_srcdir=$ac_top_builddir_sub
  1474. ac_abs_top_srcdir=$ac_pwd ;;
  1475. [\\/]* | ?:[\\/]* ) # Absolute name.
  1476. ac_srcdir=$srcdir$ac_dir_suffix;
  1477. ac_top_srcdir=$srcdir
  1478. ac_abs_top_srcdir=$srcdir ;;
  1479. *) # Relative name.
  1480. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1481. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1482. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1483. esac
  1484. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1485. cd "$ac_dir" || { ac_status=$?; continue; }
  1486. # Check for guested configure.
  1487. if test -f "$ac_srcdir/configure.gnu"; then
  1488. echo &&
  1489. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1490. elif test -f "$ac_srcdir/configure"; then
  1491. echo &&
  1492. $SHELL "$ac_srcdir/configure" --help=recursive
  1493. else
  1494. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1495. fi || ac_status=$?
  1496. cd "$ac_pwd" || { ac_status=$?; break; }
  1497. done
  1498. fi
  1499. test -n "$ac_init_help" && exit $ac_status
  1500. if $ac_init_version; then
  1501. cat <<\_ACEOF
  1502. google-perftools configure 1.9.1
  1503. generated by GNU Autoconf 2.65
  1504. Copyright (C) 2009 Free Software Foundation, Inc.
  1505. This configure script is free software; the Free Software Foundation
  1506. gives unlimited permission to copy, distribute and modify it.
  1507. _ACEOF
  1508. exit
  1509. fi
  1510. ## ------------------------ ##
  1511. ## Autoconf initialization. ##
  1512. ## ------------------------ ##
  1513. # ac_fn_cxx_try_compile LINENO
  1514. # ----------------------------
  1515. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1516. ac_fn_cxx_try_compile ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. rm -f conftest.$ac_objext
  1520. if { { ac_try="$ac_compile"
  1521. case "(($ac_try" in
  1522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1523. *) ac_try_echo=$ac_try;;
  1524. esac
  1525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1526. $as_echo "$ac_try_echo"; } >&5
  1527. (eval "$ac_compile") 2>conftest.err
  1528. ac_status=$?
  1529. if test -s conftest.err; then
  1530. grep -v '^ *+' conftest.err >conftest.er1
  1531. cat conftest.er1 >&5
  1532. mv -f conftest.er1 conftest.err
  1533. fi
  1534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1535. test $ac_status = 0; } && {
  1536. test -z "$ac_cxx_werror_flag" ||
  1537. test ! -s conftest.err
  1538. } && test -s conftest.$ac_objext; then :
  1539. ac_retval=0
  1540. else
  1541. $as_echo "$as_me: failed program was:" >&5
  1542. sed 's/^/| /' conftest.$ac_ext >&5
  1543. ac_retval=1
  1544. fi
  1545. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1546. as_fn_set_status $ac_retval
  1547. } # ac_fn_cxx_try_compile
  1548. # ac_fn_c_try_compile LINENO
  1549. # --------------------------
  1550. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1551. ac_fn_c_try_compile ()
  1552. {
  1553. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1554. rm -f conftest.$ac_objext
  1555. if { { ac_try="$ac_compile"
  1556. case "(($ac_try" in
  1557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1558. *) ac_try_echo=$ac_try;;
  1559. esac
  1560. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1561. $as_echo "$ac_try_echo"; } >&5
  1562. (eval "$ac_compile") 2>conftest.err
  1563. ac_status=$?
  1564. if test -s conftest.err; then
  1565. grep -v '^ *+' conftest.err >conftest.er1
  1566. cat conftest.er1 >&5
  1567. mv -f conftest.er1 conftest.err
  1568. fi
  1569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1570. test $ac_status = 0; } && {
  1571. test -z "$ac_c_werror_flag" ||
  1572. test ! -s conftest.err
  1573. } && test -s conftest.$ac_objext; then :
  1574. ac_retval=0
  1575. else
  1576. $as_echo "$as_me: failed program was:" >&5
  1577. sed 's/^/| /' conftest.$ac_ext >&5
  1578. ac_retval=1
  1579. fi
  1580. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1581. as_fn_set_status $ac_retval
  1582. } # ac_fn_c_try_compile
  1583. # ac_fn_c_try_cpp LINENO
  1584. # ----------------------
  1585. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1586. ac_fn_c_try_cpp ()
  1587. {
  1588. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1589. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1590. case "(($ac_try" in
  1591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1592. *) ac_try_echo=$ac_try;;
  1593. esac
  1594. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1595. $as_echo "$ac_try_echo"; } >&5
  1596. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1597. ac_status=$?
  1598. if test -s conftest.err; then
  1599. grep -v '^ *+' conftest.err >conftest.er1
  1600. cat conftest.er1 >&5
  1601. mv -f conftest.er1 conftest.err
  1602. fi
  1603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1604. test $ac_status = 0; } >/dev/null && {
  1605. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1606. test ! -s conftest.err
  1607. }; then :
  1608. ac_retval=0
  1609. else
  1610. $as_echo "$as_me: failed program was:" >&5
  1611. sed 's/^/| /' conftest.$ac_ext >&5
  1612. ac_retval=1
  1613. fi
  1614. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1615. as_fn_set_status $ac_retval
  1616. } # ac_fn_c_try_cpp
  1617. # ac_fn_c_try_link LINENO
  1618. # -----------------------
  1619. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1620. ac_fn_c_try_link ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. rm -f conftest.$ac_objext conftest$ac_exeext
  1624. if { { ac_try="$ac_link"
  1625. case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1630. $as_echo "$ac_try_echo"; } >&5
  1631. (eval "$ac_link") 2>conftest.err
  1632. ac_status=$?
  1633. if test -s conftest.err; then
  1634. grep -v '^ *+' conftest.err >conftest.er1
  1635. cat conftest.er1 >&5
  1636. mv -f conftest.er1 conftest.err
  1637. fi
  1638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1639. test $ac_status = 0; } && {
  1640. test -z "$ac_c_werror_flag" ||
  1641. test ! -s conftest.err
  1642. } && test -s conftest$ac_exeext && {
  1643. test "$cross_compiling" = yes ||
  1644. $as_test_x conftest$ac_exeext
  1645. }; then :
  1646. ac_retval=0
  1647. else
  1648. $as_echo "$as_me: failed program was:" >&5
  1649. sed 's/^/| /' conftest.$ac_ext >&5
  1650. ac_retval=1
  1651. fi
  1652. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1653. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1654. # interfere with the next link command; also delete a directory that is
  1655. # left behind by Apple's compiler. We do this before executing the actions.
  1656. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1657. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1658. as_fn_set_status $ac_retval
  1659. } # ac_fn_c_try_link
  1660. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1661. # -------------------------------------------------------
  1662. # Tests whether HEADER exists and can be compiled using the include files in
  1663. # INCLUDES, setting the cache variable VAR accordingly.
  1664. ac_fn_c_check_header_compile ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1668. $as_echo_n "checking for $2... " >&6; }
  1669. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1670. $as_echo_n "(cached) " >&6
  1671. else
  1672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1673. /* end confdefs.h. */
  1674. $4
  1675. #include <$2>
  1676. _ACEOF
  1677. if ac_fn_c_try_compile "$LINENO"; then :
  1678. eval "$3=yes"
  1679. else
  1680. eval "$3=no"
  1681. fi
  1682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1683. fi
  1684. eval ac_res=\$$3
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1686. $as_echo "$ac_res" >&6; }
  1687. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1688. } # ac_fn_c_check_header_compile
  1689. # ac_fn_c_try_run LINENO
  1690. # ----------------------
  1691. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1692. # that executables *can* be run.
  1693. ac_fn_c_try_run ()
  1694. {
  1695. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1696. if { { ac_try="$ac_link"
  1697. case "(($ac_try" in
  1698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1699. *) ac_try_echo=$ac_try;;
  1700. esac
  1701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1702. $as_echo "$ac_try_echo"; } >&5
  1703. (eval "$ac_link") 2>&5
  1704. ac_status=$?
  1705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1706. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1707. { { case "(($ac_try" in
  1708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1709. *) ac_try_echo=$ac_try;;
  1710. esac
  1711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1712. $as_echo "$ac_try_echo"; } >&5
  1713. (eval "$ac_try") 2>&5
  1714. ac_status=$?
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; }; }; then :
  1717. ac_retval=0
  1718. else
  1719. $as_echo "$as_me: program exited with status $ac_status" >&5
  1720. $as_echo "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_retval=$ac_status
  1723. fi
  1724. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1725. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1726. as_fn_set_status $ac_retval
  1727. } # ac_fn_c_try_run
  1728. # ac_fn_c_check_func LINENO FUNC VAR
  1729. # ----------------------------------
  1730. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1731. ac_fn_c_check_func ()
  1732. {
  1733. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1735. $as_echo_n "checking for $2... " >&6; }
  1736. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1737. $as_echo_n "(cached) " >&6
  1738. else
  1739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1740. /* end confdefs.h. */
  1741. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1742. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1743. #define $2 innocuous_$2
  1744. /* System header to define __stub macros and hopefully few prototypes,
  1745. which can conflict with char $2 (); below.
  1746. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1747. <limits.h> exists even on freestanding compilers. */
  1748. #ifdef __STDC__
  1749. # include <limits.h>
  1750. #else
  1751. # include <assert.h>
  1752. #endif
  1753. #undef $2
  1754. /* Override any GCC internal prototype to avoid an error.
  1755. Use char because int might match the return type of a GCC
  1756. builtin and then its argument prototype would still apply. */
  1757. #ifdef __cplusplus
  1758. extern "C"
  1759. #endif
  1760. char $2 ();
  1761. /* The GNU C library defines this for functions which it implements
  1762. to always fail with ENOSYS. Some functions are actually named
  1763. something starting with __ and the normal name is an alias. */
  1764. #if defined __stub_$2 || defined __stub___$2
  1765. choke me
  1766. #endif
  1767. int
  1768. main ()
  1769. {
  1770. return $2 ();
  1771. ;
  1772. return 0;
  1773. }
  1774. _ACEOF
  1775. if ac_fn_c_try_link "$LINENO"; then :
  1776. eval "$3=yes"
  1777. else
  1778. eval "$3=no"
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext \
  1781. conftest$ac_exeext conftest.$ac_ext
  1782. fi
  1783. eval ac_res=\$$3
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1785. $as_echo "$ac_res" >&6; }
  1786. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1787. } # ac_fn_c_check_func
  1788. # ac_fn_cxx_try_cpp LINENO
  1789. # ------------------------
  1790. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1791. ac_fn_cxx_try_cpp ()
  1792. {
  1793. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1794. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1795. case "(($ac_try" in
  1796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1797. *) ac_try_echo=$ac_try;;
  1798. esac
  1799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1800. $as_echo "$ac_try_echo"; } >&5
  1801. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1802. ac_status=$?
  1803. if test -s conftest.err; then
  1804. grep -v '^ *+' conftest.err >conftest.er1
  1805. cat conftest.er1 >&5
  1806. mv -f conftest.er1 conftest.err
  1807. fi
  1808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1809. test $ac_status = 0; } >/dev/null && {
  1810. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1811. test ! -s conftest.err
  1812. }; then :
  1813. ac_retval=0
  1814. else
  1815. $as_echo "$as_me: failed program was:" >&5
  1816. sed 's/^/| /' conftest.$ac_ext >&5
  1817. ac_retval=1
  1818. fi
  1819. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1820. as_fn_set_status $ac_retval
  1821. } # ac_fn_cxx_try_cpp
  1822. # ac_fn_cxx_try_link LINENO
  1823. # -------------------------
  1824. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1825. ac_fn_cxx_try_link ()
  1826. {
  1827. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828. rm -f conftest.$ac_objext conftest$ac_exeext
  1829. if { { ac_try="$ac_link"
  1830. case "(($ac_try" in
  1831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1832. *) ac_try_echo=$ac_try;;
  1833. esac
  1834. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1835. $as_echo "$ac_try_echo"; } >&5
  1836. (eval "$ac_link") 2>conftest.err
  1837. ac_status=$?
  1838. if test -s conftest.err; then
  1839. grep -v '^ *+' conftest.err >conftest.er1
  1840. cat conftest.er1 >&5
  1841. mv -f conftest.er1 conftest.err
  1842. fi
  1843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1844. test $ac_status = 0; } && {
  1845. test -z "$ac_cxx_werror_flag" ||
  1846. test ! -s conftest.err
  1847. } && test -s conftest$ac_exeext && {
  1848. test "$cross_compiling" = yes ||
  1849. $as_test_x conftest$ac_exeext
  1850. }; then :
  1851. ac_retval=0
  1852. else
  1853. $as_echo "$as_me: failed program was:" >&5
  1854. sed 's/^/| /' conftest.$ac_ext >&5
  1855. ac_retval=1
  1856. fi
  1857. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1858. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1859. # interfere with the next link command; also delete a directory that is
  1860. # left behind by Apple's compiler. We do this before executing the actions.
  1861. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1862. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1863. as_fn_set_status $ac_retval
  1864. } # ac_fn_cxx_try_link
  1865. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1866. # -------------------------------------------
  1867. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1868. # variable VAR accordingly.
  1869. ac_fn_c_check_type ()
  1870. {
  1871. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1873. $as_echo_n "checking for $2... " >&6; }
  1874. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1875. $as_echo_n "(cached) " >&6
  1876. else
  1877. eval "$3=no"
  1878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1879. /* end confdefs.h. */
  1880. $4
  1881. int
  1882. main ()
  1883. {
  1884. if (sizeof ($2))
  1885. return 0;
  1886. ;
  1887. return 0;
  1888. }
  1889. _ACEOF
  1890. if ac_fn_c_try_compile "$LINENO"; then :
  1891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1892. /* end confdefs.h. */
  1893. $4
  1894. int
  1895. main ()
  1896. {
  1897. if (sizeof (($2)))
  1898. return 0;
  1899. ;
  1900. return 0;
  1901. }
  1902. _ACEOF
  1903. if ac_fn_c_try_compile "$LINENO"; then :
  1904. else
  1905. eval "$3=yes"
  1906. fi
  1907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1910. fi
  1911. eval ac_res=\$$3
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1913. $as_echo "$ac_res" >&6; }
  1914. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1915. } # ac_fn_c_check_type
  1916. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1917. # -------------------------------------------------------
  1918. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1919. # the include files in INCLUDES and setting the cache variable VAR
  1920. # accordingly.
  1921. ac_fn_c_check_header_mongrel ()
  1922. {
  1923. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1924. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1926. $as_echo_n "checking for $2... " >&6; }
  1927. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1928. $as_echo_n "(cached) " >&6
  1929. fi
  1930. eval ac_res=\$$3
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1932. $as_echo "$ac_res" >&6; }
  1933. else
  1934. # Is the header compilable?
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1936. $as_echo_n "checking $2 usability... " >&6; }
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. $4
  1940. #include <$2>
  1941. _ACEOF
  1942. if ac_fn_c_try_compile "$LINENO"; then :
  1943. ac_header_compiler=yes
  1944. else
  1945. ac_header_compiler=no
  1946. fi
  1947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1949. $as_echo "$ac_header_compiler" >&6; }
  1950. # Is the header present?
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1952. $as_echo_n "checking $2 presence... " >&6; }
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. #include <$2>
  1956. _ACEOF
  1957. if ac_fn_c_try_cpp "$LINENO"; then :
  1958. ac_header_preproc=yes
  1959. else
  1960. ac_header_preproc=no
  1961. fi
  1962. rm -f conftest.err conftest.$ac_ext
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1964. $as_echo "$ac_header_preproc" >&6; }
  1965. # So? What about this header?
  1966. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1967. yes:no: )
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1969. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1971. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1972. ;;
  1973. no:yes:* )
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1975. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1977. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1979. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1981. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1983. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1984. ( cat <<\_ASBOX
  1985. ## ------------------------------------ ##
  1986. ## Report this to opensource@google.com ##
  1987. ## ------------------------------------ ##
  1988. _ASBOX
  1989. ) | sed "s/^/$as_me: WARNING: /" >&2
  1990. ;;
  1991. esac
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1993. $as_echo_n "checking for $2... " >&6; }
  1994. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1995. $as_echo_n "(cached) " >&6
  1996. else
  1997. eval "$3=\$ac_header_compiler"
  1998. fi
  1999. eval ac_res=\$$3
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2001. $as_echo "$ac_res" >&6; }
  2002. fi
  2003. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2004. } # ac_fn_c_check_header_mongrel
  2005. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2006. # ------------------------------------
  2007. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2008. ac_fn_c_check_decl ()
  2009. {
  2010. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  2012. $as_echo_n "checking whether $2 is declared... " >&6; }
  2013. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2014. $as_echo_n "(cached) " >&6
  2015. else
  2016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2017. /* end confdefs.h. */
  2018. $4
  2019. int
  2020. main ()
  2021. {
  2022. #ifndef $2
  2023. (void) $2;
  2024. #endif
  2025. ;
  2026. return 0;
  2027. }
  2028. _ACEOF
  2029. if ac_fn_c_try_compile "$LINENO"; then :
  2030. eval "$3=yes"
  2031. else
  2032. eval "$3=no"
  2033. fi
  2034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2035. fi
  2036. eval ac_res=\$$3
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2038. $as_echo "$ac_res" >&6; }
  2039. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2040. } # ac_fn_c_check_decl
  2041. cat >config.log <<_ACEOF
  2042. This file contains any messages produced by compilers while
  2043. running configure, to aid debugging if configure makes a mistake.
  2044. It was created by google-perftools $as_me 1.9.1, which was
  2045. generated by GNU Autoconf 2.65. Invocation command line was
  2046. $ $0 $@
  2047. _ACEOF
  2048. exec 5>>config.log
  2049. {
  2050. cat <<_ASUNAME
  2051. ## --------- ##
  2052. ## Platform. ##
  2053. ## --------- ##
  2054. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2055. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2056. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2057. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2058. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2059. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2060. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2061. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2062. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2063. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2064. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2065. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2066. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2067. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2068. _ASUNAME
  2069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2070. for as_dir in $PATH
  2071. do
  2072. IFS=$as_save_IFS
  2073. test -z "$as_dir" && as_dir=.
  2074. $as_echo "PATH: $as_dir"
  2075. done
  2076. IFS=$as_save_IFS
  2077. } >&5
  2078. cat >&5 <<_ACEOF
  2079. ## ----------- ##
  2080. ## Core tests. ##
  2081. ## ----------- ##
  2082. _ACEOF
  2083. # Keep a trace of the command line.
  2084. # Strip out --no-create and --no-recursion so they do not pile up.
  2085. # Strip out --silent because we don't want to record it for future runs.
  2086. # Also quote any args containing shell meta-characters.
  2087. # Make two passes to allow for proper duplicate-argument suppression.
  2088. ac_configure_args=
  2089. ac_configure_args0=
  2090. ac_configure_args1=
  2091. ac_must_keep_next=false
  2092. for ac_pass in 1 2
  2093. do
  2094. for ac_arg
  2095. do
  2096. case $ac_arg in
  2097. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2098. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2099. | -silent | --silent | --silen | --sile | --sil)
  2100. continue ;;
  2101. *\'*)
  2102. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2103. esac
  2104. case $ac_pass in
  2105. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2106. 2)
  2107. as_fn_append ac_configure_args1 " '$ac_arg'"
  2108. if test $ac_must_keep_next = true; then
  2109. ac_must_keep_next=false # Got value, back to normal.
  2110. else
  2111. case $ac_arg in
  2112. *=* | --config-cache | -C | -disable-* | --disable-* \
  2113. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2114. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2115. | -with-* | --with-* | -without-* | --without-* | --x)
  2116. case "$ac_configure_args0 " in
  2117. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2118. esac
  2119. ;;
  2120. -* ) ac_must_keep_next=true ;;
  2121. esac
  2122. fi
  2123. as_fn_append ac_configure_args " '$ac_arg'"
  2124. ;;
  2125. esac
  2126. done
  2127. done
  2128. { ac_configure_args0=; unset ac_configure_args0;}
  2129. { ac_configure_args1=; unset ac_configure_args1;}
  2130. # When interrupted or exit'd, cleanup temporary files, and complete
  2131. # config.log. We remove comments because anyway the quotes in there
  2132. # would cause problems or look ugly.
  2133. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2134. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2135. trap 'exit_status=$?
  2136. # Save into config.log some information that might help in debugging.
  2137. {
  2138. echo
  2139. cat <<\_ASBOX
  2140. ## ---------------- ##
  2141. ## Cache variables. ##
  2142. ## ---------------- ##
  2143. _ASBOX
  2144. echo
  2145. # The following way of writing the cache mishandles newlines in values,
  2146. (
  2147. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2148. eval ac_val=\$$ac_var
  2149. case $ac_val in #(
  2150. *${as_nl}*)
  2151. case $ac_var in #(
  2152. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2153. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2154. esac
  2155. case $ac_var in #(
  2156. _ | IFS | as_nl) ;; #(
  2157. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2158. *) { eval $ac_var=; unset $ac_var;} ;;
  2159. esac ;;
  2160. esac
  2161. done
  2162. (set) 2>&1 |
  2163. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2164. *${as_nl}ac_space=\ *)
  2165. sed -n \
  2166. "s/'\''/'\''\\\\'\'''\''/g;
  2167. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2168. ;; #(
  2169. *)
  2170. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2171. ;;
  2172. esac |
  2173. sort
  2174. )
  2175. echo
  2176. cat <<\_ASBOX
  2177. ## ----------------- ##
  2178. ## Output variables. ##
  2179. ## ----------------- ##
  2180. _ASBOX
  2181. echo
  2182. for ac_var in $ac_subst_vars
  2183. do
  2184. eval ac_val=\$$ac_var
  2185. case $ac_val in
  2186. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2187. esac
  2188. $as_echo "$ac_var='\''$ac_val'\''"
  2189. done | sort
  2190. echo
  2191. if test -n "$ac_subst_files"; then
  2192. cat <<\_ASBOX
  2193. ## ------------------- ##
  2194. ## File substitutions. ##
  2195. ## ------------------- ##
  2196. _ASBOX
  2197. echo
  2198. for ac_var in $ac_subst_files
  2199. do
  2200. eval ac_val=\$$ac_var
  2201. case $ac_val in
  2202. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2203. esac
  2204. $as_echo "$ac_var='\''$ac_val'\''"
  2205. done | sort
  2206. echo
  2207. fi
  2208. if test -s confdefs.h; then
  2209. cat <<\_ASBOX
  2210. ## ----------- ##
  2211. ## confdefs.h. ##
  2212. ## ----------- ##
  2213. _ASBOX
  2214. echo
  2215. cat confdefs.h
  2216. echo
  2217. fi
  2218. test "$ac_signal" != 0 &&
  2219. $as_echo "$as_me: caught signal $ac_signal"
  2220. $as_echo "$as_me: exit $exit_status"
  2221. } >&5
  2222. rm -f core *.core core.conftest.* &&
  2223. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2224. exit $exit_status
  2225. ' 0
  2226. for ac_signal in 1 2 13 15; do
  2227. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2228. done
  2229. ac_signal=0
  2230. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2231. rm -f -r conftest* confdefs.h
  2232. $as_echo "/* confdefs.h */" > confdefs.h
  2233. # Predefined preprocessor variables.
  2234. cat >>confdefs.h <<_ACEOF
  2235. #define PACKAGE_NAME "$PACKAGE_NAME"
  2236. _ACEOF
  2237. cat >>confdefs.h <<_ACEOF
  2238. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2239. _ACEOF
  2240. cat >>confdefs.h <<_ACEOF
  2241. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2242. _ACEOF
  2243. cat >>confdefs.h <<_ACEOF
  2244. #define PACKAGE_STRING "$PACKAGE_STRING"
  2245. _ACEOF
  2246. cat >>confdefs.h <<_ACEOF
  2247. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2248. _ACEOF
  2249. cat >>confdefs.h <<_ACEOF
  2250. #define PACKAGE_URL "$PACKAGE_URL"
  2251. _ACEOF
  2252. # Let the site file select an alternate cache file if it wants to.
  2253. # Prefer an explicitly selected file to automatically selected ones.
  2254. ac_site_file1=NONE
  2255. ac_site_file2=NONE
  2256. if test -n "$CONFIG_SITE"; then
  2257. ac_site_file1=$CONFIG_SITE
  2258. elif test "x$prefix" != xNONE; then
  2259. ac_site_file1=$prefix/share/config.site
  2260. ac_site_file2=$prefix/etc/config.site
  2261. else
  2262. ac_site_file1=$ac_default_prefix/share/config.site
  2263. ac_site_file2=$ac_default_prefix/etc/config.site
  2264. fi
  2265. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2266. do
  2267. test "x$ac_site_file" = xNONE && continue
  2268. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2270. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2271. sed 's/^/| /' "$ac_site_file" >&5
  2272. . "$ac_site_file"
  2273. fi
  2274. done
  2275. if test -r "$cache_file"; then
  2276. # Some versions of bash will fail to source /dev/null (special files
  2277. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2278. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2280. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2281. case $cache_file in
  2282. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2283. *) . "./$cache_file";;
  2284. esac
  2285. fi
  2286. else
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2288. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2289. >$cache_file
  2290. fi
  2291. as_fn_append ac_header_list " stdlib.h"
  2292. as_fn_append ac_header_list " unistd.h"
  2293. as_fn_append ac_header_list " sys/param.h"
  2294. # Check that the precious variables saved in the cache have kept the same
  2295. # value.
  2296. ac_cache_corrupted=false
  2297. for ac_var in $ac_precious_vars; do
  2298. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2299. eval ac_new_set=\$ac_env_${ac_var}_set
  2300. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2301. eval ac_new_val=\$ac_env_${ac_var}_value
  2302. case $ac_old_set,$ac_new_set in
  2303. set,)
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2305. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2306. ac_cache_corrupted=: ;;
  2307. ,set)
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2309. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2310. ac_cache_corrupted=: ;;
  2311. ,);;
  2312. *)
  2313. if test "x$ac_old_val" != "x$ac_new_val"; then
  2314. # differences in whitespace do not lead to failure.
  2315. ac_old_val_w=`echo x $ac_old_val`
  2316. ac_new_val_w=`echo x $ac_new_val`
  2317. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2319. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2320. ac_cache_corrupted=:
  2321. else
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2323. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2324. eval $ac_var=\$ac_old_val
  2325. fi
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2327. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2329. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2330. fi;;
  2331. esac
  2332. # Pass precious variables to config.status.
  2333. if test "$ac_new_set" = set; then
  2334. case $ac_new_val in
  2335. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2336. *) ac_arg=$ac_var=$ac_new_val ;;
  2337. esac
  2338. case " $ac_configure_args " in
  2339. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2340. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2341. esac
  2342. fi
  2343. done
  2344. if $ac_cache_corrupted; then
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2346. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2348. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2349. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2350. fi
  2351. ## -------------------- ##
  2352. ## Main body of script. ##
  2353. ## -------------------- ##
  2354. ac_ext=c
  2355. ac_cpp='$CPP $CPPFLAGS'
  2356. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2357. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2358. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2359. # Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
  2360. # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
  2361. TCMALLOC_SO_VERSION=3:0:3
  2362. PROFILER_SO_VERSION=2:0:2
  2363. # The argument here is just something that should be in the current directory
  2364. # (for sanity checking)
  2365. ac_aux_dir=
  2366. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2367. for ac_t in install-sh install.sh shtool; do
  2368. if test -f "$ac_dir/$ac_t"; then
  2369. ac_aux_dir=$ac_dir
  2370. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2371. break 2
  2372. fi
  2373. done
  2374. done
  2375. if test -z "$ac_aux_dir"; then
  2376. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2377. fi
  2378. # These three variables are undocumented and unsupported,
  2379. # and are intended to be withdrawn in a future Autoconf release.
  2380. # They can cause serious problems if a builder's source tree is in a directory
  2381. # whose full name contains unusual characters.
  2382. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2383. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2384. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2385. # Make sure we can run config.sub.
  2386. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2387. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2389. $as_echo_n "checking build system type... " >&6; }
  2390. if test "${ac_cv_build+set}" = set; then :
  2391. $as_echo_n "(cached) " >&6
  2392. else
  2393. ac_build_alias=$build_alias
  2394. test "x$ac_build_alias" = x &&
  2395. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2396. test "x$ac_build_alias" = x &&
  2397. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2398. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2399. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2400. fi
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2402. $as_echo "$ac_cv_build" >&6; }
  2403. case $ac_cv_build in
  2404. *-*-*) ;;
  2405. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2406. esac
  2407. build=$ac_cv_build
  2408. ac_save_IFS=$IFS; IFS='-'
  2409. set x $ac_cv_build
  2410. shift
  2411. build_cpu=$1
  2412. build_vendor=$2
  2413. shift; shift
  2414. # Remember, the first character of IFS is used to create $*,
  2415. # except with old shells:
  2416. build_os=$*
  2417. IFS=$ac_save_IFS
  2418. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2420. $as_echo_n "checking host system type... " >&6; }
  2421. if test "${ac_cv_host+set}" = set; then :
  2422. $as_echo_n "(cached) " >&6
  2423. else
  2424. if test "x$host_alias" = x; then
  2425. ac_cv_host=$ac_cv_build
  2426. else
  2427. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2428. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2429. fi
  2430. fi
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2432. $as_echo "$ac_cv_host" >&6; }
  2433. case $ac_cv_host in
  2434. *-*-*) ;;
  2435. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2436. esac
  2437. host=$ac_cv_host
  2438. ac_save_IFS=$IFS; IFS='-'
  2439. set x $ac_cv_host
  2440. shift
  2441. host_cpu=$1
  2442. host_vendor=$2
  2443. shift; shift
  2444. # Remember, the first character of IFS is used to create $*,
  2445. # except with old shells:
  2446. host_os=$*
  2447. IFS=$ac_save_IFS
  2448. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2449. am__api_version="1.9"
  2450. # Find a good install program. We prefer a C program (faster),
  2451. # so one script is as good as another. But avoid the broken or
  2452. # incompatible versions:
  2453. # SysV /etc/install, /usr/sbin/install
  2454. # SunOS /usr/etc/install
  2455. # IRIX /sbin/install
  2456. # AIX /bin/install
  2457. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2458. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2459. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2460. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2461. # OS/2's system install, which has a completely different semantic
  2462. # ./install, which can be erroneously created by make from ./install.sh.
  2463. # Reject install programs that cannot install multiple files.
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2465. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2466. if test -z "$INSTALL"; then
  2467. if test "${ac_cv_path_install+set}" = set; then :
  2468. $as_echo_n "(cached) " >&6
  2469. else
  2470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471. for as_dir in $PATH
  2472. do
  2473. IFS=$as_save_IFS
  2474. test -z "$as_dir" && as_dir=.
  2475. # Account for people who put trailing slashes in PATH elements.
  2476. case $as_dir/ in #((
  2477. ./ | .// | /[cC]/* | \
  2478. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2479. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2480. /usr/ucb/* ) ;;
  2481. *)
  2482. # OSF1 and SCO ODT 3.0 have their own names for install.
  2483. # Don't use installbsd from OSF since it installs stuff as root
  2484. # by default.
  2485. for ac_prog in ginstall scoinst install; do
  2486. for ac_exec_ext in '' $ac_executable_extensions; do
  2487. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2488. if test $ac_prog = install &&
  2489. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2490. # AIX install. It has an incompatible calling convention.
  2491. :
  2492. elif test $ac_prog = install &&
  2493. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2494. # program-specific install script used by HP pwplus--don't use.
  2495. :
  2496. else
  2497. rm -rf conftest.one conftest.two conftest.dir
  2498. echo one > conftest.one
  2499. echo two > conftest.two
  2500. mkdir conftest.dir
  2501. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2502. test -s conftest.one && test -s conftest.two &&
  2503. test -s conftest.dir/conftest.one &&
  2504. test -s conftest.dir/conftest.two
  2505. then
  2506. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2507. break 3
  2508. fi
  2509. fi
  2510. fi
  2511. done
  2512. done
  2513. ;;
  2514. esac
  2515. done
  2516. IFS=$as_save_IFS
  2517. rm -rf conftest.one conftest.two conftest.dir
  2518. fi
  2519. if test "${ac_cv_path_install+set}" = set; then
  2520. INSTALL=$ac_cv_path_install
  2521. else
  2522. # As a last resort, use the slow shell script. Don't cache a
  2523. # value for INSTALL within a source directory, because that will
  2524. # break other packages using the cache if that directory is
  2525. # removed, or if the value is a relative name.
  2526. INSTALL=$ac_install_sh
  2527. fi
  2528. fi
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2530. $as_echo "$INSTALL" >&6; }
  2531. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2532. # It thinks the first close brace ends the variable substitution.
  2533. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2534. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2535. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2537. $as_echo_n "checking whether build environment is sane... " >&6; }
  2538. # Just in case
  2539. sleep 1
  2540. echo timestamp > conftest.file
  2541. # Do `set' in a subshell so we don't clobber the current shell's
  2542. # arguments. Must try -L first in case configure is actually a
  2543. # symlink; some systems play weird games with the mod time of symlinks
  2544. # (eg FreeBSD returns the mod time of the symlink's containing
  2545. # directory).
  2546. if (
  2547. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2548. if test "$*" = "X"; then
  2549. # -L didn't work.
  2550. set X `ls -t $srcdir/configure conftest.file`
  2551. fi
  2552. rm -f conftest.file
  2553. if test "$*" != "X $srcdir/configure conftest.file" \
  2554. && test "$*" != "X conftest.file $srcdir/configure"; then
  2555. # If neither matched, then we have a broken ls. This can happen
  2556. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2557. # broken ls alias from the environment. This has actually
  2558. # happened. Such a system could not be considered "sane".
  2559. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2560. alias in your environment" "$LINENO" 5
  2561. fi
  2562. test "$2" = conftest.file
  2563. )
  2564. then
  2565. # Ok.
  2566. :
  2567. else
  2568. as_fn_error "newly created file is older than distributed files!
  2569. Check your system clock" "$LINENO" 5
  2570. fi
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2572. $as_echo "yes" >&6; }
  2573. test "$program_prefix" != NONE &&
  2574. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2575. # Use a double $ so make ignores it.
  2576. test "$program_suffix" != NONE &&
  2577. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2578. # Double any \ or $.
  2579. # By default was `s,x,x', remove it if useless.
  2580. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2581. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2582. # expand $ac_aux_dir to an absolute path
  2583. am_aux_dir=`cd $ac_aux_dir && pwd`
  2584. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2585. # Use eval to expand $SHELL
  2586. if eval "$MISSING --run true"; then
  2587. am_missing_run="$MISSING --run "
  2588. else
  2589. am_missing_run=
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2591. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2592. fi
  2593. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2594. # We used to keeping the `.' as first argument, in order to
  2595. # allow $(mkdir_p) to be used without argument. As in
  2596. # $(mkdir_p) $(somedir)
  2597. # where $(somedir) is conditionally defined. However this is wrong
  2598. # for two reasons:
  2599. # 1. if the package is installed by a user who cannot write `.'
  2600. # make install will fail,
  2601. # 2. the above comment should most certainly read
  2602. # $(mkdir_p) $(DESTDIR)$(somedir)
  2603. # so it does not work when $(somedir) is undefined and
  2604. # $(DESTDIR) is not.
  2605. # To support the latter case, we have to write
  2606. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2607. # so the `.' trick is pointless.
  2608. mkdir_p='mkdir -p --'
  2609. else
  2610. # On NextStep and OpenStep, the `mkdir' command does not
  2611. # recognize any option. It will interpret all options as
  2612. # directories to create, and then abort because `.' already
  2613. # exists.
  2614. for d in ./-p ./--version;
  2615. do
  2616. test -d $d && rmdir $d
  2617. done
  2618. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2619. if test -f "$ac_aux_dir/mkinstalldirs"; then
  2620. mkdir_p='$(mkinstalldirs)'
  2621. else
  2622. mkdir_p='$(install_sh) -d'
  2623. fi
  2624. fi
  2625. for ac_prog in gawk mawk nawk awk
  2626. do
  2627. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2628. set dummy $ac_prog; ac_word=$2
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2630. $as_echo_n "checking for $ac_word... " >&6; }
  2631. if test "${ac_cv_prog_AWK+set}" = set; then :
  2632. $as_echo_n "(cached) " >&6
  2633. else
  2634. if test -n "$AWK"; then
  2635. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2636. else
  2637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638. for as_dir in $PATH
  2639. do
  2640. IFS=$as_save_IFS
  2641. test -z "$as_dir" && as_dir=.
  2642. for ac_exec_ext in '' $ac_executable_extensions; do
  2643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2644. ac_cv_prog_AWK="$ac_prog"
  2645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2646. break 2
  2647. fi
  2648. done
  2649. done
  2650. IFS=$as_save_IFS
  2651. fi
  2652. fi
  2653. AWK=$ac_cv_prog_AWK
  2654. if test -n "$AWK"; then
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2656. $as_echo "$AWK" >&6; }
  2657. else
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2659. $as_echo "no" >&6; }
  2660. fi
  2661. test -n "$AWK" && break
  2662. done
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2664. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2665. set x ${MAKE-make}
  2666. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2667. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. cat >conftest.make <<\_ACEOF
  2671. SHELL = /bin/sh
  2672. all:
  2673. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2674. _ACEOF
  2675. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2676. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2677. *@@@%%%=?*=@@@%%%*)
  2678. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2679. *)
  2680. eval ac_cv_prog_make_${ac_make}_set=no;;
  2681. esac
  2682. rm -f conftest.make
  2683. fi
  2684. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2686. $as_echo "yes" >&6; }
  2687. SET_MAKE=
  2688. else
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2690. $as_echo "no" >&6; }
  2691. SET_MAKE="MAKE=${MAKE-make}"
  2692. fi
  2693. rm -rf .tst 2>/dev/null
  2694. mkdir .tst 2>/dev/null
  2695. if test -d .tst; then
  2696. am__leading_dot=.
  2697. else
  2698. am__leading_dot=_
  2699. fi
  2700. rmdir .tst 2>/dev/null
  2701. # test to see if srcdir already configured
  2702. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2703. test -f $srcdir/config.status; then
  2704. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2705. fi
  2706. # test whether we have cygpath
  2707. if test -z "$CYGPATH_W"; then
  2708. if (cygpath --version) >/dev/null 2>/dev/null; then
  2709. CYGPATH_W='cygpath -w'
  2710. else
  2711. CYGPATH_W=echo
  2712. fi
  2713. fi
  2714. # Define the identity of the package.
  2715. PACKAGE='google-perftools'
  2716. VERSION='1.9.1'
  2717. cat >>confdefs.h <<_ACEOF
  2718. #define PACKAGE "$PACKAGE"
  2719. _ACEOF
  2720. cat >>confdefs.h <<_ACEOF
  2721. #define VERSION "$VERSION"
  2722. _ACEOF
  2723. # Some tools Automake needs.
  2724. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2725. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2726. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2727. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2728. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2729. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2730. # Installed binaries are usually stripped using `strip' when the user
  2731. # run `make install-strip'. However `strip' might not be the right
  2732. # tool to use in cross-compilation environments, therefore Automake
  2733. # will honor the `STRIP' environment variable to overrule this program.
  2734. if test "$cross_compiling" != no; then
  2735. if test -n "$ac_tool_prefix"; then
  2736. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2737. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2739. $as_echo_n "checking for $ac_word... " >&6; }
  2740. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2741. $as_echo_n "(cached) " >&6
  2742. else
  2743. if test -n "$STRIP"; then
  2744. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2745. else
  2746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2747. for as_dir in $PATH
  2748. do
  2749. IFS=$as_save_IFS
  2750. test -z "$as_dir" && as_dir=.
  2751. for ac_exec_ext in '' $ac_executable_extensions; do
  2752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2753. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2755. break 2
  2756. fi
  2757. done
  2758. done
  2759. IFS=$as_save_IFS
  2760. fi
  2761. fi
  2762. STRIP=$ac_cv_prog_STRIP
  2763. if test -n "$STRIP"; then
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2765. $as_echo "$STRIP" >&6; }
  2766. else
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2768. $as_echo "no" >&6; }
  2769. fi
  2770. fi
  2771. if test -z "$ac_cv_prog_STRIP"; then
  2772. ac_ct_STRIP=$STRIP
  2773. # Extract the first word of "strip", so it can be a program name with args.
  2774. set dummy strip; ac_word=$2
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2776. $as_echo_n "checking for $ac_word... " >&6; }
  2777. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2778. $as_echo_n "(cached) " >&6
  2779. else
  2780. if test -n "$ac_ct_STRIP"; then
  2781. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2782. else
  2783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2784. for as_dir in $PATH
  2785. do
  2786. IFS=$as_save_IFS
  2787. test -z "$as_dir" && as_dir=.
  2788. for ac_exec_ext in '' $ac_executable_extensions; do
  2789. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2790. ac_cv_prog_ac_ct_STRIP="strip"
  2791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2792. break 2
  2793. fi
  2794. done
  2795. done
  2796. IFS=$as_save_IFS
  2797. fi
  2798. fi
  2799. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2800. if test -n "$ac_ct_STRIP"; then
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2802. $as_echo "$ac_ct_STRIP" >&6; }
  2803. else
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2805. $as_echo "no" >&6; }
  2806. fi
  2807. if test "x$ac_ct_STRIP" = x; then
  2808. STRIP=":"
  2809. else
  2810. case $cross_compiling:$ac_tool_warned in
  2811. yes:)
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2814. ac_tool_warned=yes ;;
  2815. esac
  2816. STRIP=$ac_ct_STRIP
  2817. fi
  2818. else
  2819. STRIP="$ac_cv_prog_STRIP"
  2820. fi
  2821. fi
  2822. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2823. # We need awk for the "check" target. The system "awk" is bad on
  2824. # some platforms.
  2825. # Always define AMTAR for backward compatibility.
  2826. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2827. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2828. ac_config_headers="$ac_config_headers src/config.h"
  2829. # Export the version information (for tc_version and friends)
  2830. TC_VERSION_MAJOR=`expr "$PACKAGE_VERSION" : '\([0-9]*\)'`
  2831. TC_VERSION_MINOR=`expr "$PACKAGE_VERSION" : '[0-9]*\.\([0-9]*\)'`
  2832. TC_VERSION_PATCH=`expr "$PACKAGE_VERSION" : '[0-9]*\.[0-9]*\(.*\)$'`
  2833. # The user can choose not to compile in the heap-profiler, the
  2834. # heap-checker, or the cpu-profiler. There's also the possibility
  2835. # for a 'fully minimal' compile, which leaves out the stacktrace
  2836. # code as well. By default, we include all of these that the
  2837. # target system supports.
  2838. default_enable_cpu_profiler=yes
  2839. default_enable_heap_profiler=yes
  2840. default_enable_heap_checker=yes
  2841. default_enable_debugalloc=yes
  2842. default_enable_minimal=no
  2843. need_nanosleep=yes # Used later, to decide if to run ACX_NANOSLEEP
  2844. case "$host" in
  2845. *-mingw*) default_enable_minimal=yes; default_enable_debugalloc=no;
  2846. need_nanosleep=no;;
  2847. *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;;
  2848. *-freebsd*) default_enable_heap_checker=no;;
  2849. *-darwin*) default_enable_heap_checker=no;;
  2850. esac
  2851. # Check whether --enable-cpu-profiler was given.
  2852. if test "${enable_cpu_profiler+set}" = set; then :
  2853. enableval=$enable_cpu_profiler;
  2854. else
  2855. enable_cpu_profiler="$default_enable_cpu_profiler"
  2856. fi
  2857. # Check whether --enable-heap-profiler was given.
  2858. if test "${enable_heap_profiler+set}" = set; then :
  2859. enableval=$enable_heap_profiler;
  2860. else
  2861. enable_heap_profiler="$default_enable_heap_profiler"
  2862. fi
  2863. # Check whether --enable-heap-checker was given.
  2864. if test "${enable_heap_checker+set}" = set; then :
  2865. enableval=$enable_heap_checker;
  2866. else
  2867. enable_heap_checker="$default_enable_heap_checker"
  2868. fi
  2869. # Check whether --enable-debugalloc was given.
  2870. if test "${enable_debugalloc+set}" = set; then :
  2871. enableval=$enable_debugalloc;
  2872. else
  2873. enable_debugalloc="$default_enable_debugalloc"
  2874. fi
  2875. # Check whether --enable-minimal was given.
  2876. if test "${enable_minimal+set}" = set; then :
  2877. enableval=$enable_minimal;
  2878. else
  2879. enable_minimal="$default_enable_minimal"
  2880. fi
  2881. if test "$enable_minimal" = yes; then
  2882. enable_cpu_profiler=no
  2883. enable_heap_profiler=no
  2884. enable_heap_checker=no
  2885. fi
  2886. # Checks for programs.
  2887. ac_ext=cpp
  2888. ac_cpp='$CXXCPP $CPPFLAGS'
  2889. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2890. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2891. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2892. if test -z "$CXX"; then
  2893. if test -n "$CCC"; then
  2894. CXX=$CCC
  2895. else
  2896. if test -n "$ac_tool_prefix"; then
  2897. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2898. do
  2899. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2900. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2902. $as_echo_n "checking for $ac_word... " >&6; }
  2903. if test "${ac_cv_prog_CXX+set}" = set; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. if test -n "$CXX"; then
  2907. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2908. else
  2909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2910. for as_dir in $PATH
  2911. do
  2912. IFS=$as_save_IFS
  2913. test -z "$as_dir" && as_dir=.
  2914. for ac_exec_ext in '' $ac_executable_extensions; do
  2915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2916. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. IFS=$as_save_IFS
  2923. fi
  2924. fi
  2925. CXX=$ac_cv_prog_CXX
  2926. if test -n "$CXX"; then
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2928. $as_echo "$CXX" >&6; }
  2929. else
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2931. $as_echo "no" >&6; }
  2932. fi
  2933. test -n "$CXX" && break
  2934. done
  2935. fi
  2936. if test -z "$CXX"; then
  2937. ac_ct_CXX=$CXX
  2938. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2939. do
  2940. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2941. set dummy $ac_prog; ac_word=$2
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2943. $as_echo_n "checking for $ac_word... " >&6; }
  2944. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2945. $as_echo_n "(cached) " >&6
  2946. else
  2947. if test -n "$ac_ct_CXX"; then
  2948. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2949. else
  2950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2951. for as_dir in $PATH
  2952. do
  2953. IFS=$as_save_IFS
  2954. test -z "$as_dir" && as_dir=.
  2955. for ac_exec_ext in '' $ac_executable_extensions; do
  2956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2957. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2959. break 2
  2960. fi
  2961. done
  2962. done
  2963. IFS=$as_save_IFS
  2964. fi
  2965. fi
  2966. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2967. if test -n "$ac_ct_CXX"; then
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2969. $as_echo "$ac_ct_CXX" >&6; }
  2970. else
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2972. $as_echo "no" >&6; }
  2973. fi
  2974. test -n "$ac_ct_CXX" && break
  2975. done
  2976. if test "x$ac_ct_CXX" = x; then
  2977. CXX="g++"
  2978. else
  2979. case $cross_compiling:$ac_tool_warned in
  2980. yes:)
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2982. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2983. ac_tool_warned=yes ;;
  2984. esac
  2985. CXX=$ac_ct_CXX
  2986. fi
  2987. fi
  2988. fi
  2989. fi
  2990. # Provide some information about the compiler.
  2991. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2992. set X $ac_compile
  2993. ac_compiler=$2
  2994. for ac_option in --version -v -V -qversion; do
  2995. { { ac_try="$ac_compiler $ac_option >&5"
  2996. case "(($ac_try" in
  2997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2998. *) ac_try_echo=$ac_try;;
  2999. esac
  3000. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3001. $as_echo "$ac_try_echo"; } >&5
  3002. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3003. ac_status=$?
  3004. if test -s conftest.err; then
  3005. sed '10a\
  3006. ... rest of stderr output deleted ...
  3007. 10q' conftest.err >conftest.er1
  3008. cat conftest.er1 >&5
  3009. fi
  3010. rm -f conftest.er1 conftest.err
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3012. test $ac_status = 0; }
  3013. done
  3014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3015. /* end confdefs.h. */
  3016. int
  3017. main ()
  3018. {
  3019. ;
  3020. return 0;
  3021. }
  3022. _ACEOF
  3023. ac_clean_files_save=$ac_clean_files
  3024. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3025. # Try to create an executable without -o first, disregard a.out.
  3026. # It will help us diagnose broken compilers, and finding out an intuition
  3027. # of exeext.
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3029. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3030. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3031. # The possible output files:
  3032. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3033. ac_rmfiles=
  3034. for ac_file in $ac_files
  3035. do
  3036. case $ac_file in
  3037. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3038. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3039. esac
  3040. done
  3041. rm -f $ac_rmfiles
  3042. if { { ac_try="$ac_link_default"
  3043. case "(($ac_try" in
  3044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3045. *) ac_try_echo=$ac_try;;
  3046. esac
  3047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3048. $as_echo "$ac_try_echo"; } >&5
  3049. (eval "$ac_link_default") 2>&5
  3050. ac_status=$?
  3051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3052. test $ac_status = 0; }; then :
  3053. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3054. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3055. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3056. # so that the user can short-circuit this test for compilers unknown to
  3057. # Autoconf.
  3058. for ac_file in $ac_files ''
  3059. do
  3060. test -f "$ac_file" || continue
  3061. case $ac_file in
  3062. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3063. ;;
  3064. [ab].out )
  3065. # We found the default executable, but exeext='' is most
  3066. # certainly right.
  3067. break;;
  3068. *.* )
  3069. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3070. then :; else
  3071. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3072. fi
  3073. # We set ac_cv_exeext here because the later test for it is not
  3074. # safe: cross compilers may not add the suffix if given an `-o'
  3075. # argument, so we may need to know it at that point already.
  3076. # Even if this section looks crufty: it has the advantage of
  3077. # actually working.
  3078. break;;
  3079. * )
  3080. break;;
  3081. esac
  3082. done
  3083. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3084. else
  3085. ac_file=''
  3086. fi
  3087. if test -z "$ac_file"; then :
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3089. $as_echo "no" >&6; }
  3090. $as_echo "$as_me: failed program was:" >&5
  3091. sed 's/^/| /' conftest.$ac_ext >&5
  3092. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3093. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3094. { as_fn_set_status 77
  3095. as_fn_error "C++ compiler cannot create executables
  3096. See \`config.log' for more details." "$LINENO" 5; }; }
  3097. else
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3099. $as_echo "yes" >&6; }
  3100. fi
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3102. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3104. $as_echo "$ac_file" >&6; }
  3105. ac_exeext=$ac_cv_exeext
  3106. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3107. ac_clean_files=$ac_clean_files_save
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3109. $as_echo_n "checking for suffix of executables... " >&6; }
  3110. if { { ac_try="$ac_link"
  3111. case "(($ac_try" in
  3112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3113. *) ac_try_echo=$ac_try;;
  3114. esac
  3115. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3116. $as_echo "$ac_try_echo"; } >&5
  3117. (eval "$ac_link") 2>&5
  3118. ac_status=$?
  3119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3120. test $ac_status = 0; }; then :
  3121. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3122. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3123. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3124. # `rm'.
  3125. for ac_file in conftest.exe conftest conftest.*; do
  3126. test -f "$ac_file" || continue
  3127. case $ac_file in
  3128. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3129. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3130. break;;
  3131. * ) break;;
  3132. esac
  3133. done
  3134. else
  3135. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3136. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3137. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3138. See \`config.log' for more details." "$LINENO" 5; }
  3139. fi
  3140. rm -f conftest conftest$ac_cv_exeext
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3142. $as_echo "$ac_cv_exeext" >&6; }
  3143. rm -f conftest.$ac_ext
  3144. EXEEXT=$ac_cv_exeext
  3145. ac_exeext=$EXEEXT
  3146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3147. /* end confdefs.h. */
  3148. #include <stdio.h>
  3149. int
  3150. main ()
  3151. {
  3152. FILE *f = fopen ("conftest.out", "w");
  3153. return ferror (f) || fclose (f) != 0;
  3154. ;
  3155. return 0;
  3156. }
  3157. _ACEOF
  3158. ac_clean_files="$ac_clean_files conftest.out"
  3159. # Check that the compiler produces executables we can run. If not, either
  3160. # the compiler is broken, or we cross compile.
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3162. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3163. if test "$cross_compiling" != yes; then
  3164. { { ac_try="$ac_link"
  3165. case "(($ac_try" in
  3166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3167. *) ac_try_echo=$ac_try;;
  3168. esac
  3169. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3170. $as_echo "$ac_try_echo"; } >&5
  3171. (eval "$ac_link") 2>&5
  3172. ac_status=$?
  3173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3174. test $ac_status = 0; }
  3175. if { ac_try='./conftest$ac_cv_exeext'
  3176. { { case "(($ac_try" in
  3177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3178. *) ac_try_echo=$ac_try;;
  3179. esac
  3180. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3181. $as_echo "$ac_try_echo"; } >&5
  3182. (eval "$ac_try") 2>&5
  3183. ac_status=$?
  3184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3185. test $ac_status = 0; }; }; then
  3186. cross_compiling=no
  3187. else
  3188. if test "$cross_compiling" = maybe; then
  3189. cross_compiling=yes
  3190. else
  3191. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3192. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3193. as_fn_error "cannot run C++ compiled programs.
  3194. If you meant to cross compile, use \`--host'.
  3195. See \`config.log' for more details." "$LINENO" 5; }
  3196. fi
  3197. fi
  3198. fi
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3200. $as_echo "$cross_compiling" >&6; }
  3201. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3202. ac_clean_files=$ac_clean_files_save
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3204. $as_echo_n "checking for suffix of object files... " >&6; }
  3205. if test "${ac_cv_objext+set}" = set; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3209. /* end confdefs.h. */
  3210. int
  3211. main ()
  3212. {
  3213. ;
  3214. return 0;
  3215. }
  3216. _ACEOF
  3217. rm -f conftest.o conftest.obj
  3218. if { { ac_try="$ac_compile"
  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_compile") 2>&5
  3226. ac_status=$?
  3227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3228. test $ac_status = 0; }; then :
  3229. for ac_file in conftest.o conftest.obj conftest.*; do
  3230. test -f "$ac_file" || continue;
  3231. case $ac_file in
  3232. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3233. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3234. break;;
  3235. esac
  3236. done
  3237. else
  3238. $as_echo "$as_me: failed program was:" >&5
  3239. sed 's/^/| /' conftest.$ac_ext >&5
  3240. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3241. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3242. as_fn_error "cannot compute suffix of object files: cannot compile
  3243. See \`config.log' for more details." "$LINENO" 5; }
  3244. fi
  3245. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3246. fi
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3248. $as_echo "$ac_cv_objext" >&6; }
  3249. OBJEXT=$ac_cv_objext
  3250. ac_objext=$OBJEXT
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3252. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3253. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. int
  3259. main ()
  3260. {
  3261. #ifndef __GNUC__
  3262. choke me
  3263. #endif
  3264. ;
  3265. return 0;
  3266. }
  3267. _ACEOF
  3268. if ac_fn_cxx_try_compile "$LINENO"; then :
  3269. ac_compiler_gnu=yes
  3270. else
  3271. ac_compiler_gnu=no
  3272. fi
  3273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3274. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3275. fi
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3277. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3278. if test $ac_compiler_gnu = yes; then
  3279. GXX=yes
  3280. else
  3281. GXX=
  3282. fi
  3283. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3284. ac_save_CXXFLAGS=$CXXFLAGS
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3286. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3287. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3291. ac_cxx_werror_flag=yes
  3292. ac_cv_prog_cxx_g=no
  3293. CXXFLAGS="-g"
  3294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3295. /* end confdefs.h. */
  3296. int
  3297. main ()
  3298. {
  3299. ;
  3300. return 0;
  3301. }
  3302. _ACEOF
  3303. if ac_fn_cxx_try_compile "$LINENO"; then :
  3304. ac_cv_prog_cxx_g=yes
  3305. else
  3306. CXXFLAGS=""
  3307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3308. /* end confdefs.h. */
  3309. int
  3310. main ()
  3311. {
  3312. ;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. if ac_fn_cxx_try_compile "$LINENO"; then :
  3317. else
  3318. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3319. CXXFLAGS="-g"
  3320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3321. /* end confdefs.h. */
  3322. int
  3323. main ()
  3324. {
  3325. ;
  3326. return 0;
  3327. }
  3328. _ACEOF
  3329. if ac_fn_cxx_try_compile "$LINENO"; then :
  3330. ac_cv_prog_cxx_g=yes
  3331. fi
  3332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3333. fi
  3334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3335. fi
  3336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3337. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3338. fi
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3340. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3341. if test "$ac_test_CXXFLAGS" = set; then
  3342. CXXFLAGS=$ac_save_CXXFLAGS
  3343. elif test $ac_cv_prog_cxx_g = yes; then
  3344. if test "$GXX" = yes; then
  3345. CXXFLAGS="-g -O2"
  3346. else
  3347. CXXFLAGS="-g"
  3348. fi
  3349. else
  3350. if test "$GXX" = yes; then
  3351. CXXFLAGS="-O2"
  3352. else
  3353. CXXFLAGS=
  3354. fi
  3355. fi
  3356. ac_ext=c
  3357. ac_cpp='$CPP $CPPFLAGS'
  3358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3361. DEPDIR="${am__leading_dot}deps"
  3362. ac_config_commands="$ac_config_commands depfiles"
  3363. am_make=${MAKE-make}
  3364. cat > confinc << 'END'
  3365. am__doit:
  3366. @echo done
  3367. .PHONY: am__doit
  3368. END
  3369. # If we don't find an include directive, just comment out the code.
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3371. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3372. am__include="#"
  3373. am__quote=
  3374. _am_result=none
  3375. # First try GNU make style include.
  3376. echo "include confinc" > confmf
  3377. # We grep out `Entering directory' and `Leaving directory'
  3378. # messages which can occur if `w' ends up in MAKEFLAGS.
  3379. # In particular we don't look at `^make:' because GNU make might
  3380. # be invoked under some other name (usually "gmake"), in which
  3381. # case it prints its new name instead of `make'.
  3382. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3383. am__include=include
  3384. am__quote=
  3385. _am_result=GNU
  3386. fi
  3387. # Now try BSD make style include.
  3388. if test "$am__include" = "#"; then
  3389. echo '.include "confinc"' > confmf
  3390. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3391. am__include=.include
  3392. am__quote="\""
  3393. _am_result=BSD
  3394. fi
  3395. fi
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3397. $as_echo "$_am_result" >&6; }
  3398. rm -f confinc confmf
  3399. # Check whether --enable-dependency-tracking was given.
  3400. if test "${enable_dependency_tracking+set}" = set; then :
  3401. enableval=$enable_dependency_tracking;
  3402. fi
  3403. if test "x$enable_dependency_tracking" != xno; then
  3404. am_depcomp="$ac_aux_dir/depcomp"
  3405. AMDEPBACKSLASH='\'
  3406. fi
  3407. if test "x$enable_dependency_tracking" != xno; then
  3408. AMDEP_TRUE=
  3409. AMDEP_FALSE='#'
  3410. else
  3411. AMDEP_TRUE='#'
  3412. AMDEP_FALSE=
  3413. fi
  3414. depcc="$CXX" am_compiler_list=
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3416. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3417. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3418. $as_echo_n "(cached) " >&6
  3419. else
  3420. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3421. # We make a subdir and do the tests there. Otherwise we can end up
  3422. # making bogus files that we don't know about and never remove. For
  3423. # instance it was reported that on HP-UX the gcc test will end up
  3424. # making a dummy file named `D' -- because `-MD' means `put the output
  3425. # in D'.
  3426. mkdir conftest.dir
  3427. # Copy depcomp to subdir because otherwise we won't find it if we're
  3428. # using a relative directory.
  3429. cp "$am_depcomp" conftest.dir
  3430. cd conftest.dir
  3431. # We will build objects and dependencies in a subdirectory because
  3432. # it helps to detect inapplicable dependency modes. For instance
  3433. # both Tru64's cc and ICC support -MD to output dependencies as a
  3434. # side effect of compilation, but ICC will put the dependencies in
  3435. # the current directory while Tru64 will put them in the object
  3436. # directory.
  3437. mkdir sub
  3438. am_cv_CXX_dependencies_compiler_type=none
  3439. if test "$am_compiler_list" = ""; then
  3440. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3441. fi
  3442. for depmode in $am_compiler_list; do
  3443. # Setup a source with many dependencies, because some compilers
  3444. # like to wrap large dependency lists on column 80 (with \), and
  3445. # we should not choose a depcomp mode which is confused by this.
  3446. #
  3447. # We need to recreate these files for each test, as the compiler may
  3448. # overwrite some of them when testing with obscure command lines.
  3449. # This happens at least with the AIX C compiler.
  3450. : > sub/conftest.c
  3451. for i in 1 2 3 4 5 6; do
  3452. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3453. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3454. # Solaris 8's {/usr,}/bin/sh.
  3455. touch sub/conftst$i.h
  3456. done
  3457. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3458. case $depmode in
  3459. nosideeffect)
  3460. # after this tag, mechanisms are not by side-effect, so they'll
  3461. # only be used when explicitly requested
  3462. if test "x$enable_dependency_tracking" = xyes; then
  3463. continue
  3464. else
  3465. break
  3466. fi
  3467. ;;
  3468. none) break ;;
  3469. esac
  3470. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3471. # mode. It turns out that the SunPro C++ compiler does not properly
  3472. # handle `-M -o', and we need to detect this.
  3473. if depmode=$depmode \
  3474. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3475. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3476. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3477. >/dev/null 2>conftest.err &&
  3478. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3479. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3480. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3481. # icc doesn't choke on unknown options, it will just issue warnings
  3482. # or remarks (even with -Werror). So we grep stderr for any message
  3483. # that says an option was ignored or not supported.
  3484. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3485. # icc: Command line warning: ignoring option '-M'; no argument required
  3486. # The diagnosis changed in icc 8.0:
  3487. # icc: Command line remark: option '-MP' not supported
  3488. if (grep 'ignoring option' conftest.err ||
  3489. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3490. am_cv_CXX_dependencies_compiler_type=$depmode
  3491. break
  3492. fi
  3493. fi
  3494. done
  3495. cd ..
  3496. rm -rf conftest.dir
  3497. else
  3498. am_cv_CXX_dependencies_compiler_type=none
  3499. fi
  3500. fi
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3502. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3503. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3504. if
  3505. test "x$enable_dependency_tracking" != xno \
  3506. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3507. am__fastdepCXX_TRUE=
  3508. am__fastdepCXX_FALSE='#'
  3509. else
  3510. am__fastdepCXX_TRUE='#'
  3511. am__fastdepCXX_FALSE=
  3512. fi
  3513. ac_ext=c
  3514. ac_cpp='$CPP $CPPFLAGS'
  3515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3518. if test -n "$ac_tool_prefix"; then
  3519. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3520. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3522. $as_echo_n "checking for $ac_word... " >&6; }
  3523. if test "${ac_cv_prog_CC+set}" = set; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. if test -n "$CC"; then
  3527. ac_cv_prog_CC="$CC" # Let the user override the test.
  3528. else
  3529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3530. for as_dir in $PATH
  3531. do
  3532. IFS=$as_save_IFS
  3533. test -z "$as_dir" && as_dir=.
  3534. for ac_exec_ext in '' $ac_executable_extensions; do
  3535. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3536. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3538. break 2
  3539. fi
  3540. done
  3541. done
  3542. IFS=$as_save_IFS
  3543. fi
  3544. fi
  3545. CC=$ac_cv_prog_CC
  3546. if test -n "$CC"; then
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3548. $as_echo "$CC" >&6; }
  3549. else
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3551. $as_echo "no" >&6; }
  3552. fi
  3553. fi
  3554. if test -z "$ac_cv_prog_CC"; then
  3555. ac_ct_CC=$CC
  3556. # Extract the first word of "gcc", so it can be a program name with args.
  3557. set dummy gcc; ac_word=$2
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3559. $as_echo_n "checking for $ac_word... " >&6; }
  3560. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3561. $as_echo_n "(cached) " >&6
  3562. else
  3563. if test -n "$ac_ct_CC"; then
  3564. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3565. else
  3566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3567. for as_dir in $PATH
  3568. do
  3569. IFS=$as_save_IFS
  3570. test -z "$as_dir" && as_dir=.
  3571. for ac_exec_ext in '' $ac_executable_extensions; do
  3572. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3573. ac_cv_prog_ac_ct_CC="gcc"
  3574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3575. break 2
  3576. fi
  3577. done
  3578. done
  3579. IFS=$as_save_IFS
  3580. fi
  3581. fi
  3582. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3583. if test -n "$ac_ct_CC"; then
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3585. $as_echo "$ac_ct_CC" >&6; }
  3586. else
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3588. $as_echo "no" >&6; }
  3589. fi
  3590. if test "x$ac_ct_CC" = x; then
  3591. CC=""
  3592. else
  3593. case $cross_compiling:$ac_tool_warned in
  3594. yes:)
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3597. ac_tool_warned=yes ;;
  3598. esac
  3599. CC=$ac_ct_CC
  3600. fi
  3601. else
  3602. CC="$ac_cv_prog_CC"
  3603. fi
  3604. if test -z "$CC"; then
  3605. if test -n "$ac_tool_prefix"; then
  3606. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3607. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3609. $as_echo_n "checking for $ac_word... " >&6; }
  3610. if test "${ac_cv_prog_CC+set}" = set; then :
  3611. $as_echo_n "(cached) " >&6
  3612. else
  3613. if test -n "$CC"; then
  3614. ac_cv_prog_CC="$CC" # Let the user override the test.
  3615. else
  3616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3617. for as_dir in $PATH
  3618. do
  3619. IFS=$as_save_IFS
  3620. test -z "$as_dir" && as_dir=.
  3621. for ac_exec_ext in '' $ac_executable_extensions; do
  3622. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3623. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3625. break 2
  3626. fi
  3627. done
  3628. done
  3629. IFS=$as_save_IFS
  3630. fi
  3631. fi
  3632. CC=$ac_cv_prog_CC
  3633. if test -n "$CC"; then
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3635. $as_echo "$CC" >&6; }
  3636. else
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3638. $as_echo "no" >&6; }
  3639. fi
  3640. fi
  3641. fi
  3642. if test -z "$CC"; then
  3643. # Extract the first word of "cc", so it can be a program name with args.
  3644. set dummy cc; ac_word=$2
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3646. $as_echo_n "checking for $ac_word... " >&6; }
  3647. if test "${ac_cv_prog_CC+set}" = set; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. if test -n "$CC"; then
  3651. ac_cv_prog_CC="$CC" # Let the user override the test.
  3652. else
  3653. ac_prog_rejected=no
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH
  3656. do
  3657. IFS=$as_save_IFS
  3658. test -z "$as_dir" && as_dir=.
  3659. for ac_exec_ext in '' $ac_executable_extensions; do
  3660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3661. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3662. ac_prog_rejected=yes
  3663. continue
  3664. fi
  3665. ac_cv_prog_CC="cc"
  3666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3667. break 2
  3668. fi
  3669. done
  3670. done
  3671. IFS=$as_save_IFS
  3672. if test $ac_prog_rejected = yes; then
  3673. # We found a bogon in the path, so make sure we never use it.
  3674. set dummy $ac_cv_prog_CC
  3675. shift
  3676. if test $# != 0; then
  3677. # We chose a different compiler from the bogus one.
  3678. # However, it has the same basename, so the bogon will be chosen
  3679. # first if we set CC to just the basename; use the full file name.
  3680. shift
  3681. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3682. fi
  3683. fi
  3684. fi
  3685. fi
  3686. CC=$ac_cv_prog_CC
  3687. if test -n "$CC"; then
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3689. $as_echo "$CC" >&6; }
  3690. else
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3692. $as_echo "no" >&6; }
  3693. fi
  3694. fi
  3695. if test -z "$CC"; then
  3696. if test -n "$ac_tool_prefix"; then
  3697. for ac_prog in cl.exe
  3698. do
  3699. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3700. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3702. $as_echo_n "checking for $ac_word... " >&6; }
  3703. if test "${ac_cv_prog_CC+set}" = set; then :
  3704. $as_echo_n "(cached) " >&6
  3705. else
  3706. if test -n "$CC"; then
  3707. ac_cv_prog_CC="$CC" # Let the user override the test.
  3708. else
  3709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3710. for as_dir in $PATH
  3711. do
  3712. IFS=$as_save_IFS
  3713. test -z "$as_dir" && as_dir=.
  3714. for ac_exec_ext in '' $ac_executable_extensions; do
  3715. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3716. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3718. break 2
  3719. fi
  3720. done
  3721. done
  3722. IFS=$as_save_IFS
  3723. fi
  3724. fi
  3725. CC=$ac_cv_prog_CC
  3726. if test -n "$CC"; then
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3728. $as_echo "$CC" >&6; }
  3729. else
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3731. $as_echo "no" >&6; }
  3732. fi
  3733. test -n "$CC" && break
  3734. done
  3735. fi
  3736. if test -z "$CC"; then
  3737. ac_ct_CC=$CC
  3738. for ac_prog in cl.exe
  3739. do
  3740. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3741. set dummy $ac_prog; ac_word=$2
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3743. $as_echo_n "checking for $ac_word... " >&6; }
  3744. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. if test -n "$ac_ct_CC"; then
  3748. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3749. else
  3750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3751. for as_dir in $PATH
  3752. do
  3753. IFS=$as_save_IFS
  3754. test -z "$as_dir" && as_dir=.
  3755. for ac_exec_ext in '' $ac_executable_extensions; do
  3756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3757. ac_cv_prog_ac_ct_CC="$ac_prog"
  3758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3759. break 2
  3760. fi
  3761. done
  3762. done
  3763. IFS=$as_save_IFS
  3764. fi
  3765. fi
  3766. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3767. if test -n "$ac_ct_CC"; then
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3769. $as_echo "$ac_ct_CC" >&6; }
  3770. else
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3772. $as_echo "no" >&6; }
  3773. fi
  3774. test -n "$ac_ct_CC" && break
  3775. done
  3776. if test "x$ac_ct_CC" = x; then
  3777. CC=""
  3778. else
  3779. case $cross_compiling:$ac_tool_warned in
  3780. yes:)
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3782. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3783. ac_tool_warned=yes ;;
  3784. esac
  3785. CC=$ac_ct_CC
  3786. fi
  3787. fi
  3788. fi
  3789. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3790. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3791. as_fn_error "no acceptable C compiler found in \$PATH
  3792. See \`config.log' for more details." "$LINENO" 5; }
  3793. # Provide some information about the compiler.
  3794. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3795. set X $ac_compile
  3796. ac_compiler=$2
  3797. for ac_option in --version -v -V -qversion; do
  3798. { { ac_try="$ac_compiler $ac_option >&5"
  3799. case "(($ac_try" in
  3800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3801. *) ac_try_echo=$ac_try;;
  3802. esac
  3803. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3804. $as_echo "$ac_try_echo"; } >&5
  3805. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3806. ac_status=$?
  3807. if test -s conftest.err; then
  3808. sed '10a\
  3809. ... rest of stderr output deleted ...
  3810. 10q' conftest.err >conftest.er1
  3811. cat conftest.er1 >&5
  3812. fi
  3813. rm -f conftest.er1 conftest.err
  3814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3815. test $ac_status = 0; }
  3816. done
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3818. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3819. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3820. $as_echo_n "(cached) " >&6
  3821. else
  3822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3823. /* end confdefs.h. */
  3824. int
  3825. main ()
  3826. {
  3827. #ifndef __GNUC__
  3828. choke me
  3829. #endif
  3830. ;
  3831. return 0;
  3832. }
  3833. _ACEOF
  3834. if ac_fn_c_try_compile "$LINENO"; then :
  3835. ac_compiler_gnu=yes
  3836. else
  3837. ac_compiler_gnu=no
  3838. fi
  3839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3840. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3843. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3844. if test $ac_compiler_gnu = yes; then
  3845. GCC=yes
  3846. else
  3847. GCC=
  3848. fi
  3849. ac_test_CFLAGS=${CFLAGS+set}
  3850. ac_save_CFLAGS=$CFLAGS
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3852. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3853. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. ac_save_c_werror_flag=$ac_c_werror_flag
  3857. ac_c_werror_flag=yes
  3858. ac_cv_prog_cc_g=no
  3859. CFLAGS="-g"
  3860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3861. /* end confdefs.h. */
  3862. int
  3863. main ()
  3864. {
  3865. ;
  3866. return 0;
  3867. }
  3868. _ACEOF
  3869. if ac_fn_c_try_compile "$LINENO"; then :
  3870. ac_cv_prog_cc_g=yes
  3871. else
  3872. CFLAGS=""
  3873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3874. /* end confdefs.h. */
  3875. int
  3876. main ()
  3877. {
  3878. ;
  3879. return 0;
  3880. }
  3881. _ACEOF
  3882. if ac_fn_c_try_compile "$LINENO"; then :
  3883. else
  3884. ac_c_werror_flag=$ac_save_c_werror_flag
  3885. CFLAGS="-g"
  3886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3887. /* end confdefs.h. */
  3888. int
  3889. main ()
  3890. {
  3891. ;
  3892. return 0;
  3893. }
  3894. _ACEOF
  3895. if ac_fn_c_try_compile "$LINENO"; then :
  3896. ac_cv_prog_cc_g=yes
  3897. fi
  3898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3899. fi
  3900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3901. fi
  3902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3903. ac_c_werror_flag=$ac_save_c_werror_flag
  3904. fi
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3906. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3907. if test "$ac_test_CFLAGS" = set; then
  3908. CFLAGS=$ac_save_CFLAGS
  3909. elif test $ac_cv_prog_cc_g = yes; then
  3910. if test "$GCC" = yes; then
  3911. CFLAGS="-g -O2"
  3912. else
  3913. CFLAGS="-g"
  3914. fi
  3915. else
  3916. if test "$GCC" = yes; then
  3917. CFLAGS="-O2"
  3918. else
  3919. CFLAGS=
  3920. fi
  3921. fi
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3923. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3924. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3925. $as_echo_n "(cached) " >&6
  3926. else
  3927. ac_cv_prog_cc_c89=no
  3928. ac_save_CC=$CC
  3929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3930. /* end confdefs.h. */
  3931. #include <stdarg.h>
  3932. #include <stdio.h>
  3933. #include <sys/types.h>
  3934. #include <sys/stat.h>
  3935. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3936. struct buf { int x; };
  3937. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3938. static char *e (p, i)
  3939. char **p;
  3940. int i;
  3941. {
  3942. return p[i];
  3943. }
  3944. static char *f (char * (*g) (char **, int), char **p, ...)
  3945. {
  3946. char *s;
  3947. va_list v;
  3948. va_start (v,p);
  3949. s = g (p, va_arg (v,int));
  3950. va_end (v);
  3951. return s;
  3952. }
  3953. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3954. function prototypes and stuff, but not '\xHH' hex character constants.
  3955. These don't provoke an error unfortunately, instead are silently treated
  3956. as 'x'. The following induces an error, until -std is added to get
  3957. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3958. array size at least. It's necessary to write '\x00'==0 to get something
  3959. that's true only with -std. */
  3960. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3961. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3962. inside strings and character constants. */
  3963. #define FOO(x) 'x'
  3964. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3965. int test (int i, double x);
  3966. struct s1 {int (*f) (int a);};
  3967. struct s2 {int (*f) (double a);};
  3968. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3969. int argc;
  3970. char **argv;
  3971. int
  3972. main ()
  3973. {
  3974. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3975. ;
  3976. return 0;
  3977. }
  3978. _ACEOF
  3979. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3980. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3981. do
  3982. CC="$ac_save_CC $ac_arg"
  3983. if ac_fn_c_try_compile "$LINENO"; then :
  3984. ac_cv_prog_cc_c89=$ac_arg
  3985. fi
  3986. rm -f core conftest.err conftest.$ac_objext
  3987. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3988. done
  3989. rm -f conftest.$ac_ext
  3990. CC=$ac_save_CC
  3991. fi
  3992. # AC_CACHE_VAL
  3993. case "x$ac_cv_prog_cc_c89" in
  3994. x)
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3996. $as_echo "none needed" >&6; } ;;
  3997. xno)
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3999. $as_echo "unsupported" >&6; } ;;
  4000. *)
  4001. CC="$CC $ac_cv_prog_cc_c89"
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4003. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4004. esac
  4005. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4006. fi
  4007. ac_ext=c
  4008. ac_cpp='$CPP $CPPFLAGS'
  4009. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4010. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4011. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4012. depcc="$CC" am_compiler_list=
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4014. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4015. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4016. $as_echo_n "(cached) " >&6
  4017. else
  4018. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4019. # We make a subdir and do the tests there. Otherwise we can end up
  4020. # making bogus files that we don't know about and never remove. For
  4021. # instance it was reported that on HP-UX the gcc test will end up
  4022. # making a dummy file named `D' -- because `-MD' means `put the output
  4023. # in D'.
  4024. mkdir conftest.dir
  4025. # Copy depcomp to subdir because otherwise we won't find it if we're
  4026. # using a relative directory.
  4027. cp "$am_depcomp" conftest.dir
  4028. cd conftest.dir
  4029. # We will build objects and dependencies in a subdirectory because
  4030. # it helps to detect inapplicable dependency modes. For instance
  4031. # both Tru64's cc and ICC support -MD to output dependencies as a
  4032. # side effect of compilation, but ICC will put the dependencies in
  4033. # the current directory while Tru64 will put them in the object
  4034. # directory.
  4035. mkdir sub
  4036. am_cv_CC_dependencies_compiler_type=none
  4037. if test "$am_compiler_list" = ""; then
  4038. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4039. fi
  4040. for depmode in $am_compiler_list; do
  4041. # Setup a source with many dependencies, because some compilers
  4042. # like to wrap large dependency lists on column 80 (with \), and
  4043. # we should not choose a depcomp mode which is confused by this.
  4044. #
  4045. # We need to recreate these files for each test, as the compiler may
  4046. # overwrite some of them when testing with obscure command lines.
  4047. # This happens at least with the AIX C compiler.
  4048. : > sub/conftest.c
  4049. for i in 1 2 3 4 5 6; do
  4050. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4051. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4052. # Solaris 8's {/usr,}/bin/sh.
  4053. touch sub/conftst$i.h
  4054. done
  4055. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4056. case $depmode in
  4057. nosideeffect)
  4058. # after this tag, mechanisms are not by side-effect, so they'll
  4059. # only be used when explicitly requested
  4060. if test "x$enable_dependency_tracking" = xyes; then
  4061. continue
  4062. else
  4063. break
  4064. fi
  4065. ;;
  4066. none) break ;;
  4067. esac
  4068. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4069. # mode. It turns out that the SunPro C++ compiler does not properly
  4070. # handle `-M -o', and we need to detect this.
  4071. if depmode=$depmode \
  4072. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4073. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4074. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4075. >/dev/null 2>conftest.err &&
  4076. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4077. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4078. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4079. # icc doesn't choke on unknown options, it will just issue warnings
  4080. # or remarks (even with -Werror). So we grep stderr for any message
  4081. # that says an option was ignored or not supported.
  4082. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4083. # icc: Command line warning: ignoring option '-M'; no argument required
  4084. # The diagnosis changed in icc 8.0:
  4085. # icc: Command line remark: option '-MP' not supported
  4086. if (grep 'ignoring option' conftest.err ||
  4087. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4088. am_cv_CC_dependencies_compiler_type=$depmode
  4089. break
  4090. fi
  4091. fi
  4092. done
  4093. cd ..
  4094. rm -rf conftest.dir
  4095. else
  4096. am_cv_CC_dependencies_compiler_type=none
  4097. fi
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4100. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4101. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4102. if
  4103. test "x$enable_dependency_tracking" != xno \
  4104. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4105. am__fastdepCC_TRUE=
  4106. am__fastdepCC_FALSE='#'
  4107. else
  4108. am__fastdepCC_TRUE='#'
  4109. am__fastdepCC_FALSE=
  4110. fi
  4111. ac_ext=c
  4112. ac_cpp='$CPP $CPPFLAGS'
  4113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4117. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4118. # On Suns, sometimes $CPP names a directory.
  4119. if test -n "$CPP" && test -d "$CPP"; then
  4120. CPP=
  4121. fi
  4122. if test -z "$CPP"; then
  4123. if test "${ac_cv_prog_CPP+set}" = set; then :
  4124. $as_echo_n "(cached) " >&6
  4125. else
  4126. # Double quotes because CPP needs to be expanded
  4127. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4128. do
  4129. ac_preproc_ok=false
  4130. for ac_c_preproc_warn_flag in '' yes
  4131. do
  4132. # Use a header file that comes with gcc, so configuring glibc
  4133. # with a fresh cross-compiler works.
  4134. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4135. # <limits.h> exists even on freestanding compilers.
  4136. # On the NeXT, cc -E runs the code through the compiler's parser,
  4137. # not just through cpp. "Syntax error" is here to catch this case.
  4138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4139. /* end confdefs.h. */
  4140. #ifdef __STDC__
  4141. # include <limits.h>
  4142. #else
  4143. # include <assert.h>
  4144. #endif
  4145. Syntax error
  4146. _ACEOF
  4147. if ac_fn_c_try_cpp "$LINENO"; then :
  4148. else
  4149. # Broken: fails on valid input.
  4150. continue
  4151. fi
  4152. rm -f conftest.err conftest.$ac_ext
  4153. # OK, works on sane cases. Now check whether nonexistent headers
  4154. # can be detected and how.
  4155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4156. /* end confdefs.h. */
  4157. #include <ac_nonexistent.h>
  4158. _ACEOF
  4159. if ac_fn_c_try_cpp "$LINENO"; then :
  4160. # Broken: success on invalid input.
  4161. continue
  4162. else
  4163. # Passes both tests.
  4164. ac_preproc_ok=:
  4165. break
  4166. fi
  4167. rm -f conftest.err conftest.$ac_ext
  4168. done
  4169. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4170. rm -f conftest.err conftest.$ac_ext
  4171. if $ac_preproc_ok; then :
  4172. break
  4173. fi
  4174. done
  4175. ac_cv_prog_CPP=$CPP
  4176. fi
  4177. CPP=$ac_cv_prog_CPP
  4178. else
  4179. ac_cv_prog_CPP=$CPP
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4182. $as_echo "$CPP" >&6; }
  4183. ac_preproc_ok=false
  4184. for ac_c_preproc_warn_flag in '' yes
  4185. do
  4186. # Use a header file that comes with gcc, so configuring glibc
  4187. # with a fresh cross-compiler works.
  4188. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4189. # <limits.h> exists even on freestanding compilers.
  4190. # On the NeXT, cc -E runs the code through the compiler's parser,
  4191. # not just through cpp. "Syntax error" is here to catch this case.
  4192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4193. /* end confdefs.h. */
  4194. #ifdef __STDC__
  4195. # include <limits.h>
  4196. #else
  4197. # include <assert.h>
  4198. #endif
  4199. Syntax error
  4200. _ACEOF
  4201. if ac_fn_c_try_cpp "$LINENO"; then :
  4202. else
  4203. # Broken: fails on valid input.
  4204. continue
  4205. fi
  4206. rm -f conftest.err conftest.$ac_ext
  4207. # OK, works on sane cases. Now check whether nonexistent headers
  4208. # can be detected and how.
  4209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4210. /* end confdefs.h. */
  4211. #include <ac_nonexistent.h>
  4212. _ACEOF
  4213. if ac_fn_c_try_cpp "$LINENO"; then :
  4214. # Broken: success on invalid input.
  4215. continue
  4216. else
  4217. # Passes both tests.
  4218. ac_preproc_ok=:
  4219. break
  4220. fi
  4221. rm -f conftest.err conftest.$ac_ext
  4222. done
  4223. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4224. rm -f conftest.err conftest.$ac_ext
  4225. if $ac_preproc_ok; then :
  4226. else
  4227. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4228. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4229. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4230. See \`config.log' for more details." "$LINENO" 5; }
  4231. fi
  4232. ac_ext=c
  4233. ac_cpp='$CPP $CPPFLAGS'
  4234. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4235. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4236. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4237. if test "$GCC" = yes; then
  4238. GCC_TRUE=
  4239. GCC_FALSE='#'
  4240. else
  4241. GCC_TRUE='#'
  4242. GCC_FALSE=
  4243. fi
  4244. # let the Makefile know if we're gcc
  4245. if test "x$CC" != xcc; then
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4247. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4248. else
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4250. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4251. fi
  4252. set dummy $CC; ac_cc=`$as_echo "$2" |
  4253. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4254. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4258. /* end confdefs.h. */
  4259. int
  4260. main ()
  4261. {
  4262. ;
  4263. return 0;
  4264. }
  4265. _ACEOF
  4266. # Make sure it works both with $CC and with simple cc.
  4267. # We do the test twice because some compilers refuse to overwrite an
  4268. # existing .o file with -o, though they will create one.
  4269. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4270. rm -f conftest2.*
  4271. if { { case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4276. $as_echo "$ac_try_echo"; } >&5
  4277. (eval "$ac_try") 2>&5
  4278. ac_status=$?
  4279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4280. test $ac_status = 0; } &&
  4281. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4283. *) ac_try_echo=$ac_try;;
  4284. esac
  4285. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4286. $as_echo "$ac_try_echo"; } >&5
  4287. (eval "$ac_try") 2>&5
  4288. ac_status=$?
  4289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4290. test $ac_status = 0; };
  4291. then
  4292. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4293. if test "x$CC" != xcc; then
  4294. # Test first that cc exists at all.
  4295. if { ac_try='cc -c conftest.$ac_ext >&5'
  4296. { { case "(($ac_try" in
  4297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4298. *) ac_try_echo=$ac_try;;
  4299. esac
  4300. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4301. $as_echo "$ac_try_echo"; } >&5
  4302. (eval "$ac_try") 2>&5
  4303. ac_status=$?
  4304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4305. test $ac_status = 0; }; }; then
  4306. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4307. rm -f conftest2.*
  4308. if { { case "(($ac_try" in
  4309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4310. *) ac_try_echo=$ac_try;;
  4311. esac
  4312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4313. $as_echo "$ac_try_echo"; } >&5
  4314. (eval "$ac_try") 2>&5
  4315. ac_status=$?
  4316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4317. test $ac_status = 0; } &&
  4318. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4320. *) ac_try_echo=$ac_try;;
  4321. esac
  4322. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4323. $as_echo "$ac_try_echo"; } >&5
  4324. (eval "$ac_try") 2>&5
  4325. ac_status=$?
  4326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4327. test $ac_status = 0; };
  4328. then
  4329. # cc works too.
  4330. :
  4331. else
  4332. # cc exists but doesn't like -o.
  4333. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4334. fi
  4335. fi
  4336. fi
  4337. else
  4338. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4339. fi
  4340. rm -f core conftest*
  4341. fi
  4342. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4344. $as_echo "yes" >&6; }
  4345. else
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4347. $as_echo "no" >&6; }
  4348. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4349. fi
  4350. # FIXME: we rely on the cache variable name because
  4351. # there is no other way.
  4352. set dummy $CC
  4353. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4354. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  4355. # Losing compiler, so override with the script.
  4356. # FIXME: It is wrong to rewrite CC.
  4357. # But if we don't then we get into trouble of one sort or another.
  4358. # A longer-term fix would be to have automake use am__CC in this case,
  4359. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4360. CC="$am_aux_dir/compile $CC"
  4361. fi
  4362. # shrug: autogen.sh suddenly needs this for some reason
  4363. # Check if we have an objcopy installed that supports -W
  4364. if test -n "$ac_tool_prefix"; then
  4365. # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
  4366. set dummy ${ac_tool_prefix}objcopy; ac_word=$2
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4368. $as_echo_n "checking for $ac_word... " >&6; }
  4369. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. if test -n "$OBJCOPY"; then
  4373. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  4374. else
  4375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4376. for as_dir in $PATH
  4377. do
  4378. IFS=$as_save_IFS
  4379. test -z "$as_dir" && as_dir=.
  4380. for ac_exec_ext in '' $ac_executable_extensions; do
  4381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4382. ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
  4383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4384. break 2
  4385. fi
  4386. done
  4387. done
  4388. IFS=$as_save_IFS
  4389. fi
  4390. fi
  4391. OBJCOPY=$ac_cv_prog_OBJCOPY
  4392. if test -n "$OBJCOPY"; then
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  4394. $as_echo "$OBJCOPY" >&6; }
  4395. else
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4397. $as_echo "no" >&6; }
  4398. fi
  4399. fi
  4400. if test -z "$ac_cv_prog_OBJCOPY"; then
  4401. ac_ct_OBJCOPY=$OBJCOPY
  4402. # Extract the first word of "objcopy", so it can be a program name with args.
  4403. set dummy objcopy; ac_word=$2
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4405. $as_echo_n "checking for $ac_word... " >&6; }
  4406. if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
  4407. $as_echo_n "(cached) " >&6
  4408. else
  4409. if test -n "$ac_ct_OBJCOPY"; then
  4410. ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
  4411. else
  4412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4413. for as_dir in $PATH
  4414. do
  4415. IFS=$as_save_IFS
  4416. test -z "$as_dir" && as_dir=.
  4417. for ac_exec_ext in '' $ac_executable_extensions; do
  4418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4419. ac_cv_prog_ac_ct_OBJCOPY="objcopy"
  4420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4421. break 2
  4422. fi
  4423. done
  4424. done
  4425. IFS=$as_save_IFS
  4426. fi
  4427. fi
  4428. ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
  4429. if test -n "$ac_ct_OBJCOPY"; then
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
  4431. $as_echo "$ac_ct_OBJCOPY" >&6; }
  4432. else
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4434. $as_echo "no" >&6; }
  4435. fi
  4436. if test "x$ac_ct_OBJCOPY" = x; then
  4437. OBJCOPY=""
  4438. else
  4439. case $cross_compiling:$ac_tool_warned in
  4440. yes:)
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4443. ac_tool_warned=yes ;;
  4444. esac
  4445. OBJCOPY=$ac_ct_OBJCOPY
  4446. fi
  4447. else
  4448. OBJCOPY="$ac_cv_prog_OBJCOPY"
  4449. fi
  4450. if test -n "$OBJCOPY"; then :
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OBJCOPY supports -W" >&5
  4452. $as_echo_n "checking if $OBJCOPY supports -W... " >&6; }
  4453. if test "${gpt_cv_objcopy_weaken+set}" = set; then :
  4454. $as_echo_n "(cached) " >&6
  4455. else
  4456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4457. /* end confdefs.h. */
  4458. void foo() {} int main() {return 0;}
  4459. _ACEOF
  4460. if ac_fn_c_try_link "$LINENO"; then :
  4461. if "$OBJCOPY" -W foo conftest$ac_exeext /dev/null; then :
  4462. gpt_cv_objcopy_weaken=yes
  4463. else
  4464. gpt_cv_objcopy_weaken=no
  4465. fi
  4466. else
  4467. gpt_cv_objcopy_weaken=no
  4468. fi
  4469. rm -f core conftest.err conftest.$ac_objext \
  4470. conftest$ac_exeext conftest.$ac_ext
  4471. fi
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpt_cv_objcopy_weaken" >&5
  4473. $as_echo "$gpt_cv_objcopy_weaken" >&6; }
  4474. else
  4475. gpt_cv_objcopy_weaken=no
  4476. fi
  4477. if test $gpt_cv_objcopy_weaken = yes; then
  4478. HAVE_OBJCOPY_WEAKEN_TRUE=
  4479. HAVE_OBJCOPY_WEAKEN_FALSE='#'
  4480. else
  4481. HAVE_OBJCOPY_WEAKEN_TRUE='#'
  4482. HAVE_OBJCOPY_WEAKEN_FALSE=
  4483. fi
  4484. case $host_os in
  4485. *mingw*)
  4486. # Disabling fast install keeps libtool from creating wrapper scripts
  4487. # around the executables it builds. Such scripts have caused failures on
  4488. # MinGW. Using this option means an extra link step is executed during
  4489. # "make install".
  4490. # Check whether --enable-fast-install was given.
  4491. if test "${enable_fast_install+set}" = set; then :
  4492. enableval=$enable_fast_install; p=${PACKAGE-default}
  4493. case $enableval in
  4494. yes) enable_fast_install=yes ;;
  4495. no) enable_fast_install=no ;;
  4496. *)
  4497. enable_fast_install=no
  4498. # Look at the argument we got. We use all the common list separators.
  4499. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4500. for pkg in $enableval; do
  4501. IFS="$lt_save_ifs"
  4502. if test "X$pkg" = "X$p"; then
  4503. enable_fast_install=yes
  4504. fi
  4505. done
  4506. IFS="$lt_save_ifs"
  4507. ;;
  4508. esac
  4509. else
  4510. enable_fast_install=no
  4511. fi
  4512. ;;
  4513. *)
  4514. # Check whether --enable-fast-install was given.
  4515. if test "${enable_fast_install+set}" = set; then :
  4516. enableval=$enable_fast_install; p=${PACKAGE-default}
  4517. case $enableval in
  4518. yes) enable_fast_install=yes ;;
  4519. no) enable_fast_install=no ;;
  4520. *)
  4521. enable_fast_install=no
  4522. # Look at the argument we got. We use all the common list separators.
  4523. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4524. for pkg in $enableval; do
  4525. IFS="$lt_save_ifs"
  4526. if test "X$pkg" = "X$p"; then
  4527. enable_fast_install=yes
  4528. fi
  4529. done
  4530. IFS="$lt_save_ifs"
  4531. ;;
  4532. esac
  4533. else
  4534. enable_fast_install=yes
  4535. fi
  4536. ;;
  4537. esac
  4538. case `pwd` in
  4539. *\ * | *\ *)
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4541. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4542. esac
  4543. macro_version='2.2.6b'
  4544. macro_revision='1.3017'
  4545. ltmain="$ac_aux_dir/ltmain.sh"
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4547. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4548. if test "${ac_cv_path_SED+set}" = set; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4552. for ac_i in 1 2 3 4 5 6 7; do
  4553. ac_script="$ac_script$as_nl$ac_script"
  4554. done
  4555. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4556. { ac_script=; unset ac_script;}
  4557. if test -z "$SED"; then
  4558. ac_path_SED_found=false
  4559. # Loop through the user's path and test for each of PROGNAME-LIST
  4560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4561. for as_dir in $PATH
  4562. do
  4563. IFS=$as_save_IFS
  4564. test -z "$as_dir" && as_dir=.
  4565. for ac_prog in sed gsed; do
  4566. for ac_exec_ext in '' $ac_executable_extensions; do
  4567. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4568. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4569. # Check for GNU ac_path_SED and select it if it is found.
  4570. # Check for GNU $ac_path_SED
  4571. case `"$ac_path_SED" --version 2>&1` in
  4572. *GNU*)
  4573. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4574. *)
  4575. ac_count=0
  4576. $as_echo_n 0123456789 >"conftest.in"
  4577. while :
  4578. do
  4579. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4580. mv "conftest.tmp" "conftest.in"
  4581. cp "conftest.in" "conftest.nl"
  4582. $as_echo '' >> "conftest.nl"
  4583. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4584. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4585. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4586. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4587. # Best one so far, save it but keep looking for a better one
  4588. ac_cv_path_SED="$ac_path_SED"
  4589. ac_path_SED_max=$ac_count
  4590. fi
  4591. # 10*(2^10) chars as input seems more than enough
  4592. test $ac_count -gt 10 && break
  4593. done
  4594. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4595. esac
  4596. $ac_path_SED_found && break 3
  4597. done
  4598. done
  4599. done
  4600. IFS=$as_save_IFS
  4601. if test -z "$ac_cv_path_SED"; then
  4602. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4603. fi
  4604. else
  4605. ac_cv_path_SED=$SED
  4606. fi
  4607. fi
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4609. $as_echo "$ac_cv_path_SED" >&6; }
  4610. SED="$ac_cv_path_SED"
  4611. rm -f conftest.sed
  4612. test -z "$SED" && SED=sed
  4613. Xsed="$SED -e 1s/^X//"
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4615. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4616. if test "${ac_cv_path_GREP+set}" = set; then :
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. if test -z "$GREP"; then
  4620. ac_path_GREP_found=false
  4621. # Loop through the user's path and test for each of PROGNAME-LIST
  4622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4623. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4624. do
  4625. IFS=$as_save_IFS
  4626. test -z "$as_dir" && as_dir=.
  4627. for ac_prog in grep ggrep; do
  4628. for ac_exec_ext in '' $ac_executable_extensions; do
  4629. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4630. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4631. # Check for GNU ac_path_GREP and select it if it is found.
  4632. # Check for GNU $ac_path_GREP
  4633. case `"$ac_path_GREP" --version 2>&1` in
  4634. *GNU*)
  4635. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4636. *)
  4637. ac_count=0
  4638. $as_echo_n 0123456789 >"conftest.in"
  4639. while :
  4640. do
  4641. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4642. mv "conftest.tmp" "conftest.in"
  4643. cp "conftest.in" "conftest.nl"
  4644. $as_echo 'GREP' >> "conftest.nl"
  4645. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4646. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4647. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4648. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4649. # Best one so far, save it but keep looking for a better one
  4650. ac_cv_path_GREP="$ac_path_GREP"
  4651. ac_path_GREP_max=$ac_count
  4652. fi
  4653. # 10*(2^10) chars as input seems more than enough
  4654. test $ac_count -gt 10 && break
  4655. done
  4656. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4657. esac
  4658. $ac_path_GREP_found && break 3
  4659. done
  4660. done
  4661. done
  4662. IFS=$as_save_IFS
  4663. if test -z "$ac_cv_path_GREP"; then
  4664. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4665. fi
  4666. else
  4667. ac_cv_path_GREP=$GREP
  4668. fi
  4669. fi
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4671. $as_echo "$ac_cv_path_GREP" >&6; }
  4672. GREP="$ac_cv_path_GREP"
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4674. $as_echo_n "checking for egrep... " >&6; }
  4675. if test "${ac_cv_path_EGREP+set}" = set; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4679. then ac_cv_path_EGREP="$GREP -E"
  4680. else
  4681. if test -z "$EGREP"; then
  4682. ac_path_EGREP_found=false
  4683. # Loop through the user's path and test for each of PROGNAME-LIST
  4684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4685. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4686. do
  4687. IFS=$as_save_IFS
  4688. test -z "$as_dir" && as_dir=.
  4689. for ac_prog in egrep; do
  4690. for ac_exec_ext in '' $ac_executable_extensions; do
  4691. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4692. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4693. # Check for GNU ac_path_EGREP and select it if it is found.
  4694. # Check for GNU $ac_path_EGREP
  4695. case `"$ac_path_EGREP" --version 2>&1` in
  4696. *GNU*)
  4697. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4698. *)
  4699. ac_count=0
  4700. $as_echo_n 0123456789 >"conftest.in"
  4701. while :
  4702. do
  4703. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4704. mv "conftest.tmp" "conftest.in"
  4705. cp "conftest.in" "conftest.nl"
  4706. $as_echo 'EGREP' >> "conftest.nl"
  4707. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4708. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4709. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4710. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4711. # Best one so far, save it but keep looking for a better one
  4712. ac_cv_path_EGREP="$ac_path_EGREP"
  4713. ac_path_EGREP_max=$ac_count
  4714. fi
  4715. # 10*(2^10) chars as input seems more than enough
  4716. test $ac_count -gt 10 && break
  4717. done
  4718. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4719. esac
  4720. $ac_path_EGREP_found && break 3
  4721. done
  4722. done
  4723. done
  4724. IFS=$as_save_IFS
  4725. if test -z "$ac_cv_path_EGREP"; then
  4726. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4727. fi
  4728. else
  4729. ac_cv_path_EGREP=$EGREP
  4730. fi
  4731. fi
  4732. fi
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4734. $as_echo "$ac_cv_path_EGREP" >&6; }
  4735. EGREP="$ac_cv_path_EGREP"
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4737. $as_echo_n "checking for fgrep... " >&6; }
  4738. if test "${ac_cv_path_FGREP+set}" = set; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4742. then ac_cv_path_FGREP="$GREP -F"
  4743. else
  4744. if test -z "$FGREP"; then
  4745. ac_path_FGREP_found=false
  4746. # Loop through the user's path and test for each of PROGNAME-LIST
  4747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4748. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4749. do
  4750. IFS=$as_save_IFS
  4751. test -z "$as_dir" && as_dir=.
  4752. for ac_prog in fgrep; do
  4753. for ac_exec_ext in '' $ac_executable_extensions; do
  4754. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4755. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4756. # Check for GNU ac_path_FGREP and select it if it is found.
  4757. # Check for GNU $ac_path_FGREP
  4758. case `"$ac_path_FGREP" --version 2>&1` in
  4759. *GNU*)
  4760. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4761. *)
  4762. ac_count=0
  4763. $as_echo_n 0123456789 >"conftest.in"
  4764. while :
  4765. do
  4766. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4767. mv "conftest.tmp" "conftest.in"
  4768. cp "conftest.in" "conftest.nl"
  4769. $as_echo 'FGREP' >> "conftest.nl"
  4770. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4771. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4772. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4773. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4774. # Best one so far, save it but keep looking for a better one
  4775. ac_cv_path_FGREP="$ac_path_FGREP"
  4776. ac_path_FGREP_max=$ac_count
  4777. fi
  4778. # 10*(2^10) chars as input seems more than enough
  4779. test $ac_count -gt 10 && break
  4780. done
  4781. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4782. esac
  4783. $ac_path_FGREP_found && break 3
  4784. done
  4785. done
  4786. done
  4787. IFS=$as_save_IFS
  4788. if test -z "$ac_cv_path_FGREP"; then
  4789. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4790. fi
  4791. else
  4792. ac_cv_path_FGREP=$FGREP
  4793. fi
  4794. fi
  4795. fi
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4797. $as_echo "$ac_cv_path_FGREP" >&6; }
  4798. FGREP="$ac_cv_path_FGREP"
  4799. test -z "$GREP" && GREP=grep
  4800. # Check whether --with-gnu-ld was given.
  4801. if test "${with_gnu_ld+set}" = set; then :
  4802. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4803. else
  4804. with_gnu_ld=no
  4805. fi
  4806. ac_prog=ld
  4807. if test "$GCC" = yes; then
  4808. # Check if gcc -print-prog-name=ld gives a path.
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4810. $as_echo_n "checking for ld used by $CC... " >&6; }
  4811. case $host in
  4812. *-*-mingw*)
  4813. # gcc leaves a trailing carriage return which upsets mingw
  4814. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4815. *)
  4816. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4817. esac
  4818. case $ac_prog in
  4819. # Accept absolute paths.
  4820. [\\/]* | ?:[\\/]*)
  4821. re_direlt='/[^/][^/]*/\.\./'
  4822. # Canonicalize the pathname of ld
  4823. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4824. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4825. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4826. done
  4827. test -z "$LD" && LD="$ac_prog"
  4828. ;;
  4829. "")
  4830. # If it fails, then pretend we aren't using GCC.
  4831. ac_prog=ld
  4832. ;;
  4833. *)
  4834. # If it is relative, then search for the first ld in PATH.
  4835. with_gnu_ld=unknown
  4836. ;;
  4837. esac
  4838. elif test "$with_gnu_ld" = yes; then
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4840. $as_echo_n "checking for GNU ld... " >&6; }
  4841. else
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4843. $as_echo_n "checking for non-GNU ld... " >&6; }
  4844. fi
  4845. if test "${lt_cv_path_LD+set}" = set; then :
  4846. $as_echo_n "(cached) " >&6
  4847. else
  4848. if test -z "$LD"; then
  4849. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4850. for ac_dir in $PATH; do
  4851. IFS="$lt_save_ifs"
  4852. test -z "$ac_dir" && ac_dir=.
  4853. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4854. lt_cv_path_LD="$ac_dir/$ac_prog"
  4855. # Check to see if the program is GNU ld. I'd rather use --version,
  4856. # but apparently some variants of GNU ld only accept -v.
  4857. # Break only if it was the GNU/non-GNU ld that we prefer.
  4858. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4859. *GNU* | *'with BFD'*)
  4860. test "$with_gnu_ld" != no && break
  4861. ;;
  4862. *)
  4863. test "$with_gnu_ld" != yes && break
  4864. ;;
  4865. esac
  4866. fi
  4867. done
  4868. IFS="$lt_save_ifs"
  4869. else
  4870. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4871. fi
  4872. fi
  4873. LD="$lt_cv_path_LD"
  4874. if test -n "$LD"; then
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4876. $as_echo "$LD" >&6; }
  4877. else
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4879. $as_echo "no" >&6; }
  4880. fi
  4881. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4883. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4884. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4885. $as_echo_n "(cached) " >&6
  4886. else
  4887. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4888. case `$LD -v 2>&1 </dev/null` in
  4889. *GNU* | *'with BFD'*)
  4890. lt_cv_prog_gnu_ld=yes
  4891. ;;
  4892. *)
  4893. lt_cv_prog_gnu_ld=no
  4894. ;;
  4895. esac
  4896. fi
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4898. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4899. with_gnu_ld=$lt_cv_prog_gnu_ld
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4901. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4902. if test "${lt_cv_path_NM+set}" = set; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. if test -n "$NM"; then
  4906. # Let the user override the test.
  4907. lt_cv_path_NM="$NM"
  4908. else
  4909. lt_nm_to_check="${ac_tool_prefix}nm"
  4910. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4911. lt_nm_to_check="$lt_nm_to_check nm"
  4912. fi
  4913. for lt_tmp_nm in $lt_nm_to_check; do
  4914. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4915. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4916. IFS="$lt_save_ifs"
  4917. test -z "$ac_dir" && ac_dir=.
  4918. tmp_nm="$ac_dir/$lt_tmp_nm"
  4919. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4920. # Check to see if the nm accepts a BSD-compat flag.
  4921. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4922. # nm: unknown option "B" ignored
  4923. # Tru64's nm complains that /dev/null is an invalid object file
  4924. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4925. */dev/null* | *'Invalid file or object type'*)
  4926. lt_cv_path_NM="$tmp_nm -B"
  4927. break
  4928. ;;
  4929. *)
  4930. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4931. */dev/null*)
  4932. lt_cv_path_NM="$tmp_nm -p"
  4933. break
  4934. ;;
  4935. *)
  4936. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4937. continue # so that we can try to find one that supports BSD flags
  4938. ;;
  4939. esac
  4940. ;;
  4941. esac
  4942. fi
  4943. done
  4944. IFS="$lt_save_ifs"
  4945. done
  4946. : ${lt_cv_path_NM=no}
  4947. fi
  4948. fi
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4950. $as_echo "$lt_cv_path_NM" >&6; }
  4951. if test "$lt_cv_path_NM" != "no"; then
  4952. NM="$lt_cv_path_NM"
  4953. else
  4954. # Didn't find any BSD compatible name lister, look for dumpbin.
  4955. if test -n "$ac_tool_prefix"; then
  4956. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4957. do
  4958. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4959. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4961. $as_echo_n "checking for $ac_word... " >&6; }
  4962. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4963. $as_echo_n "(cached) " >&6
  4964. else
  4965. if test -n "$DUMPBIN"; then
  4966. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4967. else
  4968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4969. for as_dir in $PATH
  4970. do
  4971. IFS=$as_save_IFS
  4972. test -z "$as_dir" && as_dir=.
  4973. for ac_exec_ext in '' $ac_executable_extensions; do
  4974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4975. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4977. break 2
  4978. fi
  4979. done
  4980. done
  4981. IFS=$as_save_IFS
  4982. fi
  4983. fi
  4984. DUMPBIN=$ac_cv_prog_DUMPBIN
  4985. if test -n "$DUMPBIN"; then
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4987. $as_echo "$DUMPBIN" >&6; }
  4988. else
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4990. $as_echo "no" >&6; }
  4991. fi
  4992. test -n "$DUMPBIN" && break
  4993. done
  4994. fi
  4995. if test -z "$DUMPBIN"; then
  4996. ac_ct_DUMPBIN=$DUMPBIN
  4997. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4998. do
  4999. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5000. set dummy $ac_prog; ac_word=$2
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5002. $as_echo_n "checking for $ac_word... " >&6; }
  5003. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. if test -n "$ac_ct_DUMPBIN"; then
  5007. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5008. else
  5009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5010. for as_dir in $PATH
  5011. do
  5012. IFS=$as_save_IFS
  5013. test -z "$as_dir" && as_dir=.
  5014. for ac_exec_ext in '' $ac_executable_extensions; do
  5015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5016. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5018. break 2
  5019. fi
  5020. done
  5021. done
  5022. IFS=$as_save_IFS
  5023. fi
  5024. fi
  5025. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5026. if test -n "$ac_ct_DUMPBIN"; then
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5028. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5029. else
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5031. $as_echo "no" >&6; }
  5032. fi
  5033. test -n "$ac_ct_DUMPBIN" && break
  5034. done
  5035. if test "x$ac_ct_DUMPBIN" = x; then
  5036. DUMPBIN=":"
  5037. else
  5038. case $cross_compiling:$ac_tool_warned in
  5039. yes:)
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5041. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5042. ac_tool_warned=yes ;;
  5043. esac
  5044. DUMPBIN=$ac_ct_DUMPBIN
  5045. fi
  5046. fi
  5047. if test "$DUMPBIN" != ":"; then
  5048. NM="$DUMPBIN"
  5049. fi
  5050. fi
  5051. test -z "$NM" && NM=nm
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5053. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5054. if test "${lt_cv_nm_interface+set}" = set; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. lt_cv_nm_interface="BSD nm"
  5058. echo "int some_variable = 0;" > conftest.$ac_ext
  5059. (eval echo "\"\$as_me:5618: $ac_compile\"" >&5)
  5060. (eval "$ac_compile" 2>conftest.err)
  5061. cat conftest.err >&5
  5062. (eval echo "\"\$as_me:5621: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5063. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5064. cat conftest.err >&5
  5065. (eval echo "\"\$as_me:5624: output\"" >&5)
  5066. cat conftest.out >&5
  5067. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5068. lt_cv_nm_interface="MS dumpbin"
  5069. fi
  5070. rm -f conftest*
  5071. fi
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5073. $as_echo "$lt_cv_nm_interface" >&6; }
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5075. $as_echo_n "checking whether ln -s works... " >&6; }
  5076. LN_S=$as_ln_s
  5077. if test "$LN_S" = "ln -s"; then
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5079. $as_echo "yes" >&6; }
  5080. else
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5082. $as_echo "no, using $LN_S" >&6; }
  5083. fi
  5084. # find the maximum length of command line arguments
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5086. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5087. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5088. $as_echo_n "(cached) " >&6
  5089. else
  5090. i=0
  5091. teststring="ABCD"
  5092. case $build_os in
  5093. msdosdjgpp*)
  5094. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5095. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5096. # during glob expansion). Even if it were fixed, the result of this
  5097. # check would be larger than it should be.
  5098. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5099. ;;
  5100. gnu*)
  5101. # Under GNU Hurd, this test is not required because there is
  5102. # no limit to the length of command line arguments.
  5103. # Libtool will interpret -1 as no limit whatsoever
  5104. lt_cv_sys_max_cmd_len=-1;
  5105. ;;
  5106. cygwin* | mingw* | cegcc*)
  5107. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5108. # about 5 minutes as the teststring grows exponentially.
  5109. # Worse, since 9x/ME are not pre-emptively multitasking,
  5110. # you end up with a "frozen" computer, even though with patience
  5111. # the test eventually succeeds (with a max line length of 256k).
  5112. # Instead, let's just punt: use the minimum linelength reported by
  5113. # all of the supported platforms: 8192 (on NT/2K/XP).
  5114. lt_cv_sys_max_cmd_len=8192;
  5115. ;;
  5116. amigaos*)
  5117. # On AmigaOS with pdksh, this test takes hours, literally.
  5118. # So we just punt and use a minimum line length of 8192.
  5119. lt_cv_sys_max_cmd_len=8192;
  5120. ;;
  5121. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5122. # This has been around since 386BSD, at least. Likely further.
  5123. if test -x /sbin/sysctl; then
  5124. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5125. elif test -x /usr/sbin/sysctl; then
  5126. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5127. else
  5128. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5129. fi
  5130. # And add a safety zone
  5131. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5132. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5133. ;;
  5134. interix*)
  5135. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5136. lt_cv_sys_max_cmd_len=196608
  5137. ;;
  5138. osf*)
  5139. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5140. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5141. # nice to cause kernel panics so lets avoid the loop below.
  5142. # First set a reasonable default.
  5143. lt_cv_sys_max_cmd_len=16384
  5144. #
  5145. if test -x /sbin/sysconfig; then
  5146. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5147. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5148. esac
  5149. fi
  5150. ;;
  5151. sco3.2v5*)
  5152. lt_cv_sys_max_cmd_len=102400
  5153. ;;
  5154. sysv5* | sco5v6* | sysv4.2uw2*)
  5155. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5156. if test -n "$kargmax"; then
  5157. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5158. else
  5159. lt_cv_sys_max_cmd_len=32768
  5160. fi
  5161. ;;
  5162. *)
  5163. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5164. if test -n "$lt_cv_sys_max_cmd_len"; then
  5165. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5166. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5167. else
  5168. # Make teststring a little bigger before we do anything with it.
  5169. # a 1K string should be a reasonable start.
  5170. for i in 1 2 3 4 5 6 7 8 ; do
  5171. teststring=$teststring$teststring
  5172. done
  5173. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5174. # If test is not a shell built-in, we'll probably end up computing a
  5175. # maximum length that is only half of the actual maximum length, but
  5176. # we can't tell.
  5177. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5178. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5179. test $i != 17 # 1/2 MB should be enough
  5180. do
  5181. i=`expr $i + 1`
  5182. teststring=$teststring$teststring
  5183. done
  5184. # Only check the string length outside the loop.
  5185. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5186. teststring=
  5187. # Add a significant safety factor because C++ compilers can tack on
  5188. # massive amounts of additional arguments before passing them to the
  5189. # linker. It appears as though 1/2 is a usable value.
  5190. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5191. fi
  5192. ;;
  5193. esac
  5194. fi
  5195. if test -n $lt_cv_sys_max_cmd_len ; then
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5197. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5198. else
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5200. $as_echo "none" >&6; }
  5201. fi
  5202. max_cmd_len=$lt_cv_sys_max_cmd_len
  5203. : ${CP="cp -f"}
  5204. : ${MV="mv -f"}
  5205. : ${RM="rm -f"}
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5207. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5208. # Try some XSI features
  5209. xsi_shell=no
  5210. ( _lt_dummy="a/b/c"
  5211. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5212. = c,a/b,, \
  5213. && eval 'test $(( 1 + 1 )) -eq 2 \
  5214. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5215. && xsi_shell=yes
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5217. $as_echo "$xsi_shell" >&6; }
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5219. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5220. lt_shell_append=no
  5221. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5222. >/dev/null 2>&1 \
  5223. && lt_shell_append=yes
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5225. $as_echo "$lt_shell_append" >&6; }
  5226. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5227. lt_unset=unset
  5228. else
  5229. lt_unset=false
  5230. fi
  5231. # test EBCDIC or ASCII
  5232. case `echo X|tr X '\101'` in
  5233. A) # ASCII based system
  5234. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5235. lt_SP2NL='tr \040 \012'
  5236. lt_NL2SP='tr \015\012 \040\040'
  5237. ;;
  5238. *) # EBCDIC based system
  5239. lt_SP2NL='tr \100 \n'
  5240. lt_NL2SP='tr \r\n \100\100'
  5241. ;;
  5242. esac
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5244. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5245. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5246. $as_echo_n "(cached) " >&6
  5247. else
  5248. lt_cv_ld_reload_flag='-r'
  5249. fi
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5251. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5252. reload_flag=$lt_cv_ld_reload_flag
  5253. case $reload_flag in
  5254. "" | " "*) ;;
  5255. *) reload_flag=" $reload_flag" ;;
  5256. esac
  5257. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5258. case $host_os in
  5259. darwin*)
  5260. if test "$GCC" = yes; then
  5261. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5262. else
  5263. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5264. fi
  5265. ;;
  5266. esac
  5267. if test -n "$ac_tool_prefix"; then
  5268. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5269. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5271. $as_echo_n "checking for $ac_word... " >&6; }
  5272. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5273. $as_echo_n "(cached) " >&6
  5274. else
  5275. if test -n "$OBJDUMP"; then
  5276. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5277. else
  5278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5279. for as_dir in $PATH
  5280. do
  5281. IFS=$as_save_IFS
  5282. test -z "$as_dir" && as_dir=.
  5283. for ac_exec_ext in '' $ac_executable_extensions; do
  5284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5285. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5287. break 2
  5288. fi
  5289. done
  5290. done
  5291. IFS=$as_save_IFS
  5292. fi
  5293. fi
  5294. OBJDUMP=$ac_cv_prog_OBJDUMP
  5295. if test -n "$OBJDUMP"; then
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5297. $as_echo "$OBJDUMP" >&6; }
  5298. else
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5300. $as_echo "no" >&6; }
  5301. fi
  5302. fi
  5303. if test -z "$ac_cv_prog_OBJDUMP"; then
  5304. ac_ct_OBJDUMP=$OBJDUMP
  5305. # Extract the first word of "objdump", so it can be a program name with args.
  5306. set dummy objdump; ac_word=$2
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5308. $as_echo_n "checking for $ac_word... " >&6; }
  5309. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5310. $as_echo_n "(cached) " >&6
  5311. else
  5312. if test -n "$ac_ct_OBJDUMP"; then
  5313. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5314. else
  5315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5316. for as_dir in $PATH
  5317. do
  5318. IFS=$as_save_IFS
  5319. test -z "$as_dir" && as_dir=.
  5320. for ac_exec_ext in '' $ac_executable_extensions; do
  5321. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5322. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5324. break 2
  5325. fi
  5326. done
  5327. done
  5328. IFS=$as_save_IFS
  5329. fi
  5330. fi
  5331. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5332. if test -n "$ac_ct_OBJDUMP"; then
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5334. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5335. else
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5337. $as_echo "no" >&6; }
  5338. fi
  5339. if test "x$ac_ct_OBJDUMP" = x; then
  5340. OBJDUMP="false"
  5341. else
  5342. case $cross_compiling:$ac_tool_warned in
  5343. yes:)
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5346. ac_tool_warned=yes ;;
  5347. esac
  5348. OBJDUMP=$ac_ct_OBJDUMP
  5349. fi
  5350. else
  5351. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5352. fi
  5353. test -z "$OBJDUMP" && OBJDUMP=objdump
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5355. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5356. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5357. $as_echo_n "(cached) " >&6
  5358. else
  5359. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5360. lt_cv_file_magic_test_file=
  5361. lt_cv_deplibs_check_method='unknown'
  5362. # Need to set the preceding variable on all platforms that support
  5363. # interlibrary dependencies.
  5364. # 'none' -- dependencies not supported.
  5365. # `unknown' -- same as none, but documents that we really don't know.
  5366. # 'pass_all' -- all dependencies passed with no checks.
  5367. # 'test_compile' -- check by making test program.
  5368. # 'file_magic [[regex]]' -- check by looking for files in library path
  5369. # which responds to the $file_magic_cmd with a given extended regex.
  5370. # If you have `file' or equivalent on your system and you're not sure
  5371. # whether `pass_all' will *always* work, you probably want this one.
  5372. case $host_os in
  5373. aix[4-9]*)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. beos*)
  5377. lt_cv_deplibs_check_method=pass_all
  5378. ;;
  5379. bsdi[45]*)
  5380. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5381. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5382. lt_cv_file_magic_test_file=/shlib/libc.so
  5383. ;;
  5384. cygwin*)
  5385. # func_win32_libid is a shell function defined in ltmain.sh
  5386. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5387. lt_cv_file_magic_cmd='func_win32_libid'
  5388. ;;
  5389. mingw* | pw32*)
  5390. # Base MSYS/MinGW do not provide the 'file' command needed by
  5391. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5392. # unless we find 'file', for example because we are cross-compiling.
  5393. if ( file / ) >/dev/null 2>&1; then
  5394. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5395. lt_cv_file_magic_cmd='func_win32_libid'
  5396. else
  5397. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5398. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5399. fi
  5400. ;;
  5401. cegcc)
  5402. # use the weaker test based on 'objdump'. See mingw*.
  5403. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5404. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5405. ;;
  5406. darwin* | rhapsody*)
  5407. lt_cv_deplibs_check_method=pass_all
  5408. ;;
  5409. freebsd* | dragonfly*)
  5410. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5411. case $host_cpu in
  5412. i*86 )
  5413. # Not sure whether the presence of OpenBSD here was a mistake.
  5414. # Let's accept both of them until this is cleared up.
  5415. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5416. lt_cv_file_magic_cmd=/usr/bin/file
  5417. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5418. ;;
  5419. esac
  5420. else
  5421. lt_cv_deplibs_check_method=pass_all
  5422. fi
  5423. ;;
  5424. gnu*)
  5425. lt_cv_deplibs_check_method=pass_all
  5426. ;;
  5427. hpux10.20* | hpux11*)
  5428. lt_cv_file_magic_cmd=/usr/bin/file
  5429. case $host_cpu in
  5430. ia64*)
  5431. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5432. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5433. ;;
  5434. hppa*64*)
  5435. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5436. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5437. ;;
  5438. *)
  5439. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5440. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5441. ;;
  5442. esac
  5443. ;;
  5444. interix[3-9]*)
  5445. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5446. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5447. ;;
  5448. irix5* | irix6* | nonstopux*)
  5449. case $LD in
  5450. *-32|*"-32 ") libmagic=32-bit;;
  5451. *-n32|*"-n32 ") libmagic=N32;;
  5452. *-64|*"-64 ") libmagic=64-bit;;
  5453. *) libmagic=never-match;;
  5454. esac
  5455. lt_cv_deplibs_check_method=pass_all
  5456. ;;
  5457. # This must be Linux ELF.
  5458. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5459. lt_cv_deplibs_check_method=pass_all
  5460. ;;
  5461. netbsd* | netbsdelf*-gnu)
  5462. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5463. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5464. else
  5465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5466. fi
  5467. ;;
  5468. newos6*)
  5469. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5470. lt_cv_file_magic_cmd=/usr/bin/file
  5471. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5472. ;;
  5473. *nto* | *qnx*)
  5474. lt_cv_deplibs_check_method=pass_all
  5475. ;;
  5476. openbsd*)
  5477. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5478. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5479. else
  5480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5481. fi
  5482. ;;
  5483. osf3* | osf4* | osf5*)
  5484. lt_cv_deplibs_check_method=pass_all
  5485. ;;
  5486. rdos*)
  5487. lt_cv_deplibs_check_method=pass_all
  5488. ;;
  5489. solaris*)
  5490. lt_cv_deplibs_check_method=pass_all
  5491. ;;
  5492. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5493. lt_cv_deplibs_check_method=pass_all
  5494. ;;
  5495. sysv4 | sysv4.3*)
  5496. case $host_vendor in
  5497. motorola)
  5498. 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]'
  5499. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5500. ;;
  5501. ncr)
  5502. lt_cv_deplibs_check_method=pass_all
  5503. ;;
  5504. sequent)
  5505. lt_cv_file_magic_cmd='/bin/file'
  5506. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5507. ;;
  5508. sni)
  5509. lt_cv_file_magic_cmd='/bin/file'
  5510. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5511. lt_cv_file_magic_test_file=/lib/libc.so
  5512. ;;
  5513. siemens)
  5514. lt_cv_deplibs_check_method=pass_all
  5515. ;;
  5516. pc)
  5517. lt_cv_deplibs_check_method=pass_all
  5518. ;;
  5519. esac
  5520. ;;
  5521. tpf*)
  5522. lt_cv_deplibs_check_method=pass_all
  5523. ;;
  5524. esac
  5525. fi
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5527. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5528. file_magic_cmd=$lt_cv_file_magic_cmd
  5529. deplibs_check_method=$lt_cv_deplibs_check_method
  5530. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5531. if test -n "$ac_tool_prefix"; then
  5532. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5533. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5535. $as_echo_n "checking for $ac_word... " >&6; }
  5536. if test "${ac_cv_prog_AR+set}" = set; then :
  5537. $as_echo_n "(cached) " >&6
  5538. else
  5539. if test -n "$AR"; then
  5540. ac_cv_prog_AR="$AR" # Let the user override the test.
  5541. else
  5542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5543. for as_dir in $PATH
  5544. do
  5545. IFS=$as_save_IFS
  5546. test -z "$as_dir" && as_dir=.
  5547. for ac_exec_ext in '' $ac_executable_extensions; do
  5548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5549. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5551. break 2
  5552. fi
  5553. done
  5554. done
  5555. IFS=$as_save_IFS
  5556. fi
  5557. fi
  5558. AR=$ac_cv_prog_AR
  5559. if test -n "$AR"; then
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5561. $as_echo "$AR" >&6; }
  5562. else
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5564. $as_echo "no" >&6; }
  5565. fi
  5566. fi
  5567. if test -z "$ac_cv_prog_AR"; then
  5568. ac_ct_AR=$AR
  5569. # Extract the first word of "ar", so it can be a program name with args.
  5570. set dummy ar; ac_word=$2
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5572. $as_echo_n "checking for $ac_word... " >&6; }
  5573. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. if test -n "$ac_ct_AR"; then
  5577. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5586. ac_cv_prog_ac_ct_AR="ar"
  5587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5596. if test -n "$ac_ct_AR"; then
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5598. $as_echo "$ac_ct_AR" >&6; }
  5599. else
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. $as_echo "no" >&6; }
  5602. fi
  5603. if test "x$ac_ct_AR" = x; then
  5604. AR="false"
  5605. else
  5606. case $cross_compiling:$ac_tool_warned in
  5607. yes:)
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5609. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5610. ac_tool_warned=yes ;;
  5611. esac
  5612. AR=$ac_ct_AR
  5613. fi
  5614. else
  5615. AR="$ac_cv_prog_AR"
  5616. fi
  5617. test -z "$AR" && AR=ar
  5618. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5619. if test -n "$ac_tool_prefix"; then
  5620. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5621. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5623. $as_echo_n "checking for $ac_word... " >&6; }
  5624. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. if test -n "$STRIP"; then
  5628. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5629. else
  5630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5631. for as_dir in $PATH
  5632. do
  5633. IFS=$as_save_IFS
  5634. test -z "$as_dir" && as_dir=.
  5635. for ac_exec_ext in '' $ac_executable_extensions; do
  5636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5637. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5639. break 2
  5640. fi
  5641. done
  5642. done
  5643. IFS=$as_save_IFS
  5644. fi
  5645. fi
  5646. STRIP=$ac_cv_prog_STRIP
  5647. if test -n "$STRIP"; then
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5649. $as_echo "$STRIP" >&6; }
  5650. else
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5652. $as_echo "no" >&6; }
  5653. fi
  5654. fi
  5655. if test -z "$ac_cv_prog_STRIP"; then
  5656. ac_ct_STRIP=$STRIP
  5657. # Extract the first word of "strip", so it can be a program name with args.
  5658. set dummy strip; ac_word=$2
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5660. $as_echo_n "checking for $ac_word... " >&6; }
  5661. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. if test -n "$ac_ct_STRIP"; then
  5665. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. test -z "$as_dir" && as_dir=.
  5672. for ac_exec_ext in '' $ac_executable_extensions; do
  5673. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5674. ac_cv_prog_ac_ct_STRIP="strip"
  5675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5676. break 2
  5677. fi
  5678. done
  5679. done
  5680. IFS=$as_save_IFS
  5681. fi
  5682. fi
  5683. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5684. if test -n "$ac_ct_STRIP"; then
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5686. $as_echo "$ac_ct_STRIP" >&6; }
  5687. else
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5689. $as_echo "no" >&6; }
  5690. fi
  5691. if test "x$ac_ct_STRIP" = x; then
  5692. STRIP=":"
  5693. else
  5694. case $cross_compiling:$ac_tool_warned in
  5695. yes:)
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5698. ac_tool_warned=yes ;;
  5699. esac
  5700. STRIP=$ac_ct_STRIP
  5701. fi
  5702. else
  5703. STRIP="$ac_cv_prog_STRIP"
  5704. fi
  5705. test -z "$STRIP" && STRIP=:
  5706. if test -n "$ac_tool_prefix"; then
  5707. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5708. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5710. $as_echo_n "checking for $ac_word... " >&6; }
  5711. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. if test -n "$RANLIB"; then
  5715. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5716. else
  5717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5718. for as_dir in $PATH
  5719. do
  5720. IFS=$as_save_IFS
  5721. test -z "$as_dir" && as_dir=.
  5722. for ac_exec_ext in '' $ac_executable_extensions; do
  5723. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5724. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5726. break 2
  5727. fi
  5728. done
  5729. done
  5730. IFS=$as_save_IFS
  5731. fi
  5732. fi
  5733. RANLIB=$ac_cv_prog_RANLIB
  5734. if test -n "$RANLIB"; then
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5736. $as_echo "$RANLIB" >&6; }
  5737. else
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5739. $as_echo "no" >&6; }
  5740. fi
  5741. fi
  5742. if test -z "$ac_cv_prog_RANLIB"; then
  5743. ac_ct_RANLIB=$RANLIB
  5744. # Extract the first word of "ranlib", so it can be a program name with args.
  5745. set dummy ranlib; 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 test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5749. $as_echo_n "(cached) " >&6
  5750. else
  5751. if test -n "$ac_ct_RANLIB"; then
  5752. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
  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. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5771. if test -n "$ac_ct_RANLIB"; then
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5773. $as_echo "$ac_ct_RANLIB" >&6; }
  5774. else
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5776. $as_echo "no" >&6; }
  5777. fi
  5778. if test "x$ac_ct_RANLIB" = x; then
  5779. RANLIB=":"
  5780. else
  5781. case $cross_compiling:$ac_tool_warned in
  5782. yes:)
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5784. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5785. ac_tool_warned=yes ;;
  5786. esac
  5787. RANLIB=$ac_ct_RANLIB
  5788. fi
  5789. else
  5790. RANLIB="$ac_cv_prog_RANLIB"
  5791. fi
  5792. test -z "$RANLIB" && RANLIB=:
  5793. # Determine commands to create old-style static archives.
  5794. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5795. old_postinstall_cmds='chmod 644 $oldlib'
  5796. old_postuninstall_cmds=
  5797. if test -n "$RANLIB"; then
  5798. case $host_os in
  5799. openbsd*)
  5800. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5801. ;;
  5802. *)
  5803. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5804. ;;
  5805. esac
  5806. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5807. fi
  5808. # If no C compiler was specified, use CC.
  5809. LTCC=${LTCC-"$CC"}
  5810. # If no C compiler flags were specified, use CFLAGS.
  5811. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5812. # Allow CC to be a program name with arguments.
  5813. compiler=$CC
  5814. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5816. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5817. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5818. $as_echo_n "(cached) " >&6
  5819. else
  5820. # These are sane defaults that work on at least a few old systems.
  5821. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5822. # Character class describing NM global symbol codes.
  5823. symcode='[BCDEGRST]'
  5824. # Regexp to match symbols that can be accessed directly from C.
  5825. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5826. # Define system-specific variables.
  5827. case $host_os in
  5828. aix*)
  5829. symcode='[BCDT]'
  5830. ;;
  5831. cygwin* | mingw* | pw32* | cegcc*)
  5832. symcode='[ABCDGISTW]'
  5833. ;;
  5834. hpux*)
  5835. if test "$host_cpu" = ia64; then
  5836. symcode='[ABCDEGRST]'
  5837. fi
  5838. ;;
  5839. irix* | nonstopux*)
  5840. symcode='[BCDEGRST]'
  5841. ;;
  5842. osf*)
  5843. symcode='[BCDEGQRST]'
  5844. ;;
  5845. solaris*)
  5846. symcode='[BDRT]'
  5847. ;;
  5848. sco3.2v5*)
  5849. symcode='[DT]'
  5850. ;;
  5851. sysv4.2uw2*)
  5852. symcode='[DT]'
  5853. ;;
  5854. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5855. symcode='[ABDT]'
  5856. ;;
  5857. sysv4)
  5858. symcode='[DFNSTU]'
  5859. ;;
  5860. esac
  5861. # If we're using GNU nm, then use its standard symbol codes.
  5862. case `$NM -V 2>&1` in
  5863. *GNU* | *'with BFD'*)
  5864. symcode='[ABCDGIRSTW]' ;;
  5865. esac
  5866. # Transform an extracted symbol line into a proper C declaration.
  5867. # Some systems (esp. on ia64) link data and code symbols differently,
  5868. # so use this general approach.
  5869. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5870. # Transform an extracted symbol line into symbol name and symbol address
  5871. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5872. 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'"
  5873. # Handle CRLF in mingw tool chain
  5874. opt_cr=
  5875. case $build_os in
  5876. mingw*)
  5877. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5878. ;;
  5879. esac
  5880. # Try without a prefix underscore, then with it.
  5881. for ac_symprfx in "" "_"; do
  5882. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5883. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5884. # Write the raw and C identifiers.
  5885. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5886. # Fake it for dumpbin and say T for any non-static function
  5887. # and D for any global variable.
  5888. # Also find C++ and __fastcall symbols from MSVC++,
  5889. # which start with @ or ?.
  5890. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5891. " {last_section=section; section=\$ 3};"\
  5892. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5893. " \$ 0!~/External *\|/{next};"\
  5894. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5895. " {if(hide[section]) next};"\
  5896. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5897. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5898. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5899. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5900. " ' prfx=^$ac_symprfx"
  5901. else
  5902. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5903. fi
  5904. # Check to see that the pipe works correctly.
  5905. pipe_works=no
  5906. rm -f conftest*
  5907. cat > conftest.$ac_ext <<_LT_EOF
  5908. #ifdef __cplusplus
  5909. extern "C" {
  5910. #endif
  5911. char nm_test_var;
  5912. void nm_test_func(void);
  5913. void nm_test_func(void){}
  5914. #ifdef __cplusplus
  5915. }
  5916. #endif
  5917. int main(){nm_test_var='a';nm_test_func();return(0);}
  5918. _LT_EOF
  5919. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5920. (eval $ac_compile) 2>&5
  5921. ac_status=$?
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5923. test $ac_status = 0; }; then
  5924. # Now try to grab the symbols.
  5925. nlist=conftest.nm
  5926. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5927. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5928. ac_status=$?
  5929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5930. test $ac_status = 0; } && test -s "$nlist"; then
  5931. # Try sorting and uniquifying the output.
  5932. if sort "$nlist" | uniq > "$nlist"T; then
  5933. mv -f "$nlist"T "$nlist"
  5934. else
  5935. rm -f "$nlist"T
  5936. fi
  5937. # Make sure that we snagged all the symbols we need.
  5938. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5939. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5940. cat <<_LT_EOF > conftest.$ac_ext
  5941. #ifdef __cplusplus
  5942. extern "C" {
  5943. #endif
  5944. _LT_EOF
  5945. # Now generate the symbol file.
  5946. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5947. cat <<_LT_EOF >> conftest.$ac_ext
  5948. /* The mapping between symbol names and symbols. */
  5949. const struct {
  5950. const char *name;
  5951. void *address;
  5952. }
  5953. lt__PROGRAM__LTX_preloaded_symbols[] =
  5954. {
  5955. { "@PROGRAM@", (void *) 0 },
  5956. _LT_EOF
  5957. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5958. cat <<\_LT_EOF >> conftest.$ac_ext
  5959. {0, (void *) 0}
  5960. };
  5961. /* This works around a problem in FreeBSD linker */
  5962. #ifdef FREEBSD_WORKAROUND
  5963. static const void *lt_preloaded_setup() {
  5964. return lt__PROGRAM__LTX_preloaded_symbols;
  5965. }
  5966. #endif
  5967. #ifdef __cplusplus
  5968. }
  5969. #endif
  5970. _LT_EOF
  5971. # Now try linking the two files.
  5972. mv conftest.$ac_objext conftstm.$ac_objext
  5973. lt_save_LIBS="$LIBS"
  5974. lt_save_CFLAGS="$CFLAGS"
  5975. LIBS="conftstm.$ac_objext"
  5976. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5977. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5978. (eval $ac_link) 2>&5
  5979. ac_status=$?
  5980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5981. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5982. pipe_works=yes
  5983. fi
  5984. LIBS="$lt_save_LIBS"
  5985. CFLAGS="$lt_save_CFLAGS"
  5986. else
  5987. echo "cannot find nm_test_func in $nlist" >&5
  5988. fi
  5989. else
  5990. echo "cannot find nm_test_var in $nlist" >&5
  5991. fi
  5992. else
  5993. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5994. fi
  5995. else
  5996. echo "$progname: failed program was:" >&5
  5997. cat conftest.$ac_ext >&5
  5998. fi
  5999. rm -rf conftest* conftst*
  6000. # Do not use the global_symbol_pipe unless it works.
  6001. if test "$pipe_works" = yes; then
  6002. break
  6003. else
  6004. lt_cv_sys_global_symbol_pipe=
  6005. fi
  6006. done
  6007. fi
  6008. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6009. lt_cv_sys_global_symbol_to_cdecl=
  6010. fi
  6011. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6013. $as_echo "failed" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6016. $as_echo "ok" >&6; }
  6017. fi
  6018. # Check whether --enable-libtool-lock was given.
  6019. if test "${enable_libtool_lock+set}" = set; then :
  6020. enableval=$enable_libtool_lock;
  6021. fi
  6022. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6023. # Some flags need to be propagated to the compiler or linker for good
  6024. # libtool support.
  6025. case $host in
  6026. ia64-*-hpux*)
  6027. # Find out which ABI we are using.
  6028. echo 'int i;' > conftest.$ac_ext
  6029. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6030. (eval $ac_compile) 2>&5
  6031. ac_status=$?
  6032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6033. test $ac_status = 0; }; then
  6034. case `/usr/bin/file conftest.$ac_objext` in
  6035. *ELF-32*)
  6036. HPUX_IA64_MODE="32"
  6037. ;;
  6038. *ELF-64*)
  6039. HPUX_IA64_MODE="64"
  6040. ;;
  6041. esac
  6042. fi
  6043. rm -rf conftest*
  6044. ;;
  6045. *-*-irix6*)
  6046. # Find out which ABI we are using.
  6047. echo '#line 6829 "configure"' > conftest.$ac_ext
  6048. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6049. (eval $ac_compile) 2>&5
  6050. ac_status=$?
  6051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6052. test $ac_status = 0; }; then
  6053. if test "$lt_cv_prog_gnu_ld" = yes; then
  6054. case `/usr/bin/file conftest.$ac_objext` in
  6055. *32-bit*)
  6056. LD="${LD-ld} -melf32bsmip"
  6057. ;;
  6058. *N32*)
  6059. LD="${LD-ld} -melf32bmipn32"
  6060. ;;
  6061. *64-bit*)
  6062. LD="${LD-ld} -melf64bmip"
  6063. ;;
  6064. esac
  6065. else
  6066. case `/usr/bin/file conftest.$ac_objext` in
  6067. *32-bit*)
  6068. LD="${LD-ld} -32"
  6069. ;;
  6070. *N32*)
  6071. LD="${LD-ld} -n32"
  6072. ;;
  6073. *64-bit*)
  6074. LD="${LD-ld} -64"
  6075. ;;
  6076. esac
  6077. fi
  6078. fi
  6079. rm -rf conftest*
  6080. ;;
  6081. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6082. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6083. # Find out which ABI we are using.
  6084. echo 'int i;' > conftest.$ac_ext
  6085. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6086. (eval $ac_compile) 2>&5
  6087. ac_status=$?
  6088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6089. test $ac_status = 0; }; then
  6090. case `/usr/bin/file conftest.o` in
  6091. *32-bit*)
  6092. case $host in
  6093. x86_64-*kfreebsd*-gnu)
  6094. LD="${LD-ld} -m elf_i386_fbsd"
  6095. ;;
  6096. x86_64-*linux*)
  6097. LD="${LD-ld} -m elf_i386"
  6098. ;;
  6099. ppc64-*linux*|powerpc64-*linux*)
  6100. LD="${LD-ld} -m elf32ppclinux"
  6101. ;;
  6102. s390x-*linux*)
  6103. LD="${LD-ld} -m elf_s390"
  6104. ;;
  6105. sparc64-*linux*)
  6106. LD="${LD-ld} -m elf32_sparc"
  6107. ;;
  6108. esac
  6109. ;;
  6110. *64-bit*)
  6111. case $host in
  6112. x86_64-*kfreebsd*-gnu)
  6113. LD="${LD-ld} -m elf_x86_64_fbsd"
  6114. ;;
  6115. x86_64-*linux*)
  6116. LD="${LD-ld} -m elf_x86_64"
  6117. ;;
  6118. ppc*-*linux*|powerpc*-*linux*)
  6119. LD="${LD-ld} -m elf64ppc"
  6120. ;;
  6121. s390*-*linux*|s390*-*tpf*)
  6122. LD="${LD-ld} -m elf64_s390"
  6123. ;;
  6124. sparc*-*linux*)
  6125. LD="${LD-ld} -m elf64_sparc"
  6126. ;;
  6127. esac
  6128. ;;
  6129. esac
  6130. fi
  6131. rm -rf conftest*
  6132. ;;
  6133. *-*-sco3.2v5*)
  6134. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6135. SAVE_CFLAGS="$CFLAGS"
  6136. CFLAGS="$CFLAGS -belf"
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6138. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6139. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6140. $as_echo_n "(cached) " >&6
  6141. else
  6142. ac_ext=c
  6143. ac_cpp='$CPP $CPPFLAGS'
  6144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6148. /* end confdefs.h. */
  6149. int
  6150. main ()
  6151. {
  6152. ;
  6153. return 0;
  6154. }
  6155. _ACEOF
  6156. if ac_fn_c_try_link "$LINENO"; then :
  6157. lt_cv_cc_needs_belf=yes
  6158. else
  6159. lt_cv_cc_needs_belf=no
  6160. fi
  6161. rm -f core conftest.err conftest.$ac_objext \
  6162. conftest$ac_exeext conftest.$ac_ext
  6163. ac_ext=c
  6164. ac_cpp='$CPP $CPPFLAGS'
  6165. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6166. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6167. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6168. fi
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6170. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6171. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6172. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6173. CFLAGS="$SAVE_CFLAGS"
  6174. fi
  6175. ;;
  6176. sparc*-*solaris*)
  6177. # Find out which ABI we are using.
  6178. echo 'int i;' > conftest.$ac_ext
  6179. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6180. (eval $ac_compile) 2>&5
  6181. ac_status=$?
  6182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6183. test $ac_status = 0; }; then
  6184. case `/usr/bin/file conftest.o` in
  6185. *64-bit*)
  6186. case $lt_cv_prog_gnu_ld in
  6187. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6188. *)
  6189. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6190. LD="${LD-ld} -64"
  6191. fi
  6192. ;;
  6193. esac
  6194. ;;
  6195. esac
  6196. fi
  6197. rm -rf conftest*
  6198. ;;
  6199. esac
  6200. need_locks="$enable_libtool_lock"
  6201. case $host_os in
  6202. rhapsody* | darwin*)
  6203. if test -n "$ac_tool_prefix"; then
  6204. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6205. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6207. $as_echo_n "checking for $ac_word... " >&6; }
  6208. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6209. $as_echo_n "(cached) " >&6
  6210. else
  6211. if test -n "$DSYMUTIL"; then
  6212. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6213. else
  6214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6215. for as_dir in $PATH
  6216. do
  6217. IFS=$as_save_IFS
  6218. test -z "$as_dir" && as_dir=.
  6219. for ac_exec_ext in '' $ac_executable_extensions; do
  6220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6221. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6223. break 2
  6224. fi
  6225. done
  6226. done
  6227. IFS=$as_save_IFS
  6228. fi
  6229. fi
  6230. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6231. if test -n "$DSYMUTIL"; then
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6233. $as_echo "$DSYMUTIL" >&6; }
  6234. else
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6236. $as_echo "no" >&6; }
  6237. fi
  6238. fi
  6239. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6240. ac_ct_DSYMUTIL=$DSYMUTIL
  6241. # Extract the first word of "dsymutil", so it can be a program name with args.
  6242. set dummy dsymutil; ac_word=$2
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6244. $as_echo_n "checking for $ac_word... " >&6; }
  6245. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6246. $as_echo_n "(cached) " >&6
  6247. else
  6248. if test -n "$ac_ct_DSYMUTIL"; then
  6249. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6250. else
  6251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6252. for as_dir in $PATH
  6253. do
  6254. IFS=$as_save_IFS
  6255. test -z "$as_dir" && as_dir=.
  6256. for ac_exec_ext in '' $ac_executable_extensions; do
  6257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6258. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6260. break 2
  6261. fi
  6262. done
  6263. done
  6264. IFS=$as_save_IFS
  6265. fi
  6266. fi
  6267. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6268. if test -n "$ac_ct_DSYMUTIL"; then
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6270. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6271. else
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6273. $as_echo "no" >&6; }
  6274. fi
  6275. if test "x$ac_ct_DSYMUTIL" = x; then
  6276. DSYMUTIL=":"
  6277. else
  6278. case $cross_compiling:$ac_tool_warned in
  6279. yes:)
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6281. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6282. ac_tool_warned=yes ;;
  6283. esac
  6284. DSYMUTIL=$ac_ct_DSYMUTIL
  6285. fi
  6286. else
  6287. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6288. fi
  6289. if test -n "$ac_tool_prefix"; then
  6290. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6291. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6293. $as_echo_n "checking for $ac_word... " >&6; }
  6294. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6295. $as_echo_n "(cached) " >&6
  6296. else
  6297. if test -n "$NMEDIT"; then
  6298. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6299. else
  6300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6301. for as_dir in $PATH
  6302. do
  6303. IFS=$as_save_IFS
  6304. test -z "$as_dir" && as_dir=.
  6305. for ac_exec_ext in '' $ac_executable_extensions; do
  6306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6307. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6309. break 2
  6310. fi
  6311. done
  6312. done
  6313. IFS=$as_save_IFS
  6314. fi
  6315. fi
  6316. NMEDIT=$ac_cv_prog_NMEDIT
  6317. if test -n "$NMEDIT"; then
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6319. $as_echo "$NMEDIT" >&6; }
  6320. else
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6322. $as_echo "no" >&6; }
  6323. fi
  6324. fi
  6325. if test -z "$ac_cv_prog_NMEDIT"; then
  6326. ac_ct_NMEDIT=$NMEDIT
  6327. # Extract the first word of "nmedit", so it can be a program name with args.
  6328. set dummy nmedit; ac_word=$2
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6330. $as_echo_n "checking for $ac_word... " >&6; }
  6331. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6332. $as_echo_n "(cached) " >&6
  6333. else
  6334. if test -n "$ac_ct_NMEDIT"; then
  6335. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6336. else
  6337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6338. for as_dir in $PATH
  6339. do
  6340. IFS=$as_save_IFS
  6341. test -z "$as_dir" && as_dir=.
  6342. for ac_exec_ext in '' $ac_executable_extensions; do
  6343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6344. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6346. break 2
  6347. fi
  6348. done
  6349. done
  6350. IFS=$as_save_IFS
  6351. fi
  6352. fi
  6353. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6354. if test -n "$ac_ct_NMEDIT"; then
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6356. $as_echo "$ac_ct_NMEDIT" >&6; }
  6357. else
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6359. $as_echo "no" >&6; }
  6360. fi
  6361. if test "x$ac_ct_NMEDIT" = x; then
  6362. NMEDIT=":"
  6363. else
  6364. case $cross_compiling:$ac_tool_warned in
  6365. yes:)
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6368. ac_tool_warned=yes ;;
  6369. esac
  6370. NMEDIT=$ac_ct_NMEDIT
  6371. fi
  6372. else
  6373. NMEDIT="$ac_cv_prog_NMEDIT"
  6374. fi
  6375. if test -n "$ac_tool_prefix"; then
  6376. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6377. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6379. $as_echo_n "checking for $ac_word... " >&6; }
  6380. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6381. $as_echo_n "(cached) " >&6
  6382. else
  6383. if test -n "$LIPO"; then
  6384. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6385. else
  6386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6387. for as_dir in $PATH
  6388. do
  6389. IFS=$as_save_IFS
  6390. test -z "$as_dir" && as_dir=.
  6391. for ac_exec_ext in '' $ac_executable_extensions; do
  6392. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6393. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6395. break 2
  6396. fi
  6397. done
  6398. done
  6399. IFS=$as_save_IFS
  6400. fi
  6401. fi
  6402. LIPO=$ac_cv_prog_LIPO
  6403. if test -n "$LIPO"; then
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6405. $as_echo "$LIPO" >&6; }
  6406. else
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6408. $as_echo "no" >&6; }
  6409. fi
  6410. fi
  6411. if test -z "$ac_cv_prog_LIPO"; then
  6412. ac_ct_LIPO=$LIPO
  6413. # Extract the first word of "lipo", so it can be a program name with args.
  6414. set dummy lipo; ac_word=$2
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6416. $as_echo_n "checking for $ac_word... " >&6; }
  6417. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6418. $as_echo_n "(cached) " >&6
  6419. else
  6420. if test -n "$ac_ct_LIPO"; then
  6421. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6422. else
  6423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6424. for as_dir in $PATH
  6425. do
  6426. IFS=$as_save_IFS
  6427. test -z "$as_dir" && as_dir=.
  6428. for ac_exec_ext in '' $ac_executable_extensions; do
  6429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6430. ac_cv_prog_ac_ct_LIPO="lipo"
  6431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6432. break 2
  6433. fi
  6434. done
  6435. done
  6436. IFS=$as_save_IFS
  6437. fi
  6438. fi
  6439. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6440. if test -n "$ac_ct_LIPO"; then
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6442. $as_echo "$ac_ct_LIPO" >&6; }
  6443. else
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6445. $as_echo "no" >&6; }
  6446. fi
  6447. if test "x$ac_ct_LIPO" = x; then
  6448. LIPO=":"
  6449. else
  6450. case $cross_compiling:$ac_tool_warned in
  6451. yes:)
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6454. ac_tool_warned=yes ;;
  6455. esac
  6456. LIPO=$ac_ct_LIPO
  6457. fi
  6458. else
  6459. LIPO="$ac_cv_prog_LIPO"
  6460. fi
  6461. if test -n "$ac_tool_prefix"; then
  6462. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6463. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6465. $as_echo_n "checking for $ac_word... " >&6; }
  6466. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6467. $as_echo_n "(cached) " >&6
  6468. else
  6469. if test -n "$OTOOL"; then
  6470. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6471. else
  6472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6473. for as_dir in $PATH
  6474. do
  6475. IFS=$as_save_IFS
  6476. test -z "$as_dir" && as_dir=.
  6477. for ac_exec_ext in '' $ac_executable_extensions; do
  6478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6479. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6481. break 2
  6482. fi
  6483. done
  6484. done
  6485. IFS=$as_save_IFS
  6486. fi
  6487. fi
  6488. OTOOL=$ac_cv_prog_OTOOL
  6489. if test -n "$OTOOL"; then
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6491. $as_echo "$OTOOL" >&6; }
  6492. else
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6494. $as_echo "no" >&6; }
  6495. fi
  6496. fi
  6497. if test -z "$ac_cv_prog_OTOOL"; then
  6498. ac_ct_OTOOL=$OTOOL
  6499. # Extract the first word of "otool", so it can be a program name with args.
  6500. set dummy otool; ac_word=$2
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6502. $as_echo_n "checking for $ac_word... " >&6; }
  6503. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6504. $as_echo_n "(cached) " >&6
  6505. else
  6506. if test -n "$ac_ct_OTOOL"; then
  6507. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6508. else
  6509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6510. for as_dir in $PATH
  6511. do
  6512. IFS=$as_save_IFS
  6513. test -z "$as_dir" && as_dir=.
  6514. for ac_exec_ext in '' $ac_executable_extensions; do
  6515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6516. ac_cv_prog_ac_ct_OTOOL="otool"
  6517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6518. break 2
  6519. fi
  6520. done
  6521. done
  6522. IFS=$as_save_IFS
  6523. fi
  6524. fi
  6525. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6526. if test -n "$ac_ct_OTOOL"; then
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6528. $as_echo "$ac_ct_OTOOL" >&6; }
  6529. else
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6531. $as_echo "no" >&6; }
  6532. fi
  6533. if test "x$ac_ct_OTOOL" = x; then
  6534. OTOOL=":"
  6535. else
  6536. case $cross_compiling:$ac_tool_warned in
  6537. yes:)
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6539. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6540. ac_tool_warned=yes ;;
  6541. esac
  6542. OTOOL=$ac_ct_OTOOL
  6543. fi
  6544. else
  6545. OTOOL="$ac_cv_prog_OTOOL"
  6546. fi
  6547. if test -n "$ac_tool_prefix"; then
  6548. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6549. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6551. $as_echo_n "checking for $ac_word... " >&6; }
  6552. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. if test -n "$OTOOL64"; then
  6556. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6557. else
  6558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6559. for as_dir in $PATH
  6560. do
  6561. IFS=$as_save_IFS
  6562. test -z "$as_dir" && as_dir=.
  6563. for ac_exec_ext in '' $ac_executable_extensions; do
  6564. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6565. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6567. break 2
  6568. fi
  6569. done
  6570. done
  6571. IFS=$as_save_IFS
  6572. fi
  6573. fi
  6574. OTOOL64=$ac_cv_prog_OTOOL64
  6575. if test -n "$OTOOL64"; then
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6577. $as_echo "$OTOOL64" >&6; }
  6578. else
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6580. $as_echo "no" >&6; }
  6581. fi
  6582. fi
  6583. if test -z "$ac_cv_prog_OTOOL64"; then
  6584. ac_ct_OTOOL64=$OTOOL64
  6585. # Extract the first word of "otool64", so it can be a program name with args.
  6586. set dummy otool64; ac_word=$2
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6588. $as_echo_n "checking for $ac_word... " >&6; }
  6589. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6590. $as_echo_n "(cached) " >&6
  6591. else
  6592. if test -n "$ac_ct_OTOOL64"; then
  6593. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6594. else
  6595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6596. for as_dir in $PATH
  6597. do
  6598. IFS=$as_save_IFS
  6599. test -z "$as_dir" && as_dir=.
  6600. for ac_exec_ext in '' $ac_executable_extensions; do
  6601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6602. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6604. break 2
  6605. fi
  6606. done
  6607. done
  6608. IFS=$as_save_IFS
  6609. fi
  6610. fi
  6611. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6612. if test -n "$ac_ct_OTOOL64"; then
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6614. $as_echo "$ac_ct_OTOOL64" >&6; }
  6615. else
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6617. $as_echo "no" >&6; }
  6618. fi
  6619. if test "x$ac_ct_OTOOL64" = x; then
  6620. OTOOL64=":"
  6621. else
  6622. case $cross_compiling:$ac_tool_warned in
  6623. yes:)
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6625. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6626. ac_tool_warned=yes ;;
  6627. esac
  6628. OTOOL64=$ac_ct_OTOOL64
  6629. fi
  6630. else
  6631. OTOOL64="$ac_cv_prog_OTOOL64"
  6632. fi
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6634. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6635. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6636. $as_echo_n "(cached) " >&6
  6637. else
  6638. lt_cv_apple_cc_single_mod=no
  6639. if test -z "${LT_MULTI_MODULE}"; then
  6640. # By default we will add the -single_module flag. You can override
  6641. # by either setting the environment variable LT_MULTI_MODULE
  6642. # non-empty at configure time, or by adding -multi_module to the
  6643. # link flags.
  6644. rm -rf libconftest.dylib*
  6645. echo "int foo(void){return 1;}" > conftest.c
  6646. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6647. -dynamiclib -Wl,-single_module conftest.c" >&5
  6648. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6649. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6650. _lt_result=$?
  6651. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6652. lt_cv_apple_cc_single_mod=yes
  6653. else
  6654. cat conftest.err >&5
  6655. fi
  6656. rm -rf libconftest.dylib*
  6657. rm -f conftest.*
  6658. fi
  6659. fi
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6661. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6663. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6664. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6665. $as_echo_n "(cached) " >&6
  6666. else
  6667. lt_cv_ld_exported_symbols_list=no
  6668. save_LDFLAGS=$LDFLAGS
  6669. echo "_main" > conftest.sym
  6670. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6672. /* end confdefs.h. */
  6673. int
  6674. main ()
  6675. {
  6676. ;
  6677. return 0;
  6678. }
  6679. _ACEOF
  6680. if ac_fn_c_try_link "$LINENO"; then :
  6681. lt_cv_ld_exported_symbols_list=yes
  6682. else
  6683. lt_cv_ld_exported_symbols_list=no
  6684. fi
  6685. rm -f core conftest.err conftest.$ac_objext \
  6686. conftest$ac_exeext conftest.$ac_ext
  6687. LDFLAGS="$save_LDFLAGS"
  6688. fi
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6690. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6691. case $host_os in
  6692. rhapsody* | darwin1.[012])
  6693. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6694. darwin1.*)
  6695. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6696. darwin*) # darwin 5.x on
  6697. # if running on 10.5 or later, the deployment target defaults
  6698. # to the OS version, if on x86, and 10.4, the deployment
  6699. # target defaults to 10.4. Don't you love it?
  6700. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6701. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6702. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6703. 10.[012]*)
  6704. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6705. 10.*)
  6706. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6707. esac
  6708. ;;
  6709. esac
  6710. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6711. _lt_dar_single_mod='$single_module'
  6712. fi
  6713. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6714. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6715. else
  6716. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6717. fi
  6718. if test "$DSYMUTIL" != ":"; then
  6719. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6720. else
  6721. _lt_dsymutil=
  6722. fi
  6723. ;;
  6724. esac
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6726. $as_echo_n "checking for ANSI C header files... " >&6; }
  6727. if test "${ac_cv_header_stdc+set}" = set; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6731. /* end confdefs.h. */
  6732. #include <stdlib.h>
  6733. #include <stdarg.h>
  6734. #include <string.h>
  6735. #include <float.h>
  6736. int
  6737. main ()
  6738. {
  6739. ;
  6740. return 0;
  6741. }
  6742. _ACEOF
  6743. if ac_fn_c_try_compile "$LINENO"; then :
  6744. ac_cv_header_stdc=yes
  6745. else
  6746. ac_cv_header_stdc=no
  6747. fi
  6748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6749. if test $ac_cv_header_stdc = yes; then
  6750. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6752. /* end confdefs.h. */
  6753. #include <string.h>
  6754. _ACEOF
  6755. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6756. $EGREP "memchr" >/dev/null 2>&1; then :
  6757. else
  6758. ac_cv_header_stdc=no
  6759. fi
  6760. rm -f conftest*
  6761. fi
  6762. if test $ac_cv_header_stdc = yes; then
  6763. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6765. /* end confdefs.h. */
  6766. #include <stdlib.h>
  6767. _ACEOF
  6768. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6769. $EGREP "free" >/dev/null 2>&1; then :
  6770. else
  6771. ac_cv_header_stdc=no
  6772. fi
  6773. rm -f conftest*
  6774. fi
  6775. if test $ac_cv_header_stdc = yes; then
  6776. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6777. if test "$cross_compiling" = yes; then :
  6778. :
  6779. else
  6780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6781. /* end confdefs.h. */
  6782. #include <ctype.h>
  6783. #include <stdlib.h>
  6784. #if ((' ' & 0x0FF) == 0x020)
  6785. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6786. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6787. #else
  6788. # define ISLOWER(c) \
  6789. (('a' <= (c) && (c) <= 'i') \
  6790. || ('j' <= (c) && (c) <= 'r') \
  6791. || ('s' <= (c) && (c) <= 'z'))
  6792. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6793. #endif
  6794. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6795. int
  6796. main ()
  6797. {
  6798. int i;
  6799. for (i = 0; i < 256; i++)
  6800. if (XOR (islower (i), ISLOWER (i))
  6801. || toupper (i) != TOUPPER (i))
  6802. return 2;
  6803. return 0;
  6804. }
  6805. _ACEOF
  6806. if ac_fn_c_try_run "$LINENO"; then :
  6807. else
  6808. ac_cv_header_stdc=no
  6809. fi
  6810. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6811. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6812. fi
  6813. fi
  6814. fi
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6816. $as_echo "$ac_cv_header_stdc" >&6; }
  6817. if test $ac_cv_header_stdc = yes; then
  6818. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6819. fi
  6820. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6821. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6822. inttypes.h stdint.h unistd.h
  6823. do :
  6824. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6825. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6826. "
  6827. eval as_val=\$$as_ac_Header
  6828. if test "x$as_val" = x""yes; then :
  6829. cat >>confdefs.h <<_ACEOF
  6830. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6831. _ACEOF
  6832. fi
  6833. done
  6834. for ac_header in dlfcn.h
  6835. do :
  6836. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6837. "
  6838. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6839. cat >>confdefs.h <<_ACEOF
  6840. #define HAVE_DLFCN_H 1
  6841. _ACEOF
  6842. fi
  6843. done
  6844. ac_ext=cpp
  6845. ac_cpp='$CXXCPP $CPPFLAGS'
  6846. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6847. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6848. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6849. if test -z "$CXX"; then
  6850. if test -n "$CCC"; then
  6851. CXX=$CCC
  6852. else
  6853. if test -n "$ac_tool_prefix"; then
  6854. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6855. do
  6856. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6857. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6859. $as_echo_n "checking for $ac_word... " >&6; }
  6860. if test "${ac_cv_prog_CXX+set}" = set; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. if test -n "$CXX"; then
  6864. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6865. else
  6866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6867. for as_dir in $PATH
  6868. do
  6869. IFS=$as_save_IFS
  6870. test -z "$as_dir" && as_dir=.
  6871. for ac_exec_ext in '' $ac_executable_extensions; do
  6872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6873. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6875. break 2
  6876. fi
  6877. done
  6878. done
  6879. IFS=$as_save_IFS
  6880. fi
  6881. fi
  6882. CXX=$ac_cv_prog_CXX
  6883. if test -n "$CXX"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6885. $as_echo "$CXX" >&6; }
  6886. else
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. $as_echo "no" >&6; }
  6889. fi
  6890. test -n "$CXX" && break
  6891. done
  6892. fi
  6893. if test -z "$CXX"; then
  6894. ac_ct_CXX=$CXX
  6895. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6896. do
  6897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6898. set dummy $ac_prog; ac_word=$2
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6900. $as_echo_n "checking for $ac_word... " >&6; }
  6901. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6902. $as_echo_n "(cached) " >&6
  6903. else
  6904. if test -n "$ac_ct_CXX"; then
  6905. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6906. else
  6907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6908. for as_dir in $PATH
  6909. do
  6910. IFS=$as_save_IFS
  6911. test -z "$as_dir" && as_dir=.
  6912. for ac_exec_ext in '' $ac_executable_extensions; do
  6913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6914. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6916. break 2
  6917. fi
  6918. done
  6919. done
  6920. IFS=$as_save_IFS
  6921. fi
  6922. fi
  6923. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6924. if test -n "$ac_ct_CXX"; then
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6926. $as_echo "$ac_ct_CXX" >&6; }
  6927. else
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6929. $as_echo "no" >&6; }
  6930. fi
  6931. test -n "$ac_ct_CXX" && break
  6932. done
  6933. if test "x$ac_ct_CXX" = x; then
  6934. CXX="g++"
  6935. else
  6936. case $cross_compiling:$ac_tool_warned in
  6937. yes:)
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6940. ac_tool_warned=yes ;;
  6941. esac
  6942. CXX=$ac_ct_CXX
  6943. fi
  6944. fi
  6945. fi
  6946. fi
  6947. # Provide some information about the compiler.
  6948. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6949. set X $ac_compile
  6950. ac_compiler=$2
  6951. for ac_option in --version -v -V -qversion; do
  6952. { { ac_try="$ac_compiler $ac_option >&5"
  6953. case "(($ac_try" in
  6954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6955. *) ac_try_echo=$ac_try;;
  6956. esac
  6957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6958. $as_echo "$ac_try_echo"; } >&5
  6959. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6960. ac_status=$?
  6961. if test -s conftest.err; then
  6962. sed '10a\
  6963. ... rest of stderr output deleted ...
  6964. 10q' conftest.err >conftest.er1
  6965. cat conftest.er1 >&5
  6966. fi
  6967. rm -f conftest.er1 conftest.err
  6968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6969. test $ac_status = 0; }
  6970. done
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6972. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6973. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6974. $as_echo_n "(cached) " >&6
  6975. else
  6976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6977. /* end confdefs.h. */
  6978. int
  6979. main ()
  6980. {
  6981. #ifndef __GNUC__
  6982. choke me
  6983. #endif
  6984. ;
  6985. return 0;
  6986. }
  6987. _ACEOF
  6988. if ac_fn_cxx_try_compile "$LINENO"; then :
  6989. ac_compiler_gnu=yes
  6990. else
  6991. ac_compiler_gnu=no
  6992. fi
  6993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6994. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6995. fi
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6997. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6998. if test $ac_compiler_gnu = yes; then
  6999. GXX=yes
  7000. else
  7001. GXX=
  7002. fi
  7003. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7004. ac_save_CXXFLAGS=$CXXFLAGS
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  7006. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7007. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  7008. $as_echo_n "(cached) " >&6
  7009. else
  7010. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7011. ac_cxx_werror_flag=yes
  7012. ac_cv_prog_cxx_g=no
  7013. CXXFLAGS="-g"
  7014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7015. /* end confdefs.h. */
  7016. int
  7017. main ()
  7018. {
  7019. ;
  7020. return 0;
  7021. }
  7022. _ACEOF
  7023. if ac_fn_cxx_try_compile "$LINENO"; then :
  7024. ac_cv_prog_cxx_g=yes
  7025. else
  7026. CXXFLAGS=""
  7027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7028. /* end confdefs.h. */
  7029. int
  7030. main ()
  7031. {
  7032. ;
  7033. return 0;
  7034. }
  7035. _ACEOF
  7036. if ac_fn_cxx_try_compile "$LINENO"; then :
  7037. else
  7038. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7039. CXXFLAGS="-g"
  7040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7041. /* end confdefs.h. */
  7042. int
  7043. main ()
  7044. {
  7045. ;
  7046. return 0;
  7047. }
  7048. _ACEOF
  7049. if ac_fn_cxx_try_compile "$LINENO"; then :
  7050. ac_cv_prog_cxx_g=yes
  7051. fi
  7052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7053. fi
  7054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7055. fi
  7056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7057. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7058. fi
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  7060. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7061. if test "$ac_test_CXXFLAGS" = set; then
  7062. CXXFLAGS=$ac_save_CXXFLAGS
  7063. elif test $ac_cv_prog_cxx_g = yes; then
  7064. if test "$GXX" = yes; then
  7065. CXXFLAGS="-g -O2"
  7066. else
  7067. CXXFLAGS="-g"
  7068. fi
  7069. else
  7070. if test "$GXX" = yes; then
  7071. CXXFLAGS="-O2"
  7072. else
  7073. CXXFLAGS=
  7074. fi
  7075. fi
  7076. ac_ext=c
  7077. ac_cpp='$CPP $CPPFLAGS'
  7078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7081. depcc="$CXX" am_compiler_list=
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7083. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7084. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  7085. $as_echo_n "(cached) " >&6
  7086. else
  7087. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7088. # We make a subdir and do the tests there. Otherwise we can end up
  7089. # making bogus files that we don't know about and never remove. For
  7090. # instance it was reported that on HP-UX the gcc test will end up
  7091. # making a dummy file named `D' -- because `-MD' means `put the output
  7092. # in D'.
  7093. mkdir conftest.dir
  7094. # Copy depcomp to subdir because otherwise we won't find it if we're
  7095. # using a relative directory.
  7096. cp "$am_depcomp" conftest.dir
  7097. cd conftest.dir
  7098. # We will build objects and dependencies in a subdirectory because
  7099. # it helps to detect inapplicable dependency modes. For instance
  7100. # both Tru64's cc and ICC support -MD to output dependencies as a
  7101. # side effect of compilation, but ICC will put the dependencies in
  7102. # the current directory while Tru64 will put them in the object
  7103. # directory.
  7104. mkdir sub
  7105. am_cv_CXX_dependencies_compiler_type=none
  7106. if test "$am_compiler_list" = ""; then
  7107. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7108. fi
  7109. for depmode in $am_compiler_list; do
  7110. # Setup a source with many dependencies, because some compilers
  7111. # like to wrap large dependency lists on column 80 (with \), and
  7112. # we should not choose a depcomp mode which is confused by this.
  7113. #
  7114. # We need to recreate these files for each test, as the compiler may
  7115. # overwrite some of them when testing with obscure command lines.
  7116. # This happens at least with the AIX C compiler.
  7117. : > sub/conftest.c
  7118. for i in 1 2 3 4 5 6; do
  7119. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7120. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7121. # Solaris 8's {/usr,}/bin/sh.
  7122. touch sub/conftst$i.h
  7123. done
  7124. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7125. case $depmode in
  7126. nosideeffect)
  7127. # after this tag, mechanisms are not by side-effect, so they'll
  7128. # only be used when explicitly requested
  7129. if test "x$enable_dependency_tracking" = xyes; then
  7130. continue
  7131. else
  7132. break
  7133. fi
  7134. ;;
  7135. none) break ;;
  7136. esac
  7137. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7138. # mode. It turns out that the SunPro C++ compiler does not properly
  7139. # handle `-M -o', and we need to detect this.
  7140. if depmode=$depmode \
  7141. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  7142. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7143. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  7144. >/dev/null 2>conftest.err &&
  7145. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7146. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  7147. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7148. # icc doesn't choke on unknown options, it will just issue warnings
  7149. # or remarks (even with -Werror). So we grep stderr for any message
  7150. # that says an option was ignored or not supported.
  7151. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7152. # icc: Command line warning: ignoring option '-M'; no argument required
  7153. # The diagnosis changed in icc 8.0:
  7154. # icc: Command line remark: option '-MP' not supported
  7155. if (grep 'ignoring option' conftest.err ||
  7156. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7157. am_cv_CXX_dependencies_compiler_type=$depmode
  7158. break
  7159. fi
  7160. fi
  7161. done
  7162. cd ..
  7163. rm -rf conftest.dir
  7164. else
  7165. am_cv_CXX_dependencies_compiler_type=none
  7166. fi
  7167. fi
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7169. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7170. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7171. if
  7172. test "x$enable_dependency_tracking" != xno \
  7173. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7174. am__fastdepCXX_TRUE=
  7175. am__fastdepCXX_FALSE='#'
  7176. else
  7177. am__fastdepCXX_TRUE='#'
  7178. am__fastdepCXX_FALSE=
  7179. fi
  7180. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7181. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7182. (test "X$CXX" != "Xg++"))) ; then
  7183. ac_ext=cpp
  7184. ac_cpp='$CXXCPP $CPPFLAGS'
  7185. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7186. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7187. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  7189. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7190. if test -z "$CXXCPP"; then
  7191. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  7192. $as_echo_n "(cached) " >&6
  7193. else
  7194. # Double quotes because CXXCPP needs to be expanded
  7195. for CXXCPP in "$CXX -E" "/lib/cpp"
  7196. do
  7197. ac_preproc_ok=false
  7198. for ac_cxx_preproc_warn_flag in '' yes
  7199. do
  7200. # Use a header file that comes with gcc, so configuring glibc
  7201. # with a fresh cross-compiler works.
  7202. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7203. # <limits.h> exists even on freestanding compilers.
  7204. # On the NeXT, cc -E runs the code through the compiler's parser,
  7205. # not just through cpp. "Syntax error" is here to catch this case.
  7206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7207. /* end confdefs.h. */
  7208. #ifdef __STDC__
  7209. # include <limits.h>
  7210. #else
  7211. # include <assert.h>
  7212. #endif
  7213. Syntax error
  7214. _ACEOF
  7215. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7216. else
  7217. # Broken: fails on valid input.
  7218. continue
  7219. fi
  7220. rm -f conftest.err conftest.$ac_ext
  7221. # OK, works on sane cases. Now check whether nonexistent headers
  7222. # can be detected and how.
  7223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7224. /* end confdefs.h. */
  7225. #include <ac_nonexistent.h>
  7226. _ACEOF
  7227. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7228. # Broken: success on invalid input.
  7229. continue
  7230. else
  7231. # Passes both tests.
  7232. ac_preproc_ok=:
  7233. break
  7234. fi
  7235. rm -f conftest.err conftest.$ac_ext
  7236. done
  7237. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7238. rm -f conftest.err conftest.$ac_ext
  7239. if $ac_preproc_ok; then :
  7240. break
  7241. fi
  7242. done
  7243. ac_cv_prog_CXXCPP=$CXXCPP
  7244. fi
  7245. CXXCPP=$ac_cv_prog_CXXCPP
  7246. else
  7247. ac_cv_prog_CXXCPP=$CXXCPP
  7248. fi
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7250. $as_echo "$CXXCPP" >&6; }
  7251. ac_preproc_ok=false
  7252. for ac_cxx_preproc_warn_flag in '' yes
  7253. do
  7254. # Use a header file that comes with gcc, so configuring glibc
  7255. # with a fresh cross-compiler works.
  7256. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7257. # <limits.h> exists even on freestanding compilers.
  7258. # On the NeXT, cc -E runs the code through the compiler's parser,
  7259. # not just through cpp. "Syntax error" is here to catch this case.
  7260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7261. /* end confdefs.h. */
  7262. #ifdef __STDC__
  7263. # include <limits.h>
  7264. #else
  7265. # include <assert.h>
  7266. #endif
  7267. Syntax error
  7268. _ACEOF
  7269. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7270. else
  7271. # Broken: fails on valid input.
  7272. continue
  7273. fi
  7274. rm -f conftest.err conftest.$ac_ext
  7275. # OK, works on sane cases. Now check whether nonexistent headers
  7276. # can be detected and how.
  7277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7278. /* end confdefs.h. */
  7279. #include <ac_nonexistent.h>
  7280. _ACEOF
  7281. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7282. # Broken: success on invalid input.
  7283. continue
  7284. else
  7285. # Passes both tests.
  7286. ac_preproc_ok=:
  7287. break
  7288. fi
  7289. rm -f conftest.err conftest.$ac_ext
  7290. done
  7291. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7292. rm -f conftest.err conftest.$ac_ext
  7293. if $ac_preproc_ok; then :
  7294. else
  7295. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7296. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7297. _lt_caught_CXX_error=yes; }
  7298. fi
  7299. ac_ext=c
  7300. ac_cpp='$CPP $CPPFLAGS'
  7301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7304. else
  7305. _lt_caught_CXX_error=yes
  7306. fi
  7307. # Set options
  7308. enable_dlopen=no
  7309. enable_win32_dll=no
  7310. # Check whether --enable-shared was given.
  7311. if test "${enable_shared+set}" = set; then :
  7312. enableval=$enable_shared; p=${PACKAGE-default}
  7313. case $enableval in
  7314. yes) enable_shared=yes ;;
  7315. no) enable_shared=no ;;
  7316. *)
  7317. enable_shared=no
  7318. # Look at the argument we got. We use all the common list separators.
  7319. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7320. for pkg in $enableval; do
  7321. IFS="$lt_save_ifs"
  7322. if test "X$pkg" = "X$p"; then
  7323. enable_shared=yes
  7324. fi
  7325. done
  7326. IFS="$lt_save_ifs"
  7327. ;;
  7328. esac
  7329. else
  7330. enable_shared=yes
  7331. fi
  7332. # Check whether --enable-static was given.
  7333. if test "${enable_static+set}" = set; then :
  7334. enableval=$enable_static; p=${PACKAGE-default}
  7335. case $enableval in
  7336. yes) enable_static=yes ;;
  7337. no) enable_static=no ;;
  7338. *)
  7339. enable_static=no
  7340. # Look at the argument we got. We use all the common list separators.
  7341. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7342. for pkg in $enableval; do
  7343. IFS="$lt_save_ifs"
  7344. if test "X$pkg" = "X$p"; then
  7345. enable_static=yes
  7346. fi
  7347. done
  7348. IFS="$lt_save_ifs"
  7349. ;;
  7350. esac
  7351. else
  7352. enable_static=yes
  7353. fi
  7354. # Check whether --with-pic was given.
  7355. if test "${with_pic+set}" = set; then :
  7356. withval=$with_pic; pic_mode="$withval"
  7357. else
  7358. pic_mode=default
  7359. fi
  7360. test -z "$pic_mode" && pic_mode=default
  7361. # This can be used to rebuild libtool when needed
  7362. LIBTOOL_DEPS="$ltmain"
  7363. # Always use our own libtool.
  7364. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7365. test -z "$LN_S" && LN_S="ln -s"
  7366. if test -n "${ZSH_VERSION+set}" ; then
  7367. setopt NO_GLOB_SUBST
  7368. fi
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7370. $as_echo_n "checking for objdir... " >&6; }
  7371. if test "${lt_cv_objdir+set}" = set; then :
  7372. $as_echo_n "(cached) " >&6
  7373. else
  7374. rm -f .libs 2>/dev/null
  7375. mkdir .libs 2>/dev/null
  7376. if test -d .libs; then
  7377. lt_cv_objdir=.libs
  7378. else
  7379. # MS-DOS does not allow filenames that begin with a dot.
  7380. lt_cv_objdir=_libs
  7381. fi
  7382. rmdir .libs 2>/dev/null
  7383. fi
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7385. $as_echo "$lt_cv_objdir" >&6; }
  7386. objdir=$lt_cv_objdir
  7387. cat >>confdefs.h <<_ACEOF
  7388. #define LT_OBJDIR "$lt_cv_objdir/"
  7389. _ACEOF
  7390. case $host_os in
  7391. aix3*)
  7392. # AIX sometimes has problems with the GCC collect2 program. For some
  7393. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7394. # vanish in a puff of smoke.
  7395. if test "X${COLLECT_NAMES+set}" != Xset; then
  7396. COLLECT_NAMES=
  7397. export COLLECT_NAMES
  7398. fi
  7399. ;;
  7400. esac
  7401. # Sed substitution that helps us do robust quoting. It backslashifies
  7402. # metacharacters that are still active within double-quoted strings.
  7403. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7404. # Same as above, but do not quote variable references.
  7405. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7406. # Sed substitution to delay expansion of an escaped shell variable in a
  7407. # double_quote_subst'ed string.
  7408. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7409. # Sed substitution to delay expansion of an escaped single quote.
  7410. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7411. # Sed substitution to avoid accidental globbing in evaled expressions
  7412. no_glob_subst='s/\*/\\\*/g'
  7413. # Global variables:
  7414. ofile=libtool
  7415. can_build_shared=yes
  7416. # All known linkers require a `.a' archive for static linking (except MSVC,
  7417. # which needs '.lib').
  7418. libext=a
  7419. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7420. old_CC="$CC"
  7421. old_CFLAGS="$CFLAGS"
  7422. # Set sane defaults for various variables
  7423. test -z "$CC" && CC=cc
  7424. test -z "$LTCC" && LTCC=$CC
  7425. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7426. test -z "$LD" && LD=ld
  7427. test -z "$ac_objext" && ac_objext=o
  7428. for cc_temp in $compiler""; do
  7429. case $cc_temp in
  7430. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7431. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7432. \-*) ;;
  7433. *) break;;
  7434. esac
  7435. done
  7436. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7437. # Only perform the check for file, if the check method requires it
  7438. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7439. case $deplibs_check_method in
  7440. file_magic*)
  7441. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7443. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7444. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7445. $as_echo_n "(cached) " >&6
  7446. else
  7447. case $MAGIC_CMD in
  7448. [\\/*] | ?:[\\/]*)
  7449. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7450. ;;
  7451. *)
  7452. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7453. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7454. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7455. for ac_dir in $ac_dummy; do
  7456. IFS="$lt_save_ifs"
  7457. test -z "$ac_dir" && ac_dir=.
  7458. if test -f $ac_dir/${ac_tool_prefix}file; then
  7459. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7460. if test -n "$file_magic_test_file"; then
  7461. case $deplibs_check_method in
  7462. "file_magic "*)
  7463. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7464. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7465. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7466. $EGREP "$file_magic_regex" > /dev/null; then
  7467. :
  7468. else
  7469. cat <<_LT_EOF 1>&2
  7470. *** Warning: the command libtool uses to detect shared libraries,
  7471. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7472. *** The result is that libtool may fail to recognize shared libraries
  7473. *** as such. This will affect the creation of libtool libraries that
  7474. *** depend on shared libraries, but programs linked with such libtool
  7475. *** libraries will work regardless of this problem. Nevertheless, you
  7476. *** may want to report the problem to your system manager and/or to
  7477. *** bug-libtool@gnu.org
  7478. _LT_EOF
  7479. fi ;;
  7480. esac
  7481. fi
  7482. break
  7483. fi
  7484. done
  7485. IFS="$lt_save_ifs"
  7486. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7487. ;;
  7488. esac
  7489. fi
  7490. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7491. if test -n "$MAGIC_CMD"; then
  7492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7493. $as_echo "$MAGIC_CMD" >&6; }
  7494. else
  7495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7496. $as_echo "no" >&6; }
  7497. fi
  7498. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7499. if test -n "$ac_tool_prefix"; then
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7501. $as_echo_n "checking for file... " >&6; }
  7502. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7503. $as_echo_n "(cached) " >&6
  7504. else
  7505. case $MAGIC_CMD in
  7506. [\\/*] | ?:[\\/]*)
  7507. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7508. ;;
  7509. *)
  7510. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7511. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7512. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7513. for ac_dir in $ac_dummy; do
  7514. IFS="$lt_save_ifs"
  7515. test -z "$ac_dir" && ac_dir=.
  7516. if test -f $ac_dir/file; then
  7517. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7518. if test -n "$file_magic_test_file"; then
  7519. case $deplibs_check_method in
  7520. "file_magic "*)
  7521. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7522. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7523. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7524. $EGREP "$file_magic_regex" > /dev/null; then
  7525. :
  7526. else
  7527. cat <<_LT_EOF 1>&2
  7528. *** Warning: the command libtool uses to detect shared libraries,
  7529. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7530. *** The result is that libtool may fail to recognize shared libraries
  7531. *** as such. This will affect the creation of libtool libraries that
  7532. *** depend on shared libraries, but programs linked with such libtool
  7533. *** libraries will work regardless of this problem. Nevertheless, you
  7534. *** may want to report the problem to your system manager and/or to
  7535. *** bug-libtool@gnu.org
  7536. _LT_EOF
  7537. fi ;;
  7538. esac
  7539. fi
  7540. break
  7541. fi
  7542. done
  7543. IFS="$lt_save_ifs"
  7544. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7545. ;;
  7546. esac
  7547. fi
  7548. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7549. if test -n "$MAGIC_CMD"; then
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7551. $as_echo "$MAGIC_CMD" >&6; }
  7552. else
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7554. $as_echo "no" >&6; }
  7555. fi
  7556. else
  7557. MAGIC_CMD=:
  7558. fi
  7559. fi
  7560. fi
  7561. ;;
  7562. esac
  7563. # Use C for the default configuration in the libtool script
  7564. lt_save_CC="$CC"
  7565. ac_ext=c
  7566. ac_cpp='$CPP $CPPFLAGS'
  7567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7570. # Source file extension for C test sources.
  7571. ac_ext=c
  7572. # Object file extension for compiled C test sources.
  7573. objext=o
  7574. objext=$objext
  7575. # Code to be used in simple compile tests
  7576. lt_simple_compile_test_code="int some_variable = 0;"
  7577. # Code to be used in simple link tests
  7578. lt_simple_link_test_code='int main(){return(0);}'
  7579. # If no C compiler was specified, use CC.
  7580. LTCC=${LTCC-"$CC"}
  7581. # If no C compiler flags were specified, use CFLAGS.
  7582. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7583. # Allow CC to be a program name with arguments.
  7584. compiler=$CC
  7585. # Save the default compiler, since it gets overwritten when the other
  7586. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7587. compiler_DEFAULT=$CC
  7588. # save warnings/boilerplate of simple test code
  7589. ac_outfile=conftest.$ac_objext
  7590. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7591. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7592. _lt_compiler_boilerplate=`cat conftest.err`
  7593. $RM conftest*
  7594. ac_outfile=conftest.$ac_objext
  7595. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7596. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7597. _lt_linker_boilerplate=`cat conftest.err`
  7598. $RM -r conftest*
  7599. ## CAVEAT EMPTOR:
  7600. ## There is no encapsulation within the following macros, do not change
  7601. ## the running order or otherwise move them around unless you know exactly
  7602. ## what you are doing...
  7603. if test -n "$compiler"; then
  7604. lt_prog_compiler_no_builtin_flag=
  7605. if test "$GCC" = yes; then
  7606. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7608. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7609. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7610. $as_echo_n "(cached) " >&6
  7611. else
  7612. lt_cv_prog_compiler_rtti_exceptions=no
  7613. ac_outfile=conftest.$ac_objext
  7614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7615. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7616. # Insert the option either (1) after the last *FLAGS variable, or
  7617. # (2) before a word containing "conftest.", or (3) at the end.
  7618. # Note that $ac_compile itself does not contain backslashes and begins
  7619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7620. # The option is referenced via a variable to avoid confusing sed.
  7621. lt_compile=`echo "$ac_compile" | $SED \
  7622. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7623. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7624. -e 's:$: $lt_compiler_flag:'`
  7625. (eval echo "\"\$as_me:8702: $lt_compile\"" >&5)
  7626. (eval "$lt_compile" 2>conftest.err)
  7627. ac_status=$?
  7628. cat conftest.err >&5
  7629. echo "$as_me:8706: \$? = $ac_status" >&5
  7630. if (exit $ac_status) && test -s "$ac_outfile"; then
  7631. # The compiler can only warn and ignore the option if not recognized
  7632. # So say no if there are warnings other than the usual output.
  7633. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7634. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7635. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7636. lt_cv_prog_compiler_rtti_exceptions=yes
  7637. fi
  7638. fi
  7639. $RM conftest*
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7642. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7643. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7644. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7645. else
  7646. :
  7647. fi
  7648. fi
  7649. lt_prog_compiler_wl=
  7650. lt_prog_compiler_pic=
  7651. lt_prog_compiler_static=
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7653. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7654. if test "$GCC" = yes; then
  7655. lt_prog_compiler_wl='-Wl,'
  7656. lt_prog_compiler_static='-static'
  7657. case $host_os in
  7658. aix*)
  7659. # All AIX code is PIC.
  7660. if test "$host_cpu" = ia64; then
  7661. # AIX 5 now supports IA64 processor
  7662. lt_prog_compiler_static='-Bstatic'
  7663. fi
  7664. ;;
  7665. amigaos*)
  7666. case $host_cpu in
  7667. powerpc)
  7668. # see comment about AmigaOS4 .so support
  7669. lt_prog_compiler_pic='-fPIC'
  7670. ;;
  7671. m68k)
  7672. # FIXME: we need at least 68020 code to build shared libraries, but
  7673. # adding the `-m68020' flag to GCC prevents building anything better,
  7674. # like `-m68040'.
  7675. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7676. ;;
  7677. esac
  7678. ;;
  7679. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7680. # PIC is the default for these OSes.
  7681. ;;
  7682. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7683. # This hack is so that the source file can tell whether it is being
  7684. # built for inclusion in a dll (and should export symbols for example).
  7685. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7686. # (--disable-auto-import) libraries
  7687. lt_prog_compiler_pic='-DDLL_EXPORT'
  7688. ;;
  7689. darwin* | rhapsody*)
  7690. # PIC is the default on this platform
  7691. # Common symbols not allowed in MH_DYLIB files
  7692. lt_prog_compiler_pic='-fno-common'
  7693. ;;
  7694. hpux*)
  7695. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7696. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7697. # sets the default TLS model and affects inlining.
  7698. case $host_cpu in
  7699. hppa*64*)
  7700. # +Z the default
  7701. ;;
  7702. *)
  7703. lt_prog_compiler_pic='-fPIC'
  7704. ;;
  7705. esac
  7706. ;;
  7707. interix[3-9]*)
  7708. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7709. # Instead, we relocate shared libraries at runtime.
  7710. ;;
  7711. msdosdjgpp*)
  7712. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7713. # on systems that don't support them.
  7714. lt_prog_compiler_can_build_shared=no
  7715. enable_shared=no
  7716. ;;
  7717. *nto* | *qnx*)
  7718. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7719. # it will coredump.
  7720. lt_prog_compiler_pic='-fPIC -shared'
  7721. ;;
  7722. sysv4*MP*)
  7723. if test -d /usr/nec; then
  7724. lt_prog_compiler_pic=-Kconform_pic
  7725. fi
  7726. ;;
  7727. *)
  7728. lt_prog_compiler_pic='-fPIC'
  7729. ;;
  7730. esac
  7731. else
  7732. # PORTME Check for flag to pass linker flags through the system compiler.
  7733. case $host_os in
  7734. aix*)
  7735. lt_prog_compiler_wl='-Wl,'
  7736. if test "$host_cpu" = ia64; then
  7737. # AIX 5 now supports IA64 processor
  7738. lt_prog_compiler_static='-Bstatic'
  7739. else
  7740. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7741. fi
  7742. ;;
  7743. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7744. # This hack is so that the source file can tell whether it is being
  7745. # built for inclusion in a dll (and should export symbols for example).
  7746. lt_prog_compiler_pic='-DDLL_EXPORT'
  7747. ;;
  7748. hpux9* | hpux10* | hpux11*)
  7749. lt_prog_compiler_wl='-Wl,'
  7750. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7751. # not for PA HP-UX.
  7752. case $host_cpu in
  7753. hppa*64*|ia64*)
  7754. # +Z the default
  7755. ;;
  7756. *)
  7757. lt_prog_compiler_pic='+Z'
  7758. ;;
  7759. esac
  7760. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7761. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7762. ;;
  7763. irix5* | irix6* | nonstopux*)
  7764. lt_prog_compiler_wl='-Wl,'
  7765. # PIC (with -KPIC) is the default.
  7766. lt_prog_compiler_static='-non_shared'
  7767. ;;
  7768. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7769. case $cc_basename in
  7770. # old Intel for x86_64 which still supported -KPIC.
  7771. ecc*)
  7772. lt_prog_compiler_wl='-Wl,'
  7773. lt_prog_compiler_pic='-KPIC'
  7774. lt_prog_compiler_static='-static'
  7775. ;;
  7776. # icc used to be incompatible with GCC.
  7777. # ICC 10 doesn't accept -KPIC any more.
  7778. icc* | ifort*)
  7779. lt_prog_compiler_wl='-Wl,'
  7780. lt_prog_compiler_pic='-fPIC'
  7781. lt_prog_compiler_static='-static'
  7782. ;;
  7783. # Lahey Fortran 8.1.
  7784. lf95*)
  7785. lt_prog_compiler_wl='-Wl,'
  7786. lt_prog_compiler_pic='--shared'
  7787. lt_prog_compiler_static='--static'
  7788. ;;
  7789. pgcc* | pgf77* | pgf90* | pgf95*)
  7790. # Portland Group compilers (*not* the Pentium gcc compiler,
  7791. # which looks to be a dead project)
  7792. lt_prog_compiler_wl='-Wl,'
  7793. lt_prog_compiler_pic='-fpic'
  7794. lt_prog_compiler_static='-Bstatic'
  7795. ;;
  7796. ccc*)
  7797. lt_prog_compiler_wl='-Wl,'
  7798. # All Alpha code is PIC.
  7799. lt_prog_compiler_static='-non_shared'
  7800. ;;
  7801. xl*)
  7802. # IBM XL C 8.0/Fortran 10.1 on PPC
  7803. lt_prog_compiler_wl='-Wl,'
  7804. lt_prog_compiler_pic='-qpic'
  7805. lt_prog_compiler_static='-qstaticlink'
  7806. ;;
  7807. *)
  7808. case `$CC -V 2>&1 | sed 5q` in
  7809. *Sun\ C*)
  7810. # Sun C 5.9
  7811. lt_prog_compiler_pic='-KPIC'
  7812. lt_prog_compiler_static='-Bstatic'
  7813. lt_prog_compiler_wl='-Wl,'
  7814. ;;
  7815. *Sun\ F*)
  7816. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7817. lt_prog_compiler_pic='-KPIC'
  7818. lt_prog_compiler_static='-Bstatic'
  7819. lt_prog_compiler_wl=''
  7820. ;;
  7821. esac
  7822. ;;
  7823. esac
  7824. ;;
  7825. newsos6)
  7826. lt_prog_compiler_pic='-KPIC'
  7827. lt_prog_compiler_static='-Bstatic'
  7828. ;;
  7829. *nto* | *qnx*)
  7830. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7831. # it will coredump.
  7832. lt_prog_compiler_pic='-fPIC -shared'
  7833. ;;
  7834. osf3* | osf4* | osf5*)
  7835. lt_prog_compiler_wl='-Wl,'
  7836. # All OSF/1 code is PIC.
  7837. lt_prog_compiler_static='-non_shared'
  7838. ;;
  7839. rdos*)
  7840. lt_prog_compiler_static='-non_shared'
  7841. ;;
  7842. solaris*)
  7843. lt_prog_compiler_pic='-KPIC'
  7844. lt_prog_compiler_static='-Bstatic'
  7845. case $cc_basename in
  7846. f77* | f90* | f95*)
  7847. lt_prog_compiler_wl='-Qoption ld ';;
  7848. *)
  7849. lt_prog_compiler_wl='-Wl,';;
  7850. esac
  7851. ;;
  7852. sunos4*)
  7853. lt_prog_compiler_wl='-Qoption ld '
  7854. lt_prog_compiler_pic='-PIC'
  7855. lt_prog_compiler_static='-Bstatic'
  7856. ;;
  7857. sysv4 | sysv4.2uw2* | sysv4.3*)
  7858. lt_prog_compiler_wl='-Wl,'
  7859. lt_prog_compiler_pic='-KPIC'
  7860. lt_prog_compiler_static='-Bstatic'
  7861. ;;
  7862. sysv4*MP*)
  7863. if test -d /usr/nec ;then
  7864. lt_prog_compiler_pic='-Kconform_pic'
  7865. lt_prog_compiler_static='-Bstatic'
  7866. fi
  7867. ;;
  7868. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7869. lt_prog_compiler_wl='-Wl,'
  7870. lt_prog_compiler_pic='-KPIC'
  7871. lt_prog_compiler_static='-Bstatic'
  7872. ;;
  7873. unicos*)
  7874. lt_prog_compiler_wl='-Wl,'
  7875. lt_prog_compiler_can_build_shared=no
  7876. ;;
  7877. uts4*)
  7878. lt_prog_compiler_pic='-pic'
  7879. lt_prog_compiler_static='-Bstatic'
  7880. ;;
  7881. *)
  7882. lt_prog_compiler_can_build_shared=no
  7883. ;;
  7884. esac
  7885. fi
  7886. case $host_os in
  7887. # For platforms which do not support PIC, -DPIC is meaningless:
  7888. *djgpp*)
  7889. lt_prog_compiler_pic=
  7890. ;;
  7891. *)
  7892. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7893. ;;
  7894. esac
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7896. $as_echo "$lt_prog_compiler_pic" >&6; }
  7897. #
  7898. # Check to make sure the PIC flag actually works.
  7899. #
  7900. if test -n "$lt_prog_compiler_pic"; then
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7902. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7903. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7904. $as_echo_n "(cached) " >&6
  7905. else
  7906. lt_cv_prog_compiler_pic_works=no
  7907. ac_outfile=conftest.$ac_objext
  7908. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7909. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7910. # Insert the option either (1) after the last *FLAGS variable, or
  7911. # (2) before a word containing "conftest.", or (3) at the end.
  7912. # Note that $ac_compile itself does not contain backslashes and begins
  7913. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7914. # The option is referenced via a variable to avoid confusing sed.
  7915. lt_compile=`echo "$ac_compile" | $SED \
  7916. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7917. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7918. -e 's:$: $lt_compiler_flag:'`
  7919. (eval echo "\"\$as_me:9041: $lt_compile\"" >&5)
  7920. (eval "$lt_compile" 2>conftest.err)
  7921. ac_status=$?
  7922. cat conftest.err >&5
  7923. echo "$as_me:9045: \$? = $ac_status" >&5
  7924. if (exit $ac_status) && test -s "$ac_outfile"; then
  7925. # The compiler can only warn and ignore the option if not recognized
  7926. # So say no if there are warnings other than the usual output.
  7927. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7928. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7929. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7930. lt_cv_prog_compiler_pic_works=yes
  7931. fi
  7932. fi
  7933. $RM conftest*
  7934. fi
  7935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7936. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7937. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7938. case $lt_prog_compiler_pic in
  7939. "" | " "*) ;;
  7940. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7941. esac
  7942. else
  7943. lt_prog_compiler_pic=
  7944. lt_prog_compiler_can_build_shared=no
  7945. fi
  7946. fi
  7947. #
  7948. # Check to make sure the static flag actually works.
  7949. #
  7950. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7952. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7953. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7954. $as_echo_n "(cached) " >&6
  7955. else
  7956. lt_cv_prog_compiler_static_works=no
  7957. save_LDFLAGS="$LDFLAGS"
  7958. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7959. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7960. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7961. # The linker can only warn and ignore the option if not recognized
  7962. # So say no if there are warnings
  7963. if test -s conftest.err; then
  7964. # Append any errors to the config.log.
  7965. cat conftest.err 1>&5
  7966. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7967. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7968. if diff conftest.exp conftest.er2 >/dev/null; then
  7969. lt_cv_prog_compiler_static_works=yes
  7970. fi
  7971. else
  7972. lt_cv_prog_compiler_static_works=yes
  7973. fi
  7974. fi
  7975. $RM -r conftest*
  7976. LDFLAGS="$save_LDFLAGS"
  7977. fi
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7979. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7980. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7981. :
  7982. else
  7983. lt_prog_compiler_static=
  7984. fi
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7986. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7987. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7988. $as_echo_n "(cached) " >&6
  7989. else
  7990. lt_cv_prog_compiler_c_o=no
  7991. $RM -r conftest 2>/dev/null
  7992. mkdir conftest
  7993. cd conftest
  7994. mkdir out
  7995. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7996. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7997. # Insert the option either (1) after the last *FLAGS variable, or
  7998. # (2) before a word containing "conftest.", or (3) at the end.
  7999. # Note that $ac_compile itself does not contain backslashes and begins
  8000. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8001. lt_compile=`echo "$ac_compile" | $SED \
  8002. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8003. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8004. -e 's:$: $lt_compiler_flag:'`
  8005. (eval echo "\"\$as_me:9146: $lt_compile\"" >&5)
  8006. (eval "$lt_compile" 2>out/conftest.err)
  8007. ac_status=$?
  8008. cat out/conftest.err >&5
  8009. echo "$as_me:9150: \$? = $ac_status" >&5
  8010. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8011. then
  8012. # The compiler can only warn and ignore the option if not recognized
  8013. # So say no if there are warnings
  8014. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8015. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8016. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8017. lt_cv_prog_compiler_c_o=yes
  8018. fi
  8019. fi
  8020. chmod u+w . 2>&5
  8021. $RM conftest*
  8022. # SGI C++ compiler will create directory out/ii_files/ for
  8023. # template instantiation
  8024. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8025. $RM out/* && rmdir out
  8026. cd ..
  8027. $RM -r conftest
  8028. $RM conftest*
  8029. fi
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8031. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8033. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8034. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8035. $as_echo_n "(cached) " >&6
  8036. else
  8037. lt_cv_prog_compiler_c_o=no
  8038. $RM -r conftest 2>/dev/null
  8039. mkdir conftest
  8040. cd conftest
  8041. mkdir out
  8042. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8043. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8044. # Insert the option either (1) after the last *FLAGS variable, or
  8045. # (2) before a word containing "conftest.", or (3) at the end.
  8046. # Note that $ac_compile itself does not contain backslashes and begins
  8047. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8048. lt_compile=`echo "$ac_compile" | $SED \
  8049. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8050. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8051. -e 's:$: $lt_compiler_flag:'`
  8052. (eval echo "\"\$as_me:9201: $lt_compile\"" >&5)
  8053. (eval "$lt_compile" 2>out/conftest.err)
  8054. ac_status=$?
  8055. cat out/conftest.err >&5
  8056. echo "$as_me:9205: \$? = $ac_status" >&5
  8057. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8058. then
  8059. # The compiler can only warn and ignore the option if not recognized
  8060. # So say no if there are warnings
  8061. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8062. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8063. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8064. lt_cv_prog_compiler_c_o=yes
  8065. fi
  8066. fi
  8067. chmod u+w . 2>&5
  8068. $RM conftest*
  8069. # SGI C++ compiler will create directory out/ii_files/ for
  8070. # template instantiation
  8071. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8072. $RM out/* && rmdir out
  8073. cd ..
  8074. $RM -r conftest
  8075. $RM conftest*
  8076. fi
  8077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8078. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8079. hard_links="nottested"
  8080. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8081. # do not overwrite the value of need_locks provided by the user
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8083. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8084. hard_links=yes
  8085. $RM conftest*
  8086. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8087. touch conftest.a
  8088. ln conftest.a conftest.b 2>&5 || hard_links=no
  8089. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8091. $as_echo "$hard_links" >&6; }
  8092. if test "$hard_links" = no; then
  8093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8094. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8095. need_locks=warn
  8096. fi
  8097. else
  8098. need_locks=no
  8099. fi
  8100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8101. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8102. runpath_var=
  8103. allow_undefined_flag=
  8104. always_export_symbols=no
  8105. archive_cmds=
  8106. archive_expsym_cmds=
  8107. compiler_needs_object=no
  8108. enable_shared_with_static_runtimes=no
  8109. export_dynamic_flag_spec=
  8110. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8111. hardcode_automatic=no
  8112. hardcode_direct=no
  8113. hardcode_direct_absolute=no
  8114. hardcode_libdir_flag_spec=
  8115. hardcode_libdir_flag_spec_ld=
  8116. hardcode_libdir_separator=
  8117. hardcode_minus_L=no
  8118. hardcode_shlibpath_var=unsupported
  8119. inherit_rpath=no
  8120. link_all_deplibs=unknown
  8121. module_cmds=
  8122. module_expsym_cmds=
  8123. old_archive_from_new_cmds=
  8124. old_archive_from_expsyms_cmds=
  8125. thread_safe_flag_spec=
  8126. whole_archive_flag_spec=
  8127. # include_expsyms should be a list of space-separated symbols to be *always*
  8128. # included in the symbol list
  8129. include_expsyms=
  8130. # exclude_expsyms can be an extended regexp of symbols to exclude
  8131. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8132. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8133. # as well as any symbol that contains `d'.
  8134. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8135. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8136. # platforms (ab)use it in PIC code, but their linkers get confused if
  8137. # the symbol is explicitly referenced. Since portable code cannot
  8138. # rely on this symbol name, it's probably fine to never include it in
  8139. # preloaded symbol tables.
  8140. # Exclude shared library initialization/finalization symbols.
  8141. extract_expsyms_cmds=
  8142. case $host_os in
  8143. cygwin* | mingw* | pw32* | cegcc*)
  8144. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8145. # When not using gcc, we currently assume that we are using
  8146. # Microsoft Visual C++.
  8147. if test "$GCC" != yes; then
  8148. with_gnu_ld=no
  8149. fi
  8150. ;;
  8151. interix*)
  8152. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8153. with_gnu_ld=yes
  8154. ;;
  8155. openbsd*)
  8156. with_gnu_ld=no
  8157. ;;
  8158. linux* | k*bsd*-gnu)
  8159. link_all_deplibs=no
  8160. ;;
  8161. esac
  8162. ld_shlibs=yes
  8163. if test "$with_gnu_ld" = yes; then
  8164. # If archive_cmds runs LD, not CC, wlarc should be empty
  8165. wlarc='${wl}'
  8166. # Set some defaults for GNU ld with shared library support. These
  8167. # are reset later if shared libraries are not supported. Putting them
  8168. # here allows them to be overridden if necessary.
  8169. runpath_var=LD_RUN_PATH
  8170. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8171. export_dynamic_flag_spec='${wl}--export-dynamic'
  8172. # ancient GNU ld didn't support --whole-archive et. al.
  8173. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8174. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8175. else
  8176. whole_archive_flag_spec=
  8177. fi
  8178. supports_anon_versioning=no
  8179. case `$LD -v 2>&1` in
  8180. *GNU\ gold*) supports_anon_versioning=yes ;;
  8181. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8182. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8183. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8184. *\ 2.11.*) ;; # other 2.11 versions
  8185. *) supports_anon_versioning=yes ;;
  8186. esac
  8187. # See if GNU ld supports shared libraries.
  8188. case $host_os in
  8189. aix[3-9]*)
  8190. # On AIX/PPC, the GNU linker is very broken
  8191. if test "$host_cpu" != ia64; then
  8192. ld_shlibs=no
  8193. cat <<_LT_EOF 1>&2
  8194. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8195. *** to be unable to reliably create shared libraries on AIX.
  8196. *** Therefore, libtool is disabling shared libraries support. If you
  8197. *** really care for shared libraries, you may want to modify your PATH
  8198. *** so that a non-GNU linker is found, and then restart.
  8199. _LT_EOF
  8200. fi
  8201. ;;
  8202. amigaos*)
  8203. case $host_cpu in
  8204. powerpc)
  8205. # see comment about AmigaOS4 .so support
  8206. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8207. archive_expsym_cmds=''
  8208. ;;
  8209. m68k)
  8210. 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)'
  8211. hardcode_libdir_flag_spec='-L$libdir'
  8212. hardcode_minus_L=yes
  8213. ;;
  8214. esac
  8215. ;;
  8216. beos*)
  8217. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8218. allow_undefined_flag=unsupported
  8219. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8220. # support --undefined. This deserves some investigation. FIXME
  8221. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8222. else
  8223. ld_shlibs=no
  8224. fi
  8225. ;;
  8226. cygwin* | mingw* | pw32* | cegcc*)
  8227. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8228. # as there is no search path for DLLs.
  8229. hardcode_libdir_flag_spec='-L$libdir'
  8230. allow_undefined_flag=unsupported
  8231. always_export_symbols=no
  8232. enable_shared_with_static_runtimes=yes
  8233. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8234. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8235. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8236. # If the export-symbols file already is a .def file (1st line
  8237. # is EXPORTS), use it as is; otherwise, prepend...
  8238. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8239. cp $export_symbols $output_objdir/$soname.def;
  8240. else
  8241. echo EXPORTS > $output_objdir/$soname.def;
  8242. cat $export_symbols >> $output_objdir/$soname.def;
  8243. fi~
  8244. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8245. else
  8246. ld_shlibs=no
  8247. fi
  8248. ;;
  8249. interix[3-9]*)
  8250. hardcode_direct=no
  8251. hardcode_shlibpath_var=no
  8252. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8253. export_dynamic_flag_spec='${wl}-E'
  8254. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8255. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8256. # default) and relocated if they conflict, which is a slow very memory
  8257. # consuming and fragmenting process. To avoid this, we pick a random,
  8258. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8259. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8260. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8261. 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'
  8262. ;;
  8263. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8264. tmp_diet=no
  8265. if test "$host_os" = linux-dietlibc; then
  8266. case $cc_basename in
  8267. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8268. esac
  8269. fi
  8270. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8271. && test "$tmp_diet" = no
  8272. then
  8273. tmp_addflag=
  8274. tmp_sharedflag='-shared'
  8275. case $cc_basename,$host_cpu in
  8276. pgcc*) # Portland Group C compiler
  8277. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8278. tmp_addflag=' $pic_flag'
  8279. ;;
  8280. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8281. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8282. tmp_addflag=' $pic_flag -Mnomain' ;;
  8283. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8284. tmp_addflag=' -i_dynamic' ;;
  8285. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8286. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8287. ifc* | ifort*) # Intel Fortran compiler
  8288. tmp_addflag=' -nofor_main' ;;
  8289. lf95*) # Lahey Fortran 8.1
  8290. whole_archive_flag_spec=
  8291. tmp_sharedflag='--shared' ;;
  8292. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8293. tmp_sharedflag='-qmkshrobj'
  8294. tmp_addflag= ;;
  8295. esac
  8296. case `$CC -V 2>&1 | sed 5q` in
  8297. *Sun\ C*) # Sun C 5.9
  8298. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8299. compiler_needs_object=yes
  8300. tmp_sharedflag='-G' ;;
  8301. *Sun\ F*) # Sun Fortran 8.3
  8302. tmp_sharedflag='-G' ;;
  8303. esac
  8304. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8305. if test "x$supports_anon_versioning" = xyes; then
  8306. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8307. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8308. echo "local: *; };" >> $output_objdir/$libname.ver~
  8309. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8310. fi
  8311. case $cc_basename in
  8312. xlf*)
  8313. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8314. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8315. hardcode_libdir_flag_spec=
  8316. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8317. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $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. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8323. fi
  8324. ;;
  8325. esac
  8326. else
  8327. ld_shlibs=no
  8328. fi
  8329. ;;
  8330. netbsd* | netbsdelf*-gnu)
  8331. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8332. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8333. wlarc=
  8334. else
  8335. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8336. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8337. fi
  8338. ;;
  8339. solaris*)
  8340. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8341. ld_shlibs=no
  8342. cat <<_LT_EOF 1>&2
  8343. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8344. *** create shared libraries on Solaris systems. Therefore, libtool
  8345. *** is disabling shared libraries support. We urge you to upgrade GNU
  8346. *** binutils to release 2.9.1 or newer. Another option is to modify
  8347. *** your PATH or compiler configuration so that the native linker is
  8348. *** used, and then restart.
  8349. _LT_EOF
  8350. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8351. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8352. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8353. else
  8354. ld_shlibs=no
  8355. fi
  8356. ;;
  8357. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8358. case `$LD -v 2>&1` in
  8359. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8360. ld_shlibs=no
  8361. cat <<_LT_EOF 1>&2
  8362. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8363. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8364. *** is disabling shared libraries support. We urge you to upgrade GNU
  8365. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8366. *** your PATH or compiler configuration so that the native linker is
  8367. *** used, and then restart.
  8368. _LT_EOF
  8369. ;;
  8370. *)
  8371. # For security reasons, it is highly recommended that you always
  8372. # use absolute paths for naming shared libraries, and exclude the
  8373. # DT_RUNPATH tag from executables and libraries. But doing so
  8374. # requires that you compile everything twice, which is a pain.
  8375. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8376. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8377. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8378. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8379. else
  8380. ld_shlibs=no
  8381. fi
  8382. ;;
  8383. esac
  8384. ;;
  8385. sunos4*)
  8386. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8387. wlarc=
  8388. hardcode_direct=yes
  8389. hardcode_shlibpath_var=no
  8390. ;;
  8391. *)
  8392. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8393. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8394. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8395. else
  8396. ld_shlibs=no
  8397. fi
  8398. ;;
  8399. esac
  8400. if test "$ld_shlibs" = no; then
  8401. runpath_var=
  8402. hardcode_libdir_flag_spec=
  8403. export_dynamic_flag_spec=
  8404. whole_archive_flag_spec=
  8405. fi
  8406. else
  8407. # PORTME fill in a description of your system's linker (not GNU ld)
  8408. case $host_os in
  8409. aix3*)
  8410. allow_undefined_flag=unsupported
  8411. always_export_symbols=yes
  8412. 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'
  8413. # Note: this linker hardcodes the directories in LIBPATH if there
  8414. # are no directories specified by -L.
  8415. hardcode_minus_L=yes
  8416. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8417. # Neither direct hardcoding nor static linking is supported with a
  8418. # broken collect2.
  8419. hardcode_direct=unsupported
  8420. fi
  8421. ;;
  8422. aix[4-9]*)
  8423. if test "$host_cpu" = ia64; then
  8424. # On IA64, the linker does run time linking by default, so we don't
  8425. # have to do anything special.
  8426. aix_use_runtimelinking=no
  8427. exp_sym_flag='-Bexport'
  8428. no_entry_flag=""
  8429. else
  8430. # If we're using GNU nm, then we don't want the "-C" option.
  8431. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8432. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8433. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8434. else
  8435. 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'
  8436. fi
  8437. aix_use_runtimelinking=no
  8438. # Test if we are trying to use run time linking or normal
  8439. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8440. # need to do runtime linking.
  8441. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8442. for ld_flag in $LDFLAGS; do
  8443. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8444. aix_use_runtimelinking=yes
  8445. break
  8446. fi
  8447. done
  8448. ;;
  8449. esac
  8450. exp_sym_flag='-bexport'
  8451. no_entry_flag='-bnoentry'
  8452. fi
  8453. # When large executables or shared objects are built, AIX ld can
  8454. # have problems creating the table of contents. If linking a library
  8455. # or program results in "error TOC overflow" add -mminimal-toc to
  8456. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8457. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8458. archive_cmds=''
  8459. hardcode_direct=yes
  8460. hardcode_direct_absolute=yes
  8461. hardcode_libdir_separator=':'
  8462. link_all_deplibs=yes
  8463. file_list_spec='${wl}-f,'
  8464. if test "$GCC" = yes; then
  8465. case $host_os in aix4.[012]|aix4.[012].*)
  8466. # We only want to do this on AIX 4.2 and lower, the check
  8467. # below for broken collect2 doesn't work under 4.3+
  8468. collect2name=`${CC} -print-prog-name=collect2`
  8469. if test -f "$collect2name" &&
  8470. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8471. then
  8472. # We have reworked collect2
  8473. :
  8474. else
  8475. # We have old collect2
  8476. hardcode_direct=unsupported
  8477. # It fails to find uninstalled libraries when the uninstalled
  8478. # path is not listed in the libpath. Setting hardcode_minus_L
  8479. # to unsupported forces relinking
  8480. hardcode_minus_L=yes
  8481. hardcode_libdir_flag_spec='-L$libdir'
  8482. hardcode_libdir_separator=
  8483. fi
  8484. ;;
  8485. esac
  8486. shared_flag='-shared'
  8487. if test "$aix_use_runtimelinking" = yes; then
  8488. shared_flag="$shared_flag "'${wl}-G'
  8489. fi
  8490. link_all_deplibs=no
  8491. else
  8492. # not using gcc
  8493. if test "$host_cpu" = ia64; then
  8494. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8495. # chokes on -Wl,-G. The following line is correct:
  8496. shared_flag='-G'
  8497. else
  8498. if test "$aix_use_runtimelinking" = yes; then
  8499. shared_flag='${wl}-G'
  8500. else
  8501. shared_flag='${wl}-bM:SRE'
  8502. fi
  8503. fi
  8504. fi
  8505. export_dynamic_flag_spec='${wl}-bexpall'
  8506. # It seems that -bexpall does not export symbols beginning with
  8507. # underscore (_), so it is better to generate a list of symbols to export.
  8508. always_export_symbols=yes
  8509. if test "$aix_use_runtimelinking" = yes; then
  8510. # Warning - without using the other runtime loading flags (-brtl),
  8511. # -berok will link without error, but may produce a broken library.
  8512. allow_undefined_flag='-berok'
  8513. # Determine the default libpath from the value encoded in an
  8514. # empty executable.
  8515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8516. /* end confdefs.h. */
  8517. int
  8518. main ()
  8519. {
  8520. ;
  8521. return 0;
  8522. }
  8523. _ACEOF
  8524. if ac_fn_c_try_link "$LINENO"; then :
  8525. lt_aix_libpath_sed='
  8526. /Import File Strings/,/^$/ {
  8527. /^0/ {
  8528. s/^0 *\(.*\)$/\1/
  8529. p
  8530. }
  8531. }'
  8532. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8533. # Check for a 64-bit object if we didn't find anything.
  8534. if test -z "$aix_libpath"; then
  8535. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8536. fi
  8537. fi
  8538. rm -f core conftest.err conftest.$ac_objext \
  8539. conftest$ac_exeext conftest.$ac_ext
  8540. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8541. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8542. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8543. else
  8544. if test "$host_cpu" = ia64; then
  8545. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8546. allow_undefined_flag="-z nodefs"
  8547. 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"
  8548. else
  8549. # Determine the default libpath from the value encoded in an
  8550. # empty executable.
  8551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8552. /* end confdefs.h. */
  8553. int
  8554. main ()
  8555. {
  8556. ;
  8557. return 0;
  8558. }
  8559. _ACEOF
  8560. if ac_fn_c_try_link "$LINENO"; then :
  8561. lt_aix_libpath_sed='
  8562. /Import File Strings/,/^$/ {
  8563. /^0/ {
  8564. s/^0 *\(.*\)$/\1/
  8565. p
  8566. }
  8567. }'
  8568. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8569. # Check for a 64-bit object if we didn't find anything.
  8570. if test -z "$aix_libpath"; then
  8571. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8572. fi
  8573. fi
  8574. rm -f core conftest.err conftest.$ac_objext \
  8575. conftest$ac_exeext conftest.$ac_ext
  8576. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8577. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8578. # Warning - without using the other run time loading flags,
  8579. # -berok will link without error, but may produce a broken library.
  8580. no_undefined_flag=' ${wl}-bernotok'
  8581. allow_undefined_flag=' ${wl}-berok'
  8582. # Exported symbols can be pulled into shared objects from archives
  8583. whole_archive_flag_spec='$convenience'
  8584. archive_cmds_need_lc=yes
  8585. # This is similar to how AIX traditionally builds its shared libraries.
  8586. 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'
  8587. fi
  8588. fi
  8589. ;;
  8590. amigaos*)
  8591. case $host_cpu in
  8592. powerpc)
  8593. # see comment about AmigaOS4 .so support
  8594. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8595. archive_expsym_cmds=''
  8596. ;;
  8597. m68k)
  8598. 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)'
  8599. hardcode_libdir_flag_spec='-L$libdir'
  8600. hardcode_minus_L=yes
  8601. ;;
  8602. esac
  8603. ;;
  8604. bsdi[45]*)
  8605. export_dynamic_flag_spec=-rdynamic
  8606. ;;
  8607. cygwin* | mingw* | pw32* | cegcc*)
  8608. # When not using gcc, we currently assume that we are using
  8609. # Microsoft Visual C++.
  8610. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8611. # no search path for DLLs.
  8612. hardcode_libdir_flag_spec=' '
  8613. allow_undefined_flag=unsupported
  8614. # Tell ltmain to make .lib files, not .a files.
  8615. libext=lib
  8616. # Tell ltmain to make .dll files, not .so files.
  8617. shrext_cmds=".dll"
  8618. # FIXME: Setting linknames here is a bad hack.
  8619. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8620. # The linker will automatically build a .lib file if we build a DLL.
  8621. old_archive_from_new_cmds='true'
  8622. # FIXME: Should let the user specify the lib program.
  8623. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8624. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8625. enable_shared_with_static_runtimes=yes
  8626. ;;
  8627. darwin* | rhapsody*)
  8628. archive_cmds_need_lc=no
  8629. hardcode_direct=no
  8630. hardcode_automatic=yes
  8631. hardcode_shlibpath_var=unsupported
  8632. whole_archive_flag_spec=''
  8633. link_all_deplibs=yes
  8634. allow_undefined_flag="$_lt_dar_allow_undefined"
  8635. case $cc_basename in
  8636. ifort*) _lt_dar_can_shared=yes ;;
  8637. *) _lt_dar_can_shared=$GCC ;;
  8638. esac
  8639. if test "$_lt_dar_can_shared" = "yes"; then
  8640. output_verbose_link_cmd=echo
  8641. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8642. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8643. 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}"
  8644. 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}"
  8645. else
  8646. ld_shlibs=no
  8647. fi
  8648. ;;
  8649. dgux*)
  8650. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8651. hardcode_libdir_flag_spec='-L$libdir'
  8652. hardcode_shlibpath_var=no
  8653. ;;
  8654. freebsd1*)
  8655. ld_shlibs=no
  8656. ;;
  8657. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8658. # support. Future versions do this automatically, but an explicit c++rt0.o
  8659. # does not break anything, and helps significantly (at the cost of a little
  8660. # extra space).
  8661. freebsd2.2*)
  8662. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8663. hardcode_libdir_flag_spec='-R$libdir'
  8664. hardcode_direct=yes
  8665. hardcode_shlibpath_var=no
  8666. ;;
  8667. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8668. freebsd2*)
  8669. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8670. hardcode_direct=yes
  8671. hardcode_minus_L=yes
  8672. hardcode_shlibpath_var=no
  8673. ;;
  8674. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8675. freebsd* | dragonfly*)
  8676. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8677. hardcode_libdir_flag_spec='-R$libdir'
  8678. hardcode_direct=yes
  8679. hardcode_shlibpath_var=no
  8680. ;;
  8681. hpux9*)
  8682. if test "$GCC" = yes; then
  8683. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8684. else
  8685. 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'
  8686. fi
  8687. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8688. hardcode_libdir_separator=:
  8689. hardcode_direct=yes
  8690. # hardcode_minus_L: Not really in the search PATH,
  8691. # but as the default location of the library.
  8692. hardcode_minus_L=yes
  8693. export_dynamic_flag_spec='${wl}-E'
  8694. ;;
  8695. hpux10*)
  8696. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8697. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8698. else
  8699. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8700. fi
  8701. if test "$with_gnu_ld" = no; then
  8702. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8703. hardcode_libdir_flag_spec_ld='+b $libdir'
  8704. hardcode_libdir_separator=:
  8705. hardcode_direct=yes
  8706. hardcode_direct_absolute=yes
  8707. export_dynamic_flag_spec='${wl}-E'
  8708. # hardcode_minus_L: Not really in the search PATH,
  8709. # but as the default location of the library.
  8710. hardcode_minus_L=yes
  8711. fi
  8712. ;;
  8713. hpux11*)
  8714. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8715. case $host_cpu in
  8716. hppa*64*)
  8717. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8718. ;;
  8719. ia64*)
  8720. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8721. ;;
  8722. *)
  8723. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8724. ;;
  8725. esac
  8726. else
  8727. case $host_cpu in
  8728. hppa*64*)
  8729. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8730. ;;
  8731. ia64*)
  8732. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8733. ;;
  8734. *)
  8735. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8736. ;;
  8737. esac
  8738. fi
  8739. if test "$with_gnu_ld" = no; then
  8740. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8741. hardcode_libdir_separator=:
  8742. case $host_cpu in
  8743. hppa*64*|ia64*)
  8744. hardcode_direct=no
  8745. hardcode_shlibpath_var=no
  8746. ;;
  8747. *)
  8748. hardcode_direct=yes
  8749. hardcode_direct_absolute=yes
  8750. export_dynamic_flag_spec='${wl}-E'
  8751. # hardcode_minus_L: Not really in the search PATH,
  8752. # but as the default location of the library.
  8753. hardcode_minus_L=yes
  8754. ;;
  8755. esac
  8756. fi
  8757. ;;
  8758. irix5* | irix6* | nonstopux*)
  8759. if test "$GCC" = yes; then
  8760. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8761. # Try to use the -exported_symbol ld option, if it does not
  8762. # work, assume that -exports_file does not work either and
  8763. # implicitly export all symbols.
  8764. save_LDFLAGS="$LDFLAGS"
  8765. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8767. /* end confdefs.h. */
  8768. int foo(void) {}
  8769. _ACEOF
  8770. if ac_fn_c_try_link "$LINENO"; then :
  8771. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8772. fi
  8773. rm -f core conftest.err conftest.$ac_objext \
  8774. conftest$ac_exeext conftest.$ac_ext
  8775. LDFLAGS="$save_LDFLAGS"
  8776. else
  8777. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8778. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8779. fi
  8780. archive_cmds_need_lc='no'
  8781. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8782. hardcode_libdir_separator=:
  8783. inherit_rpath=yes
  8784. link_all_deplibs=yes
  8785. ;;
  8786. netbsd* | netbsdelf*-gnu)
  8787. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8788. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8789. else
  8790. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8791. fi
  8792. hardcode_libdir_flag_spec='-R$libdir'
  8793. hardcode_direct=yes
  8794. hardcode_shlibpath_var=no
  8795. ;;
  8796. newsos6)
  8797. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8798. hardcode_direct=yes
  8799. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8800. hardcode_libdir_separator=:
  8801. hardcode_shlibpath_var=no
  8802. ;;
  8803. *nto* | *qnx*)
  8804. ;;
  8805. openbsd*)
  8806. if test -f /usr/libexec/ld.so; then
  8807. hardcode_direct=yes
  8808. hardcode_shlibpath_var=no
  8809. hardcode_direct_absolute=yes
  8810. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8811. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8812. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8813. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8814. export_dynamic_flag_spec='${wl}-E'
  8815. else
  8816. case $host_os in
  8817. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8818. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8819. hardcode_libdir_flag_spec='-R$libdir'
  8820. ;;
  8821. *)
  8822. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8823. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8824. ;;
  8825. esac
  8826. fi
  8827. else
  8828. ld_shlibs=no
  8829. fi
  8830. ;;
  8831. os2*)
  8832. hardcode_libdir_flag_spec='-L$libdir'
  8833. hardcode_minus_L=yes
  8834. allow_undefined_flag=unsupported
  8835. 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'
  8836. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8837. ;;
  8838. osf3*)
  8839. if test "$GCC" = yes; then
  8840. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8841. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8842. else
  8843. allow_undefined_flag=' -expect_unresolved \*'
  8844. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8845. fi
  8846. archive_cmds_need_lc='no'
  8847. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8848. hardcode_libdir_separator=:
  8849. ;;
  8850. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8851. if test "$GCC" = yes; then
  8852. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8853. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8854. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8855. else
  8856. allow_undefined_flag=' -expect_unresolved \*'
  8857. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8858. 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~
  8859. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8860. # Both c and cxx compiler support -rpath directly
  8861. hardcode_libdir_flag_spec='-rpath $libdir'
  8862. fi
  8863. archive_cmds_need_lc='no'
  8864. hardcode_libdir_separator=:
  8865. ;;
  8866. solaris*)
  8867. no_undefined_flag=' -z defs'
  8868. if test "$GCC" = yes; then
  8869. wlarc='${wl}'
  8870. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8871. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8872. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8873. else
  8874. case `$CC -V 2>&1` in
  8875. *"Compilers 5.0"*)
  8876. wlarc=''
  8877. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8878. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8879. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8880. ;;
  8881. *)
  8882. wlarc='${wl}'
  8883. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8884. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8885. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8886. ;;
  8887. esac
  8888. fi
  8889. hardcode_libdir_flag_spec='-R$libdir'
  8890. hardcode_shlibpath_var=no
  8891. case $host_os in
  8892. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8893. *)
  8894. # The compiler driver will combine and reorder linker options,
  8895. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8896. # but is careful enough not to reorder.
  8897. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8898. if test "$GCC" = yes; then
  8899. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8900. else
  8901. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8902. fi
  8903. ;;
  8904. esac
  8905. link_all_deplibs=yes
  8906. ;;
  8907. sunos4*)
  8908. if test "x$host_vendor" = xsequent; then
  8909. # Use $CC to link under sequent, because it throws in some extra .o
  8910. # files that make .init and .fini sections work.
  8911. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8912. else
  8913. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8914. fi
  8915. hardcode_libdir_flag_spec='-L$libdir'
  8916. hardcode_direct=yes
  8917. hardcode_minus_L=yes
  8918. hardcode_shlibpath_var=no
  8919. ;;
  8920. sysv4)
  8921. case $host_vendor in
  8922. sni)
  8923. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8924. hardcode_direct=yes # is this really true???
  8925. ;;
  8926. siemens)
  8927. ## LD is ld it makes a PLAMLIB
  8928. ## CC just makes a GrossModule.
  8929. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8930. reload_cmds='$CC -r -o $output$reload_objs'
  8931. hardcode_direct=no
  8932. ;;
  8933. motorola)
  8934. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8935. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8936. ;;
  8937. esac
  8938. runpath_var='LD_RUN_PATH'
  8939. hardcode_shlibpath_var=no
  8940. ;;
  8941. sysv4.3*)
  8942. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8943. hardcode_shlibpath_var=no
  8944. export_dynamic_flag_spec='-Bexport'
  8945. ;;
  8946. sysv4*MP*)
  8947. if test -d /usr/nec; then
  8948. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8949. hardcode_shlibpath_var=no
  8950. runpath_var=LD_RUN_PATH
  8951. hardcode_runpath_var=yes
  8952. ld_shlibs=yes
  8953. fi
  8954. ;;
  8955. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8956. no_undefined_flag='${wl}-z,text'
  8957. archive_cmds_need_lc=no
  8958. hardcode_shlibpath_var=no
  8959. runpath_var='LD_RUN_PATH'
  8960. if test "$GCC" = yes; then
  8961. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8962. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8963. else
  8964. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8965. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8966. fi
  8967. ;;
  8968. sysv5* | sco3.2v5* | sco5v6*)
  8969. # Note: We can NOT use -z defs as we might desire, because we do not
  8970. # link with -lc, and that would cause any symbols used from libc to
  8971. # always be unresolved, which means just about no library would
  8972. # ever link correctly. If we're not using GNU ld we use -z text
  8973. # though, which does catch some bad symbols but isn't as heavy-handed
  8974. # as -z defs.
  8975. no_undefined_flag='${wl}-z,text'
  8976. allow_undefined_flag='${wl}-z,nodefs'
  8977. archive_cmds_need_lc=no
  8978. hardcode_shlibpath_var=no
  8979. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8980. hardcode_libdir_separator=':'
  8981. link_all_deplibs=yes
  8982. export_dynamic_flag_spec='${wl}-Bexport'
  8983. runpath_var='LD_RUN_PATH'
  8984. if test "$GCC" = yes; then
  8985. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8986. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8987. else
  8988. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8989. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8990. fi
  8991. ;;
  8992. uts4*)
  8993. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8994. hardcode_libdir_flag_spec='-L$libdir'
  8995. hardcode_shlibpath_var=no
  8996. ;;
  8997. *)
  8998. ld_shlibs=no
  8999. ;;
  9000. esac
  9001. if test x$host_vendor = xsni; then
  9002. case $host in
  9003. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9004. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9005. ;;
  9006. esac
  9007. fi
  9008. fi
  9009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9010. $as_echo "$ld_shlibs" >&6; }
  9011. test "$ld_shlibs" = no && can_build_shared=no
  9012. with_gnu_ld=$with_gnu_ld
  9013. #
  9014. # Do we need to explicitly link libc?
  9015. #
  9016. case "x$archive_cmds_need_lc" in
  9017. x|xyes)
  9018. # Assume -lc should be added
  9019. archive_cmds_need_lc=yes
  9020. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9021. case $archive_cmds in
  9022. *'~'*)
  9023. # FIXME: we may have to deal with multi-command sequences.
  9024. ;;
  9025. '$CC '*)
  9026. # Test whether the compiler implicitly links with -lc since on some
  9027. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9028. # to ld, don't add -lc before -lgcc.
  9029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9030. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9031. $RM conftest*
  9032. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9033. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9034. (eval $ac_compile) 2>&5
  9035. ac_status=$?
  9036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9037. test $ac_status = 0; } 2>conftest.err; then
  9038. soname=conftest
  9039. lib=conftest
  9040. libobjs=conftest.$ac_objext
  9041. deplibs=
  9042. wl=$lt_prog_compiler_wl
  9043. pic_flag=$lt_prog_compiler_pic
  9044. compiler_flags=-v
  9045. linker_flags=-v
  9046. verstring=
  9047. output_objdir=.
  9048. libname=conftest
  9049. lt_save_allow_undefined_flag=$allow_undefined_flag
  9050. allow_undefined_flag=
  9051. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9052. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9053. ac_status=$?
  9054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9055. test $ac_status = 0; }
  9056. then
  9057. archive_cmds_need_lc=no
  9058. else
  9059. archive_cmds_need_lc=yes
  9060. fi
  9061. allow_undefined_flag=$lt_save_allow_undefined_flag
  9062. else
  9063. cat conftest.err 1>&5
  9064. fi
  9065. $RM conftest*
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  9067. $as_echo "$archive_cmds_need_lc" >&6; }
  9068. ;;
  9069. esac
  9070. fi
  9071. ;;
  9072. esac
  9073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9074. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9075. if test "$GCC" = yes; then
  9076. case $host_os in
  9077. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9078. *) lt_awk_arg="/^libraries:/" ;;
  9079. esac
  9080. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9081. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9082. # if the path contains ";" then we assume it to be the separator
  9083. # otherwise default to the standard path separator (i.e. ":") - it is
  9084. # assumed that no part of a normal pathname contains ";" but that should
  9085. # okay in the real world where ";" in dirpaths is itself problematic.
  9086. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9087. else
  9088. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9089. fi
  9090. # Ok, now we have the path, separated by spaces, we can step through it
  9091. # and add multilib dir if necessary.
  9092. lt_tmp_lt_search_path_spec=
  9093. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9094. for lt_sys_path in $lt_search_path_spec; do
  9095. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9096. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9097. else
  9098. test -d "$lt_sys_path" && \
  9099. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9100. fi
  9101. done
  9102. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9103. BEGIN {RS=" "; FS="/|\n";} {
  9104. lt_foo="";
  9105. lt_count=0;
  9106. for (lt_i = NF; lt_i > 0; lt_i--) {
  9107. if ($lt_i != "" && $lt_i != ".") {
  9108. if ($lt_i == "..") {
  9109. lt_count++;
  9110. } else {
  9111. if (lt_count == 0) {
  9112. lt_foo="/" $lt_i lt_foo;
  9113. } else {
  9114. lt_count--;
  9115. }
  9116. }
  9117. }
  9118. }
  9119. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9120. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9121. }'`
  9122. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9123. else
  9124. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9125. fi
  9126. library_names_spec=
  9127. libname_spec='lib$name'
  9128. soname_spec=
  9129. shrext_cmds=".so"
  9130. postinstall_cmds=
  9131. postuninstall_cmds=
  9132. finish_cmds=
  9133. finish_eval=
  9134. shlibpath_var=
  9135. shlibpath_overrides_runpath=unknown
  9136. version_type=none
  9137. dynamic_linker="$host_os ld.so"
  9138. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9139. need_lib_prefix=unknown
  9140. hardcode_into_libs=no
  9141. # when you set need_version to no, make sure it does not cause -set_version
  9142. # flags to be left without arguments
  9143. need_version=unknown
  9144. case $host_os in
  9145. aix3*)
  9146. version_type=linux
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9148. shlibpath_var=LIBPATH
  9149. # AIX 3 has no versioning support, so we append a major version to the name.
  9150. soname_spec='${libname}${release}${shared_ext}$major'
  9151. ;;
  9152. aix[4-9]*)
  9153. version_type=linux
  9154. need_lib_prefix=no
  9155. need_version=no
  9156. hardcode_into_libs=yes
  9157. if test "$host_cpu" = ia64; then
  9158. # AIX 5 supports IA64
  9159. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9160. shlibpath_var=LD_LIBRARY_PATH
  9161. else
  9162. # With GCC up to 2.95.x, collect2 would create an import file
  9163. # for dependence libraries. The import file would start with
  9164. # the line `#! .'. This would cause the generated library to
  9165. # depend on `.', always an invalid library. This was fixed in
  9166. # development snapshots of GCC prior to 3.0.
  9167. case $host_os in
  9168. aix4 | aix4.[01] | aix4.[01].*)
  9169. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9170. echo ' yes '
  9171. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9172. :
  9173. else
  9174. can_build_shared=no
  9175. fi
  9176. ;;
  9177. esac
  9178. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9179. # soname into executable. Probably we can add versioning support to
  9180. # collect2, so additional links can be useful in future.
  9181. if test "$aix_use_runtimelinking" = yes; then
  9182. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9183. # instead of lib<name>.a to let people know that these are not
  9184. # typical AIX shared libraries.
  9185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9186. else
  9187. # We preserve .a as extension for shared libraries through AIX4.2
  9188. # and later when we are not doing run time linking.
  9189. library_names_spec='${libname}${release}.a $libname.a'
  9190. soname_spec='${libname}${release}${shared_ext}$major'
  9191. fi
  9192. shlibpath_var=LIBPATH
  9193. fi
  9194. ;;
  9195. amigaos*)
  9196. case $host_cpu in
  9197. powerpc)
  9198. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9199. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9201. ;;
  9202. m68k)
  9203. library_names_spec='$libname.ixlibrary $libname.a'
  9204. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9205. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9206. ;;
  9207. esac
  9208. ;;
  9209. beos*)
  9210. library_names_spec='${libname}${shared_ext}'
  9211. dynamic_linker="$host_os ld.so"
  9212. shlibpath_var=LIBRARY_PATH
  9213. ;;
  9214. bsdi[45]*)
  9215. version_type=linux
  9216. need_version=no
  9217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9218. soname_spec='${libname}${release}${shared_ext}$major'
  9219. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9220. shlibpath_var=LD_LIBRARY_PATH
  9221. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9222. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9223. # the default ld.so.conf also contains /usr/contrib/lib and
  9224. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9225. # libtool to hard-code these into programs
  9226. ;;
  9227. cygwin* | mingw* | pw32* | cegcc*)
  9228. version_type=windows
  9229. shrext_cmds=".dll"
  9230. need_version=no
  9231. need_lib_prefix=no
  9232. case $GCC,$host_os in
  9233. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9234. library_names_spec='$libname.dll.a'
  9235. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9236. postinstall_cmds='base_file=`basename \${file}`~
  9237. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9238. dldir=$destdir/`dirname \$dlpath`~
  9239. test -d \$dldir || mkdir -p \$dldir~
  9240. $install_prog $dir/$dlname \$dldir/$dlname~
  9241. chmod a+x \$dldir/$dlname~
  9242. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9243. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9244. fi'
  9245. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9246. dlpath=$dir/\$dldll~
  9247. $RM \$dlpath'
  9248. shlibpath_overrides_runpath=yes
  9249. case $host_os in
  9250. cygwin*)
  9251. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9252. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9253. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9254. ;;
  9255. mingw* | cegcc*)
  9256. # MinGW DLLs use traditional 'lib' prefix
  9257. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9258. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9259. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9260. # It is most probably a Windows format PATH printed by
  9261. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9262. # path with ; separators, and with drive letters. We can handle the
  9263. # drive letters (cygwin fileutils understands them), so leave them,
  9264. # especially as we might pass files found there to a mingw objdump,
  9265. # which wouldn't understand a cygwinified path. Ahh.
  9266. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9267. else
  9268. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9269. fi
  9270. ;;
  9271. pw32*)
  9272. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9273. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9274. ;;
  9275. esac
  9276. ;;
  9277. *)
  9278. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9279. ;;
  9280. esac
  9281. dynamic_linker='Win32 ld.exe'
  9282. # FIXME: first we should search . and the directory the executable is in
  9283. shlibpath_var=PATH
  9284. ;;
  9285. darwin* | rhapsody*)
  9286. dynamic_linker="$host_os dyld"
  9287. version_type=darwin
  9288. need_lib_prefix=no
  9289. need_version=no
  9290. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9291. soname_spec='${libname}${release}${major}$shared_ext'
  9292. shlibpath_overrides_runpath=yes
  9293. shlibpath_var=DYLD_LIBRARY_PATH
  9294. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9295. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9296. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9297. ;;
  9298. dgux*)
  9299. version_type=linux
  9300. need_lib_prefix=no
  9301. need_version=no
  9302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9303. soname_spec='${libname}${release}${shared_ext}$major'
  9304. shlibpath_var=LD_LIBRARY_PATH
  9305. ;;
  9306. freebsd1*)
  9307. dynamic_linker=no
  9308. ;;
  9309. freebsd* | dragonfly*)
  9310. # DragonFly does not have aout. When/if they implement a new
  9311. # versioning mechanism, adjust this.
  9312. if test -x /usr/bin/objformat; then
  9313. objformat=`/usr/bin/objformat`
  9314. else
  9315. case $host_os in
  9316. freebsd[123]*) objformat=aout ;;
  9317. *) objformat=elf ;;
  9318. esac
  9319. fi
  9320. version_type=freebsd-$objformat
  9321. case $version_type in
  9322. freebsd-elf*)
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9324. need_version=no
  9325. need_lib_prefix=no
  9326. ;;
  9327. freebsd-*)
  9328. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9329. need_version=yes
  9330. ;;
  9331. esac
  9332. shlibpath_var=LD_LIBRARY_PATH
  9333. case $host_os in
  9334. freebsd2*)
  9335. shlibpath_overrides_runpath=yes
  9336. ;;
  9337. freebsd3.[01]* | freebsdelf3.[01]*)
  9338. shlibpath_overrides_runpath=yes
  9339. hardcode_into_libs=yes
  9340. ;;
  9341. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9342. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9343. shlibpath_overrides_runpath=no
  9344. hardcode_into_libs=yes
  9345. ;;
  9346. *) # from 4.6 on, and DragonFly
  9347. shlibpath_overrides_runpath=yes
  9348. hardcode_into_libs=yes
  9349. ;;
  9350. esac
  9351. ;;
  9352. gnu*)
  9353. version_type=linux
  9354. need_lib_prefix=no
  9355. need_version=no
  9356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9357. soname_spec='${libname}${release}${shared_ext}$major'
  9358. shlibpath_var=LD_LIBRARY_PATH
  9359. hardcode_into_libs=yes
  9360. ;;
  9361. hpux9* | hpux10* | hpux11*)
  9362. # Give a soname corresponding to the major version so that dld.sl refuses to
  9363. # link against other versions.
  9364. version_type=sunos
  9365. need_lib_prefix=no
  9366. need_version=no
  9367. case $host_cpu in
  9368. ia64*)
  9369. shrext_cmds='.so'
  9370. hardcode_into_libs=yes
  9371. dynamic_linker="$host_os dld.so"
  9372. shlibpath_var=LD_LIBRARY_PATH
  9373. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9375. soname_spec='${libname}${release}${shared_ext}$major'
  9376. if test "X$HPUX_IA64_MODE" = X32; then
  9377. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9378. else
  9379. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9380. fi
  9381. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9382. ;;
  9383. hppa*64*)
  9384. shrext_cmds='.sl'
  9385. hardcode_into_libs=yes
  9386. dynamic_linker="$host_os dld.sl"
  9387. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9388. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9390. soname_spec='${libname}${release}${shared_ext}$major'
  9391. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9392. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9393. ;;
  9394. *)
  9395. shrext_cmds='.sl'
  9396. dynamic_linker="$host_os dld.sl"
  9397. shlibpath_var=SHLIB_PATH
  9398. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9400. soname_spec='${libname}${release}${shared_ext}$major'
  9401. ;;
  9402. esac
  9403. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9404. postinstall_cmds='chmod 555 $lib'
  9405. ;;
  9406. interix[3-9]*)
  9407. version_type=linux
  9408. need_lib_prefix=no
  9409. need_version=no
  9410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9411. soname_spec='${libname}${release}${shared_ext}$major'
  9412. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9413. shlibpath_var=LD_LIBRARY_PATH
  9414. shlibpath_overrides_runpath=no
  9415. hardcode_into_libs=yes
  9416. ;;
  9417. irix5* | irix6* | nonstopux*)
  9418. case $host_os in
  9419. nonstopux*) version_type=nonstopux ;;
  9420. *)
  9421. if test "$lt_cv_prog_gnu_ld" = yes; then
  9422. version_type=linux
  9423. else
  9424. version_type=irix
  9425. fi ;;
  9426. esac
  9427. need_lib_prefix=no
  9428. need_version=no
  9429. soname_spec='${libname}${release}${shared_ext}$major'
  9430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9431. case $host_os in
  9432. irix5* | nonstopux*)
  9433. libsuff= shlibsuff=
  9434. ;;
  9435. *)
  9436. case $LD in # libtool.m4 will add one of these switches to LD
  9437. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9438. libsuff= shlibsuff= libmagic=32-bit;;
  9439. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9440. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9441. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9442. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9443. *) libsuff= shlibsuff= libmagic=never-match;;
  9444. esac
  9445. ;;
  9446. esac
  9447. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9448. shlibpath_overrides_runpath=no
  9449. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9450. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9451. hardcode_into_libs=yes
  9452. ;;
  9453. # No shared lib support for Linux oldld, aout, or coff.
  9454. linux*oldld* | linux*aout* | linux*coff*)
  9455. dynamic_linker=no
  9456. ;;
  9457. # This must be Linux ELF.
  9458. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9459. version_type=linux
  9460. need_lib_prefix=no
  9461. need_version=no
  9462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9463. soname_spec='${libname}${release}${shared_ext}$major'
  9464. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9465. shlibpath_var=LD_LIBRARY_PATH
  9466. shlibpath_overrides_runpath=no
  9467. # Some binutils ld are patched to set DT_RUNPATH
  9468. save_LDFLAGS=$LDFLAGS
  9469. save_libdir=$libdir
  9470. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9471. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9473. /* end confdefs.h. */
  9474. int
  9475. main ()
  9476. {
  9477. ;
  9478. return 0;
  9479. }
  9480. _ACEOF
  9481. if ac_fn_c_try_link "$LINENO"; then :
  9482. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9483. shlibpath_overrides_runpath=yes
  9484. fi
  9485. fi
  9486. rm -f core conftest.err conftest.$ac_objext \
  9487. conftest$ac_exeext conftest.$ac_ext
  9488. LDFLAGS=$save_LDFLAGS
  9489. libdir=$save_libdir
  9490. # This implies no fast_install, which is unacceptable.
  9491. # Some rework will be needed to allow for fast_install
  9492. # before this can be enabled.
  9493. hardcode_into_libs=yes
  9494. # Append ld.so.conf contents to the search path
  9495. if test -f /etc/ld.so.conf; then
  9496. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9497. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9498. fi
  9499. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9500. # powerpc, because MkLinux only supported shared libraries with the
  9501. # GNU dynamic linker. Since this was broken with cross compilers,
  9502. # most powerpc-linux boxes support dynamic linking these days and
  9503. # people can always --disable-shared, the test was removed, and we
  9504. # assume the GNU/Linux dynamic linker is in use.
  9505. dynamic_linker='GNU/Linux ld.so'
  9506. ;;
  9507. netbsdelf*-gnu)
  9508. version_type=linux
  9509. need_lib_prefix=no
  9510. need_version=no
  9511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9512. soname_spec='${libname}${release}${shared_ext}$major'
  9513. shlibpath_var=LD_LIBRARY_PATH
  9514. shlibpath_overrides_runpath=no
  9515. hardcode_into_libs=yes
  9516. dynamic_linker='NetBSD ld.elf_so'
  9517. ;;
  9518. netbsd*)
  9519. version_type=sunos
  9520. need_lib_prefix=no
  9521. need_version=no
  9522. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9524. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9525. dynamic_linker='NetBSD (a.out) ld.so'
  9526. else
  9527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9528. soname_spec='${libname}${release}${shared_ext}$major'
  9529. dynamic_linker='NetBSD ld.elf_so'
  9530. fi
  9531. shlibpath_var=LD_LIBRARY_PATH
  9532. shlibpath_overrides_runpath=yes
  9533. hardcode_into_libs=yes
  9534. ;;
  9535. newsos6)
  9536. version_type=linux
  9537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9538. shlibpath_var=LD_LIBRARY_PATH
  9539. shlibpath_overrides_runpath=yes
  9540. ;;
  9541. *nto* | *qnx*)
  9542. version_type=qnx
  9543. need_lib_prefix=no
  9544. need_version=no
  9545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9546. soname_spec='${libname}${release}${shared_ext}$major'
  9547. shlibpath_var=LD_LIBRARY_PATH
  9548. shlibpath_overrides_runpath=no
  9549. hardcode_into_libs=yes
  9550. dynamic_linker='ldqnx.so'
  9551. ;;
  9552. openbsd*)
  9553. version_type=sunos
  9554. sys_lib_dlsearch_path_spec="/usr/lib"
  9555. need_lib_prefix=no
  9556. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9557. case $host_os in
  9558. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9559. *) need_version=no ;;
  9560. esac
  9561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9562. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9563. shlibpath_var=LD_LIBRARY_PATH
  9564. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9565. case $host_os in
  9566. openbsd2.[89] | openbsd2.[89].*)
  9567. shlibpath_overrides_runpath=no
  9568. ;;
  9569. *)
  9570. shlibpath_overrides_runpath=yes
  9571. ;;
  9572. esac
  9573. else
  9574. shlibpath_overrides_runpath=yes
  9575. fi
  9576. ;;
  9577. os2*)
  9578. libname_spec='$name'
  9579. shrext_cmds=".dll"
  9580. need_lib_prefix=no
  9581. library_names_spec='$libname${shared_ext} $libname.a'
  9582. dynamic_linker='OS/2 ld.exe'
  9583. shlibpath_var=LIBPATH
  9584. ;;
  9585. osf3* | osf4* | osf5*)
  9586. version_type=osf
  9587. need_lib_prefix=no
  9588. need_version=no
  9589. soname_spec='${libname}${release}${shared_ext}$major'
  9590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9591. shlibpath_var=LD_LIBRARY_PATH
  9592. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9593. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9594. ;;
  9595. rdos*)
  9596. dynamic_linker=no
  9597. ;;
  9598. solaris*)
  9599. version_type=linux
  9600. need_lib_prefix=no
  9601. need_version=no
  9602. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9603. soname_spec='${libname}${release}${shared_ext}$major'
  9604. shlibpath_var=LD_LIBRARY_PATH
  9605. shlibpath_overrides_runpath=yes
  9606. hardcode_into_libs=yes
  9607. # ldd complains unless libraries are executable
  9608. postinstall_cmds='chmod +x $lib'
  9609. ;;
  9610. sunos4*)
  9611. version_type=sunos
  9612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9613. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9614. shlibpath_var=LD_LIBRARY_PATH
  9615. shlibpath_overrides_runpath=yes
  9616. if test "$with_gnu_ld" = yes; then
  9617. need_lib_prefix=no
  9618. fi
  9619. need_version=yes
  9620. ;;
  9621. sysv4 | sysv4.3*)
  9622. version_type=linux
  9623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9624. soname_spec='${libname}${release}${shared_ext}$major'
  9625. shlibpath_var=LD_LIBRARY_PATH
  9626. case $host_vendor in
  9627. sni)
  9628. shlibpath_overrides_runpath=no
  9629. need_lib_prefix=no
  9630. runpath_var=LD_RUN_PATH
  9631. ;;
  9632. siemens)
  9633. need_lib_prefix=no
  9634. ;;
  9635. motorola)
  9636. need_lib_prefix=no
  9637. need_version=no
  9638. shlibpath_overrides_runpath=no
  9639. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9640. ;;
  9641. esac
  9642. ;;
  9643. sysv4*MP*)
  9644. if test -d /usr/nec ;then
  9645. version_type=linux
  9646. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9647. soname_spec='$libname${shared_ext}.$major'
  9648. shlibpath_var=LD_LIBRARY_PATH
  9649. fi
  9650. ;;
  9651. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9652. version_type=freebsd-elf
  9653. need_lib_prefix=no
  9654. need_version=no
  9655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9656. soname_spec='${libname}${release}${shared_ext}$major'
  9657. shlibpath_var=LD_LIBRARY_PATH
  9658. shlibpath_overrides_runpath=yes
  9659. hardcode_into_libs=yes
  9660. if test "$with_gnu_ld" = yes; then
  9661. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9662. else
  9663. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9664. case $host_os in
  9665. sco3.2v5*)
  9666. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9667. ;;
  9668. esac
  9669. fi
  9670. sys_lib_dlsearch_path_spec='/usr/lib'
  9671. ;;
  9672. tpf*)
  9673. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9674. version_type=linux
  9675. need_lib_prefix=no
  9676. need_version=no
  9677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9678. shlibpath_var=LD_LIBRARY_PATH
  9679. shlibpath_overrides_runpath=no
  9680. hardcode_into_libs=yes
  9681. ;;
  9682. uts4*)
  9683. version_type=linux
  9684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9685. soname_spec='${libname}${release}${shared_ext}$major'
  9686. shlibpath_var=LD_LIBRARY_PATH
  9687. ;;
  9688. *)
  9689. dynamic_linker=no
  9690. ;;
  9691. esac
  9692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9693. $as_echo "$dynamic_linker" >&6; }
  9694. test "$dynamic_linker" = no && can_build_shared=no
  9695. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9696. if test "$GCC" = yes; then
  9697. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9698. fi
  9699. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9700. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9701. fi
  9702. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9703. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9704. fi
  9705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9706. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9707. hardcode_action=
  9708. if test -n "$hardcode_libdir_flag_spec" ||
  9709. test -n "$runpath_var" ||
  9710. test "X$hardcode_automatic" = "Xyes" ; then
  9711. # We can hardcode non-existent directories.
  9712. if test "$hardcode_direct" != no &&
  9713. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9714. # have to relink, otherwise we might link with an installed library
  9715. # when we should be linking with a yet-to-be-installed one
  9716. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9717. test "$hardcode_minus_L" != no; then
  9718. # Linking always hardcodes the temporary library directory.
  9719. hardcode_action=relink
  9720. else
  9721. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9722. hardcode_action=immediate
  9723. fi
  9724. else
  9725. # We cannot hardcode anything, or else we can only hardcode existing
  9726. # directories.
  9727. hardcode_action=unsupported
  9728. fi
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9730. $as_echo "$hardcode_action" >&6; }
  9731. if test "$hardcode_action" = relink ||
  9732. test "$inherit_rpath" = yes; then
  9733. # Fast installation is not supported
  9734. enable_fast_install=no
  9735. elif test "$shlibpath_overrides_runpath" = yes ||
  9736. test "$enable_shared" = no; then
  9737. # Fast installation is not necessary
  9738. enable_fast_install=needless
  9739. fi
  9740. if test "x$enable_dlopen" != xyes; then
  9741. enable_dlopen=unknown
  9742. enable_dlopen_self=unknown
  9743. enable_dlopen_self_static=unknown
  9744. else
  9745. lt_cv_dlopen=no
  9746. lt_cv_dlopen_libs=
  9747. case $host_os in
  9748. beos*)
  9749. lt_cv_dlopen="load_add_on"
  9750. lt_cv_dlopen_libs=
  9751. lt_cv_dlopen_self=yes
  9752. ;;
  9753. mingw* | pw32* | cegcc*)
  9754. lt_cv_dlopen="LoadLibrary"
  9755. lt_cv_dlopen_libs=
  9756. ;;
  9757. cygwin*)
  9758. lt_cv_dlopen="dlopen"
  9759. lt_cv_dlopen_libs=
  9760. ;;
  9761. darwin*)
  9762. # if libdl is installed we need to link against it
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9764. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9765. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9766. $as_echo_n "(cached) " >&6
  9767. else
  9768. ac_check_lib_save_LIBS=$LIBS
  9769. LIBS="-ldl $LIBS"
  9770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9771. /* end confdefs.h. */
  9772. /* Override any GCC internal prototype to avoid an error.
  9773. Use char because int might match the return type of a GCC
  9774. builtin and then its argument prototype would still apply. */
  9775. #ifdef __cplusplus
  9776. extern "C"
  9777. #endif
  9778. char dlopen ();
  9779. int
  9780. main ()
  9781. {
  9782. return dlopen ();
  9783. ;
  9784. return 0;
  9785. }
  9786. _ACEOF
  9787. if ac_fn_c_try_link "$LINENO"; then :
  9788. ac_cv_lib_dl_dlopen=yes
  9789. else
  9790. ac_cv_lib_dl_dlopen=no
  9791. fi
  9792. rm -f core conftest.err conftest.$ac_objext \
  9793. conftest$ac_exeext conftest.$ac_ext
  9794. LIBS=$ac_check_lib_save_LIBS
  9795. fi
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9797. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9798. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9799. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9800. else
  9801. lt_cv_dlopen="dyld"
  9802. lt_cv_dlopen_libs=
  9803. lt_cv_dlopen_self=yes
  9804. fi
  9805. ;;
  9806. *)
  9807. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9808. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9809. lt_cv_dlopen="shl_load"
  9810. else
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9812. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9813. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9814. $as_echo_n "(cached) " >&6
  9815. else
  9816. ac_check_lib_save_LIBS=$LIBS
  9817. LIBS="-ldld $LIBS"
  9818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9819. /* end confdefs.h. */
  9820. /* Override any GCC internal prototype to avoid an error.
  9821. Use char because int might match the return type of a GCC
  9822. builtin and then its argument prototype would still apply. */
  9823. #ifdef __cplusplus
  9824. extern "C"
  9825. #endif
  9826. char shl_load ();
  9827. int
  9828. main ()
  9829. {
  9830. return shl_load ();
  9831. ;
  9832. return 0;
  9833. }
  9834. _ACEOF
  9835. if ac_fn_c_try_link "$LINENO"; then :
  9836. ac_cv_lib_dld_shl_load=yes
  9837. else
  9838. ac_cv_lib_dld_shl_load=no
  9839. fi
  9840. rm -f core conftest.err conftest.$ac_objext \
  9841. conftest$ac_exeext conftest.$ac_ext
  9842. LIBS=$ac_check_lib_save_LIBS
  9843. fi
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9845. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9846. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9847. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9848. else
  9849. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9850. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9851. lt_cv_dlopen="dlopen"
  9852. else
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9854. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9855. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9856. $as_echo_n "(cached) " >&6
  9857. else
  9858. ac_check_lib_save_LIBS=$LIBS
  9859. LIBS="-ldl $LIBS"
  9860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9861. /* end confdefs.h. */
  9862. /* Override any GCC internal prototype to avoid an error.
  9863. Use char because int might match the return type of a GCC
  9864. builtin and then its argument prototype would still apply. */
  9865. #ifdef __cplusplus
  9866. extern "C"
  9867. #endif
  9868. char dlopen ();
  9869. int
  9870. main ()
  9871. {
  9872. return dlopen ();
  9873. ;
  9874. return 0;
  9875. }
  9876. _ACEOF
  9877. if ac_fn_c_try_link "$LINENO"; then :
  9878. ac_cv_lib_dl_dlopen=yes
  9879. else
  9880. ac_cv_lib_dl_dlopen=no
  9881. fi
  9882. rm -f core conftest.err conftest.$ac_objext \
  9883. conftest$ac_exeext conftest.$ac_ext
  9884. LIBS=$ac_check_lib_save_LIBS
  9885. fi
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9887. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9888. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9889. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9890. else
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9892. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9893. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9894. $as_echo_n "(cached) " >&6
  9895. else
  9896. ac_check_lib_save_LIBS=$LIBS
  9897. LIBS="-lsvld $LIBS"
  9898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9899. /* end confdefs.h. */
  9900. /* Override any GCC internal prototype to avoid an error.
  9901. Use char because int might match the return type of a GCC
  9902. builtin and then its argument prototype would still apply. */
  9903. #ifdef __cplusplus
  9904. extern "C"
  9905. #endif
  9906. char dlopen ();
  9907. int
  9908. main ()
  9909. {
  9910. return dlopen ();
  9911. ;
  9912. return 0;
  9913. }
  9914. _ACEOF
  9915. if ac_fn_c_try_link "$LINENO"; then :
  9916. ac_cv_lib_svld_dlopen=yes
  9917. else
  9918. ac_cv_lib_svld_dlopen=no
  9919. fi
  9920. rm -f core conftest.err conftest.$ac_objext \
  9921. conftest$ac_exeext conftest.$ac_ext
  9922. LIBS=$ac_check_lib_save_LIBS
  9923. fi
  9924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9925. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9926. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9927. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9928. else
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9930. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9931. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9932. $as_echo_n "(cached) " >&6
  9933. else
  9934. ac_check_lib_save_LIBS=$LIBS
  9935. LIBS="-ldld $LIBS"
  9936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9937. /* end confdefs.h. */
  9938. /* Override any GCC internal prototype to avoid an error.
  9939. Use char because int might match the return type of a GCC
  9940. builtin and then its argument prototype would still apply. */
  9941. #ifdef __cplusplus
  9942. extern "C"
  9943. #endif
  9944. char dld_link ();
  9945. int
  9946. main ()
  9947. {
  9948. return dld_link ();
  9949. ;
  9950. return 0;
  9951. }
  9952. _ACEOF
  9953. if ac_fn_c_try_link "$LINENO"; then :
  9954. ac_cv_lib_dld_dld_link=yes
  9955. else
  9956. ac_cv_lib_dld_dld_link=no
  9957. fi
  9958. rm -f core conftest.err conftest.$ac_objext \
  9959. conftest$ac_exeext conftest.$ac_ext
  9960. LIBS=$ac_check_lib_save_LIBS
  9961. fi
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9963. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9964. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9965. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9966. fi
  9967. fi
  9968. fi
  9969. fi
  9970. fi
  9971. fi
  9972. ;;
  9973. esac
  9974. if test "x$lt_cv_dlopen" != xno; then
  9975. enable_dlopen=yes
  9976. else
  9977. enable_dlopen=no
  9978. fi
  9979. case $lt_cv_dlopen in
  9980. dlopen)
  9981. save_CPPFLAGS="$CPPFLAGS"
  9982. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9983. save_LDFLAGS="$LDFLAGS"
  9984. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9985. save_LIBS="$LIBS"
  9986. LIBS="$lt_cv_dlopen_libs $LIBS"
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9988. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9989. if test "${lt_cv_dlopen_self+set}" = set; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. if test "$cross_compiling" = yes; then :
  9993. lt_cv_dlopen_self=cross
  9994. else
  9995. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9996. lt_status=$lt_dlunknown
  9997. cat > conftest.$ac_ext <<_LT_EOF
  9998. #line 11585 "configure"
  9999. #include "confdefs.h"
  10000. #if HAVE_DLFCN_H
  10001. #include <dlfcn.h>
  10002. #endif
  10003. #include <stdio.h>
  10004. #ifdef RTLD_GLOBAL
  10005. # define LT_DLGLOBAL RTLD_GLOBAL
  10006. #else
  10007. # ifdef DL_GLOBAL
  10008. # define LT_DLGLOBAL DL_GLOBAL
  10009. # else
  10010. # define LT_DLGLOBAL 0
  10011. # endif
  10012. #endif
  10013. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10014. find out it does not work in some platform. */
  10015. #ifndef LT_DLLAZY_OR_NOW
  10016. # ifdef RTLD_LAZY
  10017. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10018. # else
  10019. # ifdef DL_LAZY
  10020. # define LT_DLLAZY_OR_NOW DL_LAZY
  10021. # else
  10022. # ifdef RTLD_NOW
  10023. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10024. # else
  10025. # ifdef DL_NOW
  10026. # define LT_DLLAZY_OR_NOW DL_NOW
  10027. # else
  10028. # define LT_DLLAZY_OR_NOW 0
  10029. # endif
  10030. # endif
  10031. # endif
  10032. # endif
  10033. #endif
  10034. void fnord() { int i=42;}
  10035. int main ()
  10036. {
  10037. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10038. int status = $lt_dlunknown;
  10039. if (self)
  10040. {
  10041. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10042. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10043. /* dlclose (self); */
  10044. }
  10045. else
  10046. puts (dlerror ());
  10047. return status;
  10048. }
  10049. _LT_EOF
  10050. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10051. (eval $ac_link) 2>&5
  10052. ac_status=$?
  10053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10054. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10055. (./conftest; exit; ) >&5 2>/dev/null
  10056. lt_status=$?
  10057. case x$lt_status in
  10058. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10059. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10060. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10061. esac
  10062. else :
  10063. # compilation failed
  10064. lt_cv_dlopen_self=no
  10065. fi
  10066. fi
  10067. rm -fr conftest*
  10068. fi
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10070. $as_echo "$lt_cv_dlopen_self" >&6; }
  10071. if test "x$lt_cv_dlopen_self" = xyes; then
  10072. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10074. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10075. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10076. $as_echo_n "(cached) " >&6
  10077. else
  10078. if test "$cross_compiling" = yes; then :
  10079. lt_cv_dlopen_self_static=cross
  10080. else
  10081. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10082. lt_status=$lt_dlunknown
  10083. cat > conftest.$ac_ext <<_LT_EOF
  10084. #line 11681 "configure"
  10085. #include "confdefs.h"
  10086. #if HAVE_DLFCN_H
  10087. #include <dlfcn.h>
  10088. #endif
  10089. #include <stdio.h>
  10090. #ifdef RTLD_GLOBAL
  10091. # define LT_DLGLOBAL RTLD_GLOBAL
  10092. #else
  10093. # ifdef DL_GLOBAL
  10094. # define LT_DLGLOBAL DL_GLOBAL
  10095. # else
  10096. # define LT_DLGLOBAL 0
  10097. # endif
  10098. #endif
  10099. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10100. find out it does not work in some platform. */
  10101. #ifndef LT_DLLAZY_OR_NOW
  10102. # ifdef RTLD_LAZY
  10103. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10104. # else
  10105. # ifdef DL_LAZY
  10106. # define LT_DLLAZY_OR_NOW DL_LAZY
  10107. # else
  10108. # ifdef RTLD_NOW
  10109. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10110. # else
  10111. # ifdef DL_NOW
  10112. # define LT_DLLAZY_OR_NOW DL_NOW
  10113. # else
  10114. # define LT_DLLAZY_OR_NOW 0
  10115. # endif
  10116. # endif
  10117. # endif
  10118. # endif
  10119. #endif
  10120. void fnord() { int i=42;}
  10121. int main ()
  10122. {
  10123. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10124. int status = $lt_dlunknown;
  10125. if (self)
  10126. {
  10127. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10128. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10129. /* dlclose (self); */
  10130. }
  10131. else
  10132. puts (dlerror ());
  10133. return status;
  10134. }
  10135. _LT_EOF
  10136. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10137. (eval $ac_link) 2>&5
  10138. ac_status=$?
  10139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10140. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10141. (./conftest; exit; ) >&5 2>/dev/null
  10142. lt_status=$?
  10143. case x$lt_status in
  10144. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10145. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10146. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10147. esac
  10148. else :
  10149. # compilation failed
  10150. lt_cv_dlopen_self_static=no
  10151. fi
  10152. fi
  10153. rm -fr conftest*
  10154. fi
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10156. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10157. fi
  10158. CPPFLAGS="$save_CPPFLAGS"
  10159. LDFLAGS="$save_LDFLAGS"
  10160. LIBS="$save_LIBS"
  10161. ;;
  10162. esac
  10163. case $lt_cv_dlopen_self in
  10164. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10165. *) enable_dlopen_self=unknown ;;
  10166. esac
  10167. case $lt_cv_dlopen_self_static in
  10168. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10169. *) enable_dlopen_self_static=unknown ;;
  10170. esac
  10171. fi
  10172. striplib=
  10173. old_striplib=
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10175. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10176. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10177. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10178. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10180. $as_echo "yes" >&6; }
  10181. else
  10182. # FIXME - insert some real tests, host_os isn't really good enough
  10183. case $host_os in
  10184. darwin*)
  10185. if test -n "$STRIP" ; then
  10186. striplib="$STRIP -x"
  10187. old_striplib="$STRIP -S"
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10189. $as_echo "yes" >&6; }
  10190. else
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10192. $as_echo "no" >&6; }
  10193. fi
  10194. ;;
  10195. *)
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10197. $as_echo "no" >&6; }
  10198. ;;
  10199. esac
  10200. fi
  10201. # Report which library types will actually be built
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10203. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10205. $as_echo "$can_build_shared" >&6; }
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10207. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10208. test "$can_build_shared" = "no" && enable_shared=no
  10209. # On AIX, shared libraries and static libraries use the same namespace, and
  10210. # are all built from PIC.
  10211. case $host_os in
  10212. aix3*)
  10213. test "$enable_shared" = yes && enable_static=no
  10214. if test -n "$RANLIB"; then
  10215. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10216. postinstall_cmds='$RANLIB $lib'
  10217. fi
  10218. ;;
  10219. aix[4-9]*)
  10220. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10221. test "$enable_shared" = yes && enable_static=no
  10222. fi
  10223. ;;
  10224. esac
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10226. $as_echo "$enable_shared" >&6; }
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10228. $as_echo_n "checking whether to build static libraries... " >&6; }
  10229. # Make sure either enable_shared or enable_static is yes.
  10230. test "$enable_shared" = yes || enable_static=yes
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10232. $as_echo "$enable_static" >&6; }
  10233. fi
  10234. ac_ext=c
  10235. ac_cpp='$CPP $CPPFLAGS'
  10236. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10237. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10238. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10239. CC="$lt_save_CC"
  10240. ac_ext=cpp
  10241. ac_cpp='$CXXCPP $CPPFLAGS'
  10242. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10243. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10244. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10245. archive_cmds_need_lc_CXX=no
  10246. allow_undefined_flag_CXX=
  10247. always_export_symbols_CXX=no
  10248. archive_expsym_cmds_CXX=
  10249. compiler_needs_object_CXX=no
  10250. export_dynamic_flag_spec_CXX=
  10251. hardcode_direct_CXX=no
  10252. hardcode_direct_absolute_CXX=no
  10253. hardcode_libdir_flag_spec_CXX=
  10254. hardcode_libdir_flag_spec_ld_CXX=
  10255. hardcode_libdir_separator_CXX=
  10256. hardcode_minus_L_CXX=no
  10257. hardcode_shlibpath_var_CXX=unsupported
  10258. hardcode_automatic_CXX=no
  10259. inherit_rpath_CXX=no
  10260. module_cmds_CXX=
  10261. module_expsym_cmds_CXX=
  10262. link_all_deplibs_CXX=unknown
  10263. old_archive_cmds_CXX=$old_archive_cmds
  10264. no_undefined_flag_CXX=
  10265. whole_archive_flag_spec_CXX=
  10266. enable_shared_with_static_runtimes_CXX=no
  10267. # Source file extension for C++ test sources.
  10268. ac_ext=cpp
  10269. # Object file extension for compiled C++ test sources.
  10270. objext=o
  10271. objext_CXX=$objext
  10272. # No sense in running all these tests if we already determined that
  10273. # the CXX compiler isn't working. Some variables (like enable_shared)
  10274. # are currently assumed to apply to all compilers on this platform,
  10275. # and will be corrupted by setting them based on a non-working compiler.
  10276. if test "$_lt_caught_CXX_error" != yes; then
  10277. # Code to be used in simple compile tests
  10278. lt_simple_compile_test_code="int some_variable = 0;"
  10279. # Code to be used in simple link tests
  10280. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10281. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10282. # If no C compiler was specified, use CC.
  10283. LTCC=${LTCC-"$CC"}
  10284. # If no C compiler flags were specified, use CFLAGS.
  10285. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10286. # Allow CC to be a program name with arguments.
  10287. compiler=$CC
  10288. # save warnings/boilerplate of simple test code
  10289. ac_outfile=conftest.$ac_objext
  10290. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10291. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10292. _lt_compiler_boilerplate=`cat conftest.err`
  10293. $RM conftest*
  10294. ac_outfile=conftest.$ac_objext
  10295. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10296. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10297. _lt_linker_boilerplate=`cat conftest.err`
  10298. $RM -r conftest*
  10299. # Allow CC to be a program name with arguments.
  10300. lt_save_CC=$CC
  10301. lt_save_LD=$LD
  10302. lt_save_GCC=$GCC
  10303. GCC=$GXX
  10304. lt_save_with_gnu_ld=$with_gnu_ld
  10305. lt_save_path_LD=$lt_cv_path_LD
  10306. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10307. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10308. else
  10309. $as_unset lt_cv_prog_gnu_ld
  10310. fi
  10311. if test -n "${lt_cv_path_LDCXX+set}"; then
  10312. lt_cv_path_LD=$lt_cv_path_LDCXX
  10313. else
  10314. $as_unset lt_cv_path_LD
  10315. fi
  10316. test -z "${LDCXX+set}" || LD=$LDCXX
  10317. CC=${CXX-"c++"}
  10318. compiler=$CC
  10319. compiler_CXX=$CC
  10320. for cc_temp in $compiler""; do
  10321. case $cc_temp in
  10322. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10323. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10324. \-*) ;;
  10325. *) break;;
  10326. esac
  10327. done
  10328. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10329. if test -n "$compiler"; then
  10330. # We don't want -fno-exception when compiling C++ code, so set the
  10331. # no_builtin_flag separately
  10332. if test "$GXX" = yes; then
  10333. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10334. else
  10335. lt_prog_compiler_no_builtin_flag_CXX=
  10336. fi
  10337. if test "$GXX" = yes; then
  10338. # Set up default GNU C++ configuration
  10339. # Check whether --with-gnu-ld was given.
  10340. if test "${with_gnu_ld+set}" = set; then :
  10341. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10342. else
  10343. with_gnu_ld=no
  10344. fi
  10345. ac_prog=ld
  10346. if test "$GCC" = yes; then
  10347. # Check if gcc -print-prog-name=ld gives a path.
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10349. $as_echo_n "checking for ld used by $CC... " >&6; }
  10350. case $host in
  10351. *-*-mingw*)
  10352. # gcc leaves a trailing carriage return which upsets mingw
  10353. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10354. *)
  10355. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10356. esac
  10357. case $ac_prog in
  10358. # Accept absolute paths.
  10359. [\\/]* | ?:[\\/]*)
  10360. re_direlt='/[^/][^/]*/\.\./'
  10361. # Canonicalize the pathname of ld
  10362. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10363. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10364. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10365. done
  10366. test -z "$LD" && LD="$ac_prog"
  10367. ;;
  10368. "")
  10369. # If it fails, then pretend we aren't using GCC.
  10370. ac_prog=ld
  10371. ;;
  10372. *)
  10373. # If it is relative, then search for the first ld in PATH.
  10374. with_gnu_ld=unknown
  10375. ;;
  10376. esac
  10377. elif test "$with_gnu_ld" = yes; then
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10379. $as_echo_n "checking for GNU ld... " >&6; }
  10380. else
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10382. $as_echo_n "checking for non-GNU ld... " >&6; }
  10383. fi
  10384. if test "${lt_cv_path_LD+set}" = set; then :
  10385. $as_echo_n "(cached) " >&6
  10386. else
  10387. if test -z "$LD"; then
  10388. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10389. for ac_dir in $PATH; do
  10390. IFS="$lt_save_ifs"
  10391. test -z "$ac_dir" && ac_dir=.
  10392. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10393. lt_cv_path_LD="$ac_dir/$ac_prog"
  10394. # Check to see if the program is GNU ld. I'd rather use --version,
  10395. # but apparently some variants of GNU ld only accept -v.
  10396. # Break only if it was the GNU/non-GNU ld that we prefer.
  10397. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10398. *GNU* | *'with BFD'*)
  10399. test "$with_gnu_ld" != no && break
  10400. ;;
  10401. *)
  10402. test "$with_gnu_ld" != yes && break
  10403. ;;
  10404. esac
  10405. fi
  10406. done
  10407. IFS="$lt_save_ifs"
  10408. else
  10409. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10410. fi
  10411. fi
  10412. LD="$lt_cv_path_LD"
  10413. if test -n "$LD"; then
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10415. $as_echo "$LD" >&6; }
  10416. else
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10418. $as_echo "no" >&6; }
  10419. fi
  10420. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10422. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10423. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10424. $as_echo_n "(cached) " >&6
  10425. else
  10426. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10427. case `$LD -v 2>&1 </dev/null` in
  10428. *GNU* | *'with BFD'*)
  10429. lt_cv_prog_gnu_ld=yes
  10430. ;;
  10431. *)
  10432. lt_cv_prog_gnu_ld=no
  10433. ;;
  10434. esac
  10435. fi
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10437. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10438. with_gnu_ld=$lt_cv_prog_gnu_ld
  10439. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10440. # archiving commands below assume that GNU ld is being used.
  10441. if test "$with_gnu_ld" = yes; then
  10442. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10443. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10444. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10445. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10446. # If archive_cmds runs LD, not CC, wlarc should be empty
  10447. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10448. # investigate it a little bit more. (MM)
  10449. wlarc='${wl}'
  10450. # ancient GNU ld didn't support --whole-archive et. al.
  10451. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10452. $GREP 'no-whole-archive' > /dev/null; then
  10453. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10454. else
  10455. whole_archive_flag_spec_CXX=
  10456. fi
  10457. else
  10458. with_gnu_ld=no
  10459. wlarc=
  10460. # A generic and very simple default shared library creation
  10461. # command for GNU C++ for the case where it uses the native
  10462. # linker, instead of GNU ld. If possible, this setting should
  10463. # overridden to take advantage of the native linker features on
  10464. # the platform it is being used on.
  10465. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10466. fi
  10467. # Commands to make compiler produce verbose output that lists
  10468. # what "hidden" libraries, object files and flags are used when
  10469. # linking a shared library.
  10470. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10471. else
  10472. GXX=no
  10473. with_gnu_ld=no
  10474. wlarc=
  10475. fi
  10476. # PORTME: fill in a description of your system's C++ link characteristics
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10478. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10479. ld_shlibs_CXX=yes
  10480. case $host_os in
  10481. aix3*)
  10482. # FIXME: insert proper C++ library support
  10483. ld_shlibs_CXX=no
  10484. ;;
  10485. aix[4-9]*)
  10486. if test "$host_cpu" = ia64; then
  10487. # On IA64, the linker does run time linking by default, so we don't
  10488. # have to do anything special.
  10489. aix_use_runtimelinking=no
  10490. exp_sym_flag='-Bexport'
  10491. no_entry_flag=""
  10492. else
  10493. aix_use_runtimelinking=no
  10494. # Test if we are trying to use run time linking or normal
  10495. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10496. # need to do runtime linking.
  10497. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10498. for ld_flag in $LDFLAGS; do
  10499. case $ld_flag in
  10500. *-brtl*)
  10501. aix_use_runtimelinking=yes
  10502. break
  10503. ;;
  10504. esac
  10505. done
  10506. ;;
  10507. esac
  10508. exp_sym_flag='-bexport'
  10509. no_entry_flag='-bnoentry'
  10510. fi
  10511. # When large executables or shared objects are built, AIX ld can
  10512. # have problems creating the table of contents. If linking a library
  10513. # or program results in "error TOC overflow" add -mminimal-toc to
  10514. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10515. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10516. archive_cmds_CXX=''
  10517. hardcode_direct_CXX=yes
  10518. hardcode_direct_absolute_CXX=yes
  10519. hardcode_libdir_separator_CXX=':'
  10520. link_all_deplibs_CXX=yes
  10521. file_list_spec_CXX='${wl}-f,'
  10522. if test "$GXX" = yes; then
  10523. case $host_os in aix4.[012]|aix4.[012].*)
  10524. # We only want to do this on AIX 4.2 and lower, the check
  10525. # below for broken collect2 doesn't work under 4.3+
  10526. collect2name=`${CC} -print-prog-name=collect2`
  10527. if test -f "$collect2name" &&
  10528. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10529. then
  10530. # We have reworked collect2
  10531. :
  10532. else
  10533. # We have old collect2
  10534. hardcode_direct_CXX=unsupported
  10535. # It fails to find uninstalled libraries when the uninstalled
  10536. # path is not listed in the libpath. Setting hardcode_minus_L
  10537. # to unsupported forces relinking
  10538. hardcode_minus_L_CXX=yes
  10539. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10540. hardcode_libdir_separator_CXX=
  10541. fi
  10542. esac
  10543. shared_flag='-shared'
  10544. if test "$aix_use_runtimelinking" = yes; then
  10545. shared_flag="$shared_flag "'${wl}-G'
  10546. fi
  10547. else
  10548. # not using gcc
  10549. if test "$host_cpu" = ia64; then
  10550. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10551. # chokes on -Wl,-G. The following line is correct:
  10552. shared_flag='-G'
  10553. else
  10554. if test "$aix_use_runtimelinking" = yes; then
  10555. shared_flag='${wl}-G'
  10556. else
  10557. shared_flag='${wl}-bM:SRE'
  10558. fi
  10559. fi
  10560. fi
  10561. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10562. # It seems that -bexpall does not export symbols beginning with
  10563. # underscore (_), so it is better to generate a list of symbols to
  10564. # export.
  10565. always_export_symbols_CXX=yes
  10566. if test "$aix_use_runtimelinking" = yes; then
  10567. # Warning - without using the other runtime loading flags (-brtl),
  10568. # -berok will link without error, but may produce a broken library.
  10569. allow_undefined_flag_CXX='-berok'
  10570. # Determine the default libpath from the value encoded in an empty
  10571. # executable.
  10572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10573. /* end confdefs.h. */
  10574. int
  10575. main ()
  10576. {
  10577. ;
  10578. return 0;
  10579. }
  10580. _ACEOF
  10581. if ac_fn_cxx_try_link "$LINENO"; then :
  10582. lt_aix_libpath_sed='
  10583. /Import File Strings/,/^$/ {
  10584. /^0/ {
  10585. s/^0 *\(.*\)$/\1/
  10586. p
  10587. }
  10588. }'
  10589. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10590. # Check for a 64-bit object if we didn't find anything.
  10591. if test -z "$aix_libpath"; then
  10592. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10593. fi
  10594. fi
  10595. rm -f core conftest.err conftest.$ac_objext \
  10596. conftest$ac_exeext conftest.$ac_ext
  10597. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10598. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10599. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10600. else
  10601. if test "$host_cpu" = ia64; then
  10602. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10603. allow_undefined_flag_CXX="-z nodefs"
  10604. 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"
  10605. else
  10606. # Determine the default libpath from the value encoded in an
  10607. # empty executable.
  10608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10609. /* end confdefs.h. */
  10610. int
  10611. main ()
  10612. {
  10613. ;
  10614. return 0;
  10615. }
  10616. _ACEOF
  10617. if ac_fn_cxx_try_link "$LINENO"; then :
  10618. lt_aix_libpath_sed='
  10619. /Import File Strings/,/^$/ {
  10620. /^0/ {
  10621. s/^0 *\(.*\)$/\1/
  10622. p
  10623. }
  10624. }'
  10625. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10626. # Check for a 64-bit object if we didn't find anything.
  10627. if test -z "$aix_libpath"; then
  10628. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10629. fi
  10630. fi
  10631. rm -f core conftest.err conftest.$ac_objext \
  10632. conftest$ac_exeext conftest.$ac_ext
  10633. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10634. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10635. # Warning - without using the other run time loading flags,
  10636. # -berok will link without error, but may produce a broken library.
  10637. no_undefined_flag_CXX=' ${wl}-bernotok'
  10638. allow_undefined_flag_CXX=' ${wl}-berok'
  10639. # Exported symbols can be pulled into shared objects from archives
  10640. whole_archive_flag_spec_CXX='$convenience'
  10641. archive_cmds_need_lc_CXX=yes
  10642. # This is similar to how AIX traditionally builds its shared
  10643. # libraries.
  10644. 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'
  10645. fi
  10646. fi
  10647. ;;
  10648. beos*)
  10649. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10650. allow_undefined_flag_CXX=unsupported
  10651. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10652. # support --undefined. This deserves some investigation. FIXME
  10653. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10654. else
  10655. ld_shlibs_CXX=no
  10656. fi
  10657. ;;
  10658. chorus*)
  10659. case $cc_basename in
  10660. *)
  10661. # FIXME: insert proper C++ library support
  10662. ld_shlibs_CXX=no
  10663. ;;
  10664. esac
  10665. ;;
  10666. cygwin* | mingw* | pw32* | cegcc*)
  10667. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10668. # as there is no search path for DLLs.
  10669. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10670. allow_undefined_flag_CXX=unsupported
  10671. always_export_symbols_CXX=no
  10672. enable_shared_with_static_runtimes_CXX=yes
  10673. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10674. 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'
  10675. # If the export-symbols file already is a .def file (1st line
  10676. # is EXPORTS), use it as is; otherwise, prepend...
  10677. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10678. cp $export_symbols $output_objdir/$soname.def;
  10679. else
  10680. echo EXPORTS > $output_objdir/$soname.def;
  10681. cat $export_symbols >> $output_objdir/$soname.def;
  10682. fi~
  10683. $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'
  10684. else
  10685. ld_shlibs_CXX=no
  10686. fi
  10687. ;;
  10688. darwin* | rhapsody*)
  10689. archive_cmds_need_lc_CXX=no
  10690. hardcode_direct_CXX=no
  10691. hardcode_automatic_CXX=yes
  10692. hardcode_shlibpath_var_CXX=unsupported
  10693. whole_archive_flag_spec_CXX=''
  10694. link_all_deplibs_CXX=yes
  10695. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10696. case $cc_basename in
  10697. ifort*) _lt_dar_can_shared=yes ;;
  10698. *) _lt_dar_can_shared=$GCC ;;
  10699. esac
  10700. if test "$_lt_dar_can_shared" = "yes"; then
  10701. output_verbose_link_cmd=echo
  10702. 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}"
  10703. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10704. 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}"
  10705. 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}"
  10706. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10707. 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}"
  10708. 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}"
  10709. fi
  10710. else
  10711. ld_shlibs_CXX=no
  10712. fi
  10713. ;;
  10714. dgux*)
  10715. case $cc_basename in
  10716. ec++*)
  10717. # FIXME: insert proper C++ library support
  10718. ld_shlibs_CXX=no
  10719. ;;
  10720. ghcx*)
  10721. # Green Hills C++ Compiler
  10722. # FIXME: insert proper C++ library support
  10723. ld_shlibs_CXX=no
  10724. ;;
  10725. *)
  10726. # FIXME: insert proper C++ library support
  10727. ld_shlibs_CXX=no
  10728. ;;
  10729. esac
  10730. ;;
  10731. freebsd[12]*)
  10732. # C++ shared libraries reported to be fairly broken before
  10733. # switch to ELF
  10734. ld_shlibs_CXX=no
  10735. ;;
  10736. freebsd-elf*)
  10737. archive_cmds_need_lc_CXX=no
  10738. ;;
  10739. freebsd* | dragonfly*)
  10740. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10741. # conventions
  10742. ld_shlibs_CXX=yes
  10743. ;;
  10744. gnu*)
  10745. ;;
  10746. hpux9*)
  10747. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10748. hardcode_libdir_separator_CXX=:
  10749. export_dynamic_flag_spec_CXX='${wl}-E'
  10750. hardcode_direct_CXX=yes
  10751. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10752. # but as the default
  10753. # location of the library.
  10754. case $cc_basename in
  10755. CC*)
  10756. # FIXME: insert proper C++ library support
  10757. ld_shlibs_CXX=no
  10758. ;;
  10759. aCC*)
  10760. 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'
  10761. # Commands to make compiler produce verbose output that lists
  10762. # what "hidden" libraries, object files and flags are used when
  10763. # linking a shared library.
  10764. #
  10765. # There doesn't appear to be a way to prevent this compiler from
  10766. # explicitly linking system object files so we need to strip them
  10767. # from the output so that they don't get included in the library
  10768. # dependencies.
  10769. 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; $ECHO "X$list" | $Xsed'
  10770. ;;
  10771. *)
  10772. if test "$GXX" = yes; then
  10773. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10774. else
  10775. # FIXME: insert proper C++ library support
  10776. ld_shlibs_CXX=no
  10777. fi
  10778. ;;
  10779. esac
  10780. ;;
  10781. hpux10*|hpux11*)
  10782. if test $with_gnu_ld = no; then
  10783. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10784. hardcode_libdir_separator_CXX=:
  10785. case $host_cpu in
  10786. hppa*64*|ia64*)
  10787. ;;
  10788. *)
  10789. export_dynamic_flag_spec_CXX='${wl}-E'
  10790. ;;
  10791. esac
  10792. fi
  10793. case $host_cpu in
  10794. hppa*64*|ia64*)
  10795. hardcode_direct_CXX=no
  10796. hardcode_shlibpath_var_CXX=no
  10797. ;;
  10798. *)
  10799. hardcode_direct_CXX=yes
  10800. hardcode_direct_absolute_CXX=yes
  10801. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10802. # but as the default
  10803. # location of the library.
  10804. ;;
  10805. esac
  10806. case $cc_basename in
  10807. CC*)
  10808. # FIXME: insert proper C++ library support
  10809. ld_shlibs_CXX=no
  10810. ;;
  10811. aCC*)
  10812. case $host_cpu in
  10813. hppa*64*)
  10814. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10815. ;;
  10816. ia64*)
  10817. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10818. ;;
  10819. *)
  10820. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10821. ;;
  10822. esac
  10823. # Commands to make compiler produce verbose output that lists
  10824. # what "hidden" libraries, object files and flags are used when
  10825. # linking a shared library.
  10826. #
  10827. # There doesn't appear to be a way to prevent this compiler from
  10828. # explicitly linking system object files so we need to strip them
  10829. # from the output so that they don't get included in the library
  10830. # dependencies.
  10831. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10832. ;;
  10833. *)
  10834. if test "$GXX" = yes; then
  10835. if test $with_gnu_ld = no; then
  10836. case $host_cpu in
  10837. hppa*64*)
  10838. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10839. ;;
  10840. ia64*)
  10841. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10842. ;;
  10843. *)
  10844. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10845. ;;
  10846. esac
  10847. fi
  10848. else
  10849. # FIXME: insert proper C++ library support
  10850. ld_shlibs_CXX=no
  10851. fi
  10852. ;;
  10853. esac
  10854. ;;
  10855. interix[3-9]*)
  10856. hardcode_direct_CXX=no
  10857. hardcode_shlibpath_var_CXX=no
  10858. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10859. export_dynamic_flag_spec_CXX='${wl}-E'
  10860. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10861. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10862. # default) and relocated if they conflict, which is a slow very memory
  10863. # consuming and fragmenting process. To avoid this, we pick a random,
  10864. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10865. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10866. 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'
  10867. 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'
  10868. ;;
  10869. irix5* | irix6*)
  10870. case $cc_basename in
  10871. CC*)
  10872. # SGI C++
  10873. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10874. # Archives containing C++ object files must be created using
  10875. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10876. # necessary to make sure instantiated templates are included
  10877. # in the archive.
  10878. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10879. ;;
  10880. *)
  10881. if test "$GXX" = yes; then
  10882. if test "$with_gnu_ld" = no; then
  10883. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10884. else
  10885. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10886. fi
  10887. fi
  10888. link_all_deplibs_CXX=yes
  10889. ;;
  10890. esac
  10891. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10892. hardcode_libdir_separator_CXX=:
  10893. inherit_rpath_CXX=yes
  10894. ;;
  10895. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10896. case $cc_basename in
  10897. KCC*)
  10898. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10899. # KCC will only create a shared library if the output file
  10900. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10901. # to its proper name (with version) after linking.
  10902. 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'
  10903. 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'
  10904. # Commands to make compiler produce verbose output that lists
  10905. # what "hidden" libraries, object files and flags are used when
  10906. # linking a shared library.
  10907. #
  10908. # There doesn't appear to be a way to prevent this compiler from
  10909. # explicitly linking system object files so we need to strip them
  10910. # from the output so that they don't get included in the library
  10911. # dependencies.
  10912. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10913. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10914. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10915. # Archives containing C++ object files must be created using
  10916. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10917. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10918. ;;
  10919. icpc* | ecpc* )
  10920. # Intel C++
  10921. with_gnu_ld=yes
  10922. # version 8.0 and above of icpc choke on multiply defined symbols
  10923. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10924. # earlier do not add the objects themselves.
  10925. case `$CC -V 2>&1` in
  10926. *"Version 7."*)
  10927. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10928. 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'
  10929. ;;
  10930. *) # Version 8.0 or newer
  10931. tmp_idyn=
  10932. case $host_cpu in
  10933. ia64*) tmp_idyn=' -i_dynamic';;
  10934. esac
  10935. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10936. 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'
  10937. ;;
  10938. esac
  10939. archive_cmds_need_lc_CXX=no
  10940. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10941. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10942. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10943. ;;
  10944. pgCC* | pgcpp*)
  10945. # Portland Group C++ compiler
  10946. case `$CC -V` in
  10947. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10948. prelink_cmds_CXX='tpldir=Template.dir~
  10949. rm -rf $tpldir~
  10950. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10951. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10952. old_archive_cmds_CXX='tpldir=Template.dir~
  10953. rm -rf $tpldir~
  10954. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10955. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10956. $RANLIB $oldlib'
  10957. archive_cmds_CXX='tpldir=Template.dir~
  10958. rm -rf $tpldir~
  10959. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10960. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10961. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10962. rm -rf $tpldir~
  10963. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10964. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10965. ;;
  10966. *) # Version 6 will use weak symbols
  10967. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10968. 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'
  10969. ;;
  10970. esac
  10971. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10972. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10973. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10974. ;;
  10975. cxx*)
  10976. # Compaq C++
  10977. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10978. 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'
  10979. runpath_var=LD_RUN_PATH
  10980. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10981. hardcode_libdir_separator_CXX=:
  10982. # Commands to make compiler produce verbose output that lists
  10983. # what "hidden" libraries, object files and flags are used when
  10984. # linking a shared library.
  10985. #
  10986. # There doesn't appear to be a way to prevent this compiler from
  10987. # explicitly linking system object files so we need to strip them
  10988. # from the output so that they don't get included in the library
  10989. # dependencies.
  10990. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10991. ;;
  10992. xl*)
  10993. # IBM XL 8.0 on PPC, with GNU ld
  10994. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10995. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10996. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10997. if test "x$supports_anon_versioning" = xyes; then
  10998. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10999. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11000. echo "local: *; };" >> $output_objdir/$libname.ver~
  11001. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11002. fi
  11003. ;;
  11004. *)
  11005. case `$CC -V 2>&1 | sed 5q` in
  11006. *Sun\ C*)
  11007. # Sun C++ 5.9
  11008. no_undefined_flag_CXX=' -zdefs'
  11009. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11010. 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'
  11011. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11012. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11013. compiler_needs_object_CXX=yes
  11014. # Not sure whether something based on
  11015. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11016. # would be better.
  11017. output_verbose_link_cmd='echo'
  11018. # Archives containing C++ object files must be created using
  11019. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11020. # necessary to make sure instantiated templates are included
  11021. # in the archive.
  11022. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11023. ;;
  11024. esac
  11025. ;;
  11026. esac
  11027. ;;
  11028. lynxos*)
  11029. # FIXME: insert proper C++ library support
  11030. ld_shlibs_CXX=no
  11031. ;;
  11032. m88k*)
  11033. # FIXME: insert proper C++ library support
  11034. ld_shlibs_CXX=no
  11035. ;;
  11036. mvs*)
  11037. case $cc_basename in
  11038. cxx*)
  11039. # FIXME: insert proper C++ library support
  11040. ld_shlibs_CXX=no
  11041. ;;
  11042. *)
  11043. # FIXME: insert proper C++ library support
  11044. ld_shlibs_CXX=no
  11045. ;;
  11046. esac
  11047. ;;
  11048. netbsd*)
  11049. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11050. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11051. wlarc=
  11052. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11053. hardcode_direct_CXX=yes
  11054. hardcode_shlibpath_var_CXX=no
  11055. fi
  11056. # Workaround some broken pre-1.5 toolchains
  11057. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11058. ;;
  11059. *nto* | *qnx*)
  11060. ld_shlibs_CXX=yes
  11061. ;;
  11062. openbsd2*)
  11063. # C++ shared libraries are fairly broken
  11064. ld_shlibs_CXX=no
  11065. ;;
  11066. openbsd*)
  11067. if test -f /usr/libexec/ld.so; then
  11068. hardcode_direct_CXX=yes
  11069. hardcode_shlibpath_var_CXX=no
  11070. hardcode_direct_absolute_CXX=yes
  11071. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11072. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11073. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11074. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11075. export_dynamic_flag_spec_CXX='${wl}-E'
  11076. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11077. fi
  11078. output_verbose_link_cmd=echo
  11079. else
  11080. ld_shlibs_CXX=no
  11081. fi
  11082. ;;
  11083. osf3* | osf4* | osf5*)
  11084. case $cc_basename in
  11085. KCC*)
  11086. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11087. # KCC will only create a shared library if the output file
  11088. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11089. # to its proper name (with version) after linking.
  11090. 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'
  11091. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11092. hardcode_libdir_separator_CXX=:
  11093. # Archives containing C++ object files must be created using
  11094. # the KAI C++ compiler.
  11095. case $host in
  11096. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11097. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11098. esac
  11099. ;;
  11100. RCC*)
  11101. # Rational C++ 2.4.1
  11102. # FIXME: insert proper C++ library support
  11103. ld_shlibs_CXX=no
  11104. ;;
  11105. cxx*)
  11106. case $host in
  11107. osf3*)
  11108. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11109. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11110. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11111. ;;
  11112. *)
  11113. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11114. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11115. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11116. echo "-hidden">> $lib.exp~
  11117. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  11118. $RM $lib.exp'
  11119. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11120. ;;
  11121. esac
  11122. hardcode_libdir_separator_CXX=:
  11123. # Commands to make compiler produce verbose output that lists
  11124. # what "hidden" libraries, object files and flags are used when
  11125. # linking a shared library.
  11126. #
  11127. # There doesn't appear to be a way to prevent this compiler from
  11128. # explicitly linking system object files so we need to strip them
  11129. # from the output so that they don't get included in the library
  11130. # dependencies.
  11131. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11132. ;;
  11133. *)
  11134. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11135. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11136. case $host in
  11137. osf3*)
  11138. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11139. ;;
  11140. *)
  11141. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11142. ;;
  11143. esac
  11144. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11145. hardcode_libdir_separator_CXX=:
  11146. # Commands to make compiler produce verbose output that lists
  11147. # what "hidden" libraries, object files and flags are used when
  11148. # linking a shared library.
  11149. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11150. else
  11151. # FIXME: insert proper C++ library support
  11152. ld_shlibs_CXX=no
  11153. fi
  11154. ;;
  11155. esac
  11156. ;;
  11157. psos*)
  11158. # FIXME: insert proper C++ library support
  11159. ld_shlibs_CXX=no
  11160. ;;
  11161. sunos4*)
  11162. case $cc_basename in
  11163. CC*)
  11164. # Sun C++ 4.x
  11165. # FIXME: insert proper C++ library support
  11166. ld_shlibs_CXX=no
  11167. ;;
  11168. lcc*)
  11169. # Lucid
  11170. # FIXME: insert proper C++ library support
  11171. ld_shlibs_CXX=no
  11172. ;;
  11173. *)
  11174. # FIXME: insert proper C++ library support
  11175. ld_shlibs_CXX=no
  11176. ;;
  11177. esac
  11178. ;;
  11179. solaris*)
  11180. case $cc_basename in
  11181. CC*)
  11182. # Sun C++ 4.2, 5.x and Centerline C++
  11183. archive_cmds_need_lc_CXX=yes
  11184. no_undefined_flag_CXX=' -zdefs'
  11185. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11186. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11187. $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'
  11188. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11189. hardcode_shlibpath_var_CXX=no
  11190. case $host_os in
  11191. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11192. *)
  11193. # The compiler driver will combine and reorder linker options,
  11194. # but understands `-z linker_flag'.
  11195. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11196. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11197. ;;
  11198. esac
  11199. link_all_deplibs_CXX=yes
  11200. output_verbose_link_cmd='echo'
  11201. # Archives containing C++ object files must be created using
  11202. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11203. # necessary to make sure instantiated templates are included
  11204. # in the archive.
  11205. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11206. ;;
  11207. gcx*)
  11208. # Green Hills C++ Compiler
  11209. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11210. # The C++ compiler must be used to create the archive.
  11211. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11212. ;;
  11213. *)
  11214. # GNU C++ compiler with Solaris linker
  11215. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11216. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11217. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11218. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11219. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11220. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11221. # Commands to make compiler produce verbose output that lists
  11222. # what "hidden" libraries, object files and flags are used when
  11223. # linking a shared library.
  11224. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11225. else
  11226. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11227. # platform.
  11228. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11229. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11230. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11231. # Commands to make compiler produce verbose output that lists
  11232. # what "hidden" libraries, object files and flags are used when
  11233. # linking a shared library.
  11234. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11235. fi
  11236. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11237. case $host_os in
  11238. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11239. *)
  11240. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11241. ;;
  11242. esac
  11243. fi
  11244. ;;
  11245. esac
  11246. ;;
  11247. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11248. no_undefined_flag_CXX='${wl}-z,text'
  11249. archive_cmds_need_lc_CXX=no
  11250. hardcode_shlibpath_var_CXX=no
  11251. runpath_var='LD_RUN_PATH'
  11252. case $cc_basename in
  11253. CC*)
  11254. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11255. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11256. ;;
  11257. *)
  11258. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11259. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11260. ;;
  11261. esac
  11262. ;;
  11263. sysv5* | sco3.2v5* | sco5v6*)
  11264. # Note: We can NOT use -z defs as we might desire, because we do not
  11265. # link with -lc, and that would cause any symbols used from libc to
  11266. # always be unresolved, which means just about no library would
  11267. # ever link correctly. If we're not using GNU ld we use -z text
  11268. # though, which does catch some bad symbols but isn't as heavy-handed
  11269. # as -z defs.
  11270. no_undefined_flag_CXX='${wl}-z,text'
  11271. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11272. archive_cmds_need_lc_CXX=no
  11273. hardcode_shlibpath_var_CXX=no
  11274. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11275. hardcode_libdir_separator_CXX=':'
  11276. link_all_deplibs_CXX=yes
  11277. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11278. runpath_var='LD_RUN_PATH'
  11279. case $cc_basename in
  11280. CC*)
  11281. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11282. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11283. ;;
  11284. *)
  11285. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11286. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11287. ;;
  11288. esac
  11289. ;;
  11290. tandem*)
  11291. case $cc_basename in
  11292. NCC*)
  11293. # NonStop-UX NCC 3.20
  11294. # FIXME: insert proper C++ library support
  11295. ld_shlibs_CXX=no
  11296. ;;
  11297. *)
  11298. # FIXME: insert proper C++ library support
  11299. ld_shlibs_CXX=no
  11300. ;;
  11301. esac
  11302. ;;
  11303. vxworks*)
  11304. # FIXME: insert proper C++ library support
  11305. ld_shlibs_CXX=no
  11306. ;;
  11307. *)
  11308. # FIXME: insert proper C++ library support
  11309. ld_shlibs_CXX=no
  11310. ;;
  11311. esac
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11313. $as_echo "$ld_shlibs_CXX" >&6; }
  11314. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11315. GCC_CXX="$GXX"
  11316. LD_CXX="$LD"
  11317. ## CAVEAT EMPTOR:
  11318. ## There is no encapsulation within the following macros, do not change
  11319. ## the running order or otherwise move them around unless you know exactly
  11320. ## what you are doing...
  11321. # Dependencies to place before and after the object being linked:
  11322. predep_objects_CXX=
  11323. postdep_objects_CXX=
  11324. predeps_CXX=
  11325. postdeps_CXX=
  11326. compiler_lib_search_path_CXX=
  11327. cat > conftest.$ac_ext <<_LT_EOF
  11328. class Foo
  11329. {
  11330. public:
  11331. Foo (void) { a = 0; }
  11332. private:
  11333. int a;
  11334. };
  11335. _LT_EOF
  11336. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11337. (eval $ac_compile) 2>&5
  11338. ac_status=$?
  11339. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11340. test $ac_status = 0; }; then
  11341. # Parse the compiler output and extract the necessary
  11342. # objects, libraries and library flags.
  11343. # Sentinel used to keep track of whether or not we are before
  11344. # the conftest object file.
  11345. pre_test_object_deps_done=no
  11346. for p in `eval "$output_verbose_link_cmd"`; do
  11347. case $p in
  11348. -L* | -R* | -l*)
  11349. # Some compilers place space between "-{L,R}" and the path.
  11350. # Remove the space.
  11351. if test $p = "-L" ||
  11352. test $p = "-R"; then
  11353. prev=$p
  11354. continue
  11355. else
  11356. prev=
  11357. fi
  11358. if test "$pre_test_object_deps_done" = no; then
  11359. case $p in
  11360. -L* | -R*)
  11361. # Internal compiler library paths should come after those
  11362. # provided the user. The postdeps already come after the
  11363. # user supplied libs so there is no need to process them.
  11364. if test -z "$compiler_lib_search_path_CXX"; then
  11365. compiler_lib_search_path_CXX="${prev}${p}"
  11366. else
  11367. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11368. fi
  11369. ;;
  11370. # The "-l" case would never come before the object being
  11371. # linked, so don't bother handling this case.
  11372. esac
  11373. else
  11374. if test -z "$postdeps_CXX"; then
  11375. postdeps_CXX="${prev}${p}"
  11376. else
  11377. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11378. fi
  11379. fi
  11380. ;;
  11381. *.$objext)
  11382. # This assumes that the test object file only shows up
  11383. # once in the compiler output.
  11384. if test "$p" = "conftest.$objext"; then
  11385. pre_test_object_deps_done=yes
  11386. continue
  11387. fi
  11388. if test "$pre_test_object_deps_done" = no; then
  11389. if test -z "$predep_objects_CXX"; then
  11390. predep_objects_CXX="$p"
  11391. else
  11392. predep_objects_CXX="$predep_objects_CXX $p"
  11393. fi
  11394. else
  11395. if test -z "$postdep_objects_CXX"; then
  11396. postdep_objects_CXX="$p"
  11397. else
  11398. postdep_objects_CXX="$postdep_objects_CXX $p"
  11399. fi
  11400. fi
  11401. ;;
  11402. *) ;; # Ignore the rest.
  11403. esac
  11404. done
  11405. # Clean up.
  11406. rm -f a.out a.exe
  11407. else
  11408. echo "libtool.m4: error: problem compiling CXX test program"
  11409. fi
  11410. $RM -f confest.$objext
  11411. # PORTME: override above test on systems where it is broken
  11412. case $host_os in
  11413. interix[3-9]*)
  11414. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11415. # hack all around it, let's just trust "g++" to DTRT.
  11416. predep_objects_CXX=
  11417. postdep_objects_CXX=
  11418. postdeps_CXX=
  11419. ;;
  11420. linux*)
  11421. case `$CC -V 2>&1 | sed 5q` in
  11422. *Sun\ C*)
  11423. # Sun C++ 5.9
  11424. # The more standards-conforming stlport4 library is
  11425. # incompatible with the Cstd library. Avoid specifying
  11426. # it if it's in CXXFLAGS. Ignore libCrun as
  11427. # -library=stlport4 depends on it.
  11428. case " $CXX $CXXFLAGS " in
  11429. *" -library=stlport4 "*)
  11430. solaris_use_stlport4=yes
  11431. ;;
  11432. esac
  11433. if test "$solaris_use_stlport4" != yes; then
  11434. postdeps_CXX='-library=Cstd -library=Crun'
  11435. fi
  11436. ;;
  11437. esac
  11438. ;;
  11439. solaris*)
  11440. case $cc_basename in
  11441. CC*)
  11442. # The more standards-conforming stlport4 library is
  11443. # incompatible with the Cstd library. Avoid specifying
  11444. # it if it's in CXXFLAGS. Ignore libCrun as
  11445. # -library=stlport4 depends on it.
  11446. case " $CXX $CXXFLAGS " in
  11447. *" -library=stlport4 "*)
  11448. solaris_use_stlport4=yes
  11449. ;;
  11450. esac
  11451. # Adding this requires a known-good setup of shared libraries for
  11452. # Sun compiler versions before 5.6, else PIC objects from an old
  11453. # archive will be linked into the output, leading to subtle bugs.
  11454. if test "$solaris_use_stlport4" != yes; then
  11455. postdeps_CXX='-library=Cstd -library=Crun'
  11456. fi
  11457. ;;
  11458. esac
  11459. ;;
  11460. esac
  11461. case " $postdeps_CXX " in
  11462. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11463. esac
  11464. compiler_lib_search_dirs_CXX=
  11465. if test -n "${compiler_lib_search_path_CXX}"; then
  11466. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11467. fi
  11468. lt_prog_compiler_wl_CXX=
  11469. lt_prog_compiler_pic_CXX=
  11470. lt_prog_compiler_static_CXX=
  11471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11472. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11473. # C++ specific cases for pic, static, wl, etc.
  11474. if test "$GXX" = yes; then
  11475. lt_prog_compiler_wl_CXX='-Wl,'
  11476. lt_prog_compiler_static_CXX='-static'
  11477. case $host_os in
  11478. aix*)
  11479. # All AIX code is PIC.
  11480. if test "$host_cpu" = ia64; then
  11481. # AIX 5 now supports IA64 processor
  11482. lt_prog_compiler_static_CXX='-Bstatic'
  11483. fi
  11484. ;;
  11485. amigaos*)
  11486. case $host_cpu in
  11487. powerpc)
  11488. # see comment about AmigaOS4 .so support
  11489. lt_prog_compiler_pic_CXX='-fPIC'
  11490. ;;
  11491. m68k)
  11492. # FIXME: we need at least 68020 code to build shared libraries, but
  11493. # adding the `-m68020' flag to GCC prevents building anything better,
  11494. # like `-m68040'.
  11495. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11496. ;;
  11497. esac
  11498. ;;
  11499. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11500. # PIC is the default for these OSes.
  11501. ;;
  11502. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11503. # This hack is so that the source file can tell whether it is being
  11504. # built for inclusion in a dll (and should export symbols for example).
  11505. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11506. # (--disable-auto-import) libraries
  11507. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11508. ;;
  11509. darwin* | rhapsody*)
  11510. # PIC is the default on this platform
  11511. # Common symbols not allowed in MH_DYLIB files
  11512. lt_prog_compiler_pic_CXX='-fno-common'
  11513. ;;
  11514. *djgpp*)
  11515. # DJGPP does not support shared libraries at all
  11516. lt_prog_compiler_pic_CXX=
  11517. ;;
  11518. interix[3-9]*)
  11519. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11520. # Instead, we relocate shared libraries at runtime.
  11521. ;;
  11522. sysv4*MP*)
  11523. if test -d /usr/nec; then
  11524. lt_prog_compiler_pic_CXX=-Kconform_pic
  11525. fi
  11526. ;;
  11527. hpux*)
  11528. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11529. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11530. # sets the default TLS model and affects inlining.
  11531. case $host_cpu in
  11532. hppa*64*)
  11533. ;;
  11534. *)
  11535. lt_prog_compiler_pic_CXX='-fPIC'
  11536. ;;
  11537. esac
  11538. ;;
  11539. *qnx* | *nto*)
  11540. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11541. # it will coredump.
  11542. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11543. ;;
  11544. *)
  11545. lt_prog_compiler_pic_CXX='-fPIC'
  11546. ;;
  11547. esac
  11548. else
  11549. case $host_os in
  11550. aix[4-9]*)
  11551. # All AIX code is PIC.
  11552. if test "$host_cpu" = ia64; then
  11553. # AIX 5 now supports IA64 processor
  11554. lt_prog_compiler_static_CXX='-Bstatic'
  11555. else
  11556. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11557. fi
  11558. ;;
  11559. chorus*)
  11560. case $cc_basename in
  11561. cxch68*)
  11562. # Green Hills C++ Compiler
  11563. # _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"
  11564. ;;
  11565. esac
  11566. ;;
  11567. dgux*)
  11568. case $cc_basename in
  11569. ec++*)
  11570. lt_prog_compiler_pic_CXX='-KPIC'
  11571. ;;
  11572. ghcx*)
  11573. # Green Hills C++ Compiler
  11574. lt_prog_compiler_pic_CXX='-pic'
  11575. ;;
  11576. *)
  11577. ;;
  11578. esac
  11579. ;;
  11580. freebsd* | dragonfly*)
  11581. # FreeBSD uses GNU C++
  11582. ;;
  11583. hpux9* | hpux10* | hpux11*)
  11584. case $cc_basename in
  11585. CC*)
  11586. lt_prog_compiler_wl_CXX='-Wl,'
  11587. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11588. if test "$host_cpu" != ia64; then
  11589. lt_prog_compiler_pic_CXX='+Z'
  11590. fi
  11591. ;;
  11592. aCC*)
  11593. lt_prog_compiler_wl_CXX='-Wl,'
  11594. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11595. case $host_cpu in
  11596. hppa*64*|ia64*)
  11597. # +Z the default
  11598. ;;
  11599. *)
  11600. lt_prog_compiler_pic_CXX='+Z'
  11601. ;;
  11602. esac
  11603. ;;
  11604. *)
  11605. ;;
  11606. esac
  11607. ;;
  11608. interix*)
  11609. # This is c89, which is MS Visual C++ (no shared libs)
  11610. # Anyone wants to do a port?
  11611. ;;
  11612. irix5* | irix6* | nonstopux*)
  11613. case $cc_basename in
  11614. CC*)
  11615. lt_prog_compiler_wl_CXX='-Wl,'
  11616. lt_prog_compiler_static_CXX='-non_shared'
  11617. # CC pic flag -KPIC is the default.
  11618. ;;
  11619. *)
  11620. ;;
  11621. esac
  11622. ;;
  11623. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11624. case $cc_basename in
  11625. KCC*)
  11626. # KAI C++ Compiler
  11627. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11628. lt_prog_compiler_pic_CXX='-fPIC'
  11629. ;;
  11630. ecpc* )
  11631. # old Intel C++ for x86_64 which still supported -KPIC.
  11632. lt_prog_compiler_wl_CXX='-Wl,'
  11633. lt_prog_compiler_pic_CXX='-KPIC'
  11634. lt_prog_compiler_static_CXX='-static'
  11635. ;;
  11636. icpc* )
  11637. # Intel C++, used to be incompatible with GCC.
  11638. # ICC 10 doesn't accept -KPIC any more.
  11639. lt_prog_compiler_wl_CXX='-Wl,'
  11640. lt_prog_compiler_pic_CXX='-fPIC'
  11641. lt_prog_compiler_static_CXX='-static'
  11642. ;;
  11643. pgCC* | pgcpp*)
  11644. # Portland Group C++ compiler
  11645. lt_prog_compiler_wl_CXX='-Wl,'
  11646. lt_prog_compiler_pic_CXX='-fpic'
  11647. lt_prog_compiler_static_CXX='-Bstatic'
  11648. ;;
  11649. cxx*)
  11650. # Compaq C++
  11651. # Make sure the PIC flag is empty. It appears that all Alpha
  11652. # Linux and Compaq Tru64 Unix objects are PIC.
  11653. lt_prog_compiler_pic_CXX=
  11654. lt_prog_compiler_static_CXX='-non_shared'
  11655. ;;
  11656. xlc* | xlC*)
  11657. # IBM XL 8.0 on PPC
  11658. lt_prog_compiler_wl_CXX='-Wl,'
  11659. lt_prog_compiler_pic_CXX='-qpic'
  11660. lt_prog_compiler_static_CXX='-qstaticlink'
  11661. ;;
  11662. *)
  11663. case `$CC -V 2>&1 | sed 5q` in
  11664. *Sun\ C*)
  11665. # Sun C++ 5.9
  11666. lt_prog_compiler_pic_CXX='-KPIC'
  11667. lt_prog_compiler_static_CXX='-Bstatic'
  11668. lt_prog_compiler_wl_CXX='-Qoption ld '
  11669. ;;
  11670. esac
  11671. ;;
  11672. esac
  11673. ;;
  11674. lynxos*)
  11675. ;;
  11676. m88k*)
  11677. ;;
  11678. mvs*)
  11679. case $cc_basename in
  11680. cxx*)
  11681. lt_prog_compiler_pic_CXX='-W c,exportall'
  11682. ;;
  11683. *)
  11684. ;;
  11685. esac
  11686. ;;
  11687. netbsd* | netbsdelf*-gnu)
  11688. ;;
  11689. *qnx* | *nto*)
  11690. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11691. # it will coredump.
  11692. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11693. ;;
  11694. osf3* | osf4* | osf5*)
  11695. case $cc_basename in
  11696. KCC*)
  11697. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11698. ;;
  11699. RCC*)
  11700. # Rational C++ 2.4.1
  11701. lt_prog_compiler_pic_CXX='-pic'
  11702. ;;
  11703. cxx*)
  11704. # Digital/Compaq C++
  11705. lt_prog_compiler_wl_CXX='-Wl,'
  11706. # Make sure the PIC flag is empty. It appears that all Alpha
  11707. # Linux and Compaq Tru64 Unix objects are PIC.
  11708. lt_prog_compiler_pic_CXX=
  11709. lt_prog_compiler_static_CXX='-non_shared'
  11710. ;;
  11711. *)
  11712. ;;
  11713. esac
  11714. ;;
  11715. psos*)
  11716. ;;
  11717. solaris*)
  11718. case $cc_basename in
  11719. CC*)
  11720. # Sun C++ 4.2, 5.x and Centerline C++
  11721. lt_prog_compiler_pic_CXX='-KPIC'
  11722. lt_prog_compiler_static_CXX='-Bstatic'
  11723. lt_prog_compiler_wl_CXX='-Qoption ld '
  11724. ;;
  11725. gcx*)
  11726. # Green Hills C++ Compiler
  11727. lt_prog_compiler_pic_CXX='-PIC'
  11728. ;;
  11729. *)
  11730. ;;
  11731. esac
  11732. ;;
  11733. sunos4*)
  11734. case $cc_basename in
  11735. CC*)
  11736. # Sun C++ 4.x
  11737. lt_prog_compiler_pic_CXX='-pic'
  11738. lt_prog_compiler_static_CXX='-Bstatic'
  11739. ;;
  11740. lcc*)
  11741. # Lucid
  11742. lt_prog_compiler_pic_CXX='-pic'
  11743. ;;
  11744. *)
  11745. ;;
  11746. esac
  11747. ;;
  11748. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11749. case $cc_basename in
  11750. CC*)
  11751. lt_prog_compiler_wl_CXX='-Wl,'
  11752. lt_prog_compiler_pic_CXX='-KPIC'
  11753. lt_prog_compiler_static_CXX='-Bstatic'
  11754. ;;
  11755. esac
  11756. ;;
  11757. tandem*)
  11758. case $cc_basename in
  11759. NCC*)
  11760. # NonStop-UX NCC 3.20
  11761. lt_prog_compiler_pic_CXX='-KPIC'
  11762. ;;
  11763. *)
  11764. ;;
  11765. esac
  11766. ;;
  11767. vxworks*)
  11768. ;;
  11769. *)
  11770. lt_prog_compiler_can_build_shared_CXX=no
  11771. ;;
  11772. esac
  11773. fi
  11774. case $host_os in
  11775. # For platforms which do not support PIC, -DPIC is meaningless:
  11776. *djgpp*)
  11777. lt_prog_compiler_pic_CXX=
  11778. ;;
  11779. *)
  11780. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11781. ;;
  11782. esac
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11784. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11785. #
  11786. # Check to make sure the PIC flag actually works.
  11787. #
  11788. if test -n "$lt_prog_compiler_pic_CXX"; then
  11789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11790. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11791. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11792. $as_echo_n "(cached) " >&6
  11793. else
  11794. lt_cv_prog_compiler_pic_works_CXX=no
  11795. ac_outfile=conftest.$ac_objext
  11796. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11797. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11798. # Insert the option either (1) after the last *FLAGS variable, or
  11799. # (2) before a word containing "conftest.", or (3) at the end.
  11800. # Note that $ac_compile itself does not contain backslashes and begins
  11801. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11802. # The option is referenced via a variable to avoid confusing sed.
  11803. lt_compile=`echo "$ac_compile" | $SED \
  11804. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11805. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11806. -e 's:$: $lt_compiler_flag:'`
  11807. (eval echo "\"\$as_me:13637: $lt_compile\"" >&5)
  11808. (eval "$lt_compile" 2>conftest.err)
  11809. ac_status=$?
  11810. cat conftest.err >&5
  11811. echo "$as_me:13641: \$? = $ac_status" >&5
  11812. if (exit $ac_status) && test -s "$ac_outfile"; then
  11813. # The compiler can only warn and ignore the option if not recognized
  11814. # So say no if there are warnings other than the usual output.
  11815. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11816. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11817. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11818. lt_cv_prog_compiler_pic_works_CXX=yes
  11819. fi
  11820. fi
  11821. $RM conftest*
  11822. fi
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11824. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11825. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11826. case $lt_prog_compiler_pic_CXX in
  11827. "" | " "*) ;;
  11828. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11829. esac
  11830. else
  11831. lt_prog_compiler_pic_CXX=
  11832. lt_prog_compiler_can_build_shared_CXX=no
  11833. fi
  11834. fi
  11835. #
  11836. # Check to make sure the static flag actually works.
  11837. #
  11838. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11840. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11841. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11842. $as_echo_n "(cached) " >&6
  11843. else
  11844. lt_cv_prog_compiler_static_works_CXX=no
  11845. save_LDFLAGS="$LDFLAGS"
  11846. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11847. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11848. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11849. # The linker can only warn and ignore the option if not recognized
  11850. # So say no if there are warnings
  11851. if test -s conftest.err; then
  11852. # Append any errors to the config.log.
  11853. cat conftest.err 1>&5
  11854. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11855. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11856. if diff conftest.exp conftest.er2 >/dev/null; then
  11857. lt_cv_prog_compiler_static_works_CXX=yes
  11858. fi
  11859. else
  11860. lt_cv_prog_compiler_static_works_CXX=yes
  11861. fi
  11862. fi
  11863. $RM -r conftest*
  11864. LDFLAGS="$save_LDFLAGS"
  11865. fi
  11866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11867. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11868. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11869. :
  11870. else
  11871. lt_prog_compiler_static_CXX=
  11872. fi
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11874. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11875. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11876. $as_echo_n "(cached) " >&6
  11877. else
  11878. lt_cv_prog_compiler_c_o_CXX=no
  11879. $RM -r conftest 2>/dev/null
  11880. mkdir conftest
  11881. cd conftest
  11882. mkdir out
  11883. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11884. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11885. # Insert the option either (1) after the last *FLAGS variable, or
  11886. # (2) before a word containing "conftest.", or (3) at the end.
  11887. # Note that $ac_compile itself does not contain backslashes and begins
  11888. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11889. lt_compile=`echo "$ac_compile" | $SED \
  11890. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11891. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11892. -e 's:$: $lt_compiler_flag:'`
  11893. (eval echo "\"\$as_me:13736: $lt_compile\"" >&5)
  11894. (eval "$lt_compile" 2>out/conftest.err)
  11895. ac_status=$?
  11896. cat out/conftest.err >&5
  11897. echo "$as_me:13740: \$? = $ac_status" >&5
  11898. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11899. then
  11900. # The compiler can only warn and ignore the option if not recognized
  11901. # So say no if there are warnings
  11902. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11903. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11904. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11905. lt_cv_prog_compiler_c_o_CXX=yes
  11906. fi
  11907. fi
  11908. chmod u+w . 2>&5
  11909. $RM conftest*
  11910. # SGI C++ compiler will create directory out/ii_files/ for
  11911. # template instantiation
  11912. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11913. $RM out/* && rmdir out
  11914. cd ..
  11915. $RM -r conftest
  11916. $RM conftest*
  11917. fi
  11918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11919. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11921. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11922. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11923. $as_echo_n "(cached) " >&6
  11924. else
  11925. lt_cv_prog_compiler_c_o_CXX=no
  11926. $RM -r conftest 2>/dev/null
  11927. mkdir conftest
  11928. cd conftest
  11929. mkdir out
  11930. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11931. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11932. # Insert the option either (1) after the last *FLAGS variable, or
  11933. # (2) before a word containing "conftest.", or (3) at the end.
  11934. # Note that $ac_compile itself does not contain backslashes and begins
  11935. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11936. lt_compile=`echo "$ac_compile" | $SED \
  11937. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11938. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11939. -e 's:$: $lt_compiler_flag:'`
  11940. (eval echo "\"\$as_me:13788: $lt_compile\"" >&5)
  11941. (eval "$lt_compile" 2>out/conftest.err)
  11942. ac_status=$?
  11943. cat out/conftest.err >&5
  11944. echo "$as_me:13792: \$? = $ac_status" >&5
  11945. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11946. then
  11947. # The compiler can only warn and ignore the option if not recognized
  11948. # So say no if there are warnings
  11949. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11950. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11951. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11952. lt_cv_prog_compiler_c_o_CXX=yes
  11953. fi
  11954. fi
  11955. chmod u+w . 2>&5
  11956. $RM conftest*
  11957. # SGI C++ compiler will create directory out/ii_files/ for
  11958. # template instantiation
  11959. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11960. $RM out/* && rmdir out
  11961. cd ..
  11962. $RM -r conftest
  11963. $RM conftest*
  11964. fi
  11965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11966. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11967. hard_links="nottested"
  11968. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11969. # do not overwrite the value of need_locks provided by the user
  11970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11971. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11972. hard_links=yes
  11973. $RM conftest*
  11974. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11975. touch conftest.a
  11976. ln conftest.a conftest.b 2>&5 || hard_links=no
  11977. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11979. $as_echo "$hard_links" >&6; }
  11980. if test "$hard_links" = no; then
  11981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11982. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11983. need_locks=warn
  11984. fi
  11985. else
  11986. need_locks=no
  11987. fi
  11988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11989. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11990. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11991. case $host_os in
  11992. aix[4-9]*)
  11993. # If we're using GNU nm, then we don't want the "-C" option.
  11994. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11995. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11996. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11997. else
  11998. 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'
  11999. fi
  12000. ;;
  12001. pw32*)
  12002. export_symbols_cmds_CXX="$ltdll_cmds"
  12003. ;;
  12004. cygwin* | mingw* | cegcc*)
  12005. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12006. ;;
  12007. linux* | k*bsd*-gnu)
  12008. link_all_deplibs_CXX=no
  12009. ;;
  12010. *)
  12011. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12012. ;;
  12013. esac
  12014. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12016. $as_echo "$ld_shlibs_CXX" >&6; }
  12017. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12018. with_gnu_ld_CXX=$with_gnu_ld
  12019. #
  12020. # Do we need to explicitly link libc?
  12021. #
  12022. case "x$archive_cmds_need_lc_CXX" in
  12023. x|xyes)
  12024. # Assume -lc should be added
  12025. archive_cmds_need_lc_CXX=yes
  12026. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12027. case $archive_cmds_CXX in
  12028. *'~'*)
  12029. # FIXME: we may have to deal with multi-command sequences.
  12030. ;;
  12031. '$CC '*)
  12032. # Test whether the compiler implicitly links with -lc since on some
  12033. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12034. # to ld, don't add -lc before -lgcc.
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12036. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12037. $RM conftest*
  12038. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12039. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12040. (eval $ac_compile) 2>&5
  12041. ac_status=$?
  12042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12043. test $ac_status = 0; } 2>conftest.err; then
  12044. soname=conftest
  12045. lib=conftest
  12046. libobjs=conftest.$ac_objext
  12047. deplibs=
  12048. wl=$lt_prog_compiler_wl_CXX
  12049. pic_flag=$lt_prog_compiler_pic_CXX
  12050. compiler_flags=-v
  12051. linker_flags=-v
  12052. verstring=
  12053. output_objdir=.
  12054. libname=conftest
  12055. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12056. allow_undefined_flag_CXX=
  12057. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12058. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12059. ac_status=$?
  12060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12061. test $ac_status = 0; }
  12062. then
  12063. archive_cmds_need_lc_CXX=no
  12064. else
  12065. archive_cmds_need_lc_CXX=yes
  12066. fi
  12067. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12068. else
  12069. cat conftest.err 1>&5
  12070. fi
  12071. $RM conftest*
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  12073. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12074. ;;
  12075. esac
  12076. fi
  12077. ;;
  12078. esac
  12079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12080. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12081. library_names_spec=
  12082. libname_spec='lib$name'
  12083. soname_spec=
  12084. shrext_cmds=".so"
  12085. postinstall_cmds=
  12086. postuninstall_cmds=
  12087. finish_cmds=
  12088. finish_eval=
  12089. shlibpath_var=
  12090. shlibpath_overrides_runpath=unknown
  12091. version_type=none
  12092. dynamic_linker="$host_os ld.so"
  12093. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12094. need_lib_prefix=unknown
  12095. hardcode_into_libs=no
  12096. # when you set need_version to no, make sure it does not cause -set_version
  12097. # flags to be left without arguments
  12098. need_version=unknown
  12099. case $host_os in
  12100. aix3*)
  12101. version_type=linux
  12102. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12103. shlibpath_var=LIBPATH
  12104. # AIX 3 has no versioning support, so we append a major version to the name.
  12105. soname_spec='${libname}${release}${shared_ext}$major'
  12106. ;;
  12107. aix[4-9]*)
  12108. version_type=linux
  12109. need_lib_prefix=no
  12110. need_version=no
  12111. hardcode_into_libs=yes
  12112. if test "$host_cpu" = ia64; then
  12113. # AIX 5 supports IA64
  12114. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12115. shlibpath_var=LD_LIBRARY_PATH
  12116. else
  12117. # With GCC up to 2.95.x, collect2 would create an import file
  12118. # for dependence libraries. The import file would start with
  12119. # the line `#! .'. This would cause the generated library to
  12120. # depend on `.', always an invalid library. This was fixed in
  12121. # development snapshots of GCC prior to 3.0.
  12122. case $host_os in
  12123. aix4 | aix4.[01] | aix4.[01].*)
  12124. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12125. echo ' yes '
  12126. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12127. :
  12128. else
  12129. can_build_shared=no
  12130. fi
  12131. ;;
  12132. esac
  12133. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12134. # soname into executable. Probably we can add versioning support to
  12135. # collect2, so additional links can be useful in future.
  12136. if test "$aix_use_runtimelinking" = yes; then
  12137. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12138. # instead of lib<name>.a to let people know that these are not
  12139. # typical AIX shared libraries.
  12140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12141. else
  12142. # We preserve .a as extension for shared libraries through AIX4.2
  12143. # and later when we are not doing run time linking.
  12144. library_names_spec='${libname}${release}.a $libname.a'
  12145. soname_spec='${libname}${release}${shared_ext}$major'
  12146. fi
  12147. shlibpath_var=LIBPATH
  12148. fi
  12149. ;;
  12150. amigaos*)
  12151. case $host_cpu in
  12152. powerpc)
  12153. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12154. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12156. ;;
  12157. m68k)
  12158. library_names_spec='$libname.ixlibrary $libname.a'
  12159. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12160. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12161. ;;
  12162. esac
  12163. ;;
  12164. beos*)
  12165. library_names_spec='${libname}${shared_ext}'
  12166. dynamic_linker="$host_os ld.so"
  12167. shlibpath_var=LIBRARY_PATH
  12168. ;;
  12169. bsdi[45]*)
  12170. version_type=linux
  12171. need_version=no
  12172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12173. soname_spec='${libname}${release}${shared_ext}$major'
  12174. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12175. shlibpath_var=LD_LIBRARY_PATH
  12176. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12177. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12178. # the default ld.so.conf also contains /usr/contrib/lib and
  12179. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12180. # libtool to hard-code these into programs
  12181. ;;
  12182. cygwin* | mingw* | pw32* | cegcc*)
  12183. version_type=windows
  12184. shrext_cmds=".dll"
  12185. need_version=no
  12186. need_lib_prefix=no
  12187. case $GCC,$host_os in
  12188. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12189. library_names_spec='$libname.dll.a'
  12190. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12191. postinstall_cmds='base_file=`basename \${file}`~
  12192. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12193. dldir=$destdir/`dirname \$dlpath`~
  12194. test -d \$dldir || mkdir -p \$dldir~
  12195. $install_prog $dir/$dlname \$dldir/$dlname~
  12196. chmod a+x \$dldir/$dlname~
  12197. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12198. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12199. fi'
  12200. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12201. dlpath=$dir/\$dldll~
  12202. $RM \$dlpath'
  12203. shlibpath_overrides_runpath=yes
  12204. case $host_os in
  12205. cygwin*)
  12206. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12207. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12208. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12209. ;;
  12210. mingw* | cegcc*)
  12211. # MinGW DLLs use traditional 'lib' prefix
  12212. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12213. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12214. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12215. # It is most probably a Windows format PATH printed by
  12216. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12217. # path with ; separators, and with drive letters. We can handle the
  12218. # drive letters (cygwin fileutils understands them), so leave them,
  12219. # especially as we might pass files found there to a mingw objdump,
  12220. # which wouldn't understand a cygwinified path. Ahh.
  12221. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12222. else
  12223. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12224. fi
  12225. ;;
  12226. pw32*)
  12227. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12228. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12229. ;;
  12230. esac
  12231. ;;
  12232. *)
  12233. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12234. ;;
  12235. esac
  12236. dynamic_linker='Win32 ld.exe'
  12237. # FIXME: first we should search . and the directory the executable is in
  12238. shlibpath_var=PATH
  12239. ;;
  12240. darwin* | rhapsody*)
  12241. dynamic_linker="$host_os dyld"
  12242. version_type=darwin
  12243. need_lib_prefix=no
  12244. need_version=no
  12245. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12246. soname_spec='${libname}${release}${major}$shared_ext'
  12247. shlibpath_overrides_runpath=yes
  12248. shlibpath_var=DYLD_LIBRARY_PATH
  12249. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12250. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12251. ;;
  12252. dgux*)
  12253. version_type=linux
  12254. need_lib_prefix=no
  12255. need_version=no
  12256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12257. soname_spec='${libname}${release}${shared_ext}$major'
  12258. shlibpath_var=LD_LIBRARY_PATH
  12259. ;;
  12260. freebsd1*)
  12261. dynamic_linker=no
  12262. ;;
  12263. freebsd* | dragonfly*)
  12264. # DragonFly does not have aout. When/if they implement a new
  12265. # versioning mechanism, adjust this.
  12266. if test -x /usr/bin/objformat; then
  12267. objformat=`/usr/bin/objformat`
  12268. else
  12269. case $host_os in
  12270. freebsd[123]*) objformat=aout ;;
  12271. *) objformat=elf ;;
  12272. esac
  12273. fi
  12274. version_type=freebsd-$objformat
  12275. case $version_type in
  12276. freebsd-elf*)
  12277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12278. need_version=no
  12279. need_lib_prefix=no
  12280. ;;
  12281. freebsd-*)
  12282. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12283. need_version=yes
  12284. ;;
  12285. esac
  12286. shlibpath_var=LD_LIBRARY_PATH
  12287. case $host_os in
  12288. freebsd2*)
  12289. shlibpath_overrides_runpath=yes
  12290. ;;
  12291. freebsd3.[01]* | freebsdelf3.[01]*)
  12292. shlibpath_overrides_runpath=yes
  12293. hardcode_into_libs=yes
  12294. ;;
  12295. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12296. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12297. shlibpath_overrides_runpath=no
  12298. hardcode_into_libs=yes
  12299. ;;
  12300. *) # from 4.6 on, and DragonFly
  12301. shlibpath_overrides_runpath=yes
  12302. hardcode_into_libs=yes
  12303. ;;
  12304. esac
  12305. ;;
  12306. gnu*)
  12307. version_type=linux
  12308. need_lib_prefix=no
  12309. need_version=no
  12310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12311. soname_spec='${libname}${release}${shared_ext}$major'
  12312. shlibpath_var=LD_LIBRARY_PATH
  12313. hardcode_into_libs=yes
  12314. ;;
  12315. hpux9* | hpux10* | hpux11*)
  12316. # Give a soname corresponding to the major version so that dld.sl refuses to
  12317. # link against other versions.
  12318. version_type=sunos
  12319. need_lib_prefix=no
  12320. need_version=no
  12321. case $host_cpu in
  12322. ia64*)
  12323. shrext_cmds='.so'
  12324. hardcode_into_libs=yes
  12325. dynamic_linker="$host_os dld.so"
  12326. shlibpath_var=LD_LIBRARY_PATH
  12327. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12329. soname_spec='${libname}${release}${shared_ext}$major'
  12330. if test "X$HPUX_IA64_MODE" = X32; then
  12331. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12332. else
  12333. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12334. fi
  12335. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12336. ;;
  12337. hppa*64*)
  12338. shrext_cmds='.sl'
  12339. hardcode_into_libs=yes
  12340. dynamic_linker="$host_os dld.sl"
  12341. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12342. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12344. soname_spec='${libname}${release}${shared_ext}$major'
  12345. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12346. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12347. ;;
  12348. *)
  12349. shrext_cmds='.sl'
  12350. dynamic_linker="$host_os dld.sl"
  12351. shlibpath_var=SHLIB_PATH
  12352. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12354. soname_spec='${libname}${release}${shared_ext}$major'
  12355. ;;
  12356. esac
  12357. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12358. postinstall_cmds='chmod 555 $lib'
  12359. ;;
  12360. interix[3-9]*)
  12361. version_type=linux
  12362. need_lib_prefix=no
  12363. need_version=no
  12364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12365. soname_spec='${libname}${release}${shared_ext}$major'
  12366. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12367. shlibpath_var=LD_LIBRARY_PATH
  12368. shlibpath_overrides_runpath=no
  12369. hardcode_into_libs=yes
  12370. ;;
  12371. irix5* | irix6* | nonstopux*)
  12372. case $host_os in
  12373. nonstopux*) version_type=nonstopux ;;
  12374. *)
  12375. if test "$lt_cv_prog_gnu_ld" = yes; then
  12376. version_type=linux
  12377. else
  12378. version_type=irix
  12379. fi ;;
  12380. esac
  12381. need_lib_prefix=no
  12382. need_version=no
  12383. soname_spec='${libname}${release}${shared_ext}$major'
  12384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12385. case $host_os in
  12386. irix5* | nonstopux*)
  12387. libsuff= shlibsuff=
  12388. ;;
  12389. *)
  12390. case $LD in # libtool.m4 will add one of these switches to LD
  12391. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12392. libsuff= shlibsuff= libmagic=32-bit;;
  12393. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12394. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12395. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12396. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12397. *) libsuff= shlibsuff= libmagic=never-match;;
  12398. esac
  12399. ;;
  12400. esac
  12401. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12402. shlibpath_overrides_runpath=no
  12403. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12404. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12405. hardcode_into_libs=yes
  12406. ;;
  12407. # No shared lib support for Linux oldld, aout, or coff.
  12408. linux*oldld* | linux*aout* | linux*coff*)
  12409. dynamic_linker=no
  12410. ;;
  12411. # This must be Linux ELF.
  12412. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12413. version_type=linux
  12414. need_lib_prefix=no
  12415. need_version=no
  12416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12417. soname_spec='${libname}${release}${shared_ext}$major'
  12418. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12419. shlibpath_var=LD_LIBRARY_PATH
  12420. shlibpath_overrides_runpath=no
  12421. # Some binutils ld are patched to set DT_RUNPATH
  12422. save_LDFLAGS=$LDFLAGS
  12423. save_libdir=$libdir
  12424. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12425. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12427. /* end confdefs.h. */
  12428. int
  12429. main ()
  12430. {
  12431. ;
  12432. return 0;
  12433. }
  12434. _ACEOF
  12435. if ac_fn_cxx_try_link "$LINENO"; then :
  12436. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12437. shlibpath_overrides_runpath=yes
  12438. fi
  12439. fi
  12440. rm -f core conftest.err conftest.$ac_objext \
  12441. conftest$ac_exeext conftest.$ac_ext
  12442. LDFLAGS=$save_LDFLAGS
  12443. libdir=$save_libdir
  12444. # This implies no fast_install, which is unacceptable.
  12445. # Some rework will be needed to allow for fast_install
  12446. # before this can be enabled.
  12447. hardcode_into_libs=yes
  12448. # Append ld.so.conf contents to the search path
  12449. if test -f /etc/ld.so.conf; then
  12450. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12451. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12452. fi
  12453. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12454. # powerpc, because MkLinux only supported shared libraries with the
  12455. # GNU dynamic linker. Since this was broken with cross compilers,
  12456. # most powerpc-linux boxes support dynamic linking these days and
  12457. # people can always --disable-shared, the test was removed, and we
  12458. # assume the GNU/Linux dynamic linker is in use.
  12459. dynamic_linker='GNU/Linux ld.so'
  12460. ;;
  12461. netbsdelf*-gnu)
  12462. version_type=linux
  12463. need_lib_prefix=no
  12464. need_version=no
  12465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12466. soname_spec='${libname}${release}${shared_ext}$major'
  12467. shlibpath_var=LD_LIBRARY_PATH
  12468. shlibpath_overrides_runpath=no
  12469. hardcode_into_libs=yes
  12470. dynamic_linker='NetBSD ld.elf_so'
  12471. ;;
  12472. netbsd*)
  12473. version_type=sunos
  12474. need_lib_prefix=no
  12475. need_version=no
  12476. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12478. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12479. dynamic_linker='NetBSD (a.out) ld.so'
  12480. else
  12481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12482. soname_spec='${libname}${release}${shared_ext}$major'
  12483. dynamic_linker='NetBSD ld.elf_so'
  12484. fi
  12485. shlibpath_var=LD_LIBRARY_PATH
  12486. shlibpath_overrides_runpath=yes
  12487. hardcode_into_libs=yes
  12488. ;;
  12489. newsos6)
  12490. version_type=linux
  12491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12492. shlibpath_var=LD_LIBRARY_PATH
  12493. shlibpath_overrides_runpath=yes
  12494. ;;
  12495. *nto* | *qnx*)
  12496. version_type=qnx
  12497. need_lib_prefix=no
  12498. need_version=no
  12499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12500. soname_spec='${libname}${release}${shared_ext}$major'
  12501. shlibpath_var=LD_LIBRARY_PATH
  12502. shlibpath_overrides_runpath=no
  12503. hardcode_into_libs=yes
  12504. dynamic_linker='ldqnx.so'
  12505. ;;
  12506. openbsd*)
  12507. version_type=sunos
  12508. sys_lib_dlsearch_path_spec="/usr/lib"
  12509. need_lib_prefix=no
  12510. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12511. case $host_os in
  12512. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12513. *) need_version=no ;;
  12514. esac
  12515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12516. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12517. shlibpath_var=LD_LIBRARY_PATH
  12518. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12519. case $host_os in
  12520. openbsd2.[89] | openbsd2.[89].*)
  12521. shlibpath_overrides_runpath=no
  12522. ;;
  12523. *)
  12524. shlibpath_overrides_runpath=yes
  12525. ;;
  12526. esac
  12527. else
  12528. shlibpath_overrides_runpath=yes
  12529. fi
  12530. ;;
  12531. os2*)
  12532. libname_spec='$name'
  12533. shrext_cmds=".dll"
  12534. need_lib_prefix=no
  12535. library_names_spec='$libname${shared_ext} $libname.a'
  12536. dynamic_linker='OS/2 ld.exe'
  12537. shlibpath_var=LIBPATH
  12538. ;;
  12539. osf3* | osf4* | osf5*)
  12540. version_type=osf
  12541. need_lib_prefix=no
  12542. need_version=no
  12543. soname_spec='${libname}${release}${shared_ext}$major'
  12544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12545. shlibpath_var=LD_LIBRARY_PATH
  12546. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12547. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12548. ;;
  12549. rdos*)
  12550. dynamic_linker=no
  12551. ;;
  12552. solaris*)
  12553. version_type=linux
  12554. need_lib_prefix=no
  12555. need_version=no
  12556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12557. soname_spec='${libname}${release}${shared_ext}$major'
  12558. shlibpath_var=LD_LIBRARY_PATH
  12559. shlibpath_overrides_runpath=yes
  12560. hardcode_into_libs=yes
  12561. # ldd complains unless libraries are executable
  12562. postinstall_cmds='chmod +x $lib'
  12563. ;;
  12564. sunos4*)
  12565. version_type=sunos
  12566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12567. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12568. shlibpath_var=LD_LIBRARY_PATH
  12569. shlibpath_overrides_runpath=yes
  12570. if test "$with_gnu_ld" = yes; then
  12571. need_lib_prefix=no
  12572. fi
  12573. need_version=yes
  12574. ;;
  12575. sysv4 | sysv4.3*)
  12576. version_type=linux
  12577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12578. soname_spec='${libname}${release}${shared_ext}$major'
  12579. shlibpath_var=LD_LIBRARY_PATH
  12580. case $host_vendor in
  12581. sni)
  12582. shlibpath_overrides_runpath=no
  12583. need_lib_prefix=no
  12584. runpath_var=LD_RUN_PATH
  12585. ;;
  12586. siemens)
  12587. need_lib_prefix=no
  12588. ;;
  12589. motorola)
  12590. need_lib_prefix=no
  12591. need_version=no
  12592. shlibpath_overrides_runpath=no
  12593. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12594. ;;
  12595. esac
  12596. ;;
  12597. sysv4*MP*)
  12598. if test -d /usr/nec ;then
  12599. version_type=linux
  12600. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12601. soname_spec='$libname${shared_ext}.$major'
  12602. shlibpath_var=LD_LIBRARY_PATH
  12603. fi
  12604. ;;
  12605. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12606. version_type=freebsd-elf
  12607. need_lib_prefix=no
  12608. need_version=no
  12609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12610. soname_spec='${libname}${release}${shared_ext}$major'
  12611. shlibpath_var=LD_LIBRARY_PATH
  12612. shlibpath_overrides_runpath=yes
  12613. hardcode_into_libs=yes
  12614. if test "$with_gnu_ld" = yes; then
  12615. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12616. else
  12617. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12618. case $host_os in
  12619. sco3.2v5*)
  12620. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12621. ;;
  12622. esac
  12623. fi
  12624. sys_lib_dlsearch_path_spec='/usr/lib'
  12625. ;;
  12626. tpf*)
  12627. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12628. version_type=linux
  12629. need_lib_prefix=no
  12630. need_version=no
  12631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12632. shlibpath_var=LD_LIBRARY_PATH
  12633. shlibpath_overrides_runpath=no
  12634. hardcode_into_libs=yes
  12635. ;;
  12636. uts4*)
  12637. version_type=linux
  12638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12639. soname_spec='${libname}${release}${shared_ext}$major'
  12640. shlibpath_var=LD_LIBRARY_PATH
  12641. ;;
  12642. *)
  12643. dynamic_linker=no
  12644. ;;
  12645. esac
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12647. $as_echo "$dynamic_linker" >&6; }
  12648. test "$dynamic_linker" = no && can_build_shared=no
  12649. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12650. if test "$GCC" = yes; then
  12651. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12652. fi
  12653. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12654. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12655. fi
  12656. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12657. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12658. fi
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12660. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12661. hardcode_action_CXX=
  12662. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12663. test -n "$runpath_var_CXX" ||
  12664. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12665. # We can hardcode non-existent directories.
  12666. if test "$hardcode_direct_CXX" != no &&
  12667. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12668. # have to relink, otherwise we might link with an installed library
  12669. # when we should be linking with a yet-to-be-installed one
  12670. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12671. test "$hardcode_minus_L_CXX" != no; then
  12672. # Linking always hardcodes the temporary library directory.
  12673. hardcode_action_CXX=relink
  12674. else
  12675. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12676. hardcode_action_CXX=immediate
  12677. fi
  12678. else
  12679. # We cannot hardcode anything, or else we can only hardcode existing
  12680. # directories.
  12681. hardcode_action_CXX=unsupported
  12682. fi
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12684. $as_echo "$hardcode_action_CXX" >&6; }
  12685. if test "$hardcode_action_CXX" = relink ||
  12686. test "$inherit_rpath_CXX" = yes; then
  12687. # Fast installation is not supported
  12688. enable_fast_install=no
  12689. elif test "$shlibpath_overrides_runpath" = yes ||
  12690. test "$enable_shared" = no; then
  12691. # Fast installation is not necessary
  12692. enable_fast_install=needless
  12693. fi
  12694. fi # test -n "$compiler"
  12695. CC=$lt_save_CC
  12696. LDCXX=$LD
  12697. LD=$lt_save_LD
  12698. GCC=$lt_save_GCC
  12699. with_gnu_ld=$lt_save_with_gnu_ld
  12700. lt_cv_path_LDCXX=$lt_cv_path_LD
  12701. lt_cv_path_LD=$lt_save_path_LD
  12702. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12703. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12704. fi # test "$_lt_caught_CXX_error" != yes
  12705. ac_ext=c
  12706. ac_cpp='$CPP $CPPFLAGS'
  12707. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12708. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12709. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12710. ac_config_commands="$ac_config_commands libtool"
  12711. # Only expand once:
  12712. if test "x$LIBTOOL" != "x"; then
  12713. USE_LIBTOOL_TRUE=
  12714. USE_LIBTOOL_FALSE='#'
  12715. else
  12716. USE_LIBTOOL_TRUE='#'
  12717. USE_LIBTOOL_FALSE=
  12718. fi
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  12720. $as_echo_n "checking for inline... " >&6; }
  12721. if test "${ac_cv_c_inline+set}" = set; then :
  12722. $as_echo_n "(cached) " >&6
  12723. else
  12724. ac_cv_c_inline=no
  12725. for ac_kw in inline __inline__ __inline; do
  12726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12727. /* end confdefs.h. */
  12728. #ifndef __cplusplus
  12729. typedef int foo_t;
  12730. static $ac_kw foo_t static_foo () {return 0; }
  12731. $ac_kw foo_t foo () {return 0; }
  12732. #endif
  12733. _ACEOF
  12734. if ac_fn_c_try_compile "$LINENO"; then :
  12735. ac_cv_c_inline=$ac_kw
  12736. fi
  12737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12738. test "$ac_cv_c_inline" != no && break
  12739. done
  12740. fi
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  12742. $as_echo "$ac_cv_c_inline" >&6; }
  12743. case $ac_cv_c_inline in
  12744. inline | yes) ;;
  12745. *)
  12746. case $ac_cv_c_inline in
  12747. no) ac_val=;;
  12748. *) ac_val=$ac_cv_c_inline;;
  12749. esac
  12750. cat >>confdefs.h <<_ACEOF
  12751. #ifndef __cplusplus
  12752. #define inline $ac_val
  12753. #endif
  12754. _ACEOF
  12755. ;;
  12756. esac
  12757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
  12758. $as_echo_n "checking for __attribute__... " >&6; }
  12759. if test "${ac_cv___attribute__+set}" = set; then :
  12760. $as_echo_n "(cached) " >&6
  12761. else
  12762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12763. /* end confdefs.h. */
  12764. #include <stdlib.h>
  12765. static void foo(void) __attribute__ ((unused));
  12766. void foo(void) { exit(1); }
  12767. int
  12768. main ()
  12769. {
  12770. ;
  12771. return 0;
  12772. }
  12773. _ACEOF
  12774. if ac_fn_c_try_compile "$LINENO"; then :
  12775. ac_cv___attribute__=yes
  12776. else
  12777. ac_cv___attribute__=no
  12778. fi
  12779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12780. fi
  12781. if test "$ac_cv___attribute__" = "yes"; then
  12782. $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
  12783. fi
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
  12785. $as_echo "$ac_cv___attribute__" >&6; }
  12786. # Check whether some low-level functions/files are available
  12787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12788. $as_echo_n "checking for ANSI C header files... " >&6; }
  12789. if test "${ac_cv_header_stdc+set}" = set; then :
  12790. $as_echo_n "(cached) " >&6
  12791. else
  12792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12793. /* end confdefs.h. */
  12794. #include <stdlib.h>
  12795. #include <stdarg.h>
  12796. #include <string.h>
  12797. #include <float.h>
  12798. int
  12799. main ()
  12800. {
  12801. ;
  12802. return 0;
  12803. }
  12804. _ACEOF
  12805. if ac_fn_c_try_compile "$LINENO"; then :
  12806. ac_cv_header_stdc=yes
  12807. else
  12808. ac_cv_header_stdc=no
  12809. fi
  12810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12811. if test $ac_cv_header_stdc = yes; then
  12812. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12814. /* end confdefs.h. */
  12815. #include <string.h>
  12816. _ACEOF
  12817. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12818. $EGREP "memchr" >/dev/null 2>&1; then :
  12819. else
  12820. ac_cv_header_stdc=no
  12821. fi
  12822. rm -f conftest*
  12823. fi
  12824. if test $ac_cv_header_stdc = yes; then
  12825. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12827. /* end confdefs.h. */
  12828. #include <stdlib.h>
  12829. _ACEOF
  12830. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12831. $EGREP "free" >/dev/null 2>&1; then :
  12832. else
  12833. ac_cv_header_stdc=no
  12834. fi
  12835. rm -f conftest*
  12836. fi
  12837. if test $ac_cv_header_stdc = yes; then
  12838. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12839. if test "$cross_compiling" = yes; then :
  12840. :
  12841. else
  12842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12843. /* end confdefs.h. */
  12844. #include <ctype.h>
  12845. #include <stdlib.h>
  12846. #if ((' ' & 0x0FF) == 0x020)
  12847. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12848. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12849. #else
  12850. # define ISLOWER(c) \
  12851. (('a' <= (c) && (c) <= 'i') \
  12852. || ('j' <= (c) && (c) <= 'r') \
  12853. || ('s' <= (c) && (c) <= 'z'))
  12854. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12855. #endif
  12856. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12857. int
  12858. main ()
  12859. {
  12860. int i;
  12861. for (i = 0; i < 256; i++)
  12862. if (XOR (islower (i), ISLOWER (i))
  12863. || toupper (i) != TOUPPER (i))
  12864. return 2;
  12865. return 0;
  12866. }
  12867. _ACEOF
  12868. if ac_fn_c_try_run "$LINENO"; then :
  12869. else
  12870. ac_cv_header_stdc=no
  12871. fi
  12872. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12873. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12874. fi
  12875. fi
  12876. fi
  12877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12878. $as_echo "$ac_cv_header_stdc" >&6; }
  12879. if test $ac_cv_header_stdc = yes; then
  12880. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12881. fi
  12882. # TODO(csilvers): we could remove a lot when WITH_CPU_PROFILER etc is "no".
  12883. ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
  12884. if test "x$ac_cv_type___int64" = x""yes; then :
  12885. cat >>confdefs.h <<_ACEOF
  12886. #define HAVE___INT64 1
  12887. _ACEOF
  12888. fi
  12889. # defined in some windows platforms
  12890. ac_fn_c_check_type "$LINENO" "struct mallinfo" "ac_cv_type_struct_mallinfo" "#include <malloc.h>
  12891. "
  12892. if test "x$ac_cv_type_struct_mallinfo" = x""yes; then :
  12893. cat >>confdefs.h <<_ACEOF
  12894. #define HAVE_STRUCT_MALLINFO 1
  12895. _ACEOF
  12896. fi
  12897. ac_fn_c_check_type "$LINENO" "Elf32_Versym" "ac_cv_type_Elf32_Versym" "#include <elf.h>
  12898. "
  12899. if test "x$ac_cv_type_Elf32_Versym" = x""yes; then :
  12900. cat >>confdefs.h <<_ACEOF
  12901. #define HAVE_ELF32_VERSYM 1
  12902. _ACEOF
  12903. fi
  12904. # for vdso_support.h
  12905. for ac_func in sbrk
  12906. do :
  12907. ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
  12908. if test "x$ac_cv_func_sbrk" = x""yes; then :
  12909. cat >>confdefs.h <<_ACEOF
  12910. #define HAVE_SBRK 1
  12911. _ACEOF
  12912. fi
  12913. done
  12914. # for tcmalloc to get memory
  12915. for ac_func in geteuid
  12916. do :
  12917. ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
  12918. if test "x$ac_cv_func_geteuid" = x""yes; then :
  12919. cat >>confdefs.h <<_ACEOF
  12920. #define HAVE_GETEUID 1
  12921. _ACEOF
  12922. fi
  12923. done
  12924. # for turning off services when run as root
  12925. for ac_header in features.h
  12926. do :
  12927. ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
  12928. if test "x$ac_cv_header_features_h" = x""yes; then :
  12929. cat >>confdefs.h <<_ACEOF
  12930. #define HAVE_FEATURES_H 1
  12931. _ACEOF
  12932. fi
  12933. done
  12934. # for vdso_support.h
  12935. for ac_header in malloc.h
  12936. do :
  12937. ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  12938. if test "x$ac_cv_header_malloc_h" = x""yes; then :
  12939. cat >>confdefs.h <<_ACEOF
  12940. #define HAVE_MALLOC_H 1
  12941. _ACEOF
  12942. fi
  12943. done
  12944. # some systems define stuff there, others not
  12945. for ac_header in sys/malloc.h
  12946. do :
  12947. ac_fn_c_check_header_mongrel "$LINENO" "sys/malloc.h" "ac_cv_header_sys_malloc_h" "$ac_includes_default"
  12948. if test "x$ac_cv_header_sys_malloc_h" = x""yes; then :
  12949. cat >>confdefs.h <<_ACEOF
  12950. #define HAVE_SYS_MALLOC_H 1
  12951. _ACEOF
  12952. fi
  12953. done
  12954. # where some versions of OS X put malloc.h
  12955. for ac_header in malloc/malloc.h
  12956. do :
  12957. ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
  12958. if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
  12959. cat >>confdefs.h <<_ACEOF
  12960. #define HAVE_MALLOC_MALLOC_H 1
  12961. _ACEOF
  12962. fi
  12963. done
  12964. # another place OS X puts malloc.h (?)
  12965. for ac_header in glob.h
  12966. do :
  12967. ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
  12968. if test "x$ac_cv_header_glob_h" = x""yes; then :
  12969. cat >>confdefs.h <<_ACEOF
  12970. #define HAVE_GLOB_H 1
  12971. _ACEOF
  12972. fi
  12973. done
  12974. # for heap-profile-table (cleaning up profiles)
  12975. for ac_header in execinfo.h
  12976. do :
  12977. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  12978. if test "x$ac_cv_header_execinfo_h" = x""yes; then :
  12979. cat >>confdefs.h <<_ACEOF
  12980. #define HAVE_EXECINFO_H 1
  12981. _ACEOF
  12982. fi
  12983. done
  12984. # for stacktrace? and heapchecker_unittest
  12985. for ac_header in libunwind.h
  12986. do :
  12987. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  12988. if test "x$ac_cv_header_libunwind_h" = x""yes; then :
  12989. cat >>confdefs.h <<_ACEOF
  12990. #define HAVE_LIBUNWIND_H 1
  12991. _ACEOF
  12992. fi
  12993. done
  12994. # for stacktrace
  12995. for ac_header in unwind.h
  12996. do :
  12997. ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  12998. if test "x$ac_cv_header_unwind_h" = x""yes; then :
  12999. cat >>confdefs.h <<_ACEOF
  13000. #define HAVE_UNWIND_H 1
  13001. _ACEOF
  13002. fi
  13003. done
  13004. # for stacktrace
  13005. for ac_header in sched.h
  13006. do :
  13007. ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  13008. if test "x$ac_cv_header_sched_h" = x""yes; then :
  13009. cat >>confdefs.h <<_ACEOF
  13010. #define HAVE_SCHED_H 1
  13011. _ACEOF
  13012. fi
  13013. done
  13014. # for being nice in our spinlock code
  13015. for ac_header in conflict-signal.h
  13016. do :
  13017. ac_fn_c_check_header_mongrel "$LINENO" "conflict-signal.h" "ac_cv_header_conflict_signal_h" "$ac_includes_default"
  13018. if test "x$ac_cv_header_conflict_signal_h" = x""yes; then :
  13019. cat >>confdefs.h <<_ACEOF
  13020. #define HAVE_CONFLICT_SIGNAL_H 1
  13021. _ACEOF
  13022. fi
  13023. done
  13024. # defined on some windows platforms?
  13025. for ac_header in sys/prctl.h
  13026. do :
  13027. ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
  13028. if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
  13029. cat >>confdefs.h <<_ACEOF
  13030. #define HAVE_SYS_PRCTL_H 1
  13031. _ACEOF
  13032. fi
  13033. done
  13034. # for thread_lister (needed by leak-checker)
  13035. for ac_header in linux/ptrace.h
  13036. do :
  13037. ac_fn_c_check_header_mongrel "$LINENO" "linux/ptrace.h" "ac_cv_header_linux_ptrace_h" "$ac_includes_default"
  13038. if test "x$ac_cv_header_linux_ptrace_h" = x""yes; then :
  13039. cat >>confdefs.h <<_ACEOF
  13040. #define HAVE_LINUX_PTRACE_H 1
  13041. _ACEOF
  13042. fi
  13043. done
  13044. # also needed by leak-checker
  13045. for ac_header in sys/syscall.h
  13046. do :
  13047. ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
  13048. if test "x$ac_cv_header_sys_syscall_h" = x""yes; then :
  13049. cat >>confdefs.h <<_ACEOF
  13050. #define HAVE_SYS_SYSCALL_H 1
  13051. _ACEOF
  13052. fi
  13053. done
  13054. for ac_header in sys/socket.h
  13055. do :
  13056. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  13057. if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  13058. cat >>confdefs.h <<_ACEOF
  13059. #define HAVE_SYS_SOCKET_H 1
  13060. _ACEOF
  13061. fi
  13062. done
  13063. # optional; for forking out to symbolizer
  13064. for ac_header in sys/wait.h
  13065. do :
  13066. ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  13067. if test "x$ac_cv_header_sys_wait_h" = x""yes; then :
  13068. cat >>confdefs.h <<_ACEOF
  13069. #define HAVE_SYS_WAIT_H 1
  13070. _ACEOF
  13071. fi
  13072. done
  13073. # optional; for forking out to symbolizer
  13074. for ac_header in poll.h
  13075. do :
  13076. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  13077. if test "x$ac_cv_header_poll_h" = x""yes; then :
  13078. cat >>confdefs.h <<_ACEOF
  13079. #define HAVE_POLL_H 1
  13080. _ACEOF
  13081. fi
  13082. done
  13083. # optional; for forking out to symbolizer
  13084. for ac_header in fcntl.h
  13085. do :
  13086. ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  13087. if test "x$ac_cv_header_fcntl_h" = x""yes; then :
  13088. cat >>confdefs.h <<_ACEOF
  13089. #define HAVE_FCNTL_H 1
  13090. _ACEOF
  13091. fi
  13092. done
  13093. # for tcmalloc_unittest
  13094. for ac_header in grp.h
  13095. do :
  13096. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  13097. if test "x$ac_cv_header_grp_h" = x""yes; then :
  13098. cat >>confdefs.h <<_ACEOF
  13099. #define HAVE_GRP_H 1
  13100. _ACEOF
  13101. fi
  13102. done
  13103. # for heapchecker_unittest
  13104. for ac_header in pwd.h
  13105. do :
  13106. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  13107. if test "x$ac_cv_header_pwd_h" = x""yes; then :
  13108. cat >>confdefs.h <<_ACEOF
  13109. #define HAVE_PWD_H 1
  13110. _ACEOF
  13111. fi
  13112. done
  13113. # for heapchecker_unittest
  13114. for ac_header in sys/resource.h
  13115. do :
  13116. ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
  13117. if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
  13118. cat >>confdefs.h <<_ACEOF
  13119. #define HAVE_SYS_RESOURCE_H 1
  13120. _ACEOF
  13121. fi
  13122. done
  13123. # for memalign_unittest.cc
  13124. for ac_header in valgrind.h
  13125. do :
  13126. ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
  13127. if test "x$ac_cv_header_valgrind_h" = x""yes; then :
  13128. cat >>confdefs.h <<_ACEOF
  13129. #define HAVE_VALGRIND_H 1
  13130. _ACEOF
  13131. fi
  13132. done
  13133. # we have a local copy if this isn't found
  13134. for ac_header in sys/cdefs.h
  13135. do :
  13136. ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
  13137. if test "x$ac_cv_header_sys_cdefs_h" = x""yes; then :
  13138. cat >>confdefs.h <<_ACEOF
  13139. #define HAVE_SYS_CDEFS_H 1
  13140. _ACEOF
  13141. fi
  13142. done
  13143. # Where glibc defines __THROW
  13144. for ac_header in features.h
  13145. do :
  13146. ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
  13147. if test "x$ac_cv_header_features_h" = x""yes; then :
  13148. cat >>confdefs.h <<_ACEOF
  13149. #define HAVE_FEATURES_H 1
  13150. _ACEOF
  13151. fi
  13152. done
  13153. # Where __GLIBC__ is defined
  13154. # We also need <ucontext.h>/<sys/ucontext.h>, but we get those from
  13155. # AC_PC_FROM_UCONTEXT, below.
  13156. # We override a lot of memory allocation routines, not all of which are
  13157. # standard. For those the system doesn't declare, we'll declare ourselves.
  13158. ac_fn_c_check_decl "$LINENO" "cfree" "ac_cv_have_decl_cfree" "#define _XOPEN_SOURCE 600
  13159. #include <stdlib.h>
  13160. #include <malloc.h>
  13161. "
  13162. if test "x$ac_cv_have_decl_cfree" = x""yes; then :
  13163. ac_have_decl=1
  13164. else
  13165. ac_have_decl=0
  13166. fi
  13167. cat >>confdefs.h <<_ACEOF
  13168. #define HAVE_DECL_CFREE $ac_have_decl
  13169. _ACEOF
  13170. ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "#define _XOPEN_SOURCE 600
  13171. #include <stdlib.h>
  13172. #include <malloc.h>
  13173. "
  13174. if test "x$ac_cv_have_decl_posix_memalign" = x""yes; then :
  13175. ac_have_decl=1
  13176. else
  13177. ac_have_decl=0
  13178. fi
  13179. cat >>confdefs.h <<_ACEOF
  13180. #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
  13181. _ACEOF
  13182. ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "#define _XOPEN_SOURCE 600
  13183. #include <stdlib.h>
  13184. #include <malloc.h>
  13185. "
  13186. if test "x$ac_cv_have_decl_memalign" = x""yes; then :
  13187. ac_have_decl=1
  13188. else
  13189. ac_have_decl=0
  13190. fi
  13191. cat >>confdefs.h <<_ACEOF
  13192. #define HAVE_DECL_MEMALIGN $ac_have_decl
  13193. _ACEOF
  13194. ac_fn_c_check_decl "$LINENO" "valloc" "ac_cv_have_decl_valloc" "#define _XOPEN_SOURCE 600
  13195. #include <stdlib.h>
  13196. #include <malloc.h>
  13197. "
  13198. if test "x$ac_cv_have_decl_valloc" = x""yes; then :
  13199. ac_have_decl=1
  13200. else
  13201. ac_have_decl=0
  13202. fi
  13203. cat >>confdefs.h <<_ACEOF
  13204. #define HAVE_DECL_VALLOC $ac_have_decl
  13205. _ACEOF
  13206. ac_fn_c_check_decl "$LINENO" "pvalloc" "ac_cv_have_decl_pvalloc" "#define _XOPEN_SOURCE 600
  13207. #include <stdlib.h>
  13208. #include <malloc.h>
  13209. "
  13210. if test "x$ac_cv_have_decl_pvalloc" = x""yes; then :
  13211. ac_have_decl=1
  13212. else
  13213. ac_have_decl=0
  13214. fi
  13215. cat >>confdefs.h <<_ACEOF
  13216. #define HAVE_DECL_PVALLOC $ac_have_decl
  13217. _ACEOF
  13218. if test "$ac_cv_type_struct_mallinfo" = yes; then
  13219. ac_cv_have_struct_mallinfo=1
  13220. # google/tcmalloc.h needs this
  13221. else
  13222. ac_cv_have_struct_mallinfo=0
  13223. fi
  13224. # We need to check for mmap. cygwin supports mmap, but the autoconf
  13225. # test doesn't work on cygwin:
  13226. # http://www.cygwin.com/ml/cygwin/2002-04/msg00412.html
  13227. # This workaround comes from
  13228. # http://cygwin.com/ml/cygwin/2004-11/msg00138.html
  13229. case "$host" in
  13230. *-*-cygwin*)
  13231. ac_cv_func_mmap_fixed_mapped=yes
  13232. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  13233. ;;
  13234. *)
  13235. for ac_header in $ac_header_list
  13236. do :
  13237. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13238. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  13239. "
  13240. eval as_val=\$$as_ac_Header
  13241. if test "x$as_val" = x""yes; then :
  13242. cat >>confdefs.h <<_ACEOF
  13243. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13244. _ACEOF
  13245. fi
  13246. done
  13247. for ac_func in getpagesize
  13248. do :
  13249. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  13250. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  13251. cat >>confdefs.h <<_ACEOF
  13252. #define HAVE_GETPAGESIZE 1
  13253. _ACEOF
  13254. fi
  13255. done
  13256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  13257. $as_echo_n "checking for working mmap... " >&6; }
  13258. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  13259. $as_echo_n "(cached) " >&6
  13260. else
  13261. if test "$cross_compiling" = yes; then :
  13262. ac_cv_func_mmap_fixed_mapped=no
  13263. else
  13264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13265. /* end confdefs.h. */
  13266. $ac_includes_default
  13267. /* malloc might have been renamed as rpl_malloc. */
  13268. #undef malloc
  13269. /* Thanks to Mike Haertel and Jim Avera for this test.
  13270. Here is a matrix of mmap possibilities:
  13271. mmap private not fixed
  13272. mmap private fixed at somewhere currently unmapped
  13273. mmap private fixed at somewhere already mapped
  13274. mmap shared not fixed
  13275. mmap shared fixed at somewhere currently unmapped
  13276. mmap shared fixed at somewhere already mapped
  13277. For private mappings, we should verify that changes cannot be read()
  13278. back from the file, nor mmap's back from the file at a different
  13279. address. (There have been systems where private was not correctly
  13280. implemented like the infamous i386 svr4.0, and systems where the
  13281. VM page cache was not coherent with the file system buffer cache
  13282. like early versions of FreeBSD and possibly contemporary NetBSD.)
  13283. For shared mappings, we should conversely verify that changes get
  13284. propagated back to all the places they're supposed to be.
  13285. Grep wants private fixed already mapped.
  13286. The main things grep needs to know about mmap are:
  13287. * does it exist and is it safe to write into the mmap'd area
  13288. * how to use it (BSD variants) */
  13289. #include <fcntl.h>
  13290. #include <sys/mman.h>
  13291. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  13292. char *malloc ();
  13293. #endif
  13294. /* This mess was copied from the GNU getpagesize.h. */
  13295. #ifndef HAVE_GETPAGESIZE
  13296. # ifdef _SC_PAGESIZE
  13297. # define getpagesize() sysconf(_SC_PAGESIZE)
  13298. # else /* no _SC_PAGESIZE */
  13299. # ifdef HAVE_SYS_PARAM_H
  13300. # include <sys/param.h>
  13301. # ifdef EXEC_PAGESIZE
  13302. # define getpagesize() EXEC_PAGESIZE
  13303. # else /* no EXEC_PAGESIZE */
  13304. # ifdef NBPG
  13305. # define getpagesize() NBPG * CLSIZE
  13306. # ifndef CLSIZE
  13307. # define CLSIZE 1
  13308. # endif /* no CLSIZE */
  13309. # else /* no NBPG */
  13310. # ifdef NBPC
  13311. # define getpagesize() NBPC
  13312. # else /* no NBPC */
  13313. # ifdef PAGESIZE
  13314. # define getpagesize() PAGESIZE
  13315. # endif /* PAGESIZE */
  13316. # endif /* no NBPC */
  13317. # endif /* no NBPG */
  13318. # endif /* no EXEC_PAGESIZE */
  13319. # else /* no HAVE_SYS_PARAM_H */
  13320. # define getpagesize() 8192 /* punt totally */
  13321. # endif /* no HAVE_SYS_PARAM_H */
  13322. # endif /* no _SC_PAGESIZE */
  13323. #endif /* no HAVE_GETPAGESIZE */
  13324. int
  13325. main ()
  13326. {
  13327. char *data, *data2, *data3;
  13328. const char *cdata2;
  13329. int i, pagesize;
  13330. int fd, fd2;
  13331. pagesize = getpagesize ();
  13332. /* First, make a file with some known garbage in it. */
  13333. data = (char *) malloc (pagesize);
  13334. if (!data)
  13335. return 1;
  13336. for (i = 0; i < pagesize; ++i)
  13337. *(data + i) = rand ();
  13338. umask (0);
  13339. fd = creat ("conftest.mmap", 0600);
  13340. if (fd < 0)
  13341. return 2;
  13342. if (write (fd, data, pagesize) != pagesize)
  13343. return 3;
  13344. close (fd);
  13345. /* Next, check that the tail of a page is zero-filled. File must have
  13346. non-zero length, otherwise we risk SIGBUS for entire page. */
  13347. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  13348. if (fd2 < 0)
  13349. return 4;
  13350. cdata2 = "";
  13351. if (write (fd2, cdata2, 1) != 1)
  13352. return 5;
  13353. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  13354. if (data2 == MAP_FAILED)
  13355. return 6;
  13356. for (i = 0; i < pagesize; ++i)
  13357. if (*(data2 + i))
  13358. return 7;
  13359. close (fd2);
  13360. if (munmap (data2, pagesize))
  13361. return 8;
  13362. /* Next, try to mmap the file at a fixed address which already has
  13363. something else allocated at it. If we can, also make sure that
  13364. we see the same garbage. */
  13365. fd = open ("conftest.mmap", O_RDWR);
  13366. if (fd < 0)
  13367. return 9;
  13368. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  13369. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  13370. return 10;
  13371. for (i = 0; i < pagesize; ++i)
  13372. if (*(data + i) != *(data2 + i))
  13373. return 11;
  13374. /* Finally, make sure that changes to the mapped area do not
  13375. percolate back to the file as seen by read(). (This is a bug on
  13376. some variants of i386 svr4.0.) */
  13377. for (i = 0; i < pagesize; ++i)
  13378. *(data2 + i) = *(data2 + i) + 1;
  13379. data3 = (char *) malloc (pagesize);
  13380. if (!data3)
  13381. return 12;
  13382. if (read (fd, data3, pagesize) != pagesize)
  13383. return 13;
  13384. for (i = 0; i < pagesize; ++i)
  13385. if (*(data + i) != *(data3 + i))
  13386. return 14;
  13387. close (fd);
  13388. return 0;
  13389. }
  13390. _ACEOF
  13391. if ac_fn_c_try_run "$LINENO"; then :
  13392. ac_cv_func_mmap_fixed_mapped=yes
  13393. else
  13394. ac_cv_func_mmap_fixed_mapped=no
  13395. fi
  13396. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13397. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13398. fi
  13399. fi
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  13401. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  13402. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  13403. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  13404. fi
  13405. rm -f conftest.mmap conftest.txt
  13406. ;;
  13407. esac
  13408. # If AtomicWord != Atomic32, we need to define two versions of all the
  13409. # atomicops functions. If they're the same, we want to define only one.
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int32_t is the same type as intptr_t" >&5
  13411. $as_echo_n "checking if int32_t is the same type as intptr_t... " >&6; }
  13412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13413. /* end confdefs.h. */
  13414. #include <stdint.h>
  13415. int
  13416. main ()
  13417. {
  13418. int32_t v1 = 0; intptr_t v2 = 0; return (&v1 - &v2)
  13419. ;
  13420. return 0;
  13421. }
  13422. _ACEOF
  13423. if ac_fn_c_try_compile "$LINENO"; then :
  13424. $as_echo "#define INT32_EQUALS_INTPTR 1" >>confdefs.h
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13426. $as_echo "yes" >&6; }
  13427. else
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13429. $as_echo "no" >&6; }
  13430. fi
  13431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13432. # We want to access the "PC" (Program Counter) register from a struct
  13433. # ucontext. Every system has its own way of doing that. We try all the
  13434. # possibilities we know about. Note REG_PC should come first (REG_RIP
  13435. # is also defined on solaris, but does the wrong thing). But don't
  13436. # bother if we're not doing cpu-profiling.
  13437. # [*] means that we've not actually tested one of these systems
  13438. if test "$enable_cpu_profiler" = yes; then
  13439. for ac_header in ucontext.h
  13440. do :
  13441. ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
  13442. if test "x$ac_cv_header_ucontext_h" = x""yes; then :
  13443. cat >>confdefs.h <<_ACEOF
  13444. #define HAVE_UCONTEXT_H 1
  13445. _ACEOF
  13446. fi
  13447. done
  13448. # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly
  13449. # (this was fixed in later redhats). <ucontext.h> works fine, so use that.
  13450. if grep "Red Hat Linux release 7" /etc/redhat-release >/dev/null 2>&1; then
  13451. $as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h
  13452. ac_cv_header_sys_ucontext_h=no
  13453. else
  13454. for ac_header in sys/ucontext.h
  13455. do :
  13456. ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
  13457. if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then :
  13458. cat >>confdefs.h <<_ACEOF
  13459. #define HAVE_SYS_UCONTEXT_H 1
  13460. _ACEOF
  13461. fi
  13462. done
  13463. # ucontext on OS X 10.6 (at least)
  13464. fi
  13465. for ac_header in cygwin/signal.h
  13466. do :
  13467. ac_fn_c_check_header_mongrel "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default"
  13468. if test "x$ac_cv_header_cygwin_signal_h" = x""yes; then :
  13469. cat >>confdefs.h <<_ACEOF
  13470. #define HAVE_CYGWIN_SIGNAL_H 1
  13471. _ACEOF
  13472. fi
  13473. done
  13474. # ucontext on cywgin
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
  13476. $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
  13477. pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
  13478. pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
  13479. pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
  13480. pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
  13481. pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
  13482. pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
  13483. pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
  13484. pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64)
  13485. pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
  13486. pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
  13487. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
  13488. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
  13489. pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
  13490. pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
  13491. pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
  13492. pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
  13493. pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
  13494. pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
  13495. pc_field_found=false
  13496. for pc_field in $pc_fields; do
  13497. if ! $pc_field_found; then
  13498. # Prefer sys/ucontext.h to ucontext.h, for OS X's sake.
  13499. if test "x$ac_cv_header_cygwin_signal_h" = xyes; then
  13500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13501. /* end confdefs.h. */
  13502. #define _GNU_SOURCE 1
  13503. #include <cygwin/signal.h>
  13504. int
  13505. main ()
  13506. {
  13507. ucontext_t u; return u.$pc_field == 0;
  13508. ;
  13509. return 0;
  13510. }
  13511. _ACEOF
  13512. if ac_fn_c_try_compile "$LINENO"; then :
  13513. cat >>confdefs.h <<_ACEOF
  13514. #define PC_FROM_UCONTEXT $pc_field
  13515. _ACEOF
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  13517. $as_echo "$pc_field" >&6; }
  13518. pc_field_found=true
  13519. fi
  13520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13521. elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then
  13522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13523. /* end confdefs.h. */
  13524. #define _GNU_SOURCE 1
  13525. #include <sys/ucontext.h>
  13526. int
  13527. main ()
  13528. {
  13529. ucontext_t u; return u.$pc_field == 0;
  13530. ;
  13531. return 0;
  13532. }
  13533. _ACEOF
  13534. if ac_fn_c_try_compile "$LINENO"; then :
  13535. cat >>confdefs.h <<_ACEOF
  13536. #define PC_FROM_UCONTEXT $pc_field
  13537. _ACEOF
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  13539. $as_echo "$pc_field" >&6; }
  13540. pc_field_found=true
  13541. fi
  13542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13543. elif test "x$ac_cv_header_ucontext_h" = xyes; then
  13544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13545. /* end confdefs.h. */
  13546. #define _GNU_SOURCE 1
  13547. #include <ucontext.h>
  13548. int
  13549. main ()
  13550. {
  13551. ucontext_t u; return u.$pc_field == 0;
  13552. ;
  13553. return 0;
  13554. }
  13555. _ACEOF
  13556. if ac_fn_c_try_compile "$LINENO"; then :
  13557. cat >>confdefs.h <<_ACEOF
  13558. #define PC_FROM_UCONTEXT $pc_field
  13559. _ACEOF
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  13561. $as_echo "$pc_field" >&6; }
  13562. pc_field_found=true
  13563. fi
  13564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13565. else # hope some standard header gives it to us
  13566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13567. /* end confdefs.h. */
  13568. int
  13569. main ()
  13570. {
  13571. ucontext_t u; return u.$pc_field == 0;
  13572. ;
  13573. return 0;
  13574. }
  13575. _ACEOF
  13576. if ac_fn_c_try_compile "$LINENO"; then :
  13577. cat >>confdefs.h <<_ACEOF
  13578. #define PC_FROM_UCONTEXT $pc_field
  13579. _ACEOF
  13580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  13581. $as_echo "$pc_field" >&6; }
  13582. pc_field_found=true
  13583. fi
  13584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13585. fi
  13586. fi
  13587. done
  13588. if ! $pc_field_found; then
  13589. pc_fields=" sc_eip" # OpenBSD (i386)
  13590. pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
  13591. for pc_field in $pc_fields; do
  13592. if ! $pc_field_found; then
  13593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13594. /* end confdefs.h. */
  13595. #include <signal.h>
  13596. int
  13597. main ()
  13598. {
  13599. ucontext_t u; return u.$pc_field == 0;
  13600. ;
  13601. return 0;
  13602. }
  13603. _ACEOF
  13604. if ac_fn_c_try_compile "$LINENO"; then :
  13605. cat >>confdefs.h <<_ACEOF
  13606. #define PC_FROM_UCONTEXT $pc_field
  13607. _ACEOF
  13608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  13609. $as_echo "$pc_field" >&6; }
  13610. pc_field_found=true
  13611. fi
  13612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13613. fi
  13614. done
  13615. fi
  13616. if ! $pc_field_found; then
  13617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&5
  13618. $as_echo "$as_me: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&2;};
  13619. enable_cpu_profiler=no
  13620. fi
  13621. fi
  13622. # Some tests test the behavior of .so files, and only make sense for dynamic.
  13623. if test "$enable_static" = yes; then
  13624. ENABLE_STATIC_TRUE=
  13625. ENABLE_STATIC_FALSE='#'
  13626. else
  13627. ENABLE_STATIC_TRUE='#'
  13628. ENABLE_STATIC_FALSE=
  13629. fi
  13630. # We want to link in libunwind if it exists
  13631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
  13632. $as_echo_n "checking for backtrace in -lunwind... " >&6; }
  13633. if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
  13634. $as_echo_n "(cached) " >&6
  13635. else
  13636. ac_check_lib_save_LIBS=$LIBS
  13637. LIBS="-lunwind $LIBS"
  13638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13639. /* end confdefs.h. */
  13640. /* Override any GCC internal prototype to avoid an error.
  13641. Use char because int might match the return type of a GCC
  13642. builtin and then its argument prototype would still apply. */
  13643. #ifdef __cplusplus
  13644. extern "C"
  13645. #endif
  13646. char backtrace ();
  13647. int
  13648. main ()
  13649. {
  13650. return backtrace ();
  13651. ;
  13652. return 0;
  13653. }
  13654. _ACEOF
  13655. if ac_fn_c_try_link "$LINENO"; then :
  13656. ac_cv_lib_unwind_backtrace=yes
  13657. else
  13658. ac_cv_lib_unwind_backtrace=no
  13659. fi
  13660. rm -f core conftest.err conftest.$ac_objext \
  13661. conftest$ac_exeext conftest.$ac_ext
  13662. LIBS=$ac_check_lib_save_LIBS
  13663. fi
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
  13665. $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
  13666. if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
  13667. UNWIND_LIBS=-lunwind
  13668. else
  13669. UNWIND_LIBS=
  13670. fi
  13671. # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
  13672. # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
  13673. # Check whether --enable-frame_pointers was given.
  13674. if test "${enable_frame_pointers+set}" = set; then :
  13675. enableval=$enable_frame_pointers;
  13676. else
  13677. enable_frame_pointers=no
  13678. fi
  13679. if test "$enable_frame_pointers" = yes; then
  13680. ENABLE_FRAME_POINTERS_TRUE=
  13681. ENABLE_FRAME_POINTERS_FALSE='#'
  13682. else
  13683. ENABLE_FRAME_POINTERS_TRUE='#'
  13684. ENABLE_FRAME_POINTERS_FALSE=
  13685. fi
  13686. # Some x86_64 systems do not insert frame pointers by default (all
  13687. # i386 systems that I know of, do. I don't know about non-x86 chips).
  13688. # We want to see if the current system is one of those.
  13689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13690. /* end confdefs.h. */
  13691. int
  13692. main ()
  13693. {
  13694. return __x86_64__ == 1 ? 0 : 1
  13695. ;
  13696. return 0;
  13697. }
  13698. _ACEOF
  13699. if ac_fn_c_try_compile "$LINENO"; then :
  13700. is_x86_64=yes
  13701. else
  13702. is_x86_64=no
  13703. fi
  13704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13705. OLD_CFLAGS="$CFLAGS"
  13706. CFLAGS="$CFLAGS -S -O2 -o fp.s"
  13707. # This test will always fail because we don't name our output file properly.
  13708. # We do our own determination of success/failure in the grep, below.
  13709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13710. /* end confdefs.h. */
  13711. int f(int x) {return x;}
  13712. int
  13713. main ()
  13714. {
  13715. return f(0);
  13716. ;
  13717. return 0;
  13718. }
  13719. _ACEOF
  13720. if ac_fn_c_try_compile "$LINENO"; then :
  13721. :
  13722. else
  13723. :
  13724. fi
  13725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13726. if test "$is_x86_64" = yes && ! grep 'mov.*rsp.*rbp' fp.s >/dev/null 2>&1; then
  13727. X86_64_AND_NO_FP_BY_DEFAULT_TRUE=
  13728. X86_64_AND_NO_FP_BY_DEFAULT_FALSE='#'
  13729. else
  13730. X86_64_AND_NO_FP_BY_DEFAULT_TRUE='#'
  13731. X86_64_AND_NO_FP_BY_DEFAULT_FALSE=
  13732. fi
  13733. rm fp.s
  13734. CFLAGS="$OLD_CFLAGS"
  13735. # We need to know if we're i386 so we can turn on -mmms, which is not
  13736. # on by default for i386 (it is for x86_64).
  13737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13738. /* end confdefs.h. */
  13739. int
  13740. main ()
  13741. {
  13742. return __i386__ == 1 ? 0 : 1
  13743. ;
  13744. return 0;
  13745. }
  13746. _ACEOF
  13747. if ac_fn_c_try_compile "$LINENO"; then :
  13748. is_i386=yes
  13749. else
  13750. is_i386=no
  13751. fi
  13752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13753. if test "$is_i386" = yes; then
  13754. I386_TRUE=
  13755. I386_FALSE='#'
  13756. else
  13757. I386_TRUE='#'
  13758. I386_FALSE=
  13759. fi
  13760. # See if the compiler supports -Wno-unused-result.
  13761. # Newer ubuntu's turn on -D_FORTIFY_SOURCE=2, enabling
  13762. # __attribute__((warn_unused_result)) for things like write(),
  13763. # which we don't care about.
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -Wno-unused-result" >&5
  13765. $as_echo_n "checking if the compiler supports -Wno-unused-result... " >&6; }
  13766. if test "${perftools_cv_w_no_unused_result+set}" = set; then :
  13767. $as_echo_n "(cached) " >&6
  13768. else
  13769. OLD_CFLAGS="$CFLAGS"
  13770. CFLAGS="$CFLAGS -Wno-error -Wno-unused-result"
  13771. # gcc doesn't warn about unknown flags unless it's
  13772. # also warning for some other purpose, hence the
  13773. # divide-by-0. (We use -Wno-error to make sure the
  13774. # divide-by-0 doesn't cause this test to fail!)
  13775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13776. /* end confdefs.h. */
  13777. int
  13778. main ()
  13779. {
  13780. return 1/0
  13781. ;
  13782. return 0;
  13783. }
  13784. _ACEOF
  13785. if ac_fn_c_try_compile "$LINENO"; then :
  13786. perftools_cv_w_no_unused_result=yes
  13787. else
  13788. perftools_cv_w_no_unused_result=no
  13789. fi
  13790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13791. CFLAGS="$OLD_CFLAGS"
  13792. fi
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_w_no_unused_result" >&5
  13794. $as_echo "$perftools_cv_w_no_unused_result" >&6; }
  13795. if test "$perftools_cv_w_no_unused_result" = yes; then
  13796. HAVE_W_NO_UNUSED_RESULT_TRUE=
  13797. HAVE_W_NO_UNUSED_RESULT_FALSE='#'
  13798. else
  13799. HAVE_W_NO_UNUSED_RESULT_TRUE='#'
  13800. HAVE_W_NO_UNUSED_RESULT_FALSE=
  13801. fi
  13802. # Defines PRIuS
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format code for printing a size_t and ssize_t" >&5
  13804. $as_echo_n "checking printf format code for printing a size_t and ssize_t... " >&6; }
  13805. if test "${ac_cv_formatting_prius_prefix+set}" = set; then :
  13806. $as_echo_n "(cached) " >&6
  13807. else
  13808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13809. /* end confdefs.h. */
  13810. #include <stddef.h>
  13811. int
  13812. main ()
  13813. {
  13814. unsigned int v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  13815. ;
  13816. return 0;
  13817. }
  13818. _ACEOF
  13819. if ac_fn_c_try_compile "$LINENO"; then :
  13820. ac_cv_formatting_prius_prefix=; ac_cv_prius_defined=1
  13821. fi
  13822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13824. /* end confdefs.h. */
  13825. #include <stddef.h>
  13826. int
  13827. main ()
  13828. {
  13829. unsigned long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  13830. ;
  13831. return 0;
  13832. }
  13833. _ACEOF
  13834. if ac_fn_c_try_compile "$LINENO"; then :
  13835. ac_cv_formatting_prius_prefix=l; ac_cv_prius_defined=1
  13836. fi
  13837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13839. /* end confdefs.h. */
  13840. #include <stddef.h>
  13841. int
  13842. main ()
  13843. {
  13844. unsigned long long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  13845. ;
  13846. return 0;
  13847. }
  13848. _ACEOF
  13849. if ac_fn_c_try_compile "$LINENO"; then :
  13850. ac_cv_formatting_prius_prefix=ll; ac_cv_prius_defined=1
  13851. fi
  13852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13853. fi
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_formatting_prius_prefix" >&5
  13855. $as_echo "$ac_cv_formatting_prius_prefix" >&6; }
  13856. if test -z "$ac_cv_prius_defined"; then
  13857. ac_cv_formatting_prius_prefix=z;
  13858. fi
  13859. cat >>confdefs.h <<_ACEOF
  13860. #define PRIuS "${ac_cv_formatting_prius_prefix}u"
  13861. _ACEOF
  13862. cat >>confdefs.h <<_ACEOF
  13863. #define PRIxS "${ac_cv_formatting_prius_prefix}x"
  13864. _ACEOF
  13865. cat >>confdefs.h <<_ACEOF
  13866. #define PRIdS "${ac_cv_formatting_prius_prefix}d"
  13867. _ACEOF
  13868. # Also make sure we get standard PRI... definitions, even with glibc.
  13869. # We have to use AH_VERBATIM because we need the #ifdef guard (gcc buglet)
  13870. # Check if __builtin_stack_pointer() is available (for elfcore.h)
  13871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_stack_pointer()" >&5
  13872. $as_echo_n "checking for __builtin_stack_pointer()... " >&6; }
  13873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13874. /* end confdefs.h. */
  13875. int
  13876. main ()
  13877. {
  13878. void *sp = __builtin_stack_pointer()
  13879. ;
  13880. return 0;
  13881. }
  13882. _ACEOF
  13883. if ac_fn_c_try_link "$LINENO"; then :
  13884. $as_echo "#define HAVE_BUILTIN_STACK_POINTER 1" >>confdefs.h
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13886. $as_echo "yes" >&6; }
  13887. else
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13889. $as_echo "no" >&6; }
  13890. fi
  13891. rm -f core conftest.err conftest.$ac_objext \
  13892. conftest$ac_exeext conftest.$ac_ext
  13893. # Check if __environ is available (for GetenvBeforeMain)
  13894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __environ" >&5
  13895. $as_echo_n "checking for __environ... " >&6; }
  13896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13897. /* end confdefs.h. */
  13898. #include <unistd.h>
  13899. int
  13900. main ()
  13901. {
  13902. char **env = __environ
  13903. ;
  13904. return 0;
  13905. }
  13906. _ACEOF
  13907. if ac_fn_c_try_link "$LINENO"; then :
  13908. $as_echo "#define HAVE___ENVIRON 1" >>confdefs.h
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13910. $as_echo "yes" >&6; }
  13911. else
  13912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13913. $as_echo "no" >&6; }
  13914. fi
  13915. rm -f core conftest.err conftest.$ac_objext \
  13916. conftest$ac_exeext conftest.$ac_ext
  13917. # If we support __thread, that can speed up tcmalloc a bit.
  13918. # Note, however, that our code tickles a bug in gcc < 4.1.2
  13919. # involving TLS and -fPIC (which our libraries will use) on x86:
  13920. # http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
  13921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
  13922. $as_echo_n "checking for __thread... " >&6; }
  13923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13924. /* end confdefs.h. */
  13925. #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2))
  13926. #error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
  13927. #endif
  13928. int
  13929. main ()
  13930. {
  13931. static __thread int p = 0
  13932. ;
  13933. return 0;
  13934. }
  13935. _ACEOF
  13936. if ac_fn_c_try_link "$LINENO"; then :
  13937. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13939. $as_echo "yes" >&6; }
  13940. else
  13941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13942. $as_echo "no" >&6; }
  13943. fi
  13944. rm -f core conftest.err conftest.$ac_objext \
  13945. conftest$ac_exeext conftest.$ac_ext
  13946. # glibc's __malloc_hook/etc were declared volatile starting in glibc 2.14
  13947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __malloc_hook is declared volatile" >&5
  13948. $as_echo_n "checking if __malloc_hook is declared volatile... " >&6; }
  13949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13950. /* end confdefs.h. */
  13951. #include <malloc.h>
  13952. void* (* volatile __malloc_hook)(size_t, const void*) = 0;
  13953. int
  13954. main ()
  13955. {
  13956. ;
  13957. return 0;
  13958. }
  13959. _ACEOF
  13960. if ac_fn_c_try_compile "$LINENO"; then :
  13961. $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE volatile" >>confdefs.h
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13963. $as_echo "yes" >&6; }
  13964. else
  13965. $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE /**/" >>confdefs.h
  13966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13967. $as_echo "no" >&6; }
  13968. fi
  13969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13970. # Nanosleep requires extra libraries on some architectures (solaris).
  13971. # This sets NANOSLEEP_LIBS. nanosleep doesn't exist on mingw, which
  13972. # is fine for us because we don't compile libspinlock, which uses it.
  13973. if test "$need_nanosleep" = yes; then
  13974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nanosleep requires any libraries" >&5
  13975. $as_echo_n "checking if nanosleep requires any libraries... " >&6; }
  13976. ac_ext=c
  13977. ac_cpp='$CPP $CPPFLAGS'
  13978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13981. acx_nanosleep_ok="no"
  13982. NANOSLEEP_LIBS=
  13983. # For most folks, this should just work
  13984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13985. /* end confdefs.h. */
  13986. #include <time.h>
  13987. int
  13988. main ()
  13989. {
  13990. static struct timespec ts; nanosleep(&ts, NULL);
  13991. ;
  13992. return 0;
  13993. }
  13994. _ACEOF
  13995. if ac_fn_c_try_link "$LINENO"; then :
  13996. acx_nanosleep_ok=yes
  13997. fi
  13998. rm -f core conftest.err conftest.$ac_objext \
  13999. conftest$ac_exeext conftest.$ac_ext
  14000. # For solaris, we may need -lrt
  14001. if test "x$acx_nanosleep_ok" != "xyes"; then
  14002. OLD_LIBS="$LIBS"
  14003. LIBS="-lrt $LIBS"
  14004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14005. /* end confdefs.h. */
  14006. #include <time.h>
  14007. int
  14008. main ()
  14009. {
  14010. static struct timespec ts; nanosleep(&ts, NULL);
  14011. ;
  14012. return 0;
  14013. }
  14014. _ACEOF
  14015. if ac_fn_c_try_link "$LINENO"; then :
  14016. acx_nanosleep_ok=yes
  14017. fi
  14018. rm -f core conftest.err conftest.$ac_objext \
  14019. conftest$ac_exeext conftest.$ac_ext
  14020. if test "x$acx_nanosleep_ok" = "xyes"; then
  14021. NANOSLEEP_LIBS="-lrt"
  14022. fi
  14023. LIBS="$OLD_LIBS"
  14024. fi
  14025. if test "x$acx_nanosleep_ok" != "xyes"; then
  14026. as_fn_error "cannot find the nanosleep function" "$LINENO" 5
  14027. else
  14028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NANOSLEEP_LIBS:-no}" >&5
  14029. $as_echo "${NANOSLEEP_LIBS:-no}" >&6; }
  14030. fi
  14031. ac_ext=c
  14032. ac_cpp='$CPP $CPPFLAGS'
  14033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14036. fi
  14037. # Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
  14038. # If so, we replace it with our own version.
  14039. LIBSTDCXX_LA_LINKER_FLAG=
  14040. if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
  14041. then
  14042. LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
  14043. fi
  14044. # We also need to check if the kernel supports __thread, which requires uname()
  14045. ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "#include <sys/utsname.h>
  14046. "
  14047. if test "x$ac_cv_have_decl_uname" = x""yes; then :
  14048. ac_have_decl=1
  14049. else
  14050. ac_have_decl=0
  14051. fi
  14052. cat >>confdefs.h <<_ACEOF
  14053. #define HAVE_DECL_UNAME $ac_have_decl
  14054. _ACEOF
  14055. # In fact, a lot of the code in this directory depends on pthreads
  14056. ac_ext=c
  14057. ac_cpp='$CPP $CPPFLAGS'
  14058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14061. acx_pthread_ok=no
  14062. # We used to check for pthread.h first, but this fails if pthread.h
  14063. # requires special compiler flags (e.g. on True64 or Sequent).
  14064. # It gets checked for in the link test anyway.
  14065. # First of all, check if the user has set any of the PTHREAD_LIBS,
  14066. # etcetera environment variables, and if threads linking works using
  14067. # them:
  14068. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  14069. save_CFLAGS="$CFLAGS"
  14070. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14071. save_LIBS="$LIBS"
  14072. LIBS="$PTHREAD_LIBS $LIBS"
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  14074. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  14075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14076. /* end confdefs.h. */
  14077. /* Override any GCC internal prototype to avoid an error.
  14078. Use char because int might match the return type of a GCC
  14079. builtin and then its argument prototype would still apply. */
  14080. #ifdef __cplusplus
  14081. extern "C"
  14082. #endif
  14083. char pthread_join ();
  14084. int
  14085. main ()
  14086. {
  14087. return pthread_join ();
  14088. ;
  14089. return 0;
  14090. }
  14091. _ACEOF
  14092. if ac_fn_c_try_link "$LINENO"; then :
  14093. acx_pthread_ok=yes
  14094. fi
  14095. rm -f core conftest.err conftest.$ac_objext \
  14096. conftest$ac_exeext conftest.$ac_ext
  14097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  14098. $as_echo "$acx_pthread_ok" >&6; }
  14099. if test x"$acx_pthread_ok" = xno; then
  14100. PTHREAD_LIBS=""
  14101. PTHREAD_CFLAGS=""
  14102. fi
  14103. LIBS="$save_LIBS"
  14104. CFLAGS="$save_CFLAGS"
  14105. fi
  14106. # We must check for the threads library under a number of different
  14107. # names; the ordering is very important because some systems
  14108. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  14109. # libraries is broken (non-POSIX).
  14110. # Create a list of thread flags to try. Items starting with a "-" are
  14111. # C compiler flags, and other items are library names, except for "none"
  14112. # which indicates that we try without any flags at all, and "pthread-config"
  14113. # which is a program returning the flags for the Pth emulation library.
  14114. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  14115. # The ordering *is* (sometimes) important. Some notes on the
  14116. # individual items follow:
  14117. # pthreads: AIX (must check this before -lpthread)
  14118. # none: in case threads are in libc; should be tried before -Kthread and
  14119. # other compiler flags to prevent continual compiler warnings
  14120. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  14121. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  14122. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  14123. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  14124. # -pthreads: Solaris/gcc
  14125. # -mthreads: Mingw32/gcc, Lynx/gcc
  14126. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  14127. # doesn't hurt to check since this sometimes defines pthreads too;
  14128. # also defines -D_REENTRANT)
  14129. # ... -mt is also the pthreads flag for HP/aCC
  14130. # pthread: Linux, etcetera
  14131. # --thread-safe: KAI C++
  14132. # pthread-config: use pthread-config program (for GNU Pth library)
  14133. case "${host_cpu}-${host_os}" in
  14134. *solaris*)
  14135. # On Solaris (at least, for some versions), libc contains stubbed
  14136. # (non-functional) versions of the pthreads routines, so link-based
  14137. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  14138. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  14139. # a function called by this macro, so we could check for that, but
  14140. # who knows whether they'll stub that too in a future libc.) So,
  14141. # we'll just look for -pthreads and -lpthread first:
  14142. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  14143. ;;
  14144. esac
  14145. if test x"$acx_pthread_ok" = xno; then
  14146. for flag in $acx_pthread_flags; do
  14147. case $flag in
  14148. none)
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  14150. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  14151. ;;
  14152. -*)
  14153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  14154. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  14155. PTHREAD_CFLAGS="$flag"
  14156. ;;
  14157. pthread-config)
  14158. # Extract the first word of "pthread-config", so it can be a program name with args.
  14159. set dummy pthread-config; ac_word=$2
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14161. $as_echo_n "checking for $ac_word... " >&6; }
  14162. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
  14163. $as_echo_n "(cached) " >&6
  14164. else
  14165. if test -n "$acx_pthread_config"; then
  14166. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  14167. else
  14168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14169. for as_dir in $PATH
  14170. do
  14171. IFS=$as_save_IFS
  14172. test -z "$as_dir" && as_dir=.
  14173. for ac_exec_ext in '' $ac_executable_extensions; do
  14174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14175. ac_cv_prog_acx_pthread_config="yes"
  14176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14177. break 2
  14178. fi
  14179. done
  14180. done
  14181. IFS=$as_save_IFS
  14182. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  14183. fi
  14184. fi
  14185. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  14186. if test -n "$acx_pthread_config"; then
  14187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  14188. $as_echo "$acx_pthread_config" >&6; }
  14189. else
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14191. $as_echo "no" >&6; }
  14192. fi
  14193. if test x"$acx_pthread_config" = xno; then continue; fi
  14194. PTHREAD_CFLAGS="`pthread-config --cflags`"
  14195. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  14196. ;;
  14197. *)
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  14199. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  14200. PTHREAD_LIBS="-l$flag"
  14201. ;;
  14202. esac
  14203. save_LIBS="$LIBS"
  14204. save_CFLAGS="$CFLAGS"
  14205. LIBS="$PTHREAD_LIBS $LIBS"
  14206. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14207. # Check for various functions. We must include pthread.h,
  14208. # since some functions may be macros. (On the Sequent, we
  14209. # need a special flag -Kthread to make this header compile.)
  14210. # We check for pthread_join because it is in -lpthread on IRIX
  14211. # while pthread_create is in libc. We check for pthread_attr_init
  14212. # due to DEC craziness with -lpthreads. We check for
  14213. # pthread_cleanup_push because it is one of the few pthread
  14214. # functions on Solaris that doesn't have a non-functional libc stub.
  14215. # We try pthread_create on general principles.
  14216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14217. /* end confdefs.h. */
  14218. #include <pthread.h>
  14219. int
  14220. main ()
  14221. {
  14222. pthread_t th; pthread_join(th, 0);
  14223. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14224. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14225. ;
  14226. return 0;
  14227. }
  14228. _ACEOF
  14229. if ac_fn_c_try_link "$LINENO"; then :
  14230. acx_pthread_ok=yes
  14231. fi
  14232. rm -f core conftest.err conftest.$ac_objext \
  14233. conftest$ac_exeext conftest.$ac_ext
  14234. LIBS="$save_LIBS"
  14235. CFLAGS="$save_CFLAGS"
  14236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  14237. $as_echo "$acx_pthread_ok" >&6; }
  14238. if test "x$acx_pthread_ok" = xyes; then
  14239. break;
  14240. fi
  14241. PTHREAD_LIBS=""
  14242. PTHREAD_CFLAGS=""
  14243. done
  14244. fi
  14245. # Various other checks:
  14246. if test "x$acx_pthread_ok" = xyes; then
  14247. save_LIBS="$LIBS"
  14248. LIBS="$PTHREAD_LIBS $LIBS"
  14249. save_CFLAGS="$CFLAGS"
  14250. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14251. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  14253. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  14254. attr_name=unknown
  14255. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  14256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14257. /* end confdefs.h. */
  14258. #include <pthread.h>
  14259. int
  14260. main ()
  14261. {
  14262. int attr=$attr; return attr;
  14263. ;
  14264. return 0;
  14265. }
  14266. _ACEOF
  14267. if ac_fn_c_try_link "$LINENO"; then :
  14268. attr_name=$attr; break
  14269. fi
  14270. rm -f core conftest.err conftest.$ac_objext \
  14271. conftest$ac_exeext conftest.$ac_ext
  14272. done
  14273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  14274. $as_echo "$attr_name" >&6; }
  14275. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  14276. cat >>confdefs.h <<_ACEOF
  14277. #define PTHREAD_CREATE_JOINABLE $attr_name
  14278. _ACEOF
  14279. fi
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  14281. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  14282. flag=no
  14283. case "${host_cpu}-${host_os}" in
  14284. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  14285. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  14286. esac
  14287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  14288. $as_echo "${flag}" >&6; }
  14289. if test "x$flag" != xno; then
  14290. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  14291. fi
  14292. LIBS="$save_LIBS"
  14293. CFLAGS="$save_CFLAGS"
  14294. # More AIX lossage: must compile with xlc_r or cc_r
  14295. if test x"$GCC" != xyes; then
  14296. for ac_prog in xlc_r cc_r
  14297. do
  14298. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14299. set dummy $ac_prog; ac_word=$2
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14301. $as_echo_n "checking for $ac_word... " >&6; }
  14302. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  14303. $as_echo_n "(cached) " >&6
  14304. else
  14305. if test -n "$PTHREAD_CC"; then
  14306. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  14307. else
  14308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14309. for as_dir in $PATH
  14310. do
  14311. IFS=$as_save_IFS
  14312. test -z "$as_dir" && as_dir=.
  14313. for ac_exec_ext in '' $ac_executable_extensions; do
  14314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14315. ac_cv_prog_PTHREAD_CC="$ac_prog"
  14316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14317. break 2
  14318. fi
  14319. done
  14320. done
  14321. IFS=$as_save_IFS
  14322. fi
  14323. fi
  14324. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  14325. if test -n "$PTHREAD_CC"; then
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  14327. $as_echo "$PTHREAD_CC" >&6; }
  14328. else
  14329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14330. $as_echo "no" >&6; }
  14331. fi
  14332. test -n "$PTHREAD_CC" && break
  14333. done
  14334. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  14335. else
  14336. PTHREAD_CC=$CC
  14337. fi
  14338. # The next part tries to detect GCC inconsistency with -shared on some
  14339. # architectures and systems. The problem is that in certain
  14340. # configurations, when -shared is specified, GCC "forgets" to
  14341. # internally use various flags which are still necessary.
  14342. #
  14343. # Prepare the flags
  14344. #
  14345. save_CFLAGS="$CFLAGS"
  14346. save_LIBS="$LIBS"
  14347. save_CC="$CC"
  14348. # Try with the flags determined by the earlier checks.
  14349. #
  14350. # -Wl,-z,defs forces link-time symbol resolution, so that the
  14351. # linking checks with -shared actually have any value
  14352. #
  14353. # FIXME: -fPIC is required for -shared on many architectures,
  14354. # so we specify it here, but the right way would probably be to
  14355. # properly detect whether it is actually required.
  14356. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
  14357. LIBS="$PTHREAD_LIBS $LIBS"
  14358. CC="$PTHREAD_CC"
  14359. # In order not to create several levels of indentation, we test
  14360. # the value of "$done" until we find the cure or run out of ideas.
  14361. done="no"
  14362. # First, make sure the CFLAGS we added are actually accepted by our
  14363. # compiler. If not (and OS X's ld, for instance, does not accept -z),
  14364. # then we can't do this test.
  14365. if test x"$done" = xno; then
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
  14367. $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
  14368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14369. /* end confdefs.h. */
  14370. int
  14371. main ()
  14372. {
  14373. ;
  14374. return 0;
  14375. }
  14376. _ACEOF
  14377. if ac_fn_c_try_link "$LINENO"; then :
  14378. else
  14379. done=yes
  14380. fi
  14381. rm -f core conftest.err conftest.$ac_objext \
  14382. conftest$ac_exeext conftest.$ac_ext
  14383. if test "x$done" = xyes ; then
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14385. $as_echo "no" >&6; }
  14386. else
  14387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14388. $as_echo "yes" >&6; }
  14389. fi
  14390. fi
  14391. if test x"$done" = xno; then
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
  14393. $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
  14394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14395. /* end confdefs.h. */
  14396. #include <pthread.h>
  14397. int
  14398. main ()
  14399. {
  14400. pthread_t th; pthread_join(th, 0);
  14401. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14402. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14403. ;
  14404. return 0;
  14405. }
  14406. _ACEOF
  14407. if ac_fn_c_try_link "$LINENO"; then :
  14408. done=yes
  14409. fi
  14410. rm -f core conftest.err conftest.$ac_objext \
  14411. conftest$ac_exeext conftest.$ac_ext
  14412. if test "x$done" = xyes; then
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14414. $as_echo "yes" >&6; }
  14415. else
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14417. $as_echo "no" >&6; }
  14418. fi
  14419. fi
  14420. #
  14421. # Linux gcc on some architectures such as mips/mipsel forgets
  14422. # about -lpthread
  14423. #
  14424. if test x"$done" = xno; then
  14425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
  14426. $as_echo_n "checking whether -lpthread fixes that... " >&6; }
  14427. LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
  14428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14429. /* end confdefs.h. */
  14430. #include <pthread.h>
  14431. int
  14432. main ()
  14433. {
  14434. pthread_t th; pthread_join(th, 0);
  14435. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14436. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14437. ;
  14438. return 0;
  14439. }
  14440. _ACEOF
  14441. if ac_fn_c_try_link "$LINENO"; then :
  14442. done=yes
  14443. fi
  14444. rm -f core conftest.err conftest.$ac_objext \
  14445. conftest$ac_exeext conftest.$ac_ext
  14446. if test "x$done" = xyes; then
  14447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14448. $as_echo "yes" >&6; }
  14449. PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
  14450. else
  14451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14452. $as_echo "no" >&6; }
  14453. fi
  14454. fi
  14455. #
  14456. # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
  14457. #
  14458. if test x"$done" = xno; then
  14459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
  14460. $as_echo_n "checking whether -lc_r fixes that... " >&6; }
  14461. LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
  14462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14463. /* end confdefs.h. */
  14464. #include <pthread.h>
  14465. int
  14466. main ()
  14467. {
  14468. pthread_t th; pthread_join(th, 0);
  14469. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14470. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14471. ;
  14472. return 0;
  14473. }
  14474. _ACEOF
  14475. if ac_fn_c_try_link "$LINENO"; then :
  14476. done=yes
  14477. fi
  14478. rm -f core conftest.err conftest.$ac_objext \
  14479. conftest$ac_exeext conftest.$ac_ext
  14480. if test "x$done" = xyes; then
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14482. $as_echo "yes" >&6; }
  14483. PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
  14484. else
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14486. $as_echo "no" >&6; }
  14487. fi
  14488. fi
  14489. if test x"$done" = xno; then
  14490. # OK, we have run out of ideas
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
  14492. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
  14493. # so it's not safe to assume that we may use pthreads
  14494. acx_pthread_ok=no
  14495. fi
  14496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
  14497. $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
  14498. CFLAGS="-nostdlib $CFLAGS"
  14499. # we need c with nostdlib
  14500. LIBS="$LIBS -lc"
  14501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14502. /* end confdefs.h. */
  14503. #include <pthread.h>
  14504. int
  14505. main ()
  14506. {
  14507. pthread_t th; pthread_join(th, 0);
  14508. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14509. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14510. ;
  14511. return 0;
  14512. }
  14513. _ACEOF
  14514. if ac_fn_c_try_link "$LINENO"; then :
  14515. done=yes
  14516. else
  14517. done=no
  14518. fi
  14519. rm -f core conftest.err conftest.$ac_objext \
  14520. conftest$ac_exeext conftest.$ac_ext
  14521. if test "x$done" = xyes; then
  14522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14523. $as_echo "yes" >&6; }
  14524. else
  14525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14526. $as_echo "no" >&6; }
  14527. fi
  14528. if test x"$done" = xno; then
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
  14530. $as_echo_n "checking whether -lpthread saves the day... " >&6; }
  14531. LIBS="-lpthread $LIBS"
  14532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14533. /* end confdefs.h. */
  14534. #include <pthread.h>
  14535. int
  14536. main ()
  14537. {
  14538. pthread_t th; pthread_join(th, 0);
  14539. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14540. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14541. ;
  14542. return 0;
  14543. }
  14544. _ACEOF
  14545. if ac_fn_c_try_link "$LINENO"; then :
  14546. done=yes
  14547. else
  14548. done=no
  14549. fi
  14550. rm -f core conftest.err conftest.$ac_objext \
  14551. conftest$ac_exeext conftest.$ac_ext
  14552. if test "x$done" = xyes; then
  14553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14554. $as_echo "yes" >&6; }
  14555. PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
  14556. else
  14557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14558. $as_echo "no" >&6; }
  14559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
  14560. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
  14561. fi
  14562. fi
  14563. CFLAGS="$save_CFLAGS"
  14564. LIBS="$save_LIBS"
  14565. CC="$save_CC"
  14566. else
  14567. PTHREAD_CC="$CC"
  14568. fi
  14569. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  14570. if test x"$acx_pthread_ok" = xyes; then
  14571. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  14572. :
  14573. else
  14574. acx_pthread_ok=no
  14575. fi
  14576. ac_ext=c
  14577. ac_cpp='$CPP $CPPFLAGS'
  14578. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14579. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14580. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14581. # Find out what namespace 'normal' STL code lives in
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
  14583. $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
  14584. if test "${ac_cv_cxx_namespaces+set}" = set; then :
  14585. $as_echo_n "(cached) " >&6
  14586. else
  14587. ac_ext=cpp
  14588. ac_cpp='$CXXCPP $CPPFLAGS'
  14589. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14590. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14591. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14593. /* end confdefs.h. */
  14594. namespace Outer {
  14595. namespace Inner { int i = 0; }}
  14596. int
  14597. main ()
  14598. {
  14599. using namespace Outer::Inner; return i;
  14600. ;
  14601. return 0;
  14602. }
  14603. _ACEOF
  14604. if ac_fn_cxx_try_compile "$LINENO"; then :
  14605. ac_cv_cxx_namespaces=yes
  14606. else
  14607. ac_cv_cxx_namespaces=no
  14608. fi
  14609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14610. ac_ext=c
  14611. ac_cpp='$CPP $CPPFLAGS'
  14612. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14613. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14614. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14615. fi
  14616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
  14617. $as_echo "$ac_cv_cxx_namespaces" >&6; }
  14618. if test "$ac_cv_cxx_namespaces" = yes; then
  14619. $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
  14620. fi
  14621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
  14622. $as_echo_n "checking what namespace STL code is in... " >&6; }
  14623. if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
  14624. $as_echo_n "(cached) " >&6
  14625. else
  14626. ac_ext=cpp
  14627. ac_cpp='$CXXCPP $CPPFLAGS'
  14628. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14629. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14630. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14632. /* end confdefs.h. */
  14633. #include <vector>
  14634. int
  14635. main ()
  14636. {
  14637. vector<int> t; return 0;
  14638. ;
  14639. return 0;
  14640. }
  14641. _ACEOF
  14642. if ac_fn_cxx_try_compile "$LINENO"; then :
  14643. ac_cv_cxx_stl_namespace=none
  14644. fi
  14645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14647. /* end confdefs.h. */
  14648. #include <vector>
  14649. int
  14650. main ()
  14651. {
  14652. std::vector<int> t; return 0;
  14653. ;
  14654. return 0;
  14655. }
  14656. _ACEOF
  14657. if ac_fn_cxx_try_compile "$LINENO"; then :
  14658. ac_cv_cxx_stl_namespace=std
  14659. fi
  14660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14661. ac_ext=c
  14662. ac_cpp='$CPP $CPPFLAGS'
  14663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14666. fi
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
  14668. $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
  14669. if test "$ac_cv_cxx_stl_namespace" = none; then
  14670. $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
  14671. fi
  14672. if test "$ac_cv_cxx_stl_namespace" = std; then
  14673. $as_echo "#define STL_NAMESPACE std" >>confdefs.h
  14674. fi
  14675. # Figure out where libc has program_invocation_name
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5
  14677. $as_echo_n "checking for program_invocation_name... " >&6; }
  14678. if test "${ac_cv_have_program_invocation_name+set}" = set; then :
  14679. $as_echo_n "(cached) " >&6
  14680. else
  14681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14682. /* end confdefs.h. */
  14683. extern char* program_invocation_name;
  14684. int
  14685. main ()
  14686. {
  14687. return *program_invocation_name;
  14688. ;
  14689. return 0;
  14690. }
  14691. _ACEOF
  14692. if ac_fn_c_try_link "$LINENO"; then :
  14693. ac_cv_have_program_invocation_name=yes
  14694. else
  14695. ac_cv_have_program_invocation_name=no
  14696. fi
  14697. rm -f core conftest.err conftest.$ac_objext \
  14698. conftest$ac_exeext conftest.$ac_ext
  14699. fi
  14700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_program_invocation_name" >&5
  14701. $as_echo "$ac_cv_have_program_invocation_name" >&6; }
  14702. if test "$ac_cv_have_program_invocation_name" = "yes"; then
  14703. $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
  14704. fi
  14705. # Make the install prefix available, to figure out where to look for pprof
  14706. ac_cv_install_prefix="$prefix";
  14707. if test x"$ac_cv_install_prefix" = x"NONE" ; then
  14708. ac_cv_install_prefix="$ac_default_prefix";
  14709. fi
  14710. cat >>confdefs.h <<_ACEOF
  14711. #define INSTALL_PREFIX "$ac_cv_install_prefix"
  14712. _ACEOF
  14713. # For windows, this has a non-trivial value (__declspec(export)), but any
  14714. # system that uses configure wants this to be the empty string.
  14715. $as_echo "#define PERFTOOLS_DLL_DECL /**/" >>confdefs.h
  14716. # In theory, config.h files shouldn't need a header guard, but we do,
  14717. # because we (maybe) #include windows/mingw.h from within config.h,
  14718. # and it #includes other .h files. These all have header guards, so
  14719. # the end result is if config.h is #included twice, its #undefs get
  14720. # evaluated twice, but all the ones in mingw.h/etc only get evaluated
  14721. # once, potentially causing trouble. c.f.
  14722. # http://code.google.com/p/google-perftools/issues/detail?id=246
  14723. # MinGW uses autoconf, but also needs the windows shim routines
  14724. # (since it doesn't have its own support for, say, pthreads).
  14725. # This requires us to #include a special header file, and also to
  14726. # link in some windows versions of .o's instead of the unix versions.
  14727. #
  14728. # Also, manually mark systems where we have to be careful how early
  14729. # we run pthreads. TODO(csilvers): turn this into an autoconf check.
  14730. if expr $host : '.*-mingw' >/dev/null 2>&1; then
  14731. MINGW_TRUE=
  14732. MINGW_FALSE='#'
  14733. else
  14734. MINGW_TRUE='#'
  14735. MINGW_FALSE=
  14736. fi
  14737. if expr $host : '.*-apple-darwin.*' >/dev/null 2>&1; then
  14738. OSX_TRUE=
  14739. OSX_FALSE='#'
  14740. else
  14741. OSX_TRUE='#'
  14742. OSX_FALSE=
  14743. fi
  14744. # Redhat 7 (and below?) has sys/ucontext.h, but if you try to #include
  14745. # it directly, the compiler gets upset. So we pretend we don't have
  14746. # it.
  14747. if cat /etc/redhat-release 2>/dev/null | grep "Red Hat Linux release 7" >/dev/null 2>&1; then
  14748. $as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h
  14749. fi
  14750. # Export the --enable flags we set above. We do this at the end so
  14751. # other configure rules can enable or disable targets based on what
  14752. # they find.
  14753. if test "$enable_cpu_profiler" = yes; then
  14754. WITH_CPU_PROFILER_TRUE=
  14755. WITH_CPU_PROFILER_FALSE='#'
  14756. else
  14757. WITH_CPU_PROFILER_TRUE='#'
  14758. WITH_CPU_PROFILER_FALSE=
  14759. fi
  14760. if test "$enable_heap_profiler" = yes; then
  14761. WITH_HEAP_PROFILER_TRUE=
  14762. WITH_HEAP_PROFILER_FALSE='#'
  14763. else
  14764. WITH_HEAP_PROFILER_TRUE='#'
  14765. WITH_HEAP_PROFILER_FALSE=
  14766. fi
  14767. if test "$enable_heap_checker" = yes; then
  14768. WITH_HEAP_CHECKER_TRUE=
  14769. WITH_HEAP_CHECKER_FALSE='#'
  14770. else
  14771. WITH_HEAP_CHECKER_TRUE='#'
  14772. WITH_HEAP_CHECKER_FALSE=
  14773. fi
  14774. if test "$enable_debugalloc" = yes; then
  14775. WITH_DEBUGALLOC_TRUE=
  14776. WITH_DEBUGALLOC_FALSE='#'
  14777. else
  14778. WITH_DEBUGALLOC_TRUE='#'
  14779. WITH_DEBUGALLOC_FALSE=
  14780. fi
  14781. # We make tcmalloc.so if either heap-profiler or heap-checker is asked for.
  14782. if test "$enable_heap_profiler" = yes -o \
  14783. "$enable_heap_checker" = yes; then
  14784. WITH_HEAP_PROFILER_OR_CHECKER_TRUE=
  14785. WITH_HEAP_PROFILER_OR_CHECKER_FALSE='#'
  14786. else
  14787. WITH_HEAP_PROFILER_OR_CHECKER_TRUE='#'
  14788. WITH_HEAP_PROFILER_OR_CHECKER_FALSE=
  14789. fi
  14790. # If we don't use any profilers, we don't need stack traces (or pprof)
  14791. if test "$enable_cpu_profiler" = yes -o \
  14792. "$enable_heap_profiler" = yes -o \
  14793. "$enable_heap_checker" = yes; then
  14794. WITH_STACK_TRACE_TRUE=
  14795. WITH_STACK_TRACE_FALSE='#'
  14796. else
  14797. WITH_STACK_TRACE_TRUE='#'
  14798. WITH_STACK_TRACE_FALSE=
  14799. fi
  14800. # Write generated configuration file
  14801. ac_config_files="$ac_config_files Makefile src/google/tcmalloc.h src/windows/google/tcmalloc.h"
  14802. cat >confcache <<\_ACEOF
  14803. # This file is a shell script that caches the results of configure
  14804. # tests run on this system so they can be shared between configure
  14805. # scripts and configure runs, see configure's option --config-cache.
  14806. # It is not useful on other systems. If it contains results you don't
  14807. # want to keep, you may remove or edit it.
  14808. #
  14809. # config.status only pays attention to the cache file if you give it
  14810. # the --recheck option to rerun configure.
  14811. #
  14812. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14813. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14814. # following values.
  14815. _ACEOF
  14816. # The following way of writing the cache mishandles newlines in values,
  14817. # but we know of no workaround that is simple, portable, and efficient.
  14818. # So, we kill variables containing newlines.
  14819. # Ultrix sh set writes to stderr and can't be redirected directly,
  14820. # and sets the high bit in the cache file unless we assign to the vars.
  14821. (
  14822. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14823. eval ac_val=\$$ac_var
  14824. case $ac_val in #(
  14825. *${as_nl}*)
  14826. case $ac_var in #(
  14827. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14828. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14829. esac
  14830. case $ac_var in #(
  14831. _ | IFS | as_nl) ;; #(
  14832. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14833. *) { eval $ac_var=; unset $ac_var;} ;;
  14834. esac ;;
  14835. esac
  14836. done
  14837. (set) 2>&1 |
  14838. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14839. *${as_nl}ac_space=\ *)
  14840. # `set' does not quote correctly, so add quotes: double-quote
  14841. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14842. sed -n \
  14843. "s/'/'\\\\''/g;
  14844. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14845. ;; #(
  14846. *)
  14847. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14848. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14849. ;;
  14850. esac |
  14851. sort
  14852. ) |
  14853. sed '
  14854. /^ac_cv_env_/b end
  14855. t clear
  14856. :clear
  14857. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14858. t end
  14859. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14860. :end' >>confcache
  14861. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14862. if test -w "$cache_file"; then
  14863. test "x$cache_file" != "x/dev/null" &&
  14864. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14865. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14866. cat confcache >$cache_file
  14867. else
  14868. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14869. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14870. fi
  14871. fi
  14872. rm -f confcache
  14873. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14874. # Let make expand exec_prefix.
  14875. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14876. DEFS=-DHAVE_CONFIG_H
  14877. ac_libobjs=
  14878. ac_ltlibobjs=
  14879. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14880. # 1. Remove the extension, and $U if already installed.
  14881. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14882. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14883. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14884. # will be set to the directory where LIBOBJS objects are built.
  14885. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14886. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14887. done
  14888. LIBOBJS=$ac_libobjs
  14889. LTLIBOBJS=$ac_ltlibobjs
  14890. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14891. as_fn_error "conditional \"AMDEP\" was never defined.
  14892. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14893. fi
  14894. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14895. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14896. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14897. fi
  14898. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14899. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14900. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14901. fi
  14902. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  14903. as_fn_error "conditional \"GCC\" was never defined.
  14904. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14905. fi
  14906. if test -z "${HAVE_OBJCOPY_WEAKEN_TRUE}" && test -z "${HAVE_OBJCOPY_WEAKEN_FALSE}"; then
  14907. as_fn_error "conditional \"HAVE_OBJCOPY_WEAKEN\" was never defined.
  14908. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14909. fi
  14910. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14911. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14912. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14913. fi
  14914. if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
  14915. as_fn_error "conditional \"USE_LIBTOOL\" was never defined.
  14916. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14917. fi
  14918. if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
  14919. as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
  14920. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14921. fi
  14922. if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
  14923. as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
  14924. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14925. fi
  14926. if test -z "${X86_64_AND_NO_FP_BY_DEFAULT_TRUE}" && test -z "${X86_64_AND_NO_FP_BY_DEFAULT_FALSE}"; then
  14927. as_fn_error "conditional \"X86_64_AND_NO_FP_BY_DEFAULT\" was never defined.
  14928. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14929. fi
  14930. if test -z "${I386_TRUE}" && test -z "${I386_FALSE}"; then
  14931. as_fn_error "conditional \"I386\" was never defined.
  14932. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14933. fi
  14934. if test -z "${HAVE_W_NO_UNUSED_RESULT_TRUE}" && test -z "${HAVE_W_NO_UNUSED_RESULT_FALSE}"; then
  14935. as_fn_error "conditional \"HAVE_W_NO_UNUSED_RESULT\" was never defined.
  14936. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14937. fi
  14938. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  14939. as_fn_error "conditional \"MINGW\" was never defined.
  14940. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14941. fi
  14942. if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
  14943. as_fn_error "conditional \"OSX\" was never defined.
  14944. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14945. fi
  14946. if test -z "${WITH_CPU_PROFILER_TRUE}" && test -z "${WITH_CPU_PROFILER_FALSE}"; then
  14947. as_fn_error "conditional \"WITH_CPU_PROFILER\" was never defined.
  14948. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14949. fi
  14950. if test -z "${WITH_HEAP_PROFILER_TRUE}" && test -z "${WITH_HEAP_PROFILER_FALSE}"; then
  14951. as_fn_error "conditional \"WITH_HEAP_PROFILER\" was never defined.
  14952. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14953. fi
  14954. if test -z "${WITH_HEAP_CHECKER_TRUE}" && test -z "${WITH_HEAP_CHECKER_FALSE}"; then
  14955. as_fn_error "conditional \"WITH_HEAP_CHECKER\" was never defined.
  14956. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14957. fi
  14958. if test -z "${WITH_DEBUGALLOC_TRUE}" && test -z "${WITH_DEBUGALLOC_FALSE}"; then
  14959. as_fn_error "conditional \"WITH_DEBUGALLOC\" was never defined.
  14960. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14961. fi
  14962. if test -z "${WITH_HEAP_PROFILER_OR_CHECKER_TRUE}" && test -z "${WITH_HEAP_PROFILER_OR_CHECKER_FALSE}"; then
  14963. as_fn_error "conditional \"WITH_HEAP_PROFILER_OR_CHECKER\" was never defined.
  14964. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14965. fi
  14966. if test -z "${WITH_STACK_TRACE_TRUE}" && test -z "${WITH_STACK_TRACE_FALSE}"; then
  14967. as_fn_error "conditional \"WITH_STACK_TRACE\" was never defined.
  14968. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14969. fi
  14970. : ${CONFIG_STATUS=./config.status}
  14971. ac_write_fail=0
  14972. ac_clean_files_save=$ac_clean_files
  14973. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14974. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14975. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14976. as_write_fail=0
  14977. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14978. #! $SHELL
  14979. # Generated by $as_me.
  14980. # Run this file to recreate the current configuration.
  14981. # Compiler output produced by configure, useful for debugging
  14982. # configure, is in config.log if it exists.
  14983. debug=false
  14984. ac_cs_recheck=false
  14985. ac_cs_silent=false
  14986. SHELL=\${CONFIG_SHELL-$SHELL}
  14987. export SHELL
  14988. _ASEOF
  14989. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14990. ## -------------------- ##
  14991. ## M4sh Initialization. ##
  14992. ## -------------------- ##
  14993. # Be more Bourne compatible
  14994. DUALCASE=1; export DUALCASE # for MKS sh
  14995. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14996. emulate sh
  14997. NULLCMD=:
  14998. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14999. # is contrary to our usage. Disable this feature.
  15000. alias -g '${1+"$@"}'='"$@"'
  15001. setopt NO_GLOB_SUBST
  15002. else
  15003. case `(set -o) 2>/dev/null` in #(
  15004. *posix*) :
  15005. set -o posix ;; #(
  15006. *) :
  15007. ;;
  15008. esac
  15009. fi
  15010. as_nl='
  15011. '
  15012. export as_nl
  15013. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15014. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15015. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15016. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15017. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15018. # but without wasting forks for bash or zsh.
  15019. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15020. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15021. as_echo='print -r --'
  15022. as_echo_n='print -rn --'
  15023. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15024. as_echo='printf %s\n'
  15025. as_echo_n='printf %s'
  15026. else
  15027. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15028. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15029. as_echo_n='/usr/ucb/echo -n'
  15030. else
  15031. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15032. as_echo_n_body='eval
  15033. arg=$1;
  15034. case $arg in #(
  15035. *"$as_nl"*)
  15036. expr "X$arg" : "X\\(.*\\)$as_nl";
  15037. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15038. esac;
  15039. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15040. '
  15041. export as_echo_n_body
  15042. as_echo_n='sh -c $as_echo_n_body as_echo'
  15043. fi
  15044. export as_echo_body
  15045. as_echo='sh -c $as_echo_body as_echo'
  15046. fi
  15047. # The user is always right.
  15048. if test "${PATH_SEPARATOR+set}" != set; then
  15049. PATH_SEPARATOR=:
  15050. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15051. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15052. PATH_SEPARATOR=';'
  15053. }
  15054. fi
  15055. # IFS
  15056. # We need space, tab and new line, in precisely that order. Quoting is
  15057. # there to prevent editors from complaining about space-tab.
  15058. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15059. # splitting by setting IFS to empty value.)
  15060. IFS=" "" $as_nl"
  15061. # Find who we are. Look in the path if we contain no directory separator.
  15062. case $0 in #((
  15063. *[\\/]* ) as_myself=$0 ;;
  15064. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15065. for as_dir in $PATH
  15066. do
  15067. IFS=$as_save_IFS
  15068. test -z "$as_dir" && as_dir=.
  15069. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15070. done
  15071. IFS=$as_save_IFS
  15072. ;;
  15073. esac
  15074. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15075. # in which case we are not to be found in the path.
  15076. if test "x$as_myself" = x; then
  15077. as_myself=$0
  15078. fi
  15079. if test ! -f "$as_myself"; then
  15080. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15081. exit 1
  15082. fi
  15083. # Unset variables that we do not need and which cause bugs (e.g. in
  15084. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15085. # suppresses any "Segmentation fault" message there. '((' could
  15086. # trigger a bug in pdksh 5.2.14.
  15087. for as_var in BASH_ENV ENV MAIL MAILPATH
  15088. do eval test x\${$as_var+set} = xset \
  15089. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15090. done
  15091. PS1='$ '
  15092. PS2='> '
  15093. PS4='+ '
  15094. # NLS nuisances.
  15095. LC_ALL=C
  15096. export LC_ALL
  15097. LANGUAGE=C
  15098. export LANGUAGE
  15099. # CDPATH.
  15100. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15101. # as_fn_error ERROR [LINENO LOG_FD]
  15102. # ---------------------------------
  15103. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15104. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15105. # script with status $?, using 1 if that was 0.
  15106. as_fn_error ()
  15107. {
  15108. as_status=$?; test $as_status -eq 0 && as_status=1
  15109. if test "$3"; then
  15110. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15111. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  15112. fi
  15113. $as_echo "$as_me: error: $1" >&2
  15114. as_fn_exit $as_status
  15115. } # as_fn_error
  15116. # as_fn_set_status STATUS
  15117. # -----------------------
  15118. # Set $? to STATUS, without forking.
  15119. as_fn_set_status ()
  15120. {
  15121. return $1
  15122. } # as_fn_set_status
  15123. # as_fn_exit STATUS
  15124. # -----------------
  15125. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15126. as_fn_exit ()
  15127. {
  15128. set +e
  15129. as_fn_set_status $1
  15130. exit $1
  15131. } # as_fn_exit
  15132. # as_fn_unset VAR
  15133. # ---------------
  15134. # Portably unset VAR.
  15135. as_fn_unset ()
  15136. {
  15137. { eval $1=; unset $1;}
  15138. }
  15139. as_unset=as_fn_unset
  15140. # as_fn_append VAR VALUE
  15141. # ----------------------
  15142. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15143. # advantage of any shell optimizations that allow amortized linear growth over
  15144. # repeated appends, instead of the typical quadratic growth present in naive
  15145. # implementations.
  15146. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15147. eval 'as_fn_append ()
  15148. {
  15149. eval $1+=\$2
  15150. }'
  15151. else
  15152. as_fn_append ()
  15153. {
  15154. eval $1=\$$1\$2
  15155. }
  15156. fi # as_fn_append
  15157. # as_fn_arith ARG...
  15158. # ------------------
  15159. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15160. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15161. # must be portable across $(()) and expr.
  15162. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15163. eval 'as_fn_arith ()
  15164. {
  15165. as_val=$(( $* ))
  15166. }'
  15167. else
  15168. as_fn_arith ()
  15169. {
  15170. as_val=`expr "$@" || test $? -eq 1`
  15171. }
  15172. fi # as_fn_arith
  15173. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15174. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15175. as_expr=expr
  15176. else
  15177. as_expr=false
  15178. fi
  15179. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15180. as_basename=basename
  15181. else
  15182. as_basename=false
  15183. fi
  15184. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15185. as_dirname=dirname
  15186. else
  15187. as_dirname=false
  15188. fi
  15189. as_me=`$as_basename -- "$0" ||
  15190. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15191. X"$0" : 'X\(//\)$' \| \
  15192. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15193. $as_echo X/"$0" |
  15194. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15195. s//\1/
  15196. q
  15197. }
  15198. /^X\/\(\/\/\)$/{
  15199. s//\1/
  15200. q
  15201. }
  15202. /^X\/\(\/\).*/{
  15203. s//\1/
  15204. q
  15205. }
  15206. s/.*/./; q'`
  15207. # Avoid depending upon Character Ranges.
  15208. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15209. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15210. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15211. as_cr_digits='0123456789'
  15212. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15213. ECHO_C= ECHO_N= ECHO_T=
  15214. case `echo -n x` in #(((((
  15215. -n*)
  15216. case `echo 'xy\c'` in
  15217. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15218. xy) ECHO_C='\c';;
  15219. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15220. ECHO_T=' ';;
  15221. esac;;
  15222. *)
  15223. ECHO_N='-n';;
  15224. esac
  15225. rm -f conf$$ conf$$.exe conf$$.file
  15226. if test -d conf$$.dir; then
  15227. rm -f conf$$.dir/conf$$.file
  15228. else
  15229. rm -f conf$$.dir
  15230. mkdir conf$$.dir 2>/dev/null
  15231. fi
  15232. if (echo >conf$$.file) 2>/dev/null; then
  15233. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15234. as_ln_s='ln -s'
  15235. # ... but there are two gotchas:
  15236. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15237. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15238. # In both cases, we have to default to `cp -p'.
  15239. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15240. as_ln_s='cp -p'
  15241. elif ln conf$$.file conf$$ 2>/dev/null; then
  15242. as_ln_s=ln
  15243. else
  15244. as_ln_s='cp -p'
  15245. fi
  15246. else
  15247. as_ln_s='cp -p'
  15248. fi
  15249. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15250. rmdir conf$$.dir 2>/dev/null
  15251. # as_fn_mkdir_p
  15252. # -------------
  15253. # Create "$as_dir" as a directory, including parents if necessary.
  15254. as_fn_mkdir_p ()
  15255. {
  15256. case $as_dir in #(
  15257. -*) as_dir=./$as_dir;;
  15258. esac
  15259. test -d "$as_dir" || eval $as_mkdir_p || {
  15260. as_dirs=
  15261. while :; do
  15262. case $as_dir in #(
  15263. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15264. *) as_qdir=$as_dir;;
  15265. esac
  15266. as_dirs="'$as_qdir' $as_dirs"
  15267. as_dir=`$as_dirname -- "$as_dir" ||
  15268. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15269. X"$as_dir" : 'X\(//\)[^/]' \| \
  15270. X"$as_dir" : 'X\(//\)$' \| \
  15271. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15272. $as_echo X"$as_dir" |
  15273. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15274. s//\1/
  15275. q
  15276. }
  15277. /^X\(\/\/\)[^/].*/{
  15278. s//\1/
  15279. q
  15280. }
  15281. /^X\(\/\/\)$/{
  15282. s//\1/
  15283. q
  15284. }
  15285. /^X\(\/\).*/{
  15286. s//\1/
  15287. q
  15288. }
  15289. s/.*/./; q'`
  15290. test -d "$as_dir" && break
  15291. done
  15292. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15293. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  15294. } # as_fn_mkdir_p
  15295. if mkdir -p . 2>/dev/null; then
  15296. as_mkdir_p='mkdir -p "$as_dir"'
  15297. else
  15298. test -d ./-p && rmdir ./-p
  15299. as_mkdir_p=false
  15300. fi
  15301. if test -x / >/dev/null 2>&1; then
  15302. as_test_x='test -x'
  15303. else
  15304. if ls -dL / >/dev/null 2>&1; then
  15305. as_ls_L_option=L
  15306. else
  15307. as_ls_L_option=
  15308. fi
  15309. as_test_x='
  15310. eval sh -c '\''
  15311. if test -d "$1"; then
  15312. test -d "$1/.";
  15313. else
  15314. case $1 in #(
  15315. -*)set "./$1";;
  15316. esac;
  15317. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15318. ???[sx]*):;;*)false;;esac;fi
  15319. '\'' sh
  15320. '
  15321. fi
  15322. as_executable_p=$as_test_x
  15323. # Sed expression to map a string onto a valid CPP name.
  15324. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15325. # Sed expression to map a string onto a valid variable name.
  15326. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15327. exec 6>&1
  15328. ## ----------------------------------- ##
  15329. ## Main body of $CONFIG_STATUS script. ##
  15330. ## ----------------------------------- ##
  15331. _ASEOF
  15332. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15333. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15334. # Save the log message, to keep $0 and so on meaningful, and to
  15335. # report actual input values of CONFIG_FILES etc. instead of their
  15336. # values after options handling.
  15337. ac_log="
  15338. This file was extended by google-perftools $as_me 1.9.1, which was
  15339. generated by GNU Autoconf 2.65. Invocation command line was
  15340. CONFIG_FILES = $CONFIG_FILES
  15341. CONFIG_HEADERS = $CONFIG_HEADERS
  15342. CONFIG_LINKS = $CONFIG_LINKS
  15343. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15344. $ $0 $@
  15345. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15346. "
  15347. _ACEOF
  15348. case $ac_config_files in *"
  15349. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15350. esac
  15351. case $ac_config_headers in *"
  15352. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15353. esac
  15354. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15355. # Files that config.status was made for.
  15356. config_files="$ac_config_files"
  15357. config_headers="$ac_config_headers"
  15358. config_commands="$ac_config_commands"
  15359. _ACEOF
  15360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15361. ac_cs_usage="\
  15362. \`$as_me' instantiates files and other configuration actions
  15363. from templates according to the current configuration. Unless the files
  15364. and actions are specified as TAGs, all are instantiated by default.
  15365. Usage: $0 [OPTION]... [TAG]...
  15366. -h, --help print this help, then exit
  15367. -V, --version print version number and configuration settings, then exit
  15368. --config print configuration, then exit
  15369. -q, --quiet, --silent
  15370. do not print progress messages
  15371. -d, --debug don't remove temporary files
  15372. --recheck update $as_me by reconfiguring in the same conditions
  15373. --file=FILE[:TEMPLATE]
  15374. instantiate the configuration file FILE
  15375. --header=FILE[:TEMPLATE]
  15376. instantiate the configuration header FILE
  15377. Configuration files:
  15378. $config_files
  15379. Configuration headers:
  15380. $config_headers
  15381. Configuration commands:
  15382. $config_commands
  15383. Report bugs to <opensource@google.com>."
  15384. _ACEOF
  15385. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15386. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15387. ac_cs_version="\\
  15388. google-perftools config.status 1.9.1
  15389. configured by $0, generated by GNU Autoconf 2.65,
  15390. with options \\"\$ac_cs_config\\"
  15391. Copyright (C) 2009 Free Software Foundation, Inc.
  15392. This config.status script is free software; the Free Software Foundation
  15393. gives unlimited permission to copy, distribute and modify it."
  15394. ac_pwd='$ac_pwd'
  15395. srcdir='$srcdir'
  15396. INSTALL='$INSTALL'
  15397. AWK='$AWK'
  15398. test -n "\$AWK" || AWK=awk
  15399. _ACEOF
  15400. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15401. # The default lists apply if the user does not specify any file.
  15402. ac_need_defaults=:
  15403. while test $# != 0
  15404. do
  15405. case $1 in
  15406. --*=*)
  15407. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15408. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15409. ac_shift=:
  15410. ;;
  15411. *)
  15412. ac_option=$1
  15413. ac_optarg=$2
  15414. ac_shift=shift
  15415. ;;
  15416. esac
  15417. case $ac_option in
  15418. # Handling of the options.
  15419. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15420. ac_cs_recheck=: ;;
  15421. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15422. $as_echo "$ac_cs_version"; exit ;;
  15423. --config | --confi | --conf | --con | --co | --c )
  15424. $as_echo "$ac_cs_config"; exit ;;
  15425. --debug | --debu | --deb | --de | --d | -d )
  15426. debug=: ;;
  15427. --file | --fil | --fi | --f )
  15428. $ac_shift
  15429. case $ac_optarg in
  15430. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15431. esac
  15432. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15433. ac_need_defaults=false;;
  15434. --header | --heade | --head | --hea )
  15435. $ac_shift
  15436. case $ac_optarg in
  15437. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15438. esac
  15439. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15440. ac_need_defaults=false;;
  15441. --he | --h)
  15442. # Conflict between --help and --header
  15443. as_fn_error "ambiguous option: \`$1'
  15444. Try \`$0 --help' for more information.";;
  15445. --help | --hel | -h )
  15446. $as_echo "$ac_cs_usage"; exit ;;
  15447. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15448. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15449. ac_cs_silent=: ;;
  15450. # This is an error.
  15451. -*) as_fn_error "unrecognized option: \`$1'
  15452. Try \`$0 --help' for more information." ;;
  15453. *) as_fn_append ac_config_targets " $1"
  15454. ac_need_defaults=false ;;
  15455. esac
  15456. shift
  15457. done
  15458. ac_configure_extra_args=
  15459. if $ac_cs_silent; then
  15460. exec 6>/dev/null
  15461. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15462. fi
  15463. _ACEOF
  15464. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15465. if \$ac_cs_recheck; then
  15466. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15467. shift
  15468. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15469. CONFIG_SHELL='$SHELL'
  15470. export CONFIG_SHELL
  15471. exec "\$@"
  15472. fi
  15473. _ACEOF
  15474. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15475. exec 5>>config.log
  15476. {
  15477. echo
  15478. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15479. ## Running $as_me. ##
  15480. _ASBOX
  15481. $as_echo "$ac_log"
  15482. } >&5
  15483. _ACEOF
  15484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15485. #
  15486. # INIT-COMMANDS
  15487. #
  15488. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15489. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15490. # if CDPATH is set.
  15491. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15492. sed_quote_subst='$sed_quote_subst'
  15493. double_quote_subst='$double_quote_subst'
  15494. delay_variable_subst='$delay_variable_subst'
  15495. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  15496. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  15497. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  15498. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  15499. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  15500. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  15501. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  15502. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  15503. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  15504. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  15505. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  15506. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  15507. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  15508. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  15509. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  15510. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  15511. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  15512. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  15513. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  15514. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  15515. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  15516. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  15517. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  15518. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  15519. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  15520. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  15521. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15522. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15523. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  15524. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  15525. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  15526. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  15527. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  15528. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  15529. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  15530. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15531. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15532. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15533. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  15534. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  15535. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  15536. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  15537. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  15538. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  15539. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  15540. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  15541. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  15542. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  15543. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  15544. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  15545. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15546. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  15547. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  15548. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  15549. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  15550. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  15551. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  15552. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  15553. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  15554. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  15555. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  15556. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  15557. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15558. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15559. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  15560. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  15561. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15562. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15563. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  15564. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15565. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15566. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15567. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15568. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15569. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15570. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  15571. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15572. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15573. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15574. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  15575. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  15576. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  15577. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  15578. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  15579. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15580. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  15581. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  15582. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  15583. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  15584. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  15585. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15586. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  15587. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  15588. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15589. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15590. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  15591. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  15592. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  15593. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  15594. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15595. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15596. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  15597. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15598. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15599. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15600. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15601. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15602. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15603. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  15604. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  15605. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15606. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15607. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  15608. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  15609. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  15610. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  15611. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  15612. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  15613. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  15614. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  15615. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  15616. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  15617. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  15618. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  15619. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15620. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15621. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15622. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15623. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15624. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15625. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15626. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15627. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15628. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15629. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15630. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15631. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15632. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15633. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15634. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15635. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15636. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15637. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15638. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15639. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15640. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15641. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15642. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15643. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15644. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15645. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15646. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15647. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15648. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15649. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15650. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15651. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15652. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15653. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15654. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15655. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15656. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15657. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15658. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15659. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15660. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15661. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15662. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15663. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15664. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15665. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15666. LTCC='$LTCC'
  15667. LTCFLAGS='$LTCFLAGS'
  15668. compiler='$compiler_DEFAULT'
  15669. # Quote evaled strings.
  15670. for var in SED \
  15671. GREP \
  15672. EGREP \
  15673. FGREP \
  15674. LD \
  15675. NM \
  15676. LN_S \
  15677. lt_SP2NL \
  15678. lt_NL2SP \
  15679. reload_flag \
  15680. OBJDUMP \
  15681. deplibs_check_method \
  15682. file_magic_cmd \
  15683. AR \
  15684. AR_FLAGS \
  15685. STRIP \
  15686. RANLIB \
  15687. CC \
  15688. CFLAGS \
  15689. compiler \
  15690. lt_cv_sys_global_symbol_pipe \
  15691. lt_cv_sys_global_symbol_to_cdecl \
  15692. lt_cv_sys_global_symbol_to_c_name_address \
  15693. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15694. SHELL \
  15695. ECHO \
  15696. lt_prog_compiler_no_builtin_flag \
  15697. lt_prog_compiler_wl \
  15698. lt_prog_compiler_pic \
  15699. lt_prog_compiler_static \
  15700. lt_cv_prog_compiler_c_o \
  15701. need_locks \
  15702. DSYMUTIL \
  15703. NMEDIT \
  15704. LIPO \
  15705. OTOOL \
  15706. OTOOL64 \
  15707. shrext_cmds \
  15708. export_dynamic_flag_spec \
  15709. whole_archive_flag_spec \
  15710. compiler_needs_object \
  15711. with_gnu_ld \
  15712. allow_undefined_flag \
  15713. no_undefined_flag \
  15714. hardcode_libdir_flag_spec \
  15715. hardcode_libdir_flag_spec_ld \
  15716. hardcode_libdir_separator \
  15717. fix_srcfile_path \
  15718. exclude_expsyms \
  15719. include_expsyms \
  15720. file_list_spec \
  15721. variables_saved_for_relink \
  15722. libname_spec \
  15723. library_names_spec \
  15724. soname_spec \
  15725. finish_eval \
  15726. old_striplib \
  15727. striplib \
  15728. compiler_lib_search_dirs \
  15729. predep_objects \
  15730. postdep_objects \
  15731. predeps \
  15732. postdeps \
  15733. compiler_lib_search_path \
  15734. LD_CXX \
  15735. compiler_CXX \
  15736. lt_prog_compiler_no_builtin_flag_CXX \
  15737. lt_prog_compiler_wl_CXX \
  15738. lt_prog_compiler_pic_CXX \
  15739. lt_prog_compiler_static_CXX \
  15740. lt_cv_prog_compiler_c_o_CXX \
  15741. export_dynamic_flag_spec_CXX \
  15742. whole_archive_flag_spec_CXX \
  15743. compiler_needs_object_CXX \
  15744. with_gnu_ld_CXX \
  15745. allow_undefined_flag_CXX \
  15746. no_undefined_flag_CXX \
  15747. hardcode_libdir_flag_spec_CXX \
  15748. hardcode_libdir_flag_spec_ld_CXX \
  15749. hardcode_libdir_separator_CXX \
  15750. fix_srcfile_path_CXX \
  15751. exclude_expsyms_CXX \
  15752. include_expsyms_CXX \
  15753. file_list_spec_CXX \
  15754. compiler_lib_search_dirs_CXX \
  15755. predep_objects_CXX \
  15756. postdep_objects_CXX \
  15757. predeps_CXX \
  15758. postdeps_CXX \
  15759. compiler_lib_search_path_CXX; do
  15760. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  15761. *[\\\\\\\`\\"\\\$]*)
  15762. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15763. ;;
  15764. *)
  15765. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15766. ;;
  15767. esac
  15768. done
  15769. # Double-quote double-evaled strings.
  15770. for var in reload_cmds \
  15771. old_postinstall_cmds \
  15772. old_postuninstall_cmds \
  15773. old_archive_cmds \
  15774. extract_expsyms_cmds \
  15775. old_archive_from_new_cmds \
  15776. old_archive_from_expsyms_cmds \
  15777. archive_cmds \
  15778. archive_expsym_cmds \
  15779. module_cmds \
  15780. module_expsym_cmds \
  15781. export_symbols_cmds \
  15782. prelink_cmds \
  15783. postinstall_cmds \
  15784. postuninstall_cmds \
  15785. finish_cmds \
  15786. sys_lib_search_path_spec \
  15787. sys_lib_dlsearch_path_spec \
  15788. old_archive_cmds_CXX \
  15789. old_archive_from_new_cmds_CXX \
  15790. old_archive_from_expsyms_cmds_CXX \
  15791. archive_cmds_CXX \
  15792. archive_expsym_cmds_CXX \
  15793. module_cmds_CXX \
  15794. module_expsym_cmds_CXX \
  15795. export_symbols_cmds_CXX \
  15796. prelink_cmds_CXX; do
  15797. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  15798. *[\\\\\\\`\\"\\\$]*)
  15799. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15800. ;;
  15801. *)
  15802. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15803. ;;
  15804. esac
  15805. done
  15806. # Fix-up fallback echo if it was mangled by the above quoting rules.
  15807. case \$lt_ECHO in
  15808. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  15809. ;;
  15810. esac
  15811. ac_aux_dir='$ac_aux_dir'
  15812. xsi_shell='$xsi_shell'
  15813. lt_shell_append='$lt_shell_append'
  15814. # See if we are running on zsh, and set the options which allow our
  15815. # commands through without removal of \ escapes INIT.
  15816. if test -n "\${ZSH_VERSION+set}" ; then
  15817. setopt NO_GLOB_SUBST
  15818. fi
  15819. PACKAGE='$PACKAGE'
  15820. VERSION='$VERSION'
  15821. TIMESTAMP='$TIMESTAMP'
  15822. RM='$RM'
  15823. ofile='$ofile'
  15824. _ACEOF
  15825. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15826. # Handling of arguments.
  15827. for ac_config_target in $ac_config_targets
  15828. do
  15829. case $ac_config_target in
  15830. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  15831. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15832. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15833. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15834. "src/google/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/google/tcmalloc.h" ;;
  15835. "src/windows/google/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/windows/google/tcmalloc.h" ;;
  15836. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15837. esac
  15838. done
  15839. # If the user did not use the arguments to specify the items to instantiate,
  15840. # then the envvar interface is used. Set only those that are not.
  15841. # We use the long form for the default assignment because of an extremely
  15842. # bizarre bug on SunOS 4.1.3.
  15843. if $ac_need_defaults; then
  15844. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15845. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15846. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15847. fi
  15848. # Have a temporary directory for convenience. Make it in the build tree
  15849. # simply because there is no reason against having it here, and in addition,
  15850. # creating and moving files from /tmp can sometimes cause problems.
  15851. # Hook for its removal unless debugging.
  15852. # Note that there is a small window in which the directory will not be cleaned:
  15853. # after its creation but before its name has been assigned to `$tmp'.
  15854. $debug ||
  15855. {
  15856. tmp=
  15857. trap 'exit_status=$?
  15858. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15859. ' 0
  15860. trap 'as_fn_exit 1' 1 2 13 15
  15861. }
  15862. # Create a (secure) tmp directory for tmp files.
  15863. {
  15864. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15865. test -n "$tmp" && test -d "$tmp"
  15866. } ||
  15867. {
  15868. tmp=./conf$$-$RANDOM
  15869. (umask 077 && mkdir "$tmp")
  15870. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  15871. # Set up the scripts for CONFIG_FILES section.
  15872. # No need to generate them if there are no CONFIG_FILES.
  15873. # This happens for instance with `./config.status config.h'.
  15874. if test -n "$CONFIG_FILES"; then
  15875. ac_cr=`echo X | tr X '\015'`
  15876. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15877. # But we know of no other shell where ac_cr would be empty at this
  15878. # point, so we can use a bashism as a fallback.
  15879. if test "x$ac_cr" = x; then
  15880. eval ac_cr=\$\'\\r\'
  15881. fi
  15882. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15883. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15884. ac_cs_awk_cr='\r'
  15885. else
  15886. ac_cs_awk_cr=$ac_cr
  15887. fi
  15888. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15889. _ACEOF
  15890. {
  15891. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15892. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15893. echo "_ACEOF"
  15894. } >conf$$subs.sh ||
  15895. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15896. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  15897. ac_delim='%!_!# '
  15898. for ac_last_try in false false false false false :; do
  15899. . ./conf$$subs.sh ||
  15900. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15901. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15902. if test $ac_delim_n = $ac_delim_num; then
  15903. break
  15904. elif $ac_last_try; then
  15905. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15906. else
  15907. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15908. fi
  15909. done
  15910. rm -f conf$$subs.sh
  15911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15912. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15913. _ACEOF
  15914. sed -n '
  15915. h
  15916. s/^/S["/; s/!.*/"]=/
  15917. p
  15918. g
  15919. s/^[^!]*!//
  15920. :repl
  15921. t repl
  15922. s/'"$ac_delim"'$//
  15923. t delim
  15924. :nl
  15925. h
  15926. s/\(.\{148\}\)..*/\1/
  15927. t more1
  15928. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15929. p
  15930. n
  15931. b repl
  15932. :more1
  15933. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15934. p
  15935. g
  15936. s/.\{148\}//
  15937. t nl
  15938. :delim
  15939. h
  15940. s/\(.\{148\}\)..*/\1/
  15941. t more2
  15942. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15943. p
  15944. b
  15945. :more2
  15946. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15947. p
  15948. g
  15949. s/.\{148\}//
  15950. t delim
  15951. ' <conf$$subs.awk | sed '
  15952. /^[^""]/{
  15953. N
  15954. s/\n//
  15955. }
  15956. ' >>$CONFIG_STATUS || ac_write_fail=1
  15957. rm -f conf$$subs.awk
  15958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15959. _ACAWK
  15960. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15961. for (key in S) S_is_set[key] = 1
  15962. FS = ""
  15963. }
  15964. {
  15965. line = $ 0
  15966. nfields = split(line, field, "@")
  15967. substed = 0
  15968. len = length(field[1])
  15969. for (i = 2; i < nfields; i++) {
  15970. key = field[i]
  15971. keylen = length(key)
  15972. if (S_is_set[key]) {
  15973. value = S[key]
  15974. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15975. len += length(value) + length(field[++i])
  15976. substed = 1
  15977. } else
  15978. len += 1 + keylen
  15979. }
  15980. print line
  15981. }
  15982. _ACAWK
  15983. _ACEOF
  15984. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15985. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15986. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15987. else
  15988. cat
  15989. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15990. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  15991. _ACEOF
  15992. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15993. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15994. # trailing colons and then remove the whole line if VPATH becomes empty
  15995. # (actually we leave an empty line to preserve line numbers).
  15996. if test "x$srcdir" = x.; then
  15997. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15998. s/:*\$(srcdir):*/:/
  15999. s/:*\${srcdir}:*/:/
  16000. s/:*@srcdir@:*/:/
  16001. s/^\([^=]*=[ ]*\):*/\1/
  16002. s/:*$//
  16003. s/^[^=]*=[ ]*$//
  16004. }'
  16005. fi
  16006. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16007. fi # test -n "$CONFIG_FILES"
  16008. # Set up the scripts for CONFIG_HEADERS section.
  16009. # No need to generate them if there are no CONFIG_HEADERS.
  16010. # This happens for instance with `./config.status Makefile'.
  16011. if test -n "$CONFIG_HEADERS"; then
  16012. cat >"$tmp/defines.awk" <<\_ACAWK ||
  16013. BEGIN {
  16014. _ACEOF
  16015. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16016. # here-document in config.status, that substitutes the proper values into
  16017. # config.h.in to produce config.h.
  16018. # Create a delimiter string that does not exist in confdefs.h, to ease
  16019. # handling of long lines.
  16020. ac_delim='%!_!# '
  16021. for ac_last_try in false false :; do
  16022. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  16023. if test -z "$ac_t"; then
  16024. break
  16025. elif $ac_last_try; then
  16026. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  16027. else
  16028. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16029. fi
  16030. done
  16031. # For the awk script, D is an array of macro values keyed by name,
  16032. # likewise P contains macro parameters if any. Preserve backslash
  16033. # newline sequences.
  16034. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16035. sed -n '
  16036. s/.\{148\}/&'"$ac_delim"'/g
  16037. t rset
  16038. :rset
  16039. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16040. t def
  16041. d
  16042. :def
  16043. s/\\$//
  16044. t bsnl
  16045. s/["\\]/\\&/g
  16046. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16047. D["\1"]=" \3"/p
  16048. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16049. d
  16050. :bsnl
  16051. s/["\\]/\\&/g
  16052. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16053. D["\1"]=" \3\\\\\\n"\\/p
  16054. t cont
  16055. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16056. t cont
  16057. d
  16058. :cont
  16059. n
  16060. s/.\{148\}/&'"$ac_delim"'/g
  16061. t clear
  16062. :clear
  16063. s/\\$//
  16064. t bsnlc
  16065. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16066. d
  16067. :bsnlc
  16068. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16069. b cont
  16070. ' <confdefs.h | sed '
  16071. s/'"$ac_delim"'/"\\\
  16072. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16073. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16074. for (key in D) D_is_set[key] = 1
  16075. FS = ""
  16076. }
  16077. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16078. line = \$ 0
  16079. split(line, arg, " ")
  16080. if (arg[1] == "#") {
  16081. defundef = arg[2]
  16082. mac1 = arg[3]
  16083. } else {
  16084. defundef = substr(arg[1], 2)
  16085. mac1 = arg[2]
  16086. }
  16087. split(mac1, mac2, "(") #)
  16088. macro = mac2[1]
  16089. prefix = substr(line, 1, index(line, defundef) - 1)
  16090. if (D_is_set[macro]) {
  16091. # Preserve the white space surrounding the "#".
  16092. print prefix "define", macro P[macro] D[macro]
  16093. next
  16094. } else {
  16095. # Replace #undef with comments. This is necessary, for example,
  16096. # in the case of _POSIX_SOURCE, which is predefined and required
  16097. # on some systems where configure will not decide to define it.
  16098. if (defundef == "undef") {
  16099. print "/*", prefix defundef, macro, "*/"
  16100. next
  16101. }
  16102. }
  16103. }
  16104. { print }
  16105. _ACAWK
  16106. _ACEOF
  16107. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16108. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  16109. fi # test -n "$CONFIG_HEADERS"
  16110. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16111. shift
  16112. for ac_tag
  16113. do
  16114. case $ac_tag in
  16115. :[FHLC]) ac_mode=$ac_tag; continue;;
  16116. esac
  16117. case $ac_mode$ac_tag in
  16118. :[FHL]*:*);;
  16119. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16120. :[FH]-) ac_tag=-:-;;
  16121. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16122. esac
  16123. ac_save_IFS=$IFS
  16124. IFS=:
  16125. set x $ac_tag
  16126. IFS=$ac_save_IFS
  16127. shift
  16128. ac_file=$1
  16129. shift
  16130. case $ac_mode in
  16131. :L) ac_source=$1;;
  16132. :[FH])
  16133. ac_file_inputs=
  16134. for ac_f
  16135. do
  16136. case $ac_f in
  16137. -) ac_f="$tmp/stdin";;
  16138. *) # Look for the file first in the build tree, then in the source tree
  16139. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16140. # because $ac_f cannot contain `:'.
  16141. test -f "$ac_f" ||
  16142. case $ac_f in
  16143. [\\/$]*) false;;
  16144. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16145. esac ||
  16146. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16147. esac
  16148. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16149. as_fn_append ac_file_inputs " '$ac_f'"
  16150. done
  16151. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16152. # use $as_me), people would be surprised to read:
  16153. # /* config.h. Generated by config.status. */
  16154. configure_input='Generated from '`
  16155. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16156. `' by configure.'
  16157. if test x"$ac_file" != x-; then
  16158. configure_input="$ac_file. $configure_input"
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16160. $as_echo "$as_me: creating $ac_file" >&6;}
  16161. fi
  16162. # Neutralize special characters interpreted by sed in replacement strings.
  16163. case $configure_input in #(
  16164. *\&* | *\|* | *\\* )
  16165. ac_sed_conf_input=`$as_echo "$configure_input" |
  16166. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16167. *) ac_sed_conf_input=$configure_input;;
  16168. esac
  16169. case $ac_tag in
  16170. *:-:* | *:-) cat >"$tmp/stdin" \
  16171. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  16172. esac
  16173. ;;
  16174. esac
  16175. ac_dir=`$as_dirname -- "$ac_file" ||
  16176. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16177. X"$ac_file" : 'X\(//\)[^/]' \| \
  16178. X"$ac_file" : 'X\(//\)$' \| \
  16179. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16180. $as_echo X"$ac_file" |
  16181. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16182. s//\1/
  16183. q
  16184. }
  16185. /^X\(\/\/\)[^/].*/{
  16186. s//\1/
  16187. q
  16188. }
  16189. /^X\(\/\/\)$/{
  16190. s//\1/
  16191. q
  16192. }
  16193. /^X\(\/\).*/{
  16194. s//\1/
  16195. q
  16196. }
  16197. s/.*/./; q'`
  16198. as_dir="$ac_dir"; as_fn_mkdir_p
  16199. ac_builddir=.
  16200. case "$ac_dir" in
  16201. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16202. *)
  16203. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16204. # A ".." for each directory in $ac_dir_suffix.
  16205. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16206. case $ac_top_builddir_sub in
  16207. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16208. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16209. esac ;;
  16210. esac
  16211. ac_abs_top_builddir=$ac_pwd
  16212. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16213. # for backward compatibility:
  16214. ac_top_builddir=$ac_top_build_prefix
  16215. case $srcdir in
  16216. .) # We are building in place.
  16217. ac_srcdir=.
  16218. ac_top_srcdir=$ac_top_builddir_sub
  16219. ac_abs_top_srcdir=$ac_pwd ;;
  16220. [\\/]* | ?:[\\/]* ) # Absolute name.
  16221. ac_srcdir=$srcdir$ac_dir_suffix;
  16222. ac_top_srcdir=$srcdir
  16223. ac_abs_top_srcdir=$srcdir ;;
  16224. *) # Relative name.
  16225. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16226. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16227. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16228. esac
  16229. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16230. case $ac_mode in
  16231. :F)
  16232. #
  16233. # CONFIG_FILE
  16234. #
  16235. case $INSTALL in
  16236. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16237. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16238. esac
  16239. _ACEOF
  16240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16241. # If the template does not know about datarootdir, expand it.
  16242. # FIXME: This hack should be removed a few years after 2.60.
  16243. ac_datarootdir_hack=; ac_datarootdir_seen=
  16244. ac_sed_dataroot='
  16245. /datarootdir/ {
  16246. p
  16247. q
  16248. }
  16249. /@datadir@/p
  16250. /@docdir@/p
  16251. /@infodir@/p
  16252. /@localedir@/p
  16253. /@mandir@/p'
  16254. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16255. *datarootdir*) ac_datarootdir_seen=yes;;
  16256. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16258. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16259. _ACEOF
  16260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16261. ac_datarootdir_hack='
  16262. s&@datadir@&$datadir&g
  16263. s&@docdir@&$docdir&g
  16264. s&@infodir@&$infodir&g
  16265. s&@localedir@&$localedir&g
  16266. s&@mandir@&$mandir&g
  16267. s&\\\${datarootdir}&$datarootdir&g' ;;
  16268. esac
  16269. _ACEOF
  16270. # Neutralize VPATH when `$srcdir' = `.'.
  16271. # Shell code in configure.ac might set extrasub.
  16272. # FIXME: do we really want to maintain this feature?
  16273. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16274. ac_sed_extra="$ac_vpsub
  16275. $extrasub
  16276. _ACEOF
  16277. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16278. :t
  16279. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16280. s|@configure_input@|$ac_sed_conf_input|;t t
  16281. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16282. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16283. s&@srcdir@&$ac_srcdir&;t t
  16284. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16285. s&@top_srcdir@&$ac_top_srcdir&;t t
  16286. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16287. s&@builddir@&$ac_builddir&;t t
  16288. s&@abs_builddir@&$ac_abs_builddir&;t t
  16289. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16290. s&@INSTALL@&$ac_INSTALL&;t t
  16291. $ac_datarootdir_hack
  16292. "
  16293. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  16294. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16295. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16296. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  16297. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  16298. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16299. which seems to be undefined. Please make sure it is defined." >&5
  16300. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16301. which seems to be undefined. Please make sure it is defined." >&2;}
  16302. rm -f "$tmp/stdin"
  16303. case $ac_file in
  16304. -) cat "$tmp/out" && rm -f "$tmp/out";;
  16305. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  16306. esac \
  16307. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16308. ;;
  16309. :H)
  16310. #
  16311. # CONFIG_HEADER
  16312. #
  16313. if test x"$ac_file" != x-; then
  16314. {
  16315. $as_echo "/* $configure_input */" \
  16316. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  16317. } >"$tmp/config.h" \
  16318. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16319. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  16320. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16321. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16322. else
  16323. rm -f "$ac_file"
  16324. mv "$tmp/config.h" "$ac_file" \
  16325. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16326. fi
  16327. else
  16328. $as_echo "/* $configure_input */" \
  16329. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  16330. || as_fn_error "could not create -" "$LINENO" 5
  16331. fi
  16332. # Compute "$ac_file"'s index in $config_headers.
  16333. _am_stamp_count=1
  16334. for _am_header in $config_headers :; do
  16335. case $_am_header in
  16336. "$ac_file" | "$ac_file":* )
  16337. break ;;
  16338. * )
  16339. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16340. esac
  16341. done
  16342. echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
  16343. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16344. X"$ac_file" : 'X\(//\)[^/]' \| \
  16345. X"$ac_file" : 'X\(//\)$' \| \
  16346. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16347. $as_echo X"$ac_file" |
  16348. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16349. s//\1/
  16350. q
  16351. }
  16352. /^X\(\/\/\)[^/].*/{
  16353. s//\1/
  16354. q
  16355. }
  16356. /^X\(\/\/\)$/{
  16357. s//\1/
  16358. q
  16359. }
  16360. /^X\(\/\).*/{
  16361. s//\1/
  16362. q
  16363. }
  16364. s/.*/./; q'`/stamp-h$_am_stamp_count
  16365. ;;
  16366. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16367. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16368. ;;
  16369. esac
  16370. case $ac_file$ac_mode in
  16371. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  16372. # Strip MF so we end up with the name of the file.
  16373. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16374. # Check whether this is an Automake generated Makefile or not.
  16375. # We used to match only the files named `Makefile.in', but
  16376. # some people rename them; so instead we look at the file content.
  16377. # Grep'ing the first line is not enough: some people post-process
  16378. # each Makefile.in and add a new line on top of each file to say so.
  16379. # So let's grep whole file.
  16380. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  16381. dirpart=`$as_dirname -- "$mf" ||
  16382. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16383. X"$mf" : 'X\(//\)[^/]' \| \
  16384. X"$mf" : 'X\(//\)$' \| \
  16385. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16386. $as_echo X"$mf" |
  16387. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16388. s//\1/
  16389. q
  16390. }
  16391. /^X\(\/\/\)[^/].*/{
  16392. s//\1/
  16393. q
  16394. }
  16395. /^X\(\/\/\)$/{
  16396. s//\1/
  16397. q
  16398. }
  16399. /^X\(\/\).*/{
  16400. s//\1/
  16401. q
  16402. }
  16403. s/.*/./; q'`
  16404. else
  16405. continue
  16406. fi
  16407. # Extract the definition of DEPDIR, am__include, and am__quote
  16408. # from the Makefile without running `make'.
  16409. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16410. test -z "$DEPDIR" && continue
  16411. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16412. test -z "am__include" && continue
  16413. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16414. # When using ansi2knr, U may be empty or an underscore; expand it
  16415. U=`sed -n 's/^U = //p' < "$mf"`
  16416. # Find all dependency output files, they are included files with
  16417. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16418. # simplest approach to changing $(DEPDIR) to its actual value in the
  16419. # expansion.
  16420. for file in `sed -n "
  16421. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16422. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16423. # Make sure the directory exists.
  16424. test -f "$dirpart/$file" && continue
  16425. fdir=`$as_dirname -- "$file" ||
  16426. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16427. X"$file" : 'X\(//\)[^/]' \| \
  16428. X"$file" : 'X\(//\)$' \| \
  16429. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16430. $as_echo X"$file" |
  16431. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16432. s//\1/
  16433. q
  16434. }
  16435. /^X\(\/\/\)[^/].*/{
  16436. s//\1/
  16437. q
  16438. }
  16439. /^X\(\/\/\)$/{
  16440. s//\1/
  16441. q
  16442. }
  16443. /^X\(\/\).*/{
  16444. s//\1/
  16445. q
  16446. }
  16447. s/.*/./; q'`
  16448. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16449. # echo "creating $dirpart/$file"
  16450. echo '# dummy' > "$dirpart/$file"
  16451. done
  16452. done
  16453. ;;
  16454. "libtool":C)
  16455. # See if we are running on zsh, and set the options which allow our
  16456. # commands through without removal of \ escapes.
  16457. if test -n "${ZSH_VERSION+set}" ; then
  16458. setopt NO_GLOB_SUBST
  16459. fi
  16460. cfgfile="${ofile}T"
  16461. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16462. $RM "$cfgfile"
  16463. cat <<_LT_EOF >> "$cfgfile"
  16464. #! $SHELL
  16465. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16466. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16467. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16468. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16469. #
  16470. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16471. # 2006, 2007, 2008 Free Software Foundation, Inc.
  16472. # Written by Gordon Matzigkeit, 1996
  16473. #
  16474. # This file is part of GNU Libtool.
  16475. #
  16476. # GNU Libtool is free software; you can redistribute it and/or
  16477. # modify it under the terms of the GNU General Public License as
  16478. # published by the Free Software Foundation; either version 2 of
  16479. # the License, or (at your option) any later version.
  16480. #
  16481. # As a special exception to the GNU General Public License,
  16482. # if you distribute this file as part of a program or library that
  16483. # is built using GNU Libtool, you may include this file under the
  16484. # same distribution terms that you use for the rest of that program.
  16485. #
  16486. # GNU Libtool is distributed in the hope that it will be useful,
  16487. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16488. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16489. # GNU General Public License for more details.
  16490. #
  16491. # You should have received a copy of the GNU General Public License
  16492. # along with GNU Libtool; see the file COPYING. If not, a copy
  16493. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16494. # obtained by writing to the Free Software Foundation, Inc.,
  16495. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16496. # The names of the tagged configurations supported by this script.
  16497. available_tags="CXX "
  16498. # ### BEGIN LIBTOOL CONFIG
  16499. # Whether or not to optimize for fast installation.
  16500. fast_install=$enable_fast_install
  16501. # Which release of libtool.m4 was used?
  16502. macro_version=$macro_version
  16503. macro_revision=$macro_revision
  16504. # Whether or not to build shared libraries.
  16505. build_libtool_libs=$enable_shared
  16506. # Whether or not to build static libraries.
  16507. build_old_libs=$enable_static
  16508. # What type of objects to build.
  16509. pic_mode=$pic_mode
  16510. # The host system.
  16511. host_alias=$host_alias
  16512. host=$host
  16513. host_os=$host_os
  16514. # The build system.
  16515. build_alias=$build_alias
  16516. build=$build
  16517. build_os=$build_os
  16518. # A sed program that does not truncate output.
  16519. SED=$lt_SED
  16520. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16521. Xsed="\$SED -e 1s/^X//"
  16522. # A grep program that handles long lines.
  16523. GREP=$lt_GREP
  16524. # An ERE matcher.
  16525. EGREP=$lt_EGREP
  16526. # A literal string matcher.
  16527. FGREP=$lt_FGREP
  16528. # A BSD- or MS-compatible name lister.
  16529. NM=$lt_NM
  16530. # Whether we need soft or hard links.
  16531. LN_S=$lt_LN_S
  16532. # What is the maximum length of a command?
  16533. max_cmd_len=$max_cmd_len
  16534. # Object file suffix (normally "o").
  16535. objext=$ac_objext
  16536. # Executable file suffix (normally "").
  16537. exeext=$exeext
  16538. # whether the shell understands "unset".
  16539. lt_unset=$lt_unset
  16540. # turn spaces into newlines.
  16541. SP2NL=$lt_lt_SP2NL
  16542. # turn newlines into spaces.
  16543. NL2SP=$lt_lt_NL2SP
  16544. # How to create reloadable object files.
  16545. reload_flag=$lt_reload_flag
  16546. reload_cmds=$lt_reload_cmds
  16547. # An object symbol dumper.
  16548. OBJDUMP=$lt_OBJDUMP
  16549. # Method to check whether dependent libraries are shared objects.
  16550. deplibs_check_method=$lt_deplibs_check_method
  16551. # Command to use when deplibs_check_method == "file_magic".
  16552. file_magic_cmd=$lt_file_magic_cmd
  16553. # The archiver.
  16554. AR=$lt_AR
  16555. AR_FLAGS=$lt_AR_FLAGS
  16556. # A symbol stripping program.
  16557. STRIP=$lt_STRIP
  16558. # Commands used to install an old-style archive.
  16559. RANLIB=$lt_RANLIB
  16560. old_postinstall_cmds=$lt_old_postinstall_cmds
  16561. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16562. # A C compiler.
  16563. LTCC=$lt_CC
  16564. # LTCC compiler flags.
  16565. LTCFLAGS=$lt_CFLAGS
  16566. # Take the output of nm and produce a listing of raw symbols and C names.
  16567. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16568. # Transform the output of nm in a proper C declaration.
  16569. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16570. # Transform the output of nm in a C name address pair.
  16571. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16572. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16573. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16574. # The name of the directory that contains temporary libtool files.
  16575. objdir=$objdir
  16576. # Shell to use when invoking shell scripts.
  16577. SHELL=$lt_SHELL
  16578. # An echo program that does not interpret backslashes.
  16579. ECHO=$lt_ECHO
  16580. # Used to examine libraries when file_magic_cmd begins with "file".
  16581. MAGIC_CMD=$MAGIC_CMD
  16582. # Must we lock files when doing compilation?
  16583. need_locks=$lt_need_locks
  16584. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16585. DSYMUTIL=$lt_DSYMUTIL
  16586. # Tool to change global to local symbols on Mac OS X.
  16587. NMEDIT=$lt_NMEDIT
  16588. # Tool to manipulate fat objects and archives on Mac OS X.
  16589. LIPO=$lt_LIPO
  16590. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16591. OTOOL=$lt_OTOOL
  16592. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16593. OTOOL64=$lt_OTOOL64
  16594. # Old archive suffix (normally "a").
  16595. libext=$libext
  16596. # Shared library suffix (normally ".so").
  16597. shrext_cmds=$lt_shrext_cmds
  16598. # The commands to extract the exported symbol list from a shared archive.
  16599. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16600. # Variables whose values should be saved in libtool wrapper scripts and
  16601. # restored at link time.
  16602. variables_saved_for_relink=$lt_variables_saved_for_relink
  16603. # Do we need the "lib" prefix for modules?
  16604. need_lib_prefix=$need_lib_prefix
  16605. # Do we need a version for libraries?
  16606. need_version=$need_version
  16607. # Library versioning type.
  16608. version_type=$version_type
  16609. # Shared library runtime path variable.
  16610. runpath_var=$runpath_var
  16611. # Shared library path variable.
  16612. shlibpath_var=$shlibpath_var
  16613. # Is shlibpath searched before the hard-coded library search path?
  16614. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16615. # Format of library name prefix.
  16616. libname_spec=$lt_libname_spec
  16617. # List of archive names. First name is the real one, the rest are links.
  16618. # The last name is the one that the linker finds with -lNAME
  16619. library_names_spec=$lt_library_names_spec
  16620. # The coded name of the library, if different from the real name.
  16621. soname_spec=$lt_soname_spec
  16622. # Command to use after installation of a shared archive.
  16623. postinstall_cmds=$lt_postinstall_cmds
  16624. # Command to use after uninstallation of a shared archive.
  16625. postuninstall_cmds=$lt_postuninstall_cmds
  16626. # Commands used to finish a libtool library installation in a directory.
  16627. finish_cmds=$lt_finish_cmds
  16628. # As "finish_cmds", except a single script fragment to be evaled but
  16629. # not shown.
  16630. finish_eval=$lt_finish_eval
  16631. # Whether we should hardcode library paths into libraries.
  16632. hardcode_into_libs=$hardcode_into_libs
  16633. # Compile-time system search path for libraries.
  16634. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16635. # Run-time system search path for libraries.
  16636. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16637. # Whether dlopen is supported.
  16638. dlopen_support=$enable_dlopen
  16639. # Whether dlopen of programs is supported.
  16640. dlopen_self=$enable_dlopen_self
  16641. # Whether dlopen of statically linked programs is supported.
  16642. dlopen_self_static=$enable_dlopen_self_static
  16643. # Commands to strip libraries.
  16644. old_striplib=$lt_old_striplib
  16645. striplib=$lt_striplib
  16646. # The linker used to build libraries.
  16647. LD=$lt_LD
  16648. # Commands used to build an old-style archive.
  16649. old_archive_cmds=$lt_old_archive_cmds
  16650. # A language specific compiler.
  16651. CC=$lt_compiler
  16652. # Is the compiler the GNU compiler?
  16653. with_gcc=$GCC
  16654. # Compiler flag to turn off builtin functions.
  16655. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16656. # How to pass a linker flag through the compiler.
  16657. wl=$lt_lt_prog_compiler_wl
  16658. # Additional compiler flags for building library objects.
  16659. pic_flag=$lt_lt_prog_compiler_pic
  16660. # Compiler flag to prevent dynamic linking.
  16661. link_static_flag=$lt_lt_prog_compiler_static
  16662. # Does compiler simultaneously support -c and -o options?
  16663. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16664. # Whether or not to add -lc for building shared libraries.
  16665. build_libtool_need_lc=$archive_cmds_need_lc
  16666. # Whether or not to disallow shared libs when runtime libs are static.
  16667. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16668. # Compiler flag to allow reflexive dlopens.
  16669. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16670. # Compiler flag to generate shared objects directly from archives.
  16671. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16672. # Whether the compiler copes with passing no objects directly.
  16673. compiler_needs_object=$lt_compiler_needs_object
  16674. # Create an old-style archive from a shared archive.
  16675. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16676. # Create a temporary old-style archive to link instead of a shared archive.
  16677. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16678. # Commands used to build a shared archive.
  16679. archive_cmds=$lt_archive_cmds
  16680. archive_expsym_cmds=$lt_archive_expsym_cmds
  16681. # Commands used to build a loadable module if different from building
  16682. # a shared archive.
  16683. module_cmds=$lt_module_cmds
  16684. module_expsym_cmds=$lt_module_expsym_cmds
  16685. # Whether we are building with GNU ld or not.
  16686. with_gnu_ld=$lt_with_gnu_ld
  16687. # Flag that allows shared libraries with undefined symbols to be built.
  16688. allow_undefined_flag=$lt_allow_undefined_flag
  16689. # Flag that enforces no undefined symbols.
  16690. no_undefined_flag=$lt_no_undefined_flag
  16691. # Flag to hardcode \$libdir into a binary during linking.
  16692. # This must work even if \$libdir does not exist
  16693. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16694. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16695. # during linking. This must work even if \$libdir does not exist.
  16696. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16697. # Whether we need a single "-rpath" flag with a separated argument.
  16698. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16699. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16700. # DIR into the resulting binary.
  16701. hardcode_direct=$hardcode_direct
  16702. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16703. # DIR into the resulting binary and the resulting library dependency is
  16704. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16705. # library is relocated.
  16706. hardcode_direct_absolute=$hardcode_direct_absolute
  16707. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16708. # into the resulting binary.
  16709. hardcode_minus_L=$hardcode_minus_L
  16710. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16711. # into the resulting binary.
  16712. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16713. # Set to "yes" if building a shared library automatically hardcodes DIR
  16714. # into the library and all subsequent libraries and executables linked
  16715. # against it.
  16716. hardcode_automatic=$hardcode_automatic
  16717. # Set to yes if linker adds runtime paths of dependent libraries
  16718. # to runtime path list.
  16719. inherit_rpath=$inherit_rpath
  16720. # Whether libtool must link a program against all its dependency libraries.
  16721. link_all_deplibs=$link_all_deplibs
  16722. # Fix the shell variable \$srcfile for the compiler.
  16723. fix_srcfile_path=$lt_fix_srcfile_path
  16724. # Set to "yes" if exported symbols are required.
  16725. always_export_symbols=$always_export_symbols
  16726. # The commands to list exported symbols.
  16727. export_symbols_cmds=$lt_export_symbols_cmds
  16728. # Symbols that should not be listed in the preloaded symbols.
  16729. exclude_expsyms=$lt_exclude_expsyms
  16730. # Symbols that must always be exported.
  16731. include_expsyms=$lt_include_expsyms
  16732. # Commands necessary for linking programs (against libraries) with templates.
  16733. prelink_cmds=$lt_prelink_cmds
  16734. # Specify filename containing input files.
  16735. file_list_spec=$lt_file_list_spec
  16736. # How to hardcode a shared library path into an executable.
  16737. hardcode_action=$hardcode_action
  16738. # The directories searched by this compiler when creating a shared library.
  16739. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16740. # Dependencies to place before and after the objects being linked to
  16741. # create a shared library.
  16742. predep_objects=$lt_predep_objects
  16743. postdep_objects=$lt_postdep_objects
  16744. predeps=$lt_predeps
  16745. postdeps=$lt_postdeps
  16746. # The library search path used internally by the compiler when linking
  16747. # a shared library.
  16748. compiler_lib_search_path=$lt_compiler_lib_search_path
  16749. # ### END LIBTOOL CONFIG
  16750. _LT_EOF
  16751. case $host_os in
  16752. aix3*)
  16753. cat <<\_LT_EOF >> "$cfgfile"
  16754. # AIX sometimes has problems with the GCC collect2 program. For some
  16755. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16756. # vanish in a puff of smoke.
  16757. if test "X${COLLECT_NAMES+set}" != Xset; then
  16758. COLLECT_NAMES=
  16759. export COLLECT_NAMES
  16760. fi
  16761. _LT_EOF
  16762. ;;
  16763. esac
  16764. ltmain="$ac_aux_dir/ltmain.sh"
  16765. # We use sed instead of cat because bash on DJGPP gets confused if
  16766. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16767. # text mode, it properly converts lines to CR/LF. This bash problem
  16768. # is reportedly fixed, but why not run on old versions too?
  16769. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16770. || (rm -f "$cfgfile"; exit 1)
  16771. case $xsi_shell in
  16772. yes)
  16773. cat << \_LT_EOF >> "$cfgfile"
  16774. # func_dirname file append nondir_replacement
  16775. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16776. # otherwise set result to NONDIR_REPLACEMENT.
  16777. func_dirname ()
  16778. {
  16779. case ${1} in
  16780. */*) func_dirname_result="${1%/*}${2}" ;;
  16781. * ) func_dirname_result="${3}" ;;
  16782. esac
  16783. }
  16784. # func_basename file
  16785. func_basename ()
  16786. {
  16787. func_basename_result="${1##*/}"
  16788. }
  16789. # func_dirname_and_basename file append nondir_replacement
  16790. # perform func_basename and func_dirname in a single function
  16791. # call:
  16792. # dirname: Compute the dirname of FILE. If nonempty,
  16793. # add APPEND to the result, otherwise set result
  16794. # to NONDIR_REPLACEMENT.
  16795. # value returned in "$func_dirname_result"
  16796. # basename: Compute filename of FILE.
  16797. # value retuned in "$func_basename_result"
  16798. # Implementation must be kept synchronized with func_dirname
  16799. # and func_basename. For efficiency, we do not delegate to
  16800. # those functions but instead duplicate the functionality here.
  16801. func_dirname_and_basename ()
  16802. {
  16803. case ${1} in
  16804. */*) func_dirname_result="${1%/*}${2}" ;;
  16805. * ) func_dirname_result="${3}" ;;
  16806. esac
  16807. func_basename_result="${1##*/}"
  16808. }
  16809. # func_stripname prefix suffix name
  16810. # strip PREFIX and SUFFIX off of NAME.
  16811. # PREFIX and SUFFIX must not contain globbing or regex special
  16812. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16813. # dot (in which case that matches only a dot).
  16814. func_stripname ()
  16815. {
  16816. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16817. # positional parameters, so assign one to ordinary parameter first.
  16818. func_stripname_result=${3}
  16819. func_stripname_result=${func_stripname_result#"${1}"}
  16820. func_stripname_result=${func_stripname_result%"${2}"}
  16821. }
  16822. # func_opt_split
  16823. func_opt_split ()
  16824. {
  16825. func_opt_split_opt=${1%%=*}
  16826. func_opt_split_arg=${1#*=}
  16827. }
  16828. # func_lo2o object
  16829. func_lo2o ()
  16830. {
  16831. case ${1} in
  16832. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16833. *) func_lo2o_result=${1} ;;
  16834. esac
  16835. }
  16836. # func_xform libobj-or-source
  16837. func_xform ()
  16838. {
  16839. func_xform_result=${1%.*}.lo
  16840. }
  16841. # func_arith arithmetic-term...
  16842. func_arith ()
  16843. {
  16844. func_arith_result=$(( $* ))
  16845. }
  16846. # func_len string
  16847. # STRING may not start with a hyphen.
  16848. func_len ()
  16849. {
  16850. func_len_result=${#1}
  16851. }
  16852. _LT_EOF
  16853. ;;
  16854. *) # Bourne compatible functions.
  16855. cat << \_LT_EOF >> "$cfgfile"
  16856. # func_dirname file append nondir_replacement
  16857. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16858. # otherwise set result to NONDIR_REPLACEMENT.
  16859. func_dirname ()
  16860. {
  16861. # Extract subdirectory from the argument.
  16862. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  16863. if test "X$func_dirname_result" = "X${1}"; then
  16864. func_dirname_result="${3}"
  16865. else
  16866. func_dirname_result="$func_dirname_result${2}"
  16867. fi
  16868. }
  16869. # func_basename file
  16870. func_basename ()
  16871. {
  16872. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  16873. }
  16874. # func_stripname prefix suffix name
  16875. # strip PREFIX and SUFFIX off of NAME.
  16876. # PREFIX and SUFFIX must not contain globbing or regex special
  16877. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16878. # dot (in which case that matches only a dot).
  16879. # func_strip_suffix prefix name
  16880. func_stripname ()
  16881. {
  16882. case ${2} in
  16883. .*) func_stripname_result=`$ECHO "X${3}" \
  16884. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  16885. *) func_stripname_result=`$ECHO "X${3}" \
  16886. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  16887. esac
  16888. }
  16889. # sed scripts:
  16890. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16891. my_sed_long_arg='1s/^-[^=]*=//'
  16892. # func_opt_split
  16893. func_opt_split ()
  16894. {
  16895. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  16896. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  16897. }
  16898. # func_lo2o object
  16899. func_lo2o ()
  16900. {
  16901. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  16902. }
  16903. # func_xform libobj-or-source
  16904. func_xform ()
  16905. {
  16906. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  16907. }
  16908. # func_arith arithmetic-term...
  16909. func_arith ()
  16910. {
  16911. func_arith_result=`expr "$@"`
  16912. }
  16913. # func_len string
  16914. # STRING may not start with a hyphen.
  16915. func_len ()
  16916. {
  16917. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16918. }
  16919. _LT_EOF
  16920. esac
  16921. case $lt_shell_append in
  16922. yes)
  16923. cat << \_LT_EOF >> "$cfgfile"
  16924. # func_append var value
  16925. # Append VALUE to the end of shell variable VAR.
  16926. func_append ()
  16927. {
  16928. eval "$1+=\$2"
  16929. }
  16930. _LT_EOF
  16931. ;;
  16932. *)
  16933. cat << \_LT_EOF >> "$cfgfile"
  16934. # func_append var value
  16935. # Append VALUE to the end of shell variable VAR.
  16936. func_append ()
  16937. {
  16938. eval "$1=\$$1\$2"
  16939. }
  16940. _LT_EOF
  16941. ;;
  16942. esac
  16943. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16944. || (rm -f "$cfgfile"; exit 1)
  16945. mv -f "$cfgfile" "$ofile" ||
  16946. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16947. chmod +x "$ofile"
  16948. cat <<_LT_EOF >> "$ofile"
  16949. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16950. # The linker used to build libraries.
  16951. LD=$lt_LD_CXX
  16952. # Commands used to build an old-style archive.
  16953. old_archive_cmds=$lt_old_archive_cmds_CXX
  16954. # A language specific compiler.
  16955. CC=$lt_compiler_CXX
  16956. # Is the compiler the GNU compiler?
  16957. with_gcc=$GCC_CXX
  16958. # Compiler flag to turn off builtin functions.
  16959. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16960. # How to pass a linker flag through the compiler.
  16961. wl=$lt_lt_prog_compiler_wl_CXX
  16962. # Additional compiler flags for building library objects.
  16963. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16964. # Compiler flag to prevent dynamic linking.
  16965. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16966. # Does compiler simultaneously support -c and -o options?
  16967. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16968. # Whether or not to add -lc for building shared libraries.
  16969. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16970. # Whether or not to disallow shared libs when runtime libs are static.
  16971. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16972. # Compiler flag to allow reflexive dlopens.
  16973. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16974. # Compiler flag to generate shared objects directly from archives.
  16975. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16976. # Whether the compiler copes with passing no objects directly.
  16977. compiler_needs_object=$lt_compiler_needs_object_CXX
  16978. # Create an old-style archive from a shared archive.
  16979. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16980. # Create a temporary old-style archive to link instead of a shared archive.
  16981. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16982. # Commands used to build a shared archive.
  16983. archive_cmds=$lt_archive_cmds_CXX
  16984. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16985. # Commands used to build a loadable module if different from building
  16986. # a shared archive.
  16987. module_cmds=$lt_module_cmds_CXX
  16988. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16989. # Whether we are building with GNU ld or not.
  16990. with_gnu_ld=$lt_with_gnu_ld_CXX
  16991. # Flag that allows shared libraries with undefined symbols to be built.
  16992. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16993. # Flag that enforces no undefined symbols.
  16994. no_undefined_flag=$lt_no_undefined_flag_CXX
  16995. # Flag to hardcode \$libdir into a binary during linking.
  16996. # This must work even if \$libdir does not exist
  16997. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16998. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16999. # during linking. This must work even if \$libdir does not exist.
  17000. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17001. # Whether we need a single "-rpath" flag with a separated argument.
  17002. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17003. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17004. # DIR into the resulting binary.
  17005. hardcode_direct=$hardcode_direct_CXX
  17006. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17007. # DIR into the resulting binary and the resulting library dependency is
  17008. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17009. # library is relocated.
  17010. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17011. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17012. # into the resulting binary.
  17013. hardcode_minus_L=$hardcode_minus_L_CXX
  17014. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17015. # into the resulting binary.
  17016. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17017. # Set to "yes" if building a shared library automatically hardcodes DIR
  17018. # into the library and all subsequent libraries and executables linked
  17019. # against it.
  17020. hardcode_automatic=$hardcode_automatic_CXX
  17021. # Set to yes if linker adds runtime paths of dependent libraries
  17022. # to runtime path list.
  17023. inherit_rpath=$inherit_rpath_CXX
  17024. # Whether libtool must link a program against all its dependency libraries.
  17025. link_all_deplibs=$link_all_deplibs_CXX
  17026. # Fix the shell variable \$srcfile for the compiler.
  17027. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  17028. # Set to "yes" if exported symbols are required.
  17029. always_export_symbols=$always_export_symbols_CXX
  17030. # The commands to list exported symbols.
  17031. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17032. # Symbols that should not be listed in the preloaded symbols.
  17033. exclude_expsyms=$lt_exclude_expsyms_CXX
  17034. # Symbols that must always be exported.
  17035. include_expsyms=$lt_include_expsyms_CXX
  17036. # Commands necessary for linking programs (against libraries) with templates.
  17037. prelink_cmds=$lt_prelink_cmds_CXX
  17038. # Specify filename containing input files.
  17039. file_list_spec=$lt_file_list_spec_CXX
  17040. # How to hardcode a shared library path into an executable.
  17041. hardcode_action=$hardcode_action_CXX
  17042. # The directories searched by this compiler when creating a shared library.
  17043. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17044. # Dependencies to place before and after the objects being linked to
  17045. # create a shared library.
  17046. predep_objects=$lt_predep_objects_CXX
  17047. postdep_objects=$lt_postdep_objects_CXX
  17048. predeps=$lt_predeps_CXX
  17049. postdeps=$lt_postdeps_CXX
  17050. # The library search path used internally by the compiler when linking
  17051. # a shared library.
  17052. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17053. # ### END LIBTOOL TAG CONFIG: CXX
  17054. _LT_EOF
  17055. ;;
  17056. esac
  17057. done # for ac_tag
  17058. as_fn_exit 0
  17059. _ACEOF
  17060. ac_clean_files=$ac_clean_files_save
  17061. test $ac_write_fail = 0 ||
  17062. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17063. # configure is writing to config.log, and then calls config.status.
  17064. # config.status does its own redirection, appending to config.log.
  17065. # Unfortunately, on DOS this fails, as config.log is still kept open
  17066. # by configure, so config.status won't be able to write to it; its
  17067. # output is simply discarded. So we exec the FD to /dev/null,
  17068. # effectively closing config.log, so it can be properly (re)opened and
  17069. # appended to by config.status. When coming back to configure, we
  17070. # need to make the FD available again.
  17071. if test "$no_create" != yes; then
  17072. ac_cs_success=:
  17073. ac_config_status_args=
  17074. test "$silent" = yes &&
  17075. ac_config_status_args="$ac_config_status_args --quiet"
  17076. exec 5>/dev/null
  17077. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17078. exec 5>>config.log
  17079. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17080. # would make configure fail if this is the last instruction.
  17081. $ac_cs_success || as_fn_exit $?
  17082. fi
  17083. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17085. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17086. fi