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

23368 lines
699 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xerces-c 3.1.2.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='xerces-c'
  539. PACKAGE_TARNAME='xerces-c'
  540. PACKAGE_VERSION='3.1.2'
  541. PACKAGE_STRING='xerces-c 3.1.2'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="src/Makefile.am"
  545. ac_config_libobj_dir=src
  546. # Factoring default headers for most tests.
  547. ac_includes_default="\
  548. #include <stdio.h>
  549. #ifdef HAVE_SYS_TYPES_H
  550. # include <sys/types.h>
  551. #endif
  552. #ifdef HAVE_SYS_STAT_H
  553. # include <sys/stat.h>
  554. #endif
  555. #ifdef STDC_HEADERS
  556. # include <stdlib.h>
  557. # include <stddef.h>
  558. #else
  559. # ifdef HAVE_STDLIB_H
  560. # include <stdlib.h>
  561. # endif
  562. #endif
  563. #ifdef HAVE_STRING_H
  564. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  565. # include <memory.h>
  566. # endif
  567. # include <string.h>
  568. #endif
  569. #ifdef HAVE_STRINGS_H
  570. # include <strings.h>
  571. #endif
  572. #ifdef HAVE_INTTYPES_H
  573. # include <inttypes.h>
  574. #endif
  575. #ifdef HAVE_STDINT_H
  576. # include <stdint.h>
  577. #endif
  578. #ifdef HAVE_UNISTD_H
  579. # include <unistd.h>
  580. #endif"
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. pkgconfigdir
  585. XERCES_USE_FILEMGR_WINDOWS_FALSE
  586. XERCES_USE_FILEMGR_WINDOWS_TRUE
  587. XERCES_USE_FILEMGR_POSIX_FALSE
  588. XERCES_USE_FILEMGR_POSIX_TRUE
  589. XERCES_USE_MSGLOADER_INMEMORY_FALSE
  590. XERCES_USE_MSGLOADER_INMEMORY_TRUE
  591. XERCES_USE_MSGLOADER_ICONV_FALSE
  592. XERCES_USE_MSGLOADER_ICONV_TRUE
  593. XERCES_USE_MSGLOADER_ICU_FALSE
  594. XERCES_USE_MSGLOADER_ICU_TRUE
  595. XERCES_USE_TRANSCODER_WINDOWS_FALSE
  596. XERCES_USE_TRANSCODER_WINDOWS_TRUE
  597. XERCES_USE_TRANSCODER_ICONV_FALSE
  598. XERCES_USE_TRANSCODER_ICONV_TRUE
  599. XERCES_USE_TRANSCODER_GNUICONV_FALSE
  600. XERCES_USE_TRANSCODER_GNUICONV_TRUE
  601. XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER_FALSE
  602. XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER_TRUE
  603. XERCES_USE_TRANSCODER_ICU_FALSE
  604. XERCES_USE_TRANSCODER_ICU_TRUE
  605. ICU_SBIN
  606. ICU_BIN
  607. ICU_LIBS
  608. ICU_FLAGS
  609. ICU_PRESENT
  610. icu_config
  611. XERCES_USE_NETACCESSOR_SOCKET_FALSE
  612. XERCES_USE_NETACCESSOR_SOCKET_TRUE
  613. XERCES_USE_NETACCESSOR_WINSOCK_FALSE
  614. XERCES_USE_NETACCESSOR_WINSOCK_TRUE
  615. XERCES_USE_NETACCESSOR_CFURL_FALSE
  616. XERCES_USE_NETACCESSOR_CFURL_TRUE
  617. XERCES_USE_NETACCESSOR_CURL_FALSE
  618. XERCES_USE_NETACCESSOR_CURL_TRUE
  619. CURL_LIBS
  620. CURL_FLAGS
  621. CURL_PRESENT
  622. curl_config
  623. XERCES_USE_MUTEXMGR_WINDOWS_FALSE
  624. XERCES_USE_MUTEXMGR_WINDOWS_TRUE
  625. XERCES_USE_MUTEXMGR_POSIX_FALSE
  626. XERCES_USE_MUTEXMGR_POSIX_TRUE
  627. XERCES_USE_MUTEXMGR_NOTHREAD_FALSE
  628. XERCES_USE_MUTEXMGR_NOTHREAD_TRUE
  629. XERCES_PRETTY_MAKE_FALSE
  630. XERCES_PRETTY_MAKE_TRUE
  631. abs_top_builddir
  632. abs_top_srcdir
  633. LIBOBJS
  634. SHREXT
  635. PTHREAD_CFLAGS
  636. PTHREAD_LIBS
  637. PTHREAD_CC
  638. acx_pthread_config
  639. BUILD_STATIC
  640. BUILD_SHARED
  641. CXXCPP
  642. CPP
  643. LT_SYS_LIBRARY_PATH
  644. OTOOL64
  645. OTOOL
  646. LIPO
  647. NMEDIT
  648. DSYMUTIL
  649. MANIFEST_TOOL
  650. RANLIB
  651. ac_ct_AR
  652. AR
  653. NM
  654. ac_ct_DUMPBIN
  655. DUMPBIN
  656. LD
  657. FGREP
  658. EGREP
  659. GREP
  660. am__fastdepCC_FALSE
  661. am__fastdepCC_TRUE
  662. CCDEPMODE
  663. ac_ct_CC
  664. CFLAGS
  665. CC
  666. LIBTOOL
  667. OBJDUMP
  668. DLLTOOL
  669. AS
  670. LN_S
  671. SED
  672. am__fastdepCXX_FALSE
  673. am__fastdepCXX_TRUE
  674. CXXDEPMODE
  675. am__nodep
  676. AMDEPBACKSLASH
  677. AMDEP_FALSE
  678. AMDEP_TRUE
  679. am__quote
  680. am__include
  681. DEPDIR
  682. OBJEXT
  683. EXEEXT
  684. ac_ct_CXX
  685. CPPFLAGS
  686. LDFLAGS
  687. CXXFLAGS
  688. CXX
  689. MAINT
  690. MAINTAINER_MODE_FALSE
  691. MAINTAINER_MODE_TRUE
  692. AM_BACKSLASH
  693. AM_DEFAULT_VERBOSITY
  694. AM_DEFAULT_V
  695. AM_V
  696. am__untar
  697. am__tar
  698. AMTAR
  699. am__leading_dot
  700. SET_MAKE
  701. AWK
  702. mkdir_p
  703. MKDIR_P
  704. INSTALL_STRIP_PROGRAM
  705. STRIP
  706. install_sh
  707. MAKEINFO
  708. AUTOHEADER
  709. AUTOMAKE
  710. AUTOCONF
  711. ACLOCAL
  712. VERSION
  713. PACKAGE
  714. CYGPATH_W
  715. am__isrc
  716. INSTALL_DATA
  717. INSTALL_SCRIPT
  718. INSTALL_PROGRAM
  719. host_os
  720. host_vendor
  721. host_cpu
  722. host
  723. build_os
  724. build_vendor
  725. build_cpu
  726. build
  727. target_alias
  728. host_alias
  729. build_alias
  730. LIBS
  731. ECHO_T
  732. ECHO_N
  733. ECHO_C
  734. DEFS
  735. mandir
  736. localedir
  737. libdir
  738. psdir
  739. pdfdir
  740. dvidir
  741. htmldir
  742. infodir
  743. docdir
  744. oldincludedir
  745. includedir
  746. localstatedir
  747. sharedstatedir
  748. sysconfdir
  749. datadir
  750. datarootdir
  751. libexecdir
  752. sbindir
  753. bindir
  754. program_transform_name
  755. prefix
  756. exec_prefix
  757. PACKAGE_URL
  758. PACKAGE_BUGREPORT
  759. PACKAGE_STRING
  760. PACKAGE_VERSION
  761. PACKAGE_TARNAME
  762. PACKAGE_NAME
  763. PATH_SEPARATOR
  764. SHELL'
  765. ac_subst_files=''
  766. ac_user_opts='
  767. enable_option_checking
  768. enable_silent_rules
  769. enable_maintainer_mode
  770. enable_rpath
  771. enable_dependency_tracking
  772. enable_shared
  773. enable_static
  774. with_pic
  775. enable_fast_install
  776. with_aix_soname
  777. with_gnu_ld
  778. with_sysroot
  779. enable_libtool_lock
  780. enable_pretty_make
  781. enable_threads
  782. enable_network
  783. with_curl
  784. enable_netaccessor_curl
  785. enable_netaccessor_socket
  786. enable_netaccessor_cfurl
  787. enable_netaccessor_winsock
  788. enable_transcoder_gnuiconv
  789. enable_transcoder_iconv
  790. with_icu
  791. enable_transcoder_icu
  792. enable_transcoder_macosunicodeconverter
  793. enable_transcoder_windows
  794. enable_msgloader_inmemory
  795. enable_msgloader_icu
  796. enable_msgloader_iconv
  797. with_pkgconfigdir
  798. enable_sse2
  799. '
  800. ac_precious_vars='build_alias
  801. host_alias
  802. target_alias
  803. CXX
  804. CXXFLAGS
  805. LDFLAGS
  806. LIBS
  807. CPPFLAGS
  808. CCC
  809. CC
  810. CFLAGS
  811. LT_SYS_LIBRARY_PATH
  812. CPP
  813. CXXCPP'
  814. # Initialize some variables set by options.
  815. ac_init_help=
  816. ac_init_version=false
  817. ac_unrecognized_opts=
  818. ac_unrecognized_sep=
  819. # The variables have the same names as the options, with
  820. # dashes changed to underlines.
  821. cache_file=/dev/null
  822. exec_prefix=NONE
  823. no_create=
  824. no_recursion=
  825. prefix=NONE
  826. program_prefix=NONE
  827. program_suffix=NONE
  828. program_transform_name=s,x,x,
  829. silent=
  830. site=
  831. srcdir=
  832. verbose=
  833. x_includes=NONE
  834. x_libraries=NONE
  835. # Installation directory options.
  836. # These are left unexpanded so users can "make install exec_prefix=/foo"
  837. # and all the variables that are supposed to be based on exec_prefix
  838. # by default will actually change.
  839. # Use braces instead of parens because sh, perl, etc. also accept them.
  840. # (The list follows the same order as the GNU Coding Standards.)
  841. bindir='${exec_prefix}/bin'
  842. sbindir='${exec_prefix}/sbin'
  843. libexecdir='${exec_prefix}/libexec'
  844. datarootdir='${prefix}/share'
  845. datadir='${datarootdir}'
  846. sysconfdir='${prefix}/etc'
  847. sharedstatedir='${prefix}/com'
  848. localstatedir='${prefix}/var'
  849. includedir='${prefix}/include'
  850. oldincludedir='/usr/include'
  851. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  852. infodir='${datarootdir}/info'
  853. htmldir='${docdir}'
  854. dvidir='${docdir}'
  855. pdfdir='${docdir}'
  856. psdir='${docdir}'
  857. libdir='${exec_prefix}/lib'
  858. localedir='${datarootdir}/locale'
  859. mandir='${datarootdir}/man'
  860. ac_prev=
  861. ac_dashdash=
  862. for ac_option
  863. do
  864. # If the previous option needs an argument, assign it.
  865. if test -n "$ac_prev"; then
  866. eval $ac_prev=\$ac_option
  867. ac_prev=
  868. continue
  869. fi
  870. case $ac_option in
  871. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  872. *=) ac_optarg= ;;
  873. *) ac_optarg=yes ;;
  874. esac
  875. # Accept the important Cygnus configure options, so we can diagnose typos.
  876. case $ac_dashdash$ac_option in
  877. --)
  878. ac_dashdash=yes ;;
  879. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  880. ac_prev=bindir ;;
  881. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  882. bindir=$ac_optarg ;;
  883. -build | --build | --buil | --bui | --bu)
  884. ac_prev=build_alias ;;
  885. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  886. build_alias=$ac_optarg ;;
  887. -cache-file | --cache-file | --cache-fil | --cache-fi \
  888. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  889. ac_prev=cache_file ;;
  890. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  891. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  892. cache_file=$ac_optarg ;;
  893. --config-cache | -C)
  894. cache_file=config.cache ;;
  895. -datadir | --datadir | --datadi | --datad)
  896. ac_prev=datadir ;;
  897. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  898. datadir=$ac_optarg ;;
  899. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  900. | --dataroo | --dataro | --datar)
  901. ac_prev=datarootdir ;;
  902. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  903. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  904. datarootdir=$ac_optarg ;;
  905. -disable-* | --disable-*)
  906. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  907. # Reject names that are not valid shell variable names.
  908. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  909. as_fn_error $? "invalid feature name: $ac_useropt"
  910. ac_useropt_orig=$ac_useropt
  911. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  912. case $ac_user_opts in
  913. *"
  914. "enable_$ac_useropt"
  915. "*) ;;
  916. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  917. ac_unrecognized_sep=', ';;
  918. esac
  919. eval enable_$ac_useropt=no ;;
  920. -docdir | --docdir | --docdi | --doc | --do)
  921. ac_prev=docdir ;;
  922. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  923. docdir=$ac_optarg ;;
  924. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  925. ac_prev=dvidir ;;
  926. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  927. dvidir=$ac_optarg ;;
  928. -enable-* | --enable-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error $? "invalid feature name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=\$ac_optarg ;;
  943. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  944. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  945. | --exec | --exe | --ex)
  946. ac_prev=exec_prefix ;;
  947. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  948. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  949. | --exec=* | --exe=* | --ex=*)
  950. exec_prefix=$ac_optarg ;;
  951. -gas | --gas | --ga | --g)
  952. # Obsolete; use --with-gas.
  953. with_gas=yes ;;
  954. -help | --help | --hel | --he | -h)
  955. ac_init_help=long ;;
  956. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  957. ac_init_help=recursive ;;
  958. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  959. ac_init_help=short ;;
  960. -host | --host | --hos | --ho)
  961. ac_prev=host_alias ;;
  962. -host=* | --host=* | --hos=* | --ho=*)
  963. host_alias=$ac_optarg ;;
  964. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  965. ac_prev=htmldir ;;
  966. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  967. | --ht=*)
  968. htmldir=$ac_optarg ;;
  969. -includedir | --includedir | --includedi | --included | --include \
  970. | --includ | --inclu | --incl | --inc)
  971. ac_prev=includedir ;;
  972. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  973. | --includ=* | --inclu=* | --incl=* | --inc=*)
  974. includedir=$ac_optarg ;;
  975. -infodir | --infodir | --infodi | --infod | --info | --inf)
  976. ac_prev=infodir ;;
  977. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  978. infodir=$ac_optarg ;;
  979. -libdir | --libdir | --libdi | --libd)
  980. ac_prev=libdir ;;
  981. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  982. libdir=$ac_optarg ;;
  983. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  984. | --libexe | --libex | --libe)
  985. ac_prev=libexecdir ;;
  986. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  987. | --libexe=* | --libex=* | --libe=*)
  988. libexecdir=$ac_optarg ;;
  989. -localedir | --localedir | --localedi | --localed | --locale)
  990. ac_prev=localedir ;;
  991. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  992. localedir=$ac_optarg ;;
  993. -localstatedir | --localstatedir | --localstatedi | --localstated \
  994. | --localstate | --localstat | --localsta | --localst | --locals)
  995. ac_prev=localstatedir ;;
  996. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  997. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  998. localstatedir=$ac_optarg ;;
  999. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1000. ac_prev=mandir ;;
  1001. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1002. mandir=$ac_optarg ;;
  1003. -nfp | --nfp | --nf)
  1004. # Obsolete; use --without-fp.
  1005. with_fp=no ;;
  1006. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1007. | --no-cr | --no-c | -n)
  1008. no_create=yes ;;
  1009. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1010. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1011. no_recursion=yes ;;
  1012. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1013. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1014. | --oldin | --oldi | --old | --ol | --o)
  1015. ac_prev=oldincludedir ;;
  1016. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1017. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1018. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1019. oldincludedir=$ac_optarg ;;
  1020. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1021. ac_prev=prefix ;;
  1022. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1023. prefix=$ac_optarg ;;
  1024. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1025. | --program-pre | --program-pr | --program-p)
  1026. ac_prev=program_prefix ;;
  1027. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1028. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1029. program_prefix=$ac_optarg ;;
  1030. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1031. | --program-suf | --program-su | --program-s)
  1032. ac_prev=program_suffix ;;
  1033. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1034. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1035. program_suffix=$ac_optarg ;;
  1036. -program-transform-name | --program-transform-name \
  1037. | --program-transform-nam | --program-transform-na \
  1038. | --program-transform-n | --program-transform- \
  1039. | --program-transform | --program-transfor \
  1040. | --program-transfo | --program-transf \
  1041. | --program-trans | --program-tran \
  1042. | --progr-tra | --program-tr | --program-t)
  1043. ac_prev=program_transform_name ;;
  1044. -program-transform-name=* | --program-transform-name=* \
  1045. | --program-transform-nam=* | --program-transform-na=* \
  1046. | --program-transform-n=* | --program-transform-=* \
  1047. | --program-transform=* | --program-transfor=* \
  1048. | --program-transfo=* | --program-transf=* \
  1049. | --program-trans=* | --program-tran=* \
  1050. | --progr-tra=* | --program-tr=* | --program-t=*)
  1051. program_transform_name=$ac_optarg ;;
  1052. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1053. ac_prev=pdfdir ;;
  1054. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1055. pdfdir=$ac_optarg ;;
  1056. -psdir | --psdir | --psdi | --psd | --ps)
  1057. ac_prev=psdir ;;
  1058. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1059. psdir=$ac_optarg ;;
  1060. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1061. | -silent | --silent | --silen | --sile | --sil)
  1062. silent=yes ;;
  1063. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1064. ac_prev=sbindir ;;
  1065. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1066. | --sbi=* | --sb=*)
  1067. sbindir=$ac_optarg ;;
  1068. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1069. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1070. | --sharedst | --shareds | --shared | --share | --shar \
  1071. | --sha | --sh)
  1072. ac_prev=sharedstatedir ;;
  1073. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1074. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1075. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1076. | --sha=* | --sh=*)
  1077. sharedstatedir=$ac_optarg ;;
  1078. -site | --site | --sit)
  1079. ac_prev=site ;;
  1080. -site=* | --site=* | --sit=*)
  1081. site=$ac_optarg ;;
  1082. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1083. ac_prev=srcdir ;;
  1084. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1085. srcdir=$ac_optarg ;;
  1086. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1087. | --syscon | --sysco | --sysc | --sys | --sy)
  1088. ac_prev=sysconfdir ;;
  1089. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1090. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1091. sysconfdir=$ac_optarg ;;
  1092. -target | --target | --targe | --targ | --tar | --ta | --t)
  1093. ac_prev=target_alias ;;
  1094. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1095. target_alias=$ac_optarg ;;
  1096. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1097. verbose=yes ;;
  1098. -version | --version | --versio | --versi | --vers | -V)
  1099. ac_init_version=: ;;
  1100. -with-* | --with-*)
  1101. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1102. # Reject names that are not valid shell variable names.
  1103. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1104. as_fn_error $? "invalid package name: $ac_useropt"
  1105. ac_useropt_orig=$ac_useropt
  1106. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1107. case $ac_user_opts in
  1108. *"
  1109. "with_$ac_useropt"
  1110. "*) ;;
  1111. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1112. ac_unrecognized_sep=', ';;
  1113. esac
  1114. eval with_$ac_useropt=\$ac_optarg ;;
  1115. -without-* | --without-*)
  1116. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1117. # Reject names that are not valid shell variable names.
  1118. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1119. as_fn_error $? "invalid package name: $ac_useropt"
  1120. ac_useropt_orig=$ac_useropt
  1121. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1122. case $ac_user_opts in
  1123. *"
  1124. "with_$ac_useropt"
  1125. "*) ;;
  1126. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1127. ac_unrecognized_sep=', ';;
  1128. esac
  1129. eval with_$ac_useropt=no ;;
  1130. --x)
  1131. # Obsolete; use --with-x.
  1132. with_x=yes ;;
  1133. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1134. | --x-incl | --x-inc | --x-in | --x-i)
  1135. ac_prev=x_includes ;;
  1136. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1137. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1138. x_includes=$ac_optarg ;;
  1139. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1140. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1141. ac_prev=x_libraries ;;
  1142. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1143. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1144. x_libraries=$ac_optarg ;;
  1145. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1146. Try \`$0 --help' for more information"
  1147. ;;
  1148. *=*)
  1149. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1150. # Reject names that are not valid shell variable names.
  1151. case $ac_envvar in #(
  1152. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1153. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1154. esac
  1155. eval $ac_envvar=\$ac_optarg
  1156. export $ac_envvar ;;
  1157. *)
  1158. # FIXME: should be removed in autoconf 3.0.
  1159. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1160. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1161. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1162. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1163. ;;
  1164. esac
  1165. done
  1166. if test -n "$ac_prev"; then
  1167. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1168. as_fn_error $? "missing argument to $ac_option"
  1169. fi
  1170. if test -n "$ac_unrecognized_opts"; then
  1171. case $enable_option_checking in
  1172. no) ;;
  1173. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1174. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1175. esac
  1176. fi
  1177. # Check all directory arguments for consistency.
  1178. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1179. datadir sysconfdir sharedstatedir localstatedir includedir \
  1180. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1181. libdir localedir mandir
  1182. do
  1183. eval ac_val=\$$ac_var
  1184. # Remove trailing slashes.
  1185. case $ac_val in
  1186. */ )
  1187. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1188. eval $ac_var=\$ac_val;;
  1189. esac
  1190. # Be sure to have absolute directory names.
  1191. case $ac_val in
  1192. [\\/$]* | ?:[\\/]* ) continue;;
  1193. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1194. esac
  1195. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1196. done
  1197. # There might be people who depend on the old broken behavior: `$host'
  1198. # used to hold the argument of --host etc.
  1199. # FIXME: To remove some day.
  1200. build=$build_alias
  1201. host=$host_alias
  1202. target=$target_alias
  1203. # FIXME: To remove some day.
  1204. if test "x$host_alias" != x; then
  1205. if test "x$build_alias" = x; then
  1206. cross_compiling=maybe
  1207. elif test "x$build_alias" != "x$host_alias"; then
  1208. cross_compiling=yes
  1209. fi
  1210. fi
  1211. ac_tool_prefix=
  1212. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1213. test "$silent" = yes && exec 6>/dev/null
  1214. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1215. ac_ls_di=`ls -di .` &&
  1216. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1217. as_fn_error $? "working directory cannot be determined"
  1218. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1219. as_fn_error $? "pwd does not report name of working directory"
  1220. # Find the source files, if location was not specified.
  1221. if test -z "$srcdir"; then
  1222. ac_srcdir_defaulted=yes
  1223. # Try the directory containing this script, then the parent directory.
  1224. ac_confdir=`$as_dirname -- "$as_myself" ||
  1225. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1226. X"$as_myself" : 'X\(//\)[^/]' \| \
  1227. X"$as_myself" : 'X\(//\)$' \| \
  1228. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1229. $as_echo X"$as_myself" |
  1230. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1231. s//\1/
  1232. q
  1233. }
  1234. /^X\(\/\/\)[^/].*/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\/\)$/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\).*/{
  1243. s//\1/
  1244. q
  1245. }
  1246. s/.*/./; q'`
  1247. srcdir=$ac_confdir
  1248. if test ! -r "$srcdir/$ac_unique_file"; then
  1249. srcdir=..
  1250. fi
  1251. else
  1252. ac_srcdir_defaulted=no
  1253. fi
  1254. if test ! -r "$srcdir/$ac_unique_file"; then
  1255. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1256. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1257. fi
  1258. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1259. ac_abs_confdir=`(
  1260. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1261. pwd)`
  1262. # When building in place, set srcdir=.
  1263. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1264. srcdir=.
  1265. fi
  1266. # Remove unnecessary trailing slashes from srcdir.
  1267. # Double slashes in file names in object file debugging info
  1268. # mess up M-x gdb in Emacs.
  1269. case $srcdir in
  1270. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1271. esac
  1272. for ac_var in $ac_precious_vars; do
  1273. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1274. eval ac_env_${ac_var}_value=\$${ac_var}
  1275. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1276. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1277. done
  1278. #
  1279. # Report the --help message.
  1280. #
  1281. if test "$ac_init_help" = "long"; then
  1282. # Omit some internal or obsolete options to make the list less imposing.
  1283. # This message is too long to be a string in the A/UX 3.1 sh.
  1284. cat <<_ACEOF
  1285. \`configure' configures xerces-c 3.1.2 to adapt to many kinds of systems.
  1286. Usage: $0 [OPTION]... [VAR=VALUE]...
  1287. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1288. VAR=VALUE. See below for descriptions of some of the useful variables.
  1289. Defaults for the options are specified in brackets.
  1290. Configuration:
  1291. -h, --help display this help and exit
  1292. --help=short display options specific to this package
  1293. --help=recursive display the short help of all the included packages
  1294. -V, --version display version information and exit
  1295. -q, --quiet, --silent do not print \`checking ...' messages
  1296. --cache-file=FILE cache test results in FILE [disabled]
  1297. -C, --config-cache alias for \`--cache-file=config.cache'
  1298. -n, --no-create do not create output files
  1299. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1300. Installation directories:
  1301. --prefix=PREFIX install architecture-independent files in PREFIX
  1302. [$ac_default_prefix]
  1303. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1304. [PREFIX]
  1305. By default, \`make install' will install all the files in
  1306. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1307. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1308. for instance \`--prefix=\$HOME'.
  1309. For better control, use the options below.
  1310. Fine tuning of the installation directories:
  1311. --bindir=DIR user executables [EPREFIX/bin]
  1312. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1313. --libexecdir=DIR program executables [EPREFIX/libexec]
  1314. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1315. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1316. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1317. --libdir=DIR object code libraries [EPREFIX/lib]
  1318. --includedir=DIR C header files [PREFIX/include]
  1319. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1320. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1321. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1322. --infodir=DIR info documentation [DATAROOTDIR/info]
  1323. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1324. --mandir=DIR man documentation [DATAROOTDIR/man]
  1325. --docdir=DIR documentation root [DATAROOTDIR/doc/xerces-c]
  1326. --htmldir=DIR html documentation [DOCDIR]
  1327. --dvidir=DIR dvi documentation [DOCDIR]
  1328. --pdfdir=DIR pdf documentation [DOCDIR]
  1329. --psdir=DIR ps documentation [DOCDIR]
  1330. _ACEOF
  1331. cat <<\_ACEOF
  1332. Program names:
  1333. --program-prefix=PREFIX prepend PREFIX to installed program names
  1334. --program-suffix=SUFFIX append SUFFIX to installed program names
  1335. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1336. System types:
  1337. --build=BUILD configure for building on BUILD [guessed]
  1338. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1339. _ACEOF
  1340. fi
  1341. if test -n "$ac_init_help"; then
  1342. case $ac_init_help in
  1343. short | recursive ) echo "Configuration of xerces-c 3.1.2:";;
  1344. esac
  1345. cat <<\_ACEOF
  1346. Optional Features:
  1347. --disable-option-checking ignore unrecognized --enable/--with options
  1348. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1349. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1350. --enable-silent-rules less verbose build output (undo: "make V=1")
  1351. --disable-silent-rules verbose build output (undo: "make V=0")
  1352. --enable-maintainer-mode
  1353. enable make rules and dependencies not useful (and
  1354. sometimes confusing) to the casual installer
  1355. --disable-rpath Patches libtool to not use rpath in the libraries
  1356. produced.
  1357. --enable-dependency-tracking
  1358. do not reject slow dependency extractors
  1359. --disable-dependency-tracking
  1360. speeds up one-time build
  1361. --enable-shared[=PKGS] build shared libraries [default=yes]
  1362. --enable-static[=PKGS] build static libraries [default=yes]
  1363. --enable-fast-install[=PKGS]
  1364. optimize for fast installation [default=yes]
  1365. --disable-libtool-lock avoid locking (might break parallel builds)
  1366. --disable-pretty-make Disable prettier make output (enabled by default)
  1367. --disable-threads Disable threads (enabled by default)
  1368. --disable-network Disable network support (enabled by default)
  1369. --enable-netaccessor-curl
  1370. Enable libcurl-based NetAccessor support
  1371. --enable-netaccessor-socket
  1372. Enable sockets-based NetAccessor support
  1373. --enable-netaccessor-cfurl
  1374. Enable cfurl-based NetAccessor support
  1375. --enable-netaccessor-winsock
  1376. Enable winsock-based NetAccessor support
  1377. --enable-transcoder-gnuiconv
  1378. Enable GNU iconv-based transcoder support
  1379. --enable-transcoder-iconv
  1380. Enable iconv-based transcoder support
  1381. --enable-transcoder-icu Enable icu-based transcoder support
  1382. --enable-transcoder-macosunicodeconverter
  1383. Enable MacOSUnicodeConverter-based transcoder
  1384. support
  1385. --enable-transcoder-windows
  1386. Enable Windows-based transcoder support
  1387. --enable-msgloader-inmemory
  1388. Enable InMemory MsgLoader support
  1389. --enable-msgloader-icu Enable ICU-based MsgLoader support
  1390. --enable-msgloader-iconv
  1391. Enable Iconv-based MsgLoader support
  1392. --disable-sse2 disable SSE2 optimizations
  1393. Optional Packages:
  1394. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1395. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1396. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1397. both]
  1398. --with-aix-soname=aix|svr4|both
  1399. shared library versioning (aka "SONAME") variant to
  1400. provide on AIX, [default=aix].
  1401. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1402. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1403. compiler's sysroot if not specified).
  1404. --with-curl[[[=DIR]]] Specify location of libcurl
  1405. --with-icu[[[=DIR]]] Specify location of icu
  1406. --with-pkgconfigdir=DIR Specify location of pkgconfig dir (default is
  1407. libdir/pkgconfig)
  1408. Some influential environment variables:
  1409. CXX C++ compiler command
  1410. CXXFLAGS C++ compiler flags
  1411. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1412. nonstandard directory <lib dir>
  1413. LIBS libraries to pass to the linker, e.g. -l<library>
  1414. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1415. you have headers in a nonstandard directory <include dir>
  1416. CC C compiler command
  1417. CFLAGS C compiler flags
  1418. LT_SYS_LIBRARY_PATH
  1419. User-defined run-time library search path.
  1420. CPP C preprocessor
  1421. CXXCPP C++ preprocessor
  1422. Use these variables to override the choices made by `configure' or to help
  1423. it to find libraries and programs with nonstandard names/locations.
  1424. Report bugs to the package provider.
  1425. _ACEOF
  1426. ac_status=$?
  1427. fi
  1428. if test "$ac_init_help" = "recursive"; then
  1429. # If there are subdirs, report their specific --help.
  1430. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1431. test -d "$ac_dir" ||
  1432. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1433. continue
  1434. ac_builddir=.
  1435. case "$ac_dir" in
  1436. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1437. *)
  1438. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1439. # A ".." for each directory in $ac_dir_suffix.
  1440. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1441. case $ac_top_builddir_sub in
  1442. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1443. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1444. esac ;;
  1445. esac
  1446. ac_abs_top_builddir=$ac_pwd
  1447. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1448. # for backward compatibility:
  1449. ac_top_builddir=$ac_top_build_prefix
  1450. case $srcdir in
  1451. .) # We are building in place.
  1452. ac_srcdir=.
  1453. ac_top_srcdir=$ac_top_builddir_sub
  1454. ac_abs_top_srcdir=$ac_pwd ;;
  1455. [\\/]* | ?:[\\/]* ) # Absolute name.
  1456. ac_srcdir=$srcdir$ac_dir_suffix;
  1457. ac_top_srcdir=$srcdir
  1458. ac_abs_top_srcdir=$srcdir ;;
  1459. *) # Relative name.
  1460. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1461. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1462. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1463. esac
  1464. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1465. cd "$ac_dir" || { ac_status=$?; continue; }
  1466. # Check for guested configure.
  1467. if test -f "$ac_srcdir/configure.gnu"; then
  1468. echo &&
  1469. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1470. elif test -f "$ac_srcdir/configure"; then
  1471. echo &&
  1472. $SHELL "$ac_srcdir/configure" --help=recursive
  1473. else
  1474. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1475. fi || ac_status=$?
  1476. cd "$ac_pwd" || { ac_status=$?; break; }
  1477. done
  1478. fi
  1479. test -n "$ac_init_help" && exit $ac_status
  1480. if $ac_init_version; then
  1481. cat <<\_ACEOF
  1482. xerces-c configure 3.1.2
  1483. generated by GNU Autoconf 2.69
  1484. Copyright (C) 2012 Free Software Foundation, Inc.
  1485. This configure script is free software; the Free Software Foundation
  1486. gives unlimited permission to copy, distribute and modify it.
  1487. _ACEOF
  1488. exit
  1489. fi
  1490. ## ------------------------ ##
  1491. ## Autoconf initialization. ##
  1492. ## ------------------------ ##
  1493. # ac_fn_cxx_try_compile LINENO
  1494. # ----------------------------
  1495. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1496. ac_fn_cxx_try_compile ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. rm -f conftest.$ac_objext
  1500. if { { ac_try="$ac_compile"
  1501. case "(($ac_try" in
  1502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1503. *) ac_try_echo=$ac_try;;
  1504. esac
  1505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1506. $as_echo "$ac_try_echo"; } >&5
  1507. (eval "$ac_compile") 2>conftest.err
  1508. ac_status=$?
  1509. if test -s conftest.err; then
  1510. grep -v '^ *+' conftest.err >conftest.er1
  1511. cat conftest.er1 >&5
  1512. mv -f conftest.er1 conftest.err
  1513. fi
  1514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1515. test $ac_status = 0; } && {
  1516. test -z "$ac_cxx_werror_flag" ||
  1517. test ! -s conftest.err
  1518. } && test -s conftest.$ac_objext; then :
  1519. ac_retval=0
  1520. else
  1521. $as_echo "$as_me: failed program was:" >&5
  1522. sed 's/^/| /' conftest.$ac_ext >&5
  1523. ac_retval=1
  1524. fi
  1525. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1526. as_fn_set_status $ac_retval
  1527. } # ac_fn_cxx_try_compile
  1528. # ac_fn_c_try_compile LINENO
  1529. # --------------------------
  1530. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1531. ac_fn_c_try_compile ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. rm -f conftest.$ac_objext
  1535. if { { ac_try="$ac_compile"
  1536. case "(($ac_try" in
  1537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1538. *) ac_try_echo=$ac_try;;
  1539. esac
  1540. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1541. $as_echo "$ac_try_echo"; } >&5
  1542. (eval "$ac_compile") 2>conftest.err
  1543. ac_status=$?
  1544. if test -s conftest.err; then
  1545. grep -v '^ *+' conftest.err >conftest.er1
  1546. cat conftest.er1 >&5
  1547. mv -f conftest.er1 conftest.err
  1548. fi
  1549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1550. test $ac_status = 0; } && {
  1551. test -z "$ac_c_werror_flag" ||
  1552. test ! -s conftest.err
  1553. } && test -s conftest.$ac_objext; then :
  1554. ac_retval=0
  1555. else
  1556. $as_echo "$as_me: failed program was:" >&5
  1557. sed 's/^/| /' conftest.$ac_ext >&5
  1558. ac_retval=1
  1559. fi
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. as_fn_set_status $ac_retval
  1562. } # ac_fn_c_try_compile
  1563. # ac_fn_c_try_link LINENO
  1564. # -----------------------
  1565. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1566. ac_fn_c_try_link ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. rm -f conftest.$ac_objext conftest$ac_exeext
  1570. if { { ac_try="$ac_link"
  1571. case "(($ac_try" in
  1572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1573. *) ac_try_echo=$ac_try;;
  1574. esac
  1575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1576. $as_echo "$ac_try_echo"; } >&5
  1577. (eval "$ac_link") 2>conftest.err
  1578. ac_status=$?
  1579. if test -s conftest.err; then
  1580. grep -v '^ *+' conftest.err >conftest.er1
  1581. cat conftest.er1 >&5
  1582. mv -f conftest.er1 conftest.err
  1583. fi
  1584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1585. test $ac_status = 0; } && {
  1586. test -z "$ac_c_werror_flag" ||
  1587. test ! -s conftest.err
  1588. } && test -s conftest$ac_exeext && {
  1589. test "$cross_compiling" = yes ||
  1590. test -x conftest$ac_exeext
  1591. }; then :
  1592. ac_retval=0
  1593. else
  1594. $as_echo "$as_me: failed program was:" >&5
  1595. sed 's/^/| /' conftest.$ac_ext >&5
  1596. ac_retval=1
  1597. fi
  1598. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1599. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1600. # interfere with the next link command; also delete a directory that is
  1601. # left behind by Apple's compiler. We do this before executing the actions.
  1602. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1603. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1604. as_fn_set_status $ac_retval
  1605. } # ac_fn_c_try_link
  1606. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1607. # -------------------------------------------------------
  1608. # Tests whether HEADER exists and can be compiled using the include files in
  1609. # INCLUDES, setting the cache variable VAR accordingly.
  1610. ac_fn_c_check_header_compile ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1614. $as_echo_n "checking for $2... " >&6; }
  1615. if eval \${$3+:} false; then :
  1616. $as_echo_n "(cached) " >&6
  1617. else
  1618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1619. /* end confdefs.h. */
  1620. $4
  1621. #include <$2>
  1622. _ACEOF
  1623. if ac_fn_c_try_compile "$LINENO"; then :
  1624. eval "$3=yes"
  1625. else
  1626. eval "$3=no"
  1627. fi
  1628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1629. fi
  1630. eval ac_res=\$$3
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1632. $as_echo "$ac_res" >&6; }
  1633. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1634. } # ac_fn_c_check_header_compile
  1635. # ac_fn_c_try_cpp LINENO
  1636. # ----------------------
  1637. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1638. ac_fn_c_try_cpp ()
  1639. {
  1640. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1641. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1642. case "(($ac_try" in
  1643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1644. *) ac_try_echo=$ac_try;;
  1645. esac
  1646. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1647. $as_echo "$ac_try_echo"; } >&5
  1648. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1649. ac_status=$?
  1650. if test -s conftest.err; then
  1651. grep -v '^ *+' conftest.err >conftest.er1
  1652. cat conftest.er1 >&5
  1653. mv -f conftest.er1 conftest.err
  1654. fi
  1655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1656. test $ac_status = 0; } > conftest.i && {
  1657. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1658. test ! -s conftest.err
  1659. }; then :
  1660. ac_retval=0
  1661. else
  1662. $as_echo "$as_me: failed program was:" >&5
  1663. sed 's/^/| /' conftest.$ac_ext >&5
  1664. ac_retval=1
  1665. fi
  1666. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1667. as_fn_set_status $ac_retval
  1668. } # ac_fn_c_try_cpp
  1669. # ac_fn_c_try_run LINENO
  1670. # ----------------------
  1671. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1672. # that executables *can* be run.
  1673. ac_fn_c_try_run ()
  1674. {
  1675. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1676. if { { ac_try="$ac_link"
  1677. case "(($ac_try" in
  1678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679. *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683. (eval "$ac_link") 2>&5
  1684. ac_status=$?
  1685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1686. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1687. { { case "(($ac_try" in
  1688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1689. *) ac_try_echo=$ac_try;;
  1690. esac
  1691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1692. $as_echo "$ac_try_echo"; } >&5
  1693. (eval "$ac_try") 2>&5
  1694. ac_status=$?
  1695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1696. test $ac_status = 0; }; }; then :
  1697. ac_retval=0
  1698. else
  1699. $as_echo "$as_me: program exited with status $ac_status" >&5
  1700. $as_echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_retval=$ac_status
  1703. fi
  1704. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1705. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1706. as_fn_set_status $ac_retval
  1707. } # ac_fn_c_try_run
  1708. # ac_fn_c_check_func LINENO FUNC VAR
  1709. # ----------------------------------
  1710. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1711. ac_fn_c_check_func ()
  1712. {
  1713. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1715. $as_echo_n "checking for $2... " >&6; }
  1716. if eval \${$3+:} false; then :
  1717. $as_echo_n "(cached) " >&6
  1718. else
  1719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1720. /* end confdefs.h. */
  1721. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1722. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1723. #define $2 innocuous_$2
  1724. /* System header to define __stub macros and hopefully few prototypes,
  1725. which can conflict with char $2 (); below.
  1726. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1727. <limits.h> exists even on freestanding compilers. */
  1728. #ifdef __STDC__
  1729. # include <limits.h>
  1730. #else
  1731. # include <assert.h>
  1732. #endif
  1733. #undef $2
  1734. /* Override any GCC internal prototype to avoid an error.
  1735. Use char because int might match the return type of a GCC
  1736. builtin and then its argument prototype would still apply. */
  1737. #ifdef __cplusplus
  1738. extern "C"
  1739. #endif
  1740. char $2 ();
  1741. /* The GNU C library defines this for functions which it implements
  1742. to always fail with ENOSYS. Some functions are actually named
  1743. something starting with __ and the normal name is an alias. */
  1744. #if defined __stub_$2 || defined __stub___$2
  1745. choke me
  1746. #endif
  1747. int
  1748. main ()
  1749. {
  1750. return $2 ();
  1751. ;
  1752. return 0;
  1753. }
  1754. _ACEOF
  1755. if ac_fn_c_try_link "$LINENO"; then :
  1756. eval "$3=yes"
  1757. else
  1758. eval "$3=no"
  1759. fi
  1760. rm -f core conftest.err conftest.$ac_objext \
  1761. conftest$ac_exeext conftest.$ac_ext
  1762. fi
  1763. eval ac_res=\$$3
  1764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1765. $as_echo "$ac_res" >&6; }
  1766. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1767. } # ac_fn_c_check_func
  1768. # ac_fn_cxx_try_cpp LINENO
  1769. # ------------------------
  1770. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1771. ac_fn_cxx_try_cpp ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1775. case "(($ac_try" in
  1776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1777. *) ac_try_echo=$ac_try;;
  1778. esac
  1779. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1780. $as_echo "$ac_try_echo"; } >&5
  1781. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1782. ac_status=$?
  1783. if test -s conftest.err; then
  1784. grep -v '^ *+' conftest.err >conftest.er1
  1785. cat conftest.er1 >&5
  1786. mv -f conftest.er1 conftest.err
  1787. fi
  1788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1789. test $ac_status = 0; } > conftest.i && {
  1790. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1791. test ! -s conftest.err
  1792. }; then :
  1793. ac_retval=0
  1794. else
  1795. $as_echo "$as_me: failed program was:" >&5
  1796. sed 's/^/| /' conftest.$ac_ext >&5
  1797. ac_retval=1
  1798. fi
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. as_fn_set_status $ac_retval
  1801. } # ac_fn_cxx_try_cpp
  1802. # ac_fn_cxx_try_link LINENO
  1803. # -------------------------
  1804. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1805. ac_fn_cxx_try_link ()
  1806. {
  1807. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1808. rm -f conftest.$ac_objext conftest$ac_exeext
  1809. if { { ac_try="$ac_link"
  1810. case "(($ac_try" in
  1811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1812. *) ac_try_echo=$ac_try;;
  1813. esac
  1814. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1815. $as_echo "$ac_try_echo"; } >&5
  1816. (eval "$ac_link") 2>conftest.err
  1817. ac_status=$?
  1818. if test -s conftest.err; then
  1819. grep -v '^ *+' conftest.err >conftest.er1
  1820. cat conftest.er1 >&5
  1821. mv -f conftest.er1 conftest.err
  1822. fi
  1823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1824. test $ac_status = 0; } && {
  1825. test -z "$ac_cxx_werror_flag" ||
  1826. test ! -s conftest.err
  1827. } && test -s conftest$ac_exeext && {
  1828. test "$cross_compiling" = yes ||
  1829. test -x conftest$ac_exeext
  1830. }; then :
  1831. ac_retval=0
  1832. else
  1833. $as_echo "$as_me: failed program was:" >&5
  1834. sed 's/^/| /' conftest.$ac_ext >&5
  1835. ac_retval=1
  1836. fi
  1837. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1838. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1839. # interfere with the next link command; also delete a directory that is
  1840. # left behind by Apple's compiler. We do this before executing the actions.
  1841. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. as_fn_set_status $ac_retval
  1844. } # ac_fn_cxx_try_link
  1845. # ac_fn_cxx_try_run LINENO
  1846. # ------------------------
  1847. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1848. # that executables *can* be run.
  1849. ac_fn_cxx_try_run ()
  1850. {
  1851. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1852. if { { ac_try="$ac_link"
  1853. case "(($ac_try" in
  1854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1855. *) ac_try_echo=$ac_try;;
  1856. esac
  1857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1858. $as_echo "$ac_try_echo"; } >&5
  1859. (eval "$ac_link") 2>&5
  1860. ac_status=$?
  1861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1863. { { case "(($ac_try" in
  1864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1865. *) ac_try_echo=$ac_try;;
  1866. esac
  1867. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1868. $as_echo "$ac_try_echo"; } >&5
  1869. (eval "$ac_try") 2>&5
  1870. ac_status=$?
  1871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1872. test $ac_status = 0; }; }; then :
  1873. ac_retval=0
  1874. else
  1875. $as_echo "$as_me: program exited with status $ac_status" >&5
  1876. $as_echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. ac_retval=$ac_status
  1879. fi
  1880. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } # ac_fn_cxx_try_run
  1884. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1885. # ---------------------------------------------------------
  1886. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1887. # the include files in INCLUDES and setting the cache variable VAR
  1888. # accordingly.
  1889. ac_fn_cxx_check_header_mongrel ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. if eval \${$3+:} false; then :
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1894. $as_echo_n "checking for $2... " >&6; }
  1895. if eval \${$3+:} false; then :
  1896. $as_echo_n "(cached) " >&6
  1897. fi
  1898. eval ac_res=\$$3
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1900. $as_echo "$ac_res" >&6; }
  1901. else
  1902. # Is the header compilable?
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1904. $as_echo_n "checking $2 usability... " >&6; }
  1905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1906. /* end confdefs.h. */
  1907. $4
  1908. #include <$2>
  1909. _ACEOF
  1910. if ac_fn_cxx_try_compile "$LINENO"; then :
  1911. ac_header_compiler=yes
  1912. else
  1913. ac_header_compiler=no
  1914. fi
  1915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1917. $as_echo "$ac_header_compiler" >&6; }
  1918. # Is the header present?
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1920. $as_echo_n "checking $2 presence... " >&6; }
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. #include <$2>
  1924. _ACEOF
  1925. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1926. ac_header_preproc=yes
  1927. else
  1928. ac_header_preproc=no
  1929. fi
  1930. rm -f conftest.err conftest.i conftest.$ac_ext
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1932. $as_echo "$ac_header_preproc" >&6; }
  1933. # So? What about this header?
  1934. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1935. yes:no: )
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1937. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1939. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1940. ;;
  1941. no:yes:* )
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1943. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1945. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1947. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1949. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1951. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1952. ;;
  1953. esac
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1955. $as_echo_n "checking for $2... " >&6; }
  1956. if eval \${$3+:} false; then :
  1957. $as_echo_n "(cached) " >&6
  1958. else
  1959. eval "$3=\$ac_header_compiler"
  1960. fi
  1961. eval ac_res=\$$3
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1963. $as_echo "$ac_res" >&6; }
  1964. fi
  1965. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1966. } # ac_fn_cxx_check_header_mongrel
  1967. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1968. # ---------------------------------------------
  1969. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1970. # variable VAR accordingly.
  1971. ac_fn_cxx_check_type ()
  1972. {
  1973. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1975. $as_echo_n "checking for $2... " >&6; }
  1976. if eval \${$3+:} false; then :
  1977. $as_echo_n "(cached) " >&6
  1978. else
  1979. eval "$3=no"
  1980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1981. /* end confdefs.h. */
  1982. $4
  1983. int
  1984. main ()
  1985. {
  1986. if (sizeof ($2))
  1987. return 0;
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_cxx_try_compile "$LINENO"; then :
  1993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1994. /* end confdefs.h. */
  1995. $4
  1996. int
  1997. main ()
  1998. {
  1999. if (sizeof (($2)))
  2000. return 0;
  2001. ;
  2002. return 0;
  2003. }
  2004. _ACEOF
  2005. if ac_fn_cxx_try_compile "$LINENO"; then :
  2006. else
  2007. eval "$3=yes"
  2008. fi
  2009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2010. fi
  2011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2012. fi
  2013. eval ac_res=\$$3
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2015. $as_echo "$ac_res" >&6; }
  2016. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2017. } # ac_fn_cxx_check_type
  2018. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2019. # ----------------------------------------------
  2020. # Tries to find the compile-time value of EXPR in a program that includes
  2021. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2022. # computed
  2023. ac_fn_cxx_compute_int ()
  2024. {
  2025. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2026. if test "$cross_compiling" = yes; then
  2027. # Depending upon the size, compute the lo and hi bounds.
  2028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2029. /* end confdefs.h. */
  2030. $4
  2031. int
  2032. main ()
  2033. {
  2034. static int test_array [1 - 2 * !(($2) >= 0)];
  2035. test_array [0] = 0;
  2036. return test_array [0];
  2037. ;
  2038. return 0;
  2039. }
  2040. _ACEOF
  2041. if ac_fn_cxx_try_compile "$LINENO"; then :
  2042. ac_lo=0 ac_mid=0
  2043. while :; do
  2044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2045. /* end confdefs.h. */
  2046. $4
  2047. int
  2048. main ()
  2049. {
  2050. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2051. test_array [0] = 0;
  2052. return test_array [0];
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. if ac_fn_cxx_try_compile "$LINENO"; then :
  2058. ac_hi=$ac_mid; break
  2059. else
  2060. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2061. if test $ac_lo -le $ac_mid; then
  2062. ac_lo= ac_hi=
  2063. break
  2064. fi
  2065. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2066. fi
  2067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2068. done
  2069. else
  2070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2071. /* end confdefs.h. */
  2072. $4
  2073. int
  2074. main ()
  2075. {
  2076. static int test_array [1 - 2 * !(($2) < 0)];
  2077. test_array [0] = 0;
  2078. return test_array [0];
  2079. ;
  2080. return 0;
  2081. }
  2082. _ACEOF
  2083. if ac_fn_cxx_try_compile "$LINENO"; then :
  2084. ac_hi=-1 ac_mid=-1
  2085. while :; do
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $4
  2089. int
  2090. main ()
  2091. {
  2092. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2093. test_array [0] = 0;
  2094. return test_array [0];
  2095. ;
  2096. return 0;
  2097. }
  2098. _ACEOF
  2099. if ac_fn_cxx_try_compile "$LINENO"; then :
  2100. ac_lo=$ac_mid; break
  2101. else
  2102. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2103. if test $ac_mid -le $ac_hi; then
  2104. ac_lo= ac_hi=
  2105. break
  2106. fi
  2107. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2108. fi
  2109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2110. done
  2111. else
  2112. ac_lo= ac_hi=
  2113. fi
  2114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2115. fi
  2116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2117. # Binary search between lo and hi bounds.
  2118. while test "x$ac_lo" != "x$ac_hi"; do
  2119. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2121. /* end confdefs.h. */
  2122. $4
  2123. int
  2124. main ()
  2125. {
  2126. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2127. test_array [0] = 0;
  2128. return test_array [0];
  2129. ;
  2130. return 0;
  2131. }
  2132. _ACEOF
  2133. if ac_fn_cxx_try_compile "$LINENO"; then :
  2134. ac_hi=$ac_mid
  2135. else
  2136. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2137. fi
  2138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2139. done
  2140. case $ac_lo in #((
  2141. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2142. '') ac_retval=1 ;;
  2143. esac
  2144. else
  2145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2146. /* end confdefs.h. */
  2147. $4
  2148. static long int longval () { return $2; }
  2149. static unsigned long int ulongval () { return $2; }
  2150. #include <stdio.h>
  2151. #include <stdlib.h>
  2152. int
  2153. main ()
  2154. {
  2155. FILE *f = fopen ("conftest.val", "w");
  2156. if (! f)
  2157. return 1;
  2158. if (($2) < 0)
  2159. {
  2160. long int i = longval ();
  2161. if (i != ($2))
  2162. return 1;
  2163. fprintf (f, "%ld", i);
  2164. }
  2165. else
  2166. {
  2167. unsigned long int i = ulongval ();
  2168. if (i != ($2))
  2169. return 1;
  2170. fprintf (f, "%lu", i);
  2171. }
  2172. /* Do not output a trailing newline, as this causes \r\n confusion
  2173. on some platforms. */
  2174. return ferror (f) || fclose (f) != 0;
  2175. ;
  2176. return 0;
  2177. }
  2178. _ACEOF
  2179. if ac_fn_cxx_try_run "$LINENO"; then :
  2180. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2181. else
  2182. ac_retval=1
  2183. fi
  2184. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2185. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2186. rm -f conftest.val
  2187. fi
  2188. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2189. as_fn_set_status $ac_retval
  2190. } # ac_fn_cxx_compute_int
  2191. # ac_fn_cxx_check_func LINENO FUNC VAR
  2192. # ------------------------------------
  2193. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2194. ac_fn_cxx_check_func ()
  2195. {
  2196. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2198. $as_echo_n "checking for $2... " >&6; }
  2199. if eval \${$3+:} false; then :
  2200. $as_echo_n "(cached) " >&6
  2201. else
  2202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2203. /* end confdefs.h. */
  2204. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2205. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2206. #define $2 innocuous_$2
  2207. /* System header to define __stub macros and hopefully few prototypes,
  2208. which can conflict with char $2 (); below.
  2209. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2210. <limits.h> exists even on freestanding compilers. */
  2211. #ifdef __STDC__
  2212. # include <limits.h>
  2213. #else
  2214. # include <assert.h>
  2215. #endif
  2216. #undef $2
  2217. /* Override any GCC internal prototype to avoid an error.
  2218. Use char because int might match the return type of a GCC
  2219. builtin and then its argument prototype would still apply. */
  2220. #ifdef __cplusplus
  2221. extern "C"
  2222. #endif
  2223. char $2 ();
  2224. /* The GNU C library defines this for functions which it implements
  2225. to always fail with ENOSYS. Some functions are actually named
  2226. something starting with __ and the normal name is an alias. */
  2227. #if defined __stub_$2 || defined __stub___$2
  2228. choke me
  2229. #endif
  2230. int
  2231. main ()
  2232. {
  2233. return $2 ();
  2234. ;
  2235. return 0;
  2236. }
  2237. _ACEOF
  2238. if ac_fn_cxx_try_link "$LINENO"; then :
  2239. eval "$3=yes"
  2240. else
  2241. eval "$3=no"
  2242. fi
  2243. rm -f core conftest.err conftest.$ac_objext \
  2244. conftest$ac_exeext conftest.$ac_ext
  2245. fi
  2246. eval ac_res=\$$3
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2248. $as_echo "$ac_res" >&6; }
  2249. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2250. } # ac_fn_cxx_check_func
  2251. cat >config.log <<_ACEOF
  2252. This file contains any messages produced by compilers while
  2253. running configure, to aid debugging if configure makes a mistake.
  2254. It was created by xerces-c $as_me 3.1.2, which was
  2255. generated by GNU Autoconf 2.69. Invocation command line was
  2256. $ $0 $@
  2257. _ACEOF
  2258. exec 5>>config.log
  2259. {
  2260. cat <<_ASUNAME
  2261. ## --------- ##
  2262. ## Platform. ##
  2263. ## --------- ##
  2264. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2265. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2266. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2267. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2268. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2269. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2270. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2271. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2272. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2273. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2274. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2275. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2276. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2277. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2278. _ASUNAME
  2279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280. for as_dir in $PATH
  2281. do
  2282. IFS=$as_save_IFS
  2283. test -z "$as_dir" && as_dir=.
  2284. $as_echo "PATH: $as_dir"
  2285. done
  2286. IFS=$as_save_IFS
  2287. } >&5
  2288. cat >&5 <<_ACEOF
  2289. ## ----------- ##
  2290. ## Core tests. ##
  2291. ## ----------- ##
  2292. _ACEOF
  2293. # Keep a trace of the command line.
  2294. # Strip out --no-create and --no-recursion so they do not pile up.
  2295. # Strip out --silent because we don't want to record it for future runs.
  2296. # Also quote any args containing shell meta-characters.
  2297. # Make two passes to allow for proper duplicate-argument suppression.
  2298. ac_configure_args=
  2299. ac_configure_args0=
  2300. ac_configure_args1=
  2301. ac_must_keep_next=false
  2302. for ac_pass in 1 2
  2303. do
  2304. for ac_arg
  2305. do
  2306. case $ac_arg in
  2307. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2308. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2309. | -silent | --silent | --silen | --sile | --sil)
  2310. continue ;;
  2311. *\'*)
  2312. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2313. esac
  2314. case $ac_pass in
  2315. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2316. 2)
  2317. as_fn_append ac_configure_args1 " '$ac_arg'"
  2318. if test $ac_must_keep_next = true; then
  2319. ac_must_keep_next=false # Got value, back to normal.
  2320. else
  2321. case $ac_arg in
  2322. *=* | --config-cache | -C | -disable-* | --disable-* \
  2323. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2324. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2325. | -with-* | --with-* | -without-* | --without-* | --x)
  2326. case "$ac_configure_args0 " in
  2327. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2328. esac
  2329. ;;
  2330. -* ) ac_must_keep_next=true ;;
  2331. esac
  2332. fi
  2333. as_fn_append ac_configure_args " '$ac_arg'"
  2334. ;;
  2335. esac
  2336. done
  2337. done
  2338. { ac_configure_args0=; unset ac_configure_args0;}
  2339. { ac_configure_args1=; unset ac_configure_args1;}
  2340. # When interrupted or exit'd, cleanup temporary files, and complete
  2341. # config.log. We remove comments because anyway the quotes in there
  2342. # would cause problems or look ugly.
  2343. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2344. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2345. trap 'exit_status=$?
  2346. # Save into config.log some information that might help in debugging.
  2347. {
  2348. echo
  2349. $as_echo "## ---------------- ##
  2350. ## Cache variables. ##
  2351. ## ---------------- ##"
  2352. echo
  2353. # The following way of writing the cache mishandles newlines in values,
  2354. (
  2355. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2356. eval ac_val=\$$ac_var
  2357. case $ac_val in #(
  2358. *${as_nl}*)
  2359. case $ac_var in #(
  2360. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2361. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2362. esac
  2363. case $ac_var in #(
  2364. _ | IFS | as_nl) ;; #(
  2365. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2366. *) { eval $ac_var=; unset $ac_var;} ;;
  2367. esac ;;
  2368. esac
  2369. done
  2370. (set) 2>&1 |
  2371. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2372. *${as_nl}ac_space=\ *)
  2373. sed -n \
  2374. "s/'\''/'\''\\\\'\'''\''/g;
  2375. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2376. ;; #(
  2377. *)
  2378. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2379. ;;
  2380. esac |
  2381. sort
  2382. )
  2383. echo
  2384. $as_echo "## ----------------- ##
  2385. ## Output variables. ##
  2386. ## ----------------- ##"
  2387. echo
  2388. for ac_var in $ac_subst_vars
  2389. do
  2390. eval ac_val=\$$ac_var
  2391. case $ac_val in
  2392. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2393. esac
  2394. $as_echo "$ac_var='\''$ac_val'\''"
  2395. done | sort
  2396. echo
  2397. if test -n "$ac_subst_files"; then
  2398. $as_echo "## ------------------- ##
  2399. ## File substitutions. ##
  2400. ## ------------------- ##"
  2401. echo
  2402. for ac_var in $ac_subst_files
  2403. do
  2404. eval ac_val=\$$ac_var
  2405. case $ac_val in
  2406. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2407. esac
  2408. $as_echo "$ac_var='\''$ac_val'\''"
  2409. done | sort
  2410. echo
  2411. fi
  2412. if test -s confdefs.h; then
  2413. $as_echo "## ----------- ##
  2414. ## confdefs.h. ##
  2415. ## ----------- ##"
  2416. echo
  2417. cat confdefs.h
  2418. echo
  2419. fi
  2420. test "$ac_signal" != 0 &&
  2421. $as_echo "$as_me: caught signal $ac_signal"
  2422. $as_echo "$as_me: exit $exit_status"
  2423. } >&5
  2424. rm -f core *.core core.conftest.* &&
  2425. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2426. exit $exit_status
  2427. ' 0
  2428. for ac_signal in 1 2 13 15; do
  2429. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2430. done
  2431. ac_signal=0
  2432. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2433. rm -f -r conftest* confdefs.h
  2434. $as_echo "/* confdefs.h */" > confdefs.h
  2435. # Predefined preprocessor variables.
  2436. cat >>confdefs.h <<_ACEOF
  2437. #define PACKAGE_NAME "$PACKAGE_NAME"
  2438. _ACEOF
  2439. cat >>confdefs.h <<_ACEOF
  2440. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2441. _ACEOF
  2442. cat >>confdefs.h <<_ACEOF
  2443. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2444. _ACEOF
  2445. cat >>confdefs.h <<_ACEOF
  2446. #define PACKAGE_STRING "$PACKAGE_STRING"
  2447. _ACEOF
  2448. cat >>confdefs.h <<_ACEOF
  2449. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2450. _ACEOF
  2451. cat >>confdefs.h <<_ACEOF
  2452. #define PACKAGE_URL "$PACKAGE_URL"
  2453. _ACEOF
  2454. # Let the site file select an alternate cache file if it wants to.
  2455. # Prefer an explicitly selected file to automatically selected ones.
  2456. ac_site_file1=NONE
  2457. ac_site_file2=NONE
  2458. if test -n "$CONFIG_SITE"; then
  2459. # We do not want a PATH search for config.site.
  2460. case $CONFIG_SITE in #((
  2461. -*) ac_site_file1=./$CONFIG_SITE;;
  2462. */*) ac_site_file1=$CONFIG_SITE;;
  2463. *) ac_site_file1=./$CONFIG_SITE;;
  2464. esac
  2465. elif test "x$prefix" != xNONE; then
  2466. ac_site_file1=$prefix/share/config.site
  2467. ac_site_file2=$prefix/etc/config.site
  2468. else
  2469. ac_site_file1=$ac_default_prefix/share/config.site
  2470. ac_site_file2=$ac_default_prefix/etc/config.site
  2471. fi
  2472. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2473. do
  2474. test "x$ac_site_file" = xNONE && continue
  2475. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2477. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2478. sed 's/^/| /' "$ac_site_file" >&5
  2479. . "$ac_site_file" \
  2480. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2482. as_fn_error $? "failed to load site script $ac_site_file
  2483. See \`config.log' for more details" "$LINENO" 5; }
  2484. fi
  2485. done
  2486. if test -r "$cache_file"; then
  2487. # Some versions of bash will fail to source /dev/null (special files
  2488. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2489. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2491. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2492. case $cache_file in
  2493. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2494. *) . "./$cache_file";;
  2495. esac
  2496. fi
  2497. else
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2499. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2500. >$cache_file
  2501. fi
  2502. # Check that the precious variables saved in the cache have kept the same
  2503. # value.
  2504. ac_cache_corrupted=false
  2505. for ac_var in $ac_precious_vars; do
  2506. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2507. eval ac_new_set=\$ac_env_${ac_var}_set
  2508. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2509. eval ac_new_val=\$ac_env_${ac_var}_value
  2510. case $ac_old_set,$ac_new_set in
  2511. set,)
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2513. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2514. ac_cache_corrupted=: ;;
  2515. ,set)
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2517. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2518. ac_cache_corrupted=: ;;
  2519. ,);;
  2520. *)
  2521. if test "x$ac_old_val" != "x$ac_new_val"; then
  2522. # differences in whitespace do not lead to failure.
  2523. ac_old_val_w=`echo x $ac_old_val`
  2524. ac_new_val_w=`echo x $ac_new_val`
  2525. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2527. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2528. ac_cache_corrupted=:
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2531. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2532. eval $ac_var=\$ac_old_val
  2533. fi
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2535. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2537. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2538. fi;;
  2539. esac
  2540. # Pass precious variables to config.status.
  2541. if test "$ac_new_set" = set; then
  2542. case $ac_new_val in
  2543. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2544. *) ac_arg=$ac_var=$ac_new_val ;;
  2545. esac
  2546. case " $ac_configure_args " in
  2547. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2548. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2549. esac
  2550. fi
  2551. done
  2552. if $ac_cache_corrupted; then
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2554. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2556. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2557. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2558. fi
  2559. ## -------------------- ##
  2560. ## Main body of script. ##
  2561. ## -------------------- ##
  2562. ac_ext=c
  2563. ac_cpp='$CPP $CPPFLAGS'
  2564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2567. ac_aux_dir=
  2568. for ac_dir in config "$srcdir"/config; do
  2569. if test -f "$ac_dir/install-sh"; then
  2570. ac_aux_dir=$ac_dir
  2571. ac_install_sh="$ac_aux_dir/install-sh -c"
  2572. break
  2573. elif test -f "$ac_dir/install.sh"; then
  2574. ac_aux_dir=$ac_dir
  2575. ac_install_sh="$ac_aux_dir/install.sh -c"
  2576. break
  2577. elif test -f "$ac_dir/shtool"; then
  2578. ac_aux_dir=$ac_dir
  2579. ac_install_sh="$ac_aux_dir/shtool install -c"
  2580. break
  2581. fi
  2582. done
  2583. if test -z "$ac_aux_dir"; then
  2584. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2585. fi
  2586. # These three variables are undocumented and unsupported,
  2587. # and are intended to be withdrawn in a future Autoconf release.
  2588. # They can cause serious problems if a builder's source tree is in a directory
  2589. # whose full name contains unusual characters.
  2590. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2591. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2592. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2593. ac_config_headers="$ac_config_headers config.h src/xercesc/util/Xerces_autoconf_config.hpp"
  2594. ac_config_files="$ac_config_files Makefile src/Makefile src/xercesc/util/MsgLoaders/MsgCatalog/Makefile tests/Makefile samples/Makefile xerces-c.pc"
  2595. # Check the target system
  2596. # Make sure we can run config.sub.
  2597. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2598. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2600. $as_echo_n "checking build system type... " >&6; }
  2601. if ${ac_cv_build+:} false; then :
  2602. $as_echo_n "(cached) " >&6
  2603. else
  2604. ac_build_alias=$build_alias
  2605. test "x$ac_build_alias" = x &&
  2606. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2607. test "x$ac_build_alias" = x &&
  2608. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2609. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2610. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2611. fi
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2613. $as_echo "$ac_cv_build" >&6; }
  2614. case $ac_cv_build in
  2615. *-*-*) ;;
  2616. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2617. esac
  2618. build=$ac_cv_build
  2619. ac_save_IFS=$IFS; IFS='-'
  2620. set x $ac_cv_build
  2621. shift
  2622. build_cpu=$1
  2623. build_vendor=$2
  2624. shift; shift
  2625. # Remember, the first character of IFS is used to create $*,
  2626. # except with old shells:
  2627. build_os=$*
  2628. IFS=$ac_save_IFS
  2629. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2631. $as_echo_n "checking host system type... " >&6; }
  2632. if ${ac_cv_host+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. if test "x$host_alias" = x; then
  2636. ac_cv_host=$ac_cv_build
  2637. else
  2638. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2639. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2640. fi
  2641. fi
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2643. $as_echo "$ac_cv_host" >&6; }
  2644. case $ac_cv_host in
  2645. *-*-*) ;;
  2646. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2647. esac
  2648. host=$ac_cv_host
  2649. ac_save_IFS=$IFS; IFS='-'
  2650. set x $ac_cv_host
  2651. shift
  2652. host_cpu=$1
  2653. host_vendor=$2
  2654. shift; shift
  2655. # Remember, the first character of IFS is used to create $*,
  2656. # except with old shells:
  2657. host_os=$*
  2658. IFS=$ac_save_IFS
  2659. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2660. # Initialize automake
  2661. am__api_version='1.15'
  2662. # Find a good install program. We prefer a C program (faster),
  2663. # so one script is as good as another. But avoid the broken or
  2664. # incompatible versions:
  2665. # SysV /etc/install, /usr/sbin/install
  2666. # SunOS /usr/etc/install
  2667. # IRIX /sbin/install
  2668. # AIX /bin/install
  2669. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2670. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2671. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2672. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2673. # OS/2's system install, which has a completely different semantic
  2674. # ./install, which can be erroneously created by make from ./install.sh.
  2675. # Reject install programs that cannot install multiple files.
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2677. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2678. if test -z "$INSTALL"; then
  2679. if ${ac_cv_path_install+:} false; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2683. for as_dir in $PATH
  2684. do
  2685. IFS=$as_save_IFS
  2686. test -z "$as_dir" && as_dir=.
  2687. # Account for people who put trailing slashes in PATH elements.
  2688. case $as_dir/ in #((
  2689. ./ | .// | /[cC]/* | \
  2690. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2691. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2692. /usr/ucb/* ) ;;
  2693. *)
  2694. # OSF1 and SCO ODT 3.0 have their own names for install.
  2695. # Don't use installbsd from OSF since it installs stuff as root
  2696. # by default.
  2697. for ac_prog in ginstall scoinst install; do
  2698. for ac_exec_ext in '' $ac_executable_extensions; do
  2699. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2700. if test $ac_prog = install &&
  2701. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2702. # AIX install. It has an incompatible calling convention.
  2703. :
  2704. elif test $ac_prog = install &&
  2705. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2706. # program-specific install script used by HP pwplus--don't use.
  2707. :
  2708. else
  2709. rm -rf conftest.one conftest.two conftest.dir
  2710. echo one > conftest.one
  2711. echo two > conftest.two
  2712. mkdir conftest.dir
  2713. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2714. test -s conftest.one && test -s conftest.two &&
  2715. test -s conftest.dir/conftest.one &&
  2716. test -s conftest.dir/conftest.two
  2717. then
  2718. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2719. break 3
  2720. fi
  2721. fi
  2722. fi
  2723. done
  2724. done
  2725. ;;
  2726. esac
  2727. done
  2728. IFS=$as_save_IFS
  2729. rm -rf conftest.one conftest.two conftest.dir
  2730. fi
  2731. if test "${ac_cv_path_install+set}" = set; then
  2732. INSTALL=$ac_cv_path_install
  2733. else
  2734. # As a last resort, use the slow shell script. Don't cache a
  2735. # value for INSTALL within a source directory, because that will
  2736. # break other packages using the cache if that directory is
  2737. # removed, or if the value is a relative name.
  2738. INSTALL=$ac_install_sh
  2739. fi
  2740. fi
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2742. $as_echo "$INSTALL" >&6; }
  2743. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2744. # It thinks the first close brace ends the variable substitution.
  2745. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2746. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2747. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2749. $as_echo_n "checking whether build environment is sane... " >&6; }
  2750. # Reject unsafe characters in $srcdir or the absolute working directory
  2751. # name. Accept space and tab only in the latter.
  2752. am_lf='
  2753. '
  2754. case `pwd` in
  2755. *[\\\"\#\$\&\'\`$am_lf]*)
  2756. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2757. esac
  2758. case $srcdir in
  2759. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2760. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2761. esac
  2762. # Do 'set' in a subshell so we don't clobber the current shell's
  2763. # arguments. Must try -L first in case configure is actually a
  2764. # symlink; some systems play weird games with the mod time of symlinks
  2765. # (eg FreeBSD returns the mod time of the symlink's containing
  2766. # directory).
  2767. if (
  2768. am_has_slept=no
  2769. for am_try in 1 2; do
  2770. echo "timestamp, slept: $am_has_slept" > conftest.file
  2771. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2772. if test "$*" = "X"; then
  2773. # -L didn't work.
  2774. set X `ls -t "$srcdir/configure" conftest.file`
  2775. fi
  2776. if test "$*" != "X $srcdir/configure conftest.file" \
  2777. && test "$*" != "X conftest.file $srcdir/configure"; then
  2778. # If neither matched, then we have a broken ls. This can happen
  2779. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2780. # broken ls alias from the environment. This has actually
  2781. # happened. Such a system could not be considered "sane".
  2782. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2783. alias in your environment" "$LINENO" 5
  2784. fi
  2785. if test "$2" = conftest.file || test $am_try -eq 2; then
  2786. break
  2787. fi
  2788. # Just in case.
  2789. sleep 1
  2790. am_has_slept=yes
  2791. done
  2792. test "$2" = conftest.file
  2793. )
  2794. then
  2795. # Ok.
  2796. :
  2797. else
  2798. as_fn_error $? "newly created file is older than distributed files!
  2799. Check your system clock" "$LINENO" 5
  2800. fi
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2802. $as_echo "yes" >&6; }
  2803. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2804. # generated files are strictly newer.
  2805. am_sleep_pid=
  2806. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2807. ( sleep 1 ) &
  2808. am_sleep_pid=$!
  2809. fi
  2810. rm -f conftest.file
  2811. test "$program_prefix" != NONE &&
  2812. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2813. # Use a double $ so make ignores it.
  2814. test "$program_suffix" != NONE &&
  2815. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2816. # Double any \ or $.
  2817. # By default was `s,x,x', remove it if useless.
  2818. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2819. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2820. # Expand $ac_aux_dir to an absolute path.
  2821. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2822. if test x"${MISSING+set}" != xset; then
  2823. case $am_aux_dir in
  2824. *\ * | *\ *)
  2825. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2826. *)
  2827. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2828. esac
  2829. fi
  2830. # Use eval to expand $SHELL
  2831. if eval "$MISSING --is-lightweight"; then
  2832. am_missing_run="$MISSING "
  2833. else
  2834. am_missing_run=
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2836. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2837. fi
  2838. if test x"${install_sh+set}" != xset; then
  2839. case $am_aux_dir in
  2840. *\ * | *\ *)
  2841. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2842. *)
  2843. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2844. esac
  2845. fi
  2846. # Installed binaries are usually stripped using 'strip' when the user
  2847. # run "make install-strip". However 'strip' might not be the right
  2848. # tool to use in cross-compilation environments, therefore Automake
  2849. # will honor the 'STRIP' environment variable to overrule this program.
  2850. if test "$cross_compiling" != no; then
  2851. if test -n "$ac_tool_prefix"; then
  2852. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2853. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2855. $as_echo_n "checking for $ac_word... " >&6; }
  2856. if ${ac_cv_prog_STRIP+:} false; then :
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. if test -n "$STRIP"; then
  2860. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2861. else
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_exec_ext in '' $ac_executable_extensions; do
  2868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2869. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2871. break 2
  2872. fi
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. fi
  2878. STRIP=$ac_cv_prog_STRIP
  2879. if test -n "$STRIP"; then
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2881. $as_echo "$STRIP" >&6; }
  2882. else
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2884. $as_echo "no" >&6; }
  2885. fi
  2886. fi
  2887. if test -z "$ac_cv_prog_STRIP"; then
  2888. ac_ct_STRIP=$STRIP
  2889. # Extract the first word of "strip", so it can be a program name with args.
  2890. set dummy strip; ac_word=$2
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2892. $as_echo_n "checking for $ac_word... " >&6; }
  2893. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. if test -n "$ac_ct_STRIP"; then
  2897. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2898. else
  2899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2900. for as_dir in $PATH
  2901. do
  2902. IFS=$as_save_IFS
  2903. test -z "$as_dir" && as_dir=.
  2904. for ac_exec_ext in '' $ac_executable_extensions; do
  2905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2906. ac_cv_prog_ac_ct_STRIP="strip"
  2907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2908. break 2
  2909. fi
  2910. done
  2911. done
  2912. IFS=$as_save_IFS
  2913. fi
  2914. fi
  2915. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2916. if test -n "$ac_ct_STRIP"; then
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2918. $as_echo "$ac_ct_STRIP" >&6; }
  2919. else
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2921. $as_echo "no" >&6; }
  2922. fi
  2923. if test "x$ac_ct_STRIP" = x; then
  2924. STRIP=":"
  2925. else
  2926. case $cross_compiling:$ac_tool_warned in
  2927. yes:)
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2929. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2930. ac_tool_warned=yes ;;
  2931. esac
  2932. STRIP=$ac_ct_STRIP
  2933. fi
  2934. else
  2935. STRIP="$ac_cv_prog_STRIP"
  2936. fi
  2937. fi
  2938. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2940. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2941. if test -z "$MKDIR_P"; then
  2942. if ${ac_cv_path_mkdir+:} false; then :
  2943. $as_echo_n "(cached) " >&6
  2944. else
  2945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2946. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2947. do
  2948. IFS=$as_save_IFS
  2949. test -z "$as_dir" && as_dir=.
  2950. for ac_prog in mkdir gmkdir; do
  2951. for ac_exec_ext in '' $ac_executable_extensions; do
  2952. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2953. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2954. 'mkdir (GNU coreutils) '* | \
  2955. 'mkdir (coreutils) '* | \
  2956. 'mkdir (fileutils) '4.1*)
  2957. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2958. break 3;;
  2959. esac
  2960. done
  2961. done
  2962. done
  2963. IFS=$as_save_IFS
  2964. fi
  2965. test -d ./--version && rmdir ./--version
  2966. if test "${ac_cv_path_mkdir+set}" = set; then
  2967. MKDIR_P="$ac_cv_path_mkdir -p"
  2968. else
  2969. # As a last resort, use the slow shell script. Don't cache a
  2970. # value for MKDIR_P within a source directory, because that will
  2971. # break other packages using the cache if that directory is
  2972. # removed, or if the value is a relative name.
  2973. MKDIR_P="$ac_install_sh -d"
  2974. fi
  2975. fi
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2977. $as_echo "$MKDIR_P" >&6; }
  2978. for ac_prog in gawk mawk nawk awk
  2979. do
  2980. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2981. set dummy $ac_prog; ac_word=$2
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2983. $as_echo_n "checking for $ac_word... " >&6; }
  2984. if ${ac_cv_prog_AWK+:} false; then :
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. if test -n "$AWK"; then
  2988. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2989. else
  2990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2991. for as_dir in $PATH
  2992. do
  2993. IFS=$as_save_IFS
  2994. test -z "$as_dir" && as_dir=.
  2995. for ac_exec_ext in '' $ac_executable_extensions; do
  2996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2997. ac_cv_prog_AWK="$ac_prog"
  2998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2999. break 2
  3000. fi
  3001. done
  3002. done
  3003. IFS=$as_save_IFS
  3004. fi
  3005. fi
  3006. AWK=$ac_cv_prog_AWK
  3007. if test -n "$AWK"; then
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3009. $as_echo "$AWK" >&6; }
  3010. else
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3012. $as_echo "no" >&6; }
  3013. fi
  3014. test -n "$AWK" && break
  3015. done
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3017. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3018. set x ${MAKE-make}
  3019. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3020. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3021. $as_echo_n "(cached) " >&6
  3022. else
  3023. cat >conftest.make <<\_ACEOF
  3024. SHELL = /bin/sh
  3025. all:
  3026. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3027. _ACEOF
  3028. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3029. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3030. *@@@%%%=?*=@@@%%%*)
  3031. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3032. *)
  3033. eval ac_cv_prog_make_${ac_make}_set=no;;
  3034. esac
  3035. rm -f conftest.make
  3036. fi
  3037. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3039. $as_echo "yes" >&6; }
  3040. SET_MAKE=
  3041. else
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3043. $as_echo "no" >&6; }
  3044. SET_MAKE="MAKE=${MAKE-make}"
  3045. fi
  3046. rm -rf .tst 2>/dev/null
  3047. mkdir .tst 2>/dev/null
  3048. if test -d .tst; then
  3049. am__leading_dot=.
  3050. else
  3051. am__leading_dot=_
  3052. fi
  3053. rmdir .tst 2>/dev/null
  3054. # Check whether --enable-silent-rules was given.
  3055. if test "${enable_silent_rules+set}" = set; then :
  3056. enableval=$enable_silent_rules;
  3057. fi
  3058. case $enable_silent_rules in # (((
  3059. yes) AM_DEFAULT_VERBOSITY=0;;
  3060. no) AM_DEFAULT_VERBOSITY=1;;
  3061. *) AM_DEFAULT_VERBOSITY=1;;
  3062. esac
  3063. am_make=${MAKE-make}
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3065. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3066. if ${am_cv_make_support_nested_variables+:} false; then :
  3067. $as_echo_n "(cached) " >&6
  3068. else
  3069. if $as_echo 'TRUE=$(BAR$(V))
  3070. BAR0=false
  3071. BAR1=true
  3072. V=1
  3073. am__doit:
  3074. @$(TRUE)
  3075. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3076. am_cv_make_support_nested_variables=yes
  3077. else
  3078. am_cv_make_support_nested_variables=no
  3079. fi
  3080. fi
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3082. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3083. if test $am_cv_make_support_nested_variables = yes; then
  3084. AM_V='$(V)'
  3085. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3086. else
  3087. AM_V=$AM_DEFAULT_VERBOSITY
  3088. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3089. fi
  3090. AM_BACKSLASH='\'
  3091. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3092. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3093. # is not polluted with repeated "-I."
  3094. am__isrc=' -I$(srcdir)'
  3095. # test to see if srcdir already configured
  3096. if test -f $srcdir/config.status; then
  3097. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3098. fi
  3099. fi
  3100. # test whether we have cygpath
  3101. if test -z "$CYGPATH_W"; then
  3102. if (cygpath --version) >/dev/null 2>/dev/null; then
  3103. CYGPATH_W='cygpath -w'
  3104. else
  3105. CYGPATH_W=echo
  3106. fi
  3107. fi
  3108. # Define the identity of the package.
  3109. PACKAGE='xerces-c'
  3110. VERSION='3.1.2'
  3111. cat >>confdefs.h <<_ACEOF
  3112. #define PACKAGE "$PACKAGE"
  3113. _ACEOF
  3114. cat >>confdefs.h <<_ACEOF
  3115. #define VERSION "$VERSION"
  3116. _ACEOF
  3117. # Some tools Automake needs.
  3118. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3119. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3120. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3121. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3122. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3123. # For better backward compatibility. To be removed once Automake 1.9.x
  3124. # dies out for good. For more background, see:
  3125. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3126. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3127. mkdir_p='$(MKDIR_P)'
  3128. # We need awk for the "check" target (and possibly the TAP driver). The
  3129. # system "awk" is bad on some platforms.
  3130. # Always define AMTAR for backward compatibility. Yes, it's still used
  3131. # in the wild :-( We should find a proper way to deprecate it ...
  3132. AMTAR='$${TAR-tar}'
  3133. # We'll loop over all known methods to create a tar archive until one works.
  3134. _am_tools='gnutar plaintar pax cpio none'
  3135. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  3136. # There is notably a 21 bits limit for the UID and the GID. In fact,
  3137. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  3138. # and bug#13588).
  3139. am_max_uid=2097151 # 2^21 - 1
  3140. am_max_gid=$am_max_uid
  3141. # The $UID and $GID variables are not portable, so we need to resort
  3142. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  3143. # below are definitely unexpected, so allow the users to see them
  3144. # (that is, avoid stderr redirection).
  3145. am_uid=`id -u || echo unknown`
  3146. am_gid=`id -g || echo unknown`
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  3148. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  3149. if test $am_uid -le $am_max_uid; then
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3151. $as_echo "yes" >&6; }
  3152. else
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3154. $as_echo "no" >&6; }
  3155. _am_tools=none
  3156. fi
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  3158. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  3159. if test $am_gid -le $am_max_gid; then
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3161. $as_echo "yes" >&6; }
  3162. else
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3164. $as_echo "no" >&6; }
  3165. _am_tools=none
  3166. fi
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3168. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  3169. # Go ahead even if we have the value already cached. We do so because we
  3170. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3171. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3172. for _am_tool in $_am_tools; do
  3173. case $_am_tool in
  3174. gnutar)
  3175. for _am_tar in tar gnutar gtar; do
  3176. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3177. ($_am_tar --version) >&5 2>&5
  3178. ac_status=$?
  3179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3180. (exit $ac_status); } && break
  3181. done
  3182. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3183. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3184. am__untar="$_am_tar -xf -"
  3185. ;;
  3186. plaintar)
  3187. # Must skip GNU tar: if it does not support --format= it doesn't create
  3188. # ustar tarball either.
  3189. (tar --version) >/dev/null 2>&1 && continue
  3190. am__tar='tar chf - "$$tardir"'
  3191. am__tar_='tar chf - "$tardir"'
  3192. am__untar='tar xf -'
  3193. ;;
  3194. pax)
  3195. am__tar='pax -L -x ustar -w "$$tardir"'
  3196. am__tar_='pax -L -x ustar -w "$tardir"'
  3197. am__untar='pax -r'
  3198. ;;
  3199. cpio)
  3200. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3201. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3202. am__untar='cpio -i -H ustar -d'
  3203. ;;
  3204. none)
  3205. am__tar=false
  3206. am__tar_=false
  3207. am__untar=false
  3208. ;;
  3209. esac
  3210. # If the value was cached, stop now. We just wanted to have am__tar
  3211. # and am__untar set.
  3212. test -n "${am_cv_prog_tar_ustar}" && break
  3213. # tar/untar a dummy directory, and stop if the command works.
  3214. rm -rf conftest.dir
  3215. mkdir conftest.dir
  3216. echo GrepMe > conftest.dir/file
  3217. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3218. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3219. ac_status=$?
  3220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3221. (exit $ac_status); }
  3222. rm -rf conftest.dir
  3223. if test -s conftest.tar; then
  3224. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3225. ($am__untar <conftest.tar) >&5 2>&5
  3226. ac_status=$?
  3227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3228. (exit $ac_status); }
  3229. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3230. (cat conftest.dir/file) >&5 2>&5
  3231. ac_status=$?
  3232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3233. (exit $ac_status); }
  3234. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3235. fi
  3236. done
  3237. rm -rf conftest.dir
  3238. if ${am_cv_prog_tar_ustar+:} false; then :
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. am_cv_prog_tar_ustar=$_am_tool
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3244. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  3245. # POSIX will say in a future version that running "rm -f" with no argument
  3246. # is OK; and we want to be able to make that assumption in our Makefile
  3247. # recipes. So use an aggressive probe to check that the usage we want is
  3248. # actually supported "in the wild" to an acceptable degree.
  3249. # See automake bug#10828.
  3250. # To make any issue more visible, cause the running configure to be aborted
  3251. # by default if the 'rm' program in use doesn't match our expectations; the
  3252. # user can still override this though.
  3253. if rm -f && rm -fr && rm -rf; then : OK; else
  3254. cat >&2 <<'END'
  3255. Oops!
  3256. Your 'rm' program seems unable to run without file operands specified
  3257. on the command line, even when the '-f' option is present. This is contrary
  3258. to the behaviour of most rm programs out there, and not conforming with
  3259. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3260. Please tell bug-automake@gnu.org about your system, including the value
  3261. of your $PATH and any error possibly output before this message. This
  3262. can help us improve future automake versions.
  3263. END
  3264. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3265. echo 'Configuration will proceed anyway, since you have set the' >&2
  3266. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3267. echo >&2
  3268. else
  3269. cat >&2 <<'END'
  3270. Aborting the configuration process, to ensure you take notice of the issue.
  3271. You can download and install GNU coreutils to get an 'rm' implementation
  3272. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3273. If you want to complete the configuration process using your problematic
  3274. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3275. to "yes", and re-run configure.
  3276. END
  3277. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3278. fi
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3281. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3282. # Check whether --enable-maintainer-mode was given.
  3283. if test "${enable_maintainer_mode+set}" = set; then :
  3284. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3285. else
  3286. USE_MAINTAINER_MODE=no
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3289. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3290. if test $USE_MAINTAINER_MODE = yes; then
  3291. MAINTAINER_MODE_TRUE=
  3292. MAINTAINER_MODE_FALSE='#'
  3293. else
  3294. MAINTAINER_MODE_TRUE='#'
  3295. MAINTAINER_MODE_FALSE=
  3296. fi
  3297. MAINT=$MAINTAINER_MODE_TRUE
  3298. # Check if rpath is disabled
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
  3300. $as_echo_n "checking whether to use rpath... " >&6; }
  3301. # Check whether --enable-rpath was given.
  3302. if test "${enable_rpath+set}" = set; then :
  3303. enableval=$enable_rpath; xerces_cv_rpath="$enable_rpath"
  3304. else
  3305. xerces_cv_rpath="yes"
  3306. fi
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xerces_cv_rpath" >&5
  3308. $as_echo "$xerces_cv_rpath" >&6; }
  3309. # Checks for programs.
  3310. ac_ext=cpp
  3311. ac_cpp='$CXXCPP $CPPFLAGS'
  3312. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3313. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3314. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3315. if test -z "$CXX"; then
  3316. if test -n "$CCC"; then
  3317. CXX=$CCC
  3318. else
  3319. if test -n "$ac_tool_prefix"; then
  3320. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3321. do
  3322. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3323. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3325. $as_echo_n "checking for $ac_word... " >&6; }
  3326. if ${ac_cv_prog_CXX+:} false; then :
  3327. $as_echo_n "(cached) " >&6
  3328. else
  3329. if test -n "$CXX"; then
  3330. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3331. else
  3332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3333. for as_dir in $PATH
  3334. do
  3335. IFS=$as_save_IFS
  3336. test -z "$as_dir" && as_dir=.
  3337. for ac_exec_ext in '' $ac_executable_extensions; do
  3338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3339. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3341. break 2
  3342. fi
  3343. done
  3344. done
  3345. IFS=$as_save_IFS
  3346. fi
  3347. fi
  3348. CXX=$ac_cv_prog_CXX
  3349. if test -n "$CXX"; then
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3351. $as_echo "$CXX" >&6; }
  3352. else
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3354. $as_echo "no" >&6; }
  3355. fi
  3356. test -n "$CXX" && break
  3357. done
  3358. fi
  3359. if test -z "$CXX"; then
  3360. ac_ct_CXX=$CXX
  3361. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3362. do
  3363. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3364. set dummy $ac_prog; ac_word=$2
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3366. $as_echo_n "checking for $ac_word... " >&6; }
  3367. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3368. $as_echo_n "(cached) " >&6
  3369. else
  3370. if test -n "$ac_ct_CXX"; then
  3371. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3372. else
  3373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3374. for as_dir in $PATH
  3375. do
  3376. IFS=$as_save_IFS
  3377. test -z "$as_dir" && as_dir=.
  3378. for ac_exec_ext in '' $ac_executable_extensions; do
  3379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3380. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3382. break 2
  3383. fi
  3384. done
  3385. done
  3386. IFS=$as_save_IFS
  3387. fi
  3388. fi
  3389. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3390. if test -n "$ac_ct_CXX"; then
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3392. $as_echo "$ac_ct_CXX" >&6; }
  3393. else
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3395. $as_echo "no" >&6; }
  3396. fi
  3397. test -n "$ac_ct_CXX" && break
  3398. done
  3399. if test "x$ac_ct_CXX" = x; then
  3400. CXX="g++"
  3401. else
  3402. case $cross_compiling:$ac_tool_warned in
  3403. yes:)
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3405. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3406. ac_tool_warned=yes ;;
  3407. esac
  3408. CXX=$ac_ct_CXX
  3409. fi
  3410. fi
  3411. fi
  3412. fi
  3413. # Provide some information about the compiler.
  3414. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3415. set X $ac_compile
  3416. ac_compiler=$2
  3417. for ac_option in --version -v -V -qversion; do
  3418. { { ac_try="$ac_compiler $ac_option >&5"
  3419. case "(($ac_try" in
  3420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3421. *) ac_try_echo=$ac_try;;
  3422. esac
  3423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3424. $as_echo "$ac_try_echo"; } >&5
  3425. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3426. ac_status=$?
  3427. if test -s conftest.err; then
  3428. sed '10a\
  3429. ... rest of stderr output deleted ...
  3430. 10q' conftest.err >conftest.er1
  3431. cat conftest.er1 >&5
  3432. fi
  3433. rm -f conftest.er1 conftest.err
  3434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3435. test $ac_status = 0; }
  3436. done
  3437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3438. /* end confdefs.h. */
  3439. int
  3440. main ()
  3441. {
  3442. ;
  3443. return 0;
  3444. }
  3445. _ACEOF
  3446. ac_clean_files_save=$ac_clean_files
  3447. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3448. # Try to create an executable without -o first, disregard a.out.
  3449. # It will help us diagnose broken compilers, and finding out an intuition
  3450. # of exeext.
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3452. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3453. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3454. # The possible output files:
  3455. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3456. ac_rmfiles=
  3457. for ac_file in $ac_files
  3458. do
  3459. case $ac_file in
  3460. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3461. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3462. esac
  3463. done
  3464. rm -f $ac_rmfiles
  3465. if { { ac_try="$ac_link_default"
  3466. case "(($ac_try" in
  3467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3468. *) ac_try_echo=$ac_try;;
  3469. esac
  3470. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3471. $as_echo "$ac_try_echo"; } >&5
  3472. (eval "$ac_link_default") 2>&5
  3473. ac_status=$?
  3474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3475. test $ac_status = 0; }; then :
  3476. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3477. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3478. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3479. # so that the user can short-circuit this test for compilers unknown to
  3480. # Autoconf.
  3481. for ac_file in $ac_files ''
  3482. do
  3483. test -f "$ac_file" || continue
  3484. case $ac_file in
  3485. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3486. ;;
  3487. [ab].out )
  3488. # We found the default executable, but exeext='' is most
  3489. # certainly right.
  3490. break;;
  3491. *.* )
  3492. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3493. then :; else
  3494. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3495. fi
  3496. # We set ac_cv_exeext here because the later test for it is not
  3497. # safe: cross compilers may not add the suffix if given an `-o'
  3498. # argument, so we may need to know it at that point already.
  3499. # Even if this section looks crufty: it has the advantage of
  3500. # actually working.
  3501. break;;
  3502. * )
  3503. break;;
  3504. esac
  3505. done
  3506. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3507. else
  3508. ac_file=''
  3509. fi
  3510. if test -z "$ac_file"; then :
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3512. $as_echo "no" >&6; }
  3513. $as_echo "$as_me: failed program was:" >&5
  3514. sed 's/^/| /' conftest.$ac_ext >&5
  3515. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3516. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3517. as_fn_error 77 "C++ compiler cannot create executables
  3518. See \`config.log' for more details" "$LINENO" 5; }
  3519. else
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3521. $as_echo "yes" >&6; }
  3522. fi
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3524. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3526. $as_echo "$ac_file" >&6; }
  3527. ac_exeext=$ac_cv_exeext
  3528. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3529. ac_clean_files=$ac_clean_files_save
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3531. $as_echo_n "checking for suffix of executables... " >&6; }
  3532. if { { ac_try="$ac_link"
  3533. case "(($ac_try" in
  3534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3535. *) ac_try_echo=$ac_try;;
  3536. esac
  3537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3538. $as_echo "$ac_try_echo"; } >&5
  3539. (eval "$ac_link") 2>&5
  3540. ac_status=$?
  3541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3542. test $ac_status = 0; }; then :
  3543. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3544. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3545. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3546. # `rm'.
  3547. for ac_file in conftest.exe conftest conftest.*; do
  3548. test -f "$ac_file" || continue
  3549. case $ac_file in
  3550. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3551. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3552. break;;
  3553. * ) break;;
  3554. esac
  3555. done
  3556. else
  3557. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3558. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3559. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3560. See \`config.log' for more details" "$LINENO" 5; }
  3561. fi
  3562. rm -f conftest conftest$ac_cv_exeext
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3564. $as_echo "$ac_cv_exeext" >&6; }
  3565. rm -f conftest.$ac_ext
  3566. EXEEXT=$ac_cv_exeext
  3567. ac_exeext=$EXEEXT
  3568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3569. /* end confdefs.h. */
  3570. #include <stdio.h>
  3571. int
  3572. main ()
  3573. {
  3574. FILE *f = fopen ("conftest.out", "w");
  3575. return ferror (f) || fclose (f) != 0;
  3576. ;
  3577. return 0;
  3578. }
  3579. _ACEOF
  3580. ac_clean_files="$ac_clean_files conftest.out"
  3581. # Check that the compiler produces executables we can run. If not, either
  3582. # the compiler is broken, or we cross compile.
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3584. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3585. if test "$cross_compiling" != yes; then
  3586. { { ac_try="$ac_link"
  3587. case "(($ac_try" in
  3588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3589. *) ac_try_echo=$ac_try;;
  3590. esac
  3591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3592. $as_echo "$ac_try_echo"; } >&5
  3593. (eval "$ac_link") 2>&5
  3594. ac_status=$?
  3595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3596. test $ac_status = 0; }
  3597. if { ac_try='./conftest$ac_cv_exeext'
  3598. { { case "(($ac_try" in
  3599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3600. *) ac_try_echo=$ac_try;;
  3601. esac
  3602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3603. $as_echo "$ac_try_echo"; } >&5
  3604. (eval "$ac_try") 2>&5
  3605. ac_status=$?
  3606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3607. test $ac_status = 0; }; }; then
  3608. cross_compiling=no
  3609. else
  3610. if test "$cross_compiling" = maybe; then
  3611. cross_compiling=yes
  3612. else
  3613. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3614. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3615. as_fn_error $? "cannot run C++ compiled programs.
  3616. If you meant to cross compile, use \`--host'.
  3617. See \`config.log' for more details" "$LINENO" 5; }
  3618. fi
  3619. fi
  3620. fi
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3622. $as_echo "$cross_compiling" >&6; }
  3623. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3624. ac_clean_files=$ac_clean_files_save
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3626. $as_echo_n "checking for suffix of object files... " >&6; }
  3627. if ${ac_cv_objext+:} false; then :
  3628. $as_echo_n "(cached) " >&6
  3629. else
  3630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3631. /* end confdefs.h. */
  3632. int
  3633. main ()
  3634. {
  3635. ;
  3636. return 0;
  3637. }
  3638. _ACEOF
  3639. rm -f conftest.o conftest.obj
  3640. if { { ac_try="$ac_compile"
  3641. case "(($ac_try" in
  3642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3643. *) ac_try_echo=$ac_try;;
  3644. esac
  3645. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3646. $as_echo "$ac_try_echo"; } >&5
  3647. (eval "$ac_compile") 2>&5
  3648. ac_status=$?
  3649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3650. test $ac_status = 0; }; then :
  3651. for ac_file in conftest.o conftest.obj conftest.*; do
  3652. test -f "$ac_file" || continue;
  3653. case $ac_file in
  3654. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3655. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3656. break;;
  3657. esac
  3658. done
  3659. else
  3660. $as_echo "$as_me: failed program was:" >&5
  3661. sed 's/^/| /' conftest.$ac_ext >&5
  3662. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3663. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3664. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3665. See \`config.log' for more details" "$LINENO" 5; }
  3666. fi
  3667. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3668. fi
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3670. $as_echo "$ac_cv_objext" >&6; }
  3671. OBJEXT=$ac_cv_objext
  3672. ac_objext=$OBJEXT
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3674. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3675. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3676. $as_echo_n "(cached) " >&6
  3677. else
  3678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3679. /* end confdefs.h. */
  3680. int
  3681. main ()
  3682. {
  3683. #ifndef __GNUC__
  3684. choke me
  3685. #endif
  3686. ;
  3687. return 0;
  3688. }
  3689. _ACEOF
  3690. if ac_fn_cxx_try_compile "$LINENO"; then :
  3691. ac_compiler_gnu=yes
  3692. else
  3693. ac_compiler_gnu=no
  3694. fi
  3695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3696. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3697. fi
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3699. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3700. if test $ac_compiler_gnu = yes; then
  3701. GXX=yes
  3702. else
  3703. GXX=
  3704. fi
  3705. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3706. ac_save_CXXFLAGS=$CXXFLAGS
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3708. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3709. if ${ac_cv_prog_cxx_g+:} false; then :
  3710. $as_echo_n "(cached) " >&6
  3711. else
  3712. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3713. ac_cxx_werror_flag=yes
  3714. ac_cv_prog_cxx_g=no
  3715. CXXFLAGS="-g"
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. int
  3719. main ()
  3720. {
  3721. ;
  3722. return 0;
  3723. }
  3724. _ACEOF
  3725. if ac_fn_cxx_try_compile "$LINENO"; then :
  3726. ac_cv_prog_cxx_g=yes
  3727. else
  3728. CXXFLAGS=""
  3729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3730. /* end confdefs.h. */
  3731. int
  3732. main ()
  3733. {
  3734. ;
  3735. return 0;
  3736. }
  3737. _ACEOF
  3738. if ac_fn_cxx_try_compile "$LINENO"; then :
  3739. else
  3740. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3741. CXXFLAGS="-g"
  3742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3743. /* end confdefs.h. */
  3744. int
  3745. main ()
  3746. {
  3747. ;
  3748. return 0;
  3749. }
  3750. _ACEOF
  3751. if ac_fn_cxx_try_compile "$LINENO"; then :
  3752. ac_cv_prog_cxx_g=yes
  3753. fi
  3754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3755. fi
  3756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3759. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3760. fi
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3762. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3763. if test "$ac_test_CXXFLAGS" = set; then
  3764. CXXFLAGS=$ac_save_CXXFLAGS
  3765. elif test $ac_cv_prog_cxx_g = yes; then
  3766. if test "$GXX" = yes; then
  3767. CXXFLAGS="-g -O2"
  3768. else
  3769. CXXFLAGS="-g"
  3770. fi
  3771. else
  3772. if test "$GXX" = yes; then
  3773. CXXFLAGS="-O2"
  3774. else
  3775. CXXFLAGS=
  3776. fi
  3777. fi
  3778. ac_ext=c
  3779. ac_cpp='$CPP $CPPFLAGS'
  3780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3783. DEPDIR="${am__leading_dot}deps"
  3784. ac_config_commands="$ac_config_commands depfiles"
  3785. am_make=${MAKE-make}
  3786. cat > confinc << 'END'
  3787. am__doit:
  3788. @echo this is the am__doit target
  3789. .PHONY: am__doit
  3790. END
  3791. # If we don't find an include directive, just comment out the code.
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3793. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3794. am__include="#"
  3795. am__quote=
  3796. _am_result=none
  3797. # First try GNU make style include.
  3798. echo "include confinc" > confmf
  3799. # Ignore all kinds of additional output from 'make'.
  3800. case `$am_make -s -f confmf 2> /dev/null` in #(
  3801. *the\ am__doit\ target*)
  3802. am__include=include
  3803. am__quote=
  3804. _am_result=GNU
  3805. ;;
  3806. esac
  3807. # Now try BSD make style include.
  3808. if test "$am__include" = "#"; then
  3809. echo '.include "confinc"' > confmf
  3810. case `$am_make -s -f confmf 2> /dev/null` in #(
  3811. *the\ am__doit\ target*)
  3812. am__include=.include
  3813. am__quote="\""
  3814. _am_result=BSD
  3815. ;;
  3816. esac
  3817. fi
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3819. $as_echo "$_am_result" >&6; }
  3820. rm -f confinc confmf
  3821. # Check whether --enable-dependency-tracking was given.
  3822. if test "${enable_dependency_tracking+set}" = set; then :
  3823. enableval=$enable_dependency_tracking;
  3824. fi
  3825. if test "x$enable_dependency_tracking" != xno; then
  3826. am_depcomp="$ac_aux_dir/depcomp"
  3827. AMDEPBACKSLASH='\'
  3828. am__nodep='_no'
  3829. fi
  3830. if test "x$enable_dependency_tracking" != xno; then
  3831. AMDEP_TRUE=
  3832. AMDEP_FALSE='#'
  3833. else
  3834. AMDEP_TRUE='#'
  3835. AMDEP_FALSE=
  3836. fi
  3837. depcc="$CXX" am_compiler_list=
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3839. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3840. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3841. $as_echo_n "(cached) " >&6
  3842. else
  3843. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3844. # We make a subdir and do the tests there. Otherwise we can end up
  3845. # making bogus files that we don't know about and never remove. For
  3846. # instance it was reported that on HP-UX the gcc test will end up
  3847. # making a dummy file named 'D' -- because '-MD' means "put the output
  3848. # in D".
  3849. rm -rf conftest.dir
  3850. mkdir conftest.dir
  3851. # Copy depcomp to subdir because otherwise we won't find it if we're
  3852. # using a relative directory.
  3853. cp "$am_depcomp" conftest.dir
  3854. cd conftest.dir
  3855. # We will build objects and dependencies in a subdirectory because
  3856. # it helps to detect inapplicable dependency modes. For instance
  3857. # both Tru64's cc and ICC support -MD to output dependencies as a
  3858. # side effect of compilation, but ICC will put the dependencies in
  3859. # the current directory while Tru64 will put them in the object
  3860. # directory.
  3861. mkdir sub
  3862. am_cv_CXX_dependencies_compiler_type=none
  3863. if test "$am_compiler_list" = ""; then
  3864. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3865. fi
  3866. am__universal=false
  3867. case " $depcc " in #(
  3868. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3869. esac
  3870. for depmode in $am_compiler_list; do
  3871. # Setup a source with many dependencies, because some compilers
  3872. # like to wrap large dependency lists on column 80 (with \), and
  3873. # we should not choose a depcomp mode which is confused by this.
  3874. #
  3875. # We need to recreate these files for each test, as the compiler may
  3876. # overwrite some of them when testing with obscure command lines.
  3877. # This happens at least with the AIX C compiler.
  3878. : > sub/conftest.c
  3879. for i in 1 2 3 4 5 6; do
  3880. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3881. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3882. # Solaris 10 /bin/sh.
  3883. echo '/* dummy */' > sub/conftst$i.h
  3884. done
  3885. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3886. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3887. # mode. It turns out that the SunPro C++ compiler does not properly
  3888. # handle '-M -o', and we need to detect this. Also, some Intel
  3889. # versions had trouble with output in subdirs.
  3890. am__obj=sub/conftest.${OBJEXT-o}
  3891. am__minus_obj="-o $am__obj"
  3892. case $depmode in
  3893. gcc)
  3894. # This depmode causes a compiler race in universal mode.
  3895. test "$am__universal" = false || continue
  3896. ;;
  3897. nosideeffect)
  3898. # After this tag, mechanisms are not by side-effect, so they'll
  3899. # only be used when explicitly requested.
  3900. if test "x$enable_dependency_tracking" = xyes; then
  3901. continue
  3902. else
  3903. break
  3904. fi
  3905. ;;
  3906. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3907. # This compiler won't grok '-c -o', but also, the minuso test has
  3908. # not run yet. These depmodes are late enough in the game, and
  3909. # so weak that their functioning should not be impacted.
  3910. am__obj=conftest.${OBJEXT-o}
  3911. am__minus_obj=
  3912. ;;
  3913. none) break ;;
  3914. esac
  3915. if depmode=$depmode \
  3916. source=sub/conftest.c object=$am__obj \
  3917. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3918. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3919. >/dev/null 2>conftest.err &&
  3920. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3921. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3922. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3923. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3924. # icc doesn't choke on unknown options, it will just issue warnings
  3925. # or remarks (even with -Werror). So we grep stderr for any message
  3926. # that says an option was ignored or not supported.
  3927. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3928. # icc: Command line warning: ignoring option '-M'; no argument required
  3929. # The diagnosis changed in icc 8.0:
  3930. # icc: Command line remark: option '-MP' not supported
  3931. if (grep 'ignoring option' conftest.err ||
  3932. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3933. am_cv_CXX_dependencies_compiler_type=$depmode
  3934. break
  3935. fi
  3936. fi
  3937. done
  3938. cd ..
  3939. rm -rf conftest.dir
  3940. else
  3941. am_cv_CXX_dependencies_compiler_type=none
  3942. fi
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3945. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3946. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3947. if
  3948. test "x$enable_dependency_tracking" != xno \
  3949. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3950. am__fastdepCXX_TRUE=
  3951. am__fastdepCXX_FALSE='#'
  3952. else
  3953. am__fastdepCXX_TRUE='#'
  3954. am__fastdepCXX_FALSE=
  3955. fi
  3956. # Use the C++ compiler for the compile tests
  3957. ac_ext=cpp
  3958. ac_cpp='$CXXCPP $CPPFLAGS'
  3959. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3960. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3961. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3962. # used by "make check"
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3964. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3965. if ${ac_cv_path_SED+:} false; then :
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3969. for ac_i in 1 2 3 4 5 6 7; do
  3970. ac_script="$ac_script$as_nl$ac_script"
  3971. done
  3972. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3973. { ac_script=; unset ac_script;}
  3974. if test -z "$SED"; then
  3975. ac_path_SED_found=false
  3976. # Loop through the user's path and test for each of PROGNAME-LIST
  3977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3978. for as_dir in $PATH
  3979. do
  3980. IFS=$as_save_IFS
  3981. test -z "$as_dir" && as_dir=.
  3982. for ac_prog in sed gsed; do
  3983. for ac_exec_ext in '' $ac_executable_extensions; do
  3984. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3985. as_fn_executable_p "$ac_path_SED" || continue
  3986. # Check for GNU ac_path_SED and select it if it is found.
  3987. # Check for GNU $ac_path_SED
  3988. case `"$ac_path_SED" --version 2>&1` in
  3989. *GNU*)
  3990. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3991. *)
  3992. ac_count=0
  3993. $as_echo_n 0123456789 >"conftest.in"
  3994. while :
  3995. do
  3996. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3997. mv "conftest.tmp" "conftest.in"
  3998. cp "conftest.in" "conftest.nl"
  3999. $as_echo '' >> "conftest.nl"
  4000. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4001. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4002. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4003. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4004. # Best one so far, save it but keep looking for a better one
  4005. ac_cv_path_SED="$ac_path_SED"
  4006. ac_path_SED_max=$ac_count
  4007. fi
  4008. # 10*(2^10) chars as input seems more than enough
  4009. test $ac_count -gt 10 && break
  4010. done
  4011. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4012. esac
  4013. $ac_path_SED_found && break 3
  4014. done
  4015. done
  4016. done
  4017. IFS=$as_save_IFS
  4018. if test -z "$ac_cv_path_SED"; then
  4019. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4020. fi
  4021. else
  4022. ac_cv_path_SED=$SED
  4023. fi
  4024. fi
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4026. $as_echo "$ac_cv_path_SED" >&6; }
  4027. SED="$ac_cv_path_SED"
  4028. rm -f conftest.sed
  4029. #it would be nice to also check for PERL...
  4030. #AC_PROG_PERL
  4031. #skip detection of Fortran
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4033. $as_echo_n "checking whether ln -s works... " >&6; }
  4034. LN_S=$as_ln_s
  4035. if test "$LN_S" = "ln -s"; then
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4037. $as_echo "yes" >&6; }
  4038. else
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4040. $as_echo "no, using $LN_S" >&6; }
  4041. fi
  4042. enable_win32_dll=yes
  4043. case $host in
  4044. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4045. if test -n "$ac_tool_prefix"; then
  4046. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4047. set dummy ${ac_tool_prefix}as; ac_word=$2
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4049. $as_echo_n "checking for $ac_word... " >&6; }
  4050. if ${ac_cv_prog_AS+:} false; then :
  4051. $as_echo_n "(cached) " >&6
  4052. else
  4053. if test -n "$AS"; then
  4054. ac_cv_prog_AS="$AS" # Let the user override the test.
  4055. else
  4056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4057. for as_dir in $PATH
  4058. do
  4059. IFS=$as_save_IFS
  4060. test -z "$as_dir" && as_dir=.
  4061. for ac_exec_ext in '' $ac_executable_extensions; do
  4062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4063. ac_cv_prog_AS="${ac_tool_prefix}as"
  4064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4065. break 2
  4066. fi
  4067. done
  4068. done
  4069. IFS=$as_save_IFS
  4070. fi
  4071. fi
  4072. AS=$ac_cv_prog_AS
  4073. if test -n "$AS"; then
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4075. $as_echo "$AS" >&6; }
  4076. else
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4078. $as_echo "no" >&6; }
  4079. fi
  4080. fi
  4081. if test -z "$ac_cv_prog_AS"; then
  4082. ac_ct_AS=$AS
  4083. # Extract the first word of "as", so it can be a program name with args.
  4084. set dummy as; ac_word=$2
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4086. $as_echo_n "checking for $ac_word... " >&6; }
  4087. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4088. $as_echo_n "(cached) " >&6
  4089. else
  4090. if test -n "$ac_ct_AS"; then
  4091. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4092. else
  4093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4094. for as_dir in $PATH
  4095. do
  4096. IFS=$as_save_IFS
  4097. test -z "$as_dir" && as_dir=.
  4098. for ac_exec_ext in '' $ac_executable_extensions; do
  4099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4100. ac_cv_prog_ac_ct_AS="as"
  4101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4102. break 2
  4103. fi
  4104. done
  4105. done
  4106. IFS=$as_save_IFS
  4107. fi
  4108. fi
  4109. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4110. if test -n "$ac_ct_AS"; then
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4112. $as_echo "$ac_ct_AS" >&6; }
  4113. else
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4115. $as_echo "no" >&6; }
  4116. fi
  4117. if test "x$ac_ct_AS" = x; then
  4118. AS="false"
  4119. else
  4120. case $cross_compiling:$ac_tool_warned in
  4121. yes:)
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4123. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4124. ac_tool_warned=yes ;;
  4125. esac
  4126. AS=$ac_ct_AS
  4127. fi
  4128. else
  4129. AS="$ac_cv_prog_AS"
  4130. fi
  4131. if test -n "$ac_tool_prefix"; then
  4132. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4133. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4135. $as_echo_n "checking for $ac_word... " >&6; }
  4136. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4137. $as_echo_n "(cached) " >&6
  4138. else
  4139. if test -n "$DLLTOOL"; then
  4140. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4141. else
  4142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4143. for as_dir in $PATH
  4144. do
  4145. IFS=$as_save_IFS
  4146. test -z "$as_dir" && as_dir=.
  4147. for ac_exec_ext in '' $ac_executable_extensions; do
  4148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4149. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4151. break 2
  4152. fi
  4153. done
  4154. done
  4155. IFS=$as_save_IFS
  4156. fi
  4157. fi
  4158. DLLTOOL=$ac_cv_prog_DLLTOOL
  4159. if test -n "$DLLTOOL"; then
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4161. $as_echo "$DLLTOOL" >&6; }
  4162. else
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4164. $as_echo "no" >&6; }
  4165. fi
  4166. fi
  4167. if test -z "$ac_cv_prog_DLLTOOL"; then
  4168. ac_ct_DLLTOOL=$DLLTOOL
  4169. # Extract the first word of "dlltool", so it can be a program name with args.
  4170. set dummy dlltool; ac_word=$2
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4172. $as_echo_n "checking for $ac_word... " >&6; }
  4173. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4174. $as_echo_n "(cached) " >&6
  4175. else
  4176. if test -n "$ac_ct_DLLTOOL"; then
  4177. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4178. else
  4179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4180. for as_dir in $PATH
  4181. do
  4182. IFS=$as_save_IFS
  4183. test -z "$as_dir" && as_dir=.
  4184. for ac_exec_ext in '' $ac_executable_extensions; do
  4185. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4186. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4188. break 2
  4189. fi
  4190. done
  4191. done
  4192. IFS=$as_save_IFS
  4193. fi
  4194. fi
  4195. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4196. if test -n "$ac_ct_DLLTOOL"; then
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4198. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4199. else
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4201. $as_echo "no" >&6; }
  4202. fi
  4203. if test "x$ac_ct_DLLTOOL" = x; then
  4204. DLLTOOL="false"
  4205. else
  4206. case $cross_compiling:$ac_tool_warned in
  4207. yes:)
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4210. ac_tool_warned=yes ;;
  4211. esac
  4212. DLLTOOL=$ac_ct_DLLTOOL
  4213. fi
  4214. else
  4215. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4216. fi
  4217. if test -n "$ac_tool_prefix"; then
  4218. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4219. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4221. $as_echo_n "checking for $ac_word... " >&6; }
  4222. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4223. $as_echo_n "(cached) " >&6
  4224. else
  4225. if test -n "$OBJDUMP"; then
  4226. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4227. else
  4228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4229. for as_dir in $PATH
  4230. do
  4231. IFS=$as_save_IFS
  4232. test -z "$as_dir" && as_dir=.
  4233. for ac_exec_ext in '' $ac_executable_extensions; do
  4234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4235. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4237. break 2
  4238. fi
  4239. done
  4240. done
  4241. IFS=$as_save_IFS
  4242. fi
  4243. fi
  4244. OBJDUMP=$ac_cv_prog_OBJDUMP
  4245. if test -n "$OBJDUMP"; then
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4247. $as_echo "$OBJDUMP" >&6; }
  4248. else
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4250. $as_echo "no" >&6; }
  4251. fi
  4252. fi
  4253. if test -z "$ac_cv_prog_OBJDUMP"; then
  4254. ac_ct_OBJDUMP=$OBJDUMP
  4255. # Extract the first word of "objdump", so it can be a program name with args.
  4256. set dummy objdump; ac_word=$2
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4258. $as_echo_n "checking for $ac_word... " >&6; }
  4259. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. if test -n "$ac_ct_OBJDUMP"; then
  4263. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4264. else
  4265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4266. for as_dir in $PATH
  4267. do
  4268. IFS=$as_save_IFS
  4269. test -z "$as_dir" && as_dir=.
  4270. for ac_exec_ext in '' $ac_executable_extensions; do
  4271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4272. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4274. break 2
  4275. fi
  4276. done
  4277. done
  4278. IFS=$as_save_IFS
  4279. fi
  4280. fi
  4281. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4282. if test -n "$ac_ct_OBJDUMP"; then
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4284. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4285. else
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4287. $as_echo "no" >&6; }
  4288. fi
  4289. if test "x$ac_ct_OBJDUMP" = x; then
  4290. OBJDUMP="false"
  4291. else
  4292. case $cross_compiling:$ac_tool_warned in
  4293. yes:)
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4295. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4296. ac_tool_warned=yes ;;
  4297. esac
  4298. OBJDUMP=$ac_ct_OBJDUMP
  4299. fi
  4300. else
  4301. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4302. fi
  4303. ;;
  4304. esac
  4305. test -z "$AS" && AS=as
  4306. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4307. test -z "$OBJDUMP" && OBJDUMP=objdump
  4308. case `pwd` in
  4309. *\ * | *\ *)
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4311. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4312. esac
  4313. macro_version='2.4.5'
  4314. macro_revision='2.4.5'
  4315. ltmain=$ac_aux_dir/ltmain.sh
  4316. # Backslashify metacharacters that are still active within
  4317. # double-quoted strings.
  4318. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4319. # Same as above, but do not quote variable references.
  4320. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4321. # Sed substitution to delay expansion of an escaped shell variable in a
  4322. # double_quote_subst'ed string.
  4323. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4324. # Sed substitution to delay expansion of an escaped single quote.
  4325. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4326. # Sed substitution to avoid accidental globbing in evaled expressions
  4327. no_glob_subst='s/\*/\\\*/g'
  4328. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4329. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4330. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4332. $as_echo_n "checking how to print strings... " >&6; }
  4333. # Test print first, because it will be a builtin if present.
  4334. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4335. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4336. ECHO='print -r --'
  4337. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4338. ECHO='printf %s\n'
  4339. else
  4340. # Use this function as a fallback that always works.
  4341. func_fallback_echo ()
  4342. {
  4343. eval 'cat <<_LTECHO_EOF
  4344. $1
  4345. _LTECHO_EOF'
  4346. }
  4347. ECHO='func_fallback_echo'
  4348. fi
  4349. # func_echo_all arg...
  4350. # Invoke $ECHO with all args, space-separated.
  4351. func_echo_all ()
  4352. {
  4353. $ECHO ""
  4354. }
  4355. case $ECHO in
  4356. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4357. $as_echo "printf" >&6; } ;;
  4358. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4359. $as_echo "print -r" >&6; } ;;
  4360. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4361. $as_echo "cat" >&6; } ;;
  4362. esac
  4363. ac_ext=c
  4364. ac_cpp='$CPP $CPPFLAGS'
  4365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4368. if test -n "$ac_tool_prefix"; then
  4369. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4370. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4372. $as_echo_n "checking for $ac_word... " >&6; }
  4373. if ${ac_cv_prog_CC+:} false; then :
  4374. $as_echo_n "(cached) " >&6
  4375. else
  4376. if test -n "$CC"; then
  4377. ac_cv_prog_CC="$CC" # Let the user override the test.
  4378. else
  4379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4380. for as_dir in $PATH
  4381. do
  4382. IFS=$as_save_IFS
  4383. test -z "$as_dir" && as_dir=.
  4384. for ac_exec_ext in '' $ac_executable_extensions; do
  4385. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4386. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4388. break 2
  4389. fi
  4390. done
  4391. done
  4392. IFS=$as_save_IFS
  4393. fi
  4394. fi
  4395. CC=$ac_cv_prog_CC
  4396. if test -n "$CC"; then
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4398. $as_echo "$CC" >&6; }
  4399. else
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4401. $as_echo "no" >&6; }
  4402. fi
  4403. fi
  4404. if test -z "$ac_cv_prog_CC"; then
  4405. ac_ct_CC=$CC
  4406. # Extract the first word of "gcc", so it can be a program name with args.
  4407. set dummy gcc; ac_word=$2
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4409. $as_echo_n "checking for $ac_word... " >&6; }
  4410. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4411. $as_echo_n "(cached) " >&6
  4412. else
  4413. if test -n "$ac_ct_CC"; then
  4414. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4415. else
  4416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4417. for as_dir in $PATH
  4418. do
  4419. IFS=$as_save_IFS
  4420. test -z "$as_dir" && as_dir=.
  4421. for ac_exec_ext in '' $ac_executable_extensions; do
  4422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4423. ac_cv_prog_ac_ct_CC="gcc"
  4424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4425. break 2
  4426. fi
  4427. done
  4428. done
  4429. IFS=$as_save_IFS
  4430. fi
  4431. fi
  4432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4433. if test -n "$ac_ct_CC"; then
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4435. $as_echo "$ac_ct_CC" >&6; }
  4436. else
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4438. $as_echo "no" >&6; }
  4439. fi
  4440. if test "x$ac_ct_CC" = x; then
  4441. CC=""
  4442. else
  4443. case $cross_compiling:$ac_tool_warned in
  4444. yes:)
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4446. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4447. ac_tool_warned=yes ;;
  4448. esac
  4449. CC=$ac_ct_CC
  4450. fi
  4451. else
  4452. CC="$ac_cv_prog_CC"
  4453. fi
  4454. if test -z "$CC"; then
  4455. if test -n "$ac_tool_prefix"; then
  4456. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4457. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4459. $as_echo_n "checking for $ac_word... " >&6; }
  4460. if ${ac_cv_prog_CC+:} false; then :
  4461. $as_echo_n "(cached) " >&6
  4462. else
  4463. if test -n "$CC"; then
  4464. ac_cv_prog_CC="$CC" # Let the user override the test.
  4465. else
  4466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4467. for as_dir in $PATH
  4468. do
  4469. IFS=$as_save_IFS
  4470. test -z "$as_dir" && as_dir=.
  4471. for ac_exec_ext in '' $ac_executable_extensions; do
  4472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4473. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4475. break 2
  4476. fi
  4477. done
  4478. done
  4479. IFS=$as_save_IFS
  4480. fi
  4481. fi
  4482. CC=$ac_cv_prog_CC
  4483. if test -n "$CC"; then
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4485. $as_echo "$CC" >&6; }
  4486. else
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4488. $as_echo "no" >&6; }
  4489. fi
  4490. fi
  4491. fi
  4492. if test -z "$CC"; then
  4493. # Extract the first word of "cc", so it can be a program name with args.
  4494. set dummy cc; ac_word=$2
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4496. $as_echo_n "checking for $ac_word... " >&6; }
  4497. if ${ac_cv_prog_CC+:} false; then :
  4498. $as_echo_n "(cached) " >&6
  4499. else
  4500. if test -n "$CC"; then
  4501. ac_cv_prog_CC="$CC" # Let the user override the test.
  4502. else
  4503. ac_prog_rejected=no
  4504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4505. for as_dir in $PATH
  4506. do
  4507. IFS=$as_save_IFS
  4508. test -z "$as_dir" && as_dir=.
  4509. for ac_exec_ext in '' $ac_executable_extensions; do
  4510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4511. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4512. ac_prog_rejected=yes
  4513. continue
  4514. fi
  4515. ac_cv_prog_CC="cc"
  4516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4517. break 2
  4518. fi
  4519. done
  4520. done
  4521. IFS=$as_save_IFS
  4522. if test $ac_prog_rejected = yes; then
  4523. # We found a bogon in the path, so make sure we never use it.
  4524. set dummy $ac_cv_prog_CC
  4525. shift
  4526. if test $# != 0; then
  4527. # We chose a different compiler from the bogus one.
  4528. # However, it has the same basename, so the bogon will be chosen
  4529. # first if we set CC to just the basename; use the full file name.
  4530. shift
  4531. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4532. fi
  4533. fi
  4534. fi
  4535. fi
  4536. CC=$ac_cv_prog_CC
  4537. if test -n "$CC"; then
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4539. $as_echo "$CC" >&6; }
  4540. else
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4542. $as_echo "no" >&6; }
  4543. fi
  4544. fi
  4545. if test -z "$CC"; then
  4546. if test -n "$ac_tool_prefix"; then
  4547. for ac_prog in cl.exe
  4548. do
  4549. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4550. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4552. $as_echo_n "checking for $ac_word... " >&6; }
  4553. if ${ac_cv_prog_CC+:} false; then :
  4554. $as_echo_n "(cached) " >&6
  4555. else
  4556. if test -n "$CC"; then
  4557. ac_cv_prog_CC="$CC" # Let the user override the test.
  4558. else
  4559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4560. for as_dir in $PATH
  4561. do
  4562. IFS=$as_save_IFS
  4563. test -z "$as_dir" && as_dir=.
  4564. for ac_exec_ext in '' $ac_executable_extensions; do
  4565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4566. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4568. break 2
  4569. fi
  4570. done
  4571. done
  4572. IFS=$as_save_IFS
  4573. fi
  4574. fi
  4575. CC=$ac_cv_prog_CC
  4576. if test -n "$CC"; then
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4578. $as_echo "$CC" >&6; }
  4579. else
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4581. $as_echo "no" >&6; }
  4582. fi
  4583. test -n "$CC" && break
  4584. done
  4585. fi
  4586. if test -z "$CC"; then
  4587. ac_ct_CC=$CC
  4588. for ac_prog in cl.exe
  4589. do
  4590. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4591. set dummy $ac_prog; ac_word=$2
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4593. $as_echo_n "checking for $ac_word... " >&6; }
  4594. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4595. $as_echo_n "(cached) " >&6
  4596. else
  4597. if test -n "$ac_ct_CC"; then
  4598. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4599. else
  4600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4601. for as_dir in $PATH
  4602. do
  4603. IFS=$as_save_IFS
  4604. test -z "$as_dir" && as_dir=.
  4605. for ac_exec_ext in '' $ac_executable_extensions; do
  4606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4607. ac_cv_prog_ac_ct_CC="$ac_prog"
  4608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4609. break 2
  4610. fi
  4611. done
  4612. done
  4613. IFS=$as_save_IFS
  4614. fi
  4615. fi
  4616. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4617. if test -n "$ac_ct_CC"; then
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4619. $as_echo "$ac_ct_CC" >&6; }
  4620. else
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4622. $as_echo "no" >&6; }
  4623. fi
  4624. test -n "$ac_ct_CC" && break
  4625. done
  4626. if test "x$ac_ct_CC" = x; then
  4627. CC=""
  4628. else
  4629. case $cross_compiling:$ac_tool_warned in
  4630. yes:)
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4633. ac_tool_warned=yes ;;
  4634. esac
  4635. CC=$ac_ct_CC
  4636. fi
  4637. fi
  4638. fi
  4639. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4641. as_fn_error $? "no acceptable C compiler found in \$PATH
  4642. See \`config.log' for more details" "$LINENO" 5; }
  4643. # Provide some information about the compiler.
  4644. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4645. set X $ac_compile
  4646. ac_compiler=$2
  4647. for ac_option in --version -v -V -qversion; do
  4648. { { ac_try="$ac_compiler $ac_option >&5"
  4649. case "(($ac_try" in
  4650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4651. *) ac_try_echo=$ac_try;;
  4652. esac
  4653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4654. $as_echo "$ac_try_echo"; } >&5
  4655. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4656. ac_status=$?
  4657. if test -s conftest.err; then
  4658. sed '10a\
  4659. ... rest of stderr output deleted ...
  4660. 10q' conftest.err >conftest.er1
  4661. cat conftest.er1 >&5
  4662. fi
  4663. rm -f conftest.er1 conftest.err
  4664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4665. test $ac_status = 0; }
  4666. done
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4668. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4669. if ${ac_cv_c_compiler_gnu+:} false; then :
  4670. $as_echo_n "(cached) " >&6
  4671. else
  4672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4673. /* end confdefs.h. */
  4674. int
  4675. main ()
  4676. {
  4677. #ifndef __GNUC__
  4678. choke me
  4679. #endif
  4680. ;
  4681. return 0;
  4682. }
  4683. _ACEOF
  4684. if ac_fn_c_try_compile "$LINENO"; then :
  4685. ac_compiler_gnu=yes
  4686. else
  4687. ac_compiler_gnu=no
  4688. fi
  4689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4690. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4691. fi
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4693. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4694. if test $ac_compiler_gnu = yes; then
  4695. GCC=yes
  4696. else
  4697. GCC=
  4698. fi
  4699. ac_test_CFLAGS=${CFLAGS+set}
  4700. ac_save_CFLAGS=$CFLAGS
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4702. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4703. if ${ac_cv_prog_cc_g+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. ac_save_c_werror_flag=$ac_c_werror_flag
  4707. ac_c_werror_flag=yes
  4708. ac_cv_prog_cc_g=no
  4709. CFLAGS="-g"
  4710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4711. /* end confdefs.h. */
  4712. int
  4713. main ()
  4714. {
  4715. ;
  4716. return 0;
  4717. }
  4718. _ACEOF
  4719. if ac_fn_c_try_compile "$LINENO"; then :
  4720. ac_cv_prog_cc_g=yes
  4721. else
  4722. CFLAGS=""
  4723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4724. /* end confdefs.h. */
  4725. int
  4726. main ()
  4727. {
  4728. ;
  4729. return 0;
  4730. }
  4731. _ACEOF
  4732. if ac_fn_c_try_compile "$LINENO"; then :
  4733. else
  4734. ac_c_werror_flag=$ac_save_c_werror_flag
  4735. CFLAGS="-g"
  4736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4737. /* end confdefs.h. */
  4738. int
  4739. main ()
  4740. {
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. if ac_fn_c_try_compile "$LINENO"; then :
  4746. ac_cv_prog_cc_g=yes
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4749. fi
  4750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4753. ac_c_werror_flag=$ac_save_c_werror_flag
  4754. fi
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4756. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4757. if test "$ac_test_CFLAGS" = set; then
  4758. CFLAGS=$ac_save_CFLAGS
  4759. elif test $ac_cv_prog_cc_g = yes; then
  4760. if test "$GCC" = yes; then
  4761. CFLAGS="-g -O2"
  4762. else
  4763. CFLAGS="-g"
  4764. fi
  4765. else
  4766. if test "$GCC" = yes; then
  4767. CFLAGS="-O2"
  4768. else
  4769. CFLAGS=
  4770. fi
  4771. fi
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4773. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4774. if ${ac_cv_prog_cc_c89+:} false; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. ac_cv_prog_cc_c89=no
  4778. ac_save_CC=$CC
  4779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4780. /* end confdefs.h. */
  4781. #include <stdarg.h>
  4782. #include <stdio.h>
  4783. struct stat;
  4784. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4785. struct buf { int x; };
  4786. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4787. static char *e (p, i)
  4788. char **p;
  4789. int i;
  4790. {
  4791. return p[i];
  4792. }
  4793. static char *f (char * (*g) (char **, int), char **p, ...)
  4794. {
  4795. char *s;
  4796. va_list v;
  4797. va_start (v,p);
  4798. s = g (p, va_arg (v,int));
  4799. va_end (v);
  4800. return s;
  4801. }
  4802. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4803. function prototypes and stuff, but not '\xHH' hex character constants.
  4804. These don't provoke an error unfortunately, instead are silently treated
  4805. as 'x'. The following induces an error, until -std is added to get
  4806. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4807. array size at least. It's necessary to write '\x00'==0 to get something
  4808. that's true only with -std. */
  4809. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4810. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4811. inside strings and character constants. */
  4812. #define FOO(x) 'x'
  4813. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4814. int test (int i, double x);
  4815. struct s1 {int (*f) (int a);};
  4816. struct s2 {int (*f) (double a);};
  4817. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4818. int argc;
  4819. char **argv;
  4820. int
  4821. main ()
  4822. {
  4823. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4824. ;
  4825. return 0;
  4826. }
  4827. _ACEOF
  4828. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4829. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4830. do
  4831. CC="$ac_save_CC $ac_arg"
  4832. if ac_fn_c_try_compile "$LINENO"; then :
  4833. ac_cv_prog_cc_c89=$ac_arg
  4834. fi
  4835. rm -f core conftest.err conftest.$ac_objext
  4836. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4837. done
  4838. rm -f conftest.$ac_ext
  4839. CC=$ac_save_CC
  4840. fi
  4841. # AC_CACHE_VAL
  4842. case "x$ac_cv_prog_cc_c89" in
  4843. x)
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4845. $as_echo "none needed" >&6; } ;;
  4846. xno)
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4848. $as_echo "unsupported" >&6; } ;;
  4849. *)
  4850. CC="$CC $ac_cv_prog_cc_c89"
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4852. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4853. esac
  4854. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4855. fi
  4856. ac_ext=cpp
  4857. ac_cpp='$CXXCPP $CPPFLAGS'
  4858. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4859. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4860. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4861. ac_ext=c
  4862. ac_cpp='$CPP $CPPFLAGS'
  4863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4867. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4868. if ${am_cv_prog_cc_c_o+:} false; then :
  4869. $as_echo_n "(cached) " >&6
  4870. else
  4871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4872. /* end confdefs.h. */
  4873. int
  4874. main ()
  4875. {
  4876. ;
  4877. return 0;
  4878. }
  4879. _ACEOF
  4880. # Make sure it works both with $CC and with simple cc.
  4881. # Following AC_PROG_CC_C_O, we do the test twice because some
  4882. # compilers refuse to overwrite an existing .o file with -o,
  4883. # though they will create one.
  4884. am_cv_prog_cc_c_o=yes
  4885. for am_i in 1 2; do
  4886. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4887. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4888. ac_status=$?
  4889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); } \
  4891. && test -f conftest2.$ac_objext; then
  4892. : OK
  4893. else
  4894. am_cv_prog_cc_c_o=no
  4895. break
  4896. fi
  4897. done
  4898. rm -f core conftest*
  4899. unset am_i
  4900. fi
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4902. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4903. if test "$am_cv_prog_cc_c_o" != yes; then
  4904. # Losing compiler, so override with the script.
  4905. # FIXME: It is wrong to rewrite CC.
  4906. # But if we don't then we get into trouble of one sort or another.
  4907. # A longer-term fix would be to have automake use am__CC in this case,
  4908. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4909. CC="$am_aux_dir/compile $CC"
  4910. fi
  4911. ac_ext=cpp
  4912. ac_cpp='$CXXCPP $CPPFLAGS'
  4913. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4914. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4915. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4916. depcc="$CC" am_compiler_list=
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4918. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4919. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4923. # We make a subdir and do the tests there. Otherwise we can end up
  4924. # making bogus files that we don't know about and never remove. For
  4925. # instance it was reported that on HP-UX the gcc test will end up
  4926. # making a dummy file named 'D' -- because '-MD' means "put the output
  4927. # in D".
  4928. rm -rf conftest.dir
  4929. mkdir conftest.dir
  4930. # Copy depcomp to subdir because otherwise we won't find it if we're
  4931. # using a relative directory.
  4932. cp "$am_depcomp" conftest.dir
  4933. cd conftest.dir
  4934. # We will build objects and dependencies in a subdirectory because
  4935. # it helps to detect inapplicable dependency modes. For instance
  4936. # both Tru64's cc and ICC support -MD to output dependencies as a
  4937. # side effect of compilation, but ICC will put the dependencies in
  4938. # the current directory while Tru64 will put them in the object
  4939. # directory.
  4940. mkdir sub
  4941. am_cv_CC_dependencies_compiler_type=none
  4942. if test "$am_compiler_list" = ""; then
  4943. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4944. fi
  4945. am__universal=false
  4946. case " $depcc " in #(
  4947. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4948. esac
  4949. for depmode in $am_compiler_list; do
  4950. # Setup a source with many dependencies, because some compilers
  4951. # like to wrap large dependency lists on column 80 (with \), and
  4952. # we should not choose a depcomp mode which is confused by this.
  4953. #
  4954. # We need to recreate these files for each test, as the compiler may
  4955. # overwrite some of them when testing with obscure command lines.
  4956. # This happens at least with the AIX C compiler.
  4957. : > sub/conftest.c
  4958. for i in 1 2 3 4 5 6; do
  4959. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4960. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4961. # Solaris 10 /bin/sh.
  4962. echo '/* dummy */' > sub/conftst$i.h
  4963. done
  4964. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4965. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4966. # mode. It turns out that the SunPro C++ compiler does not properly
  4967. # handle '-M -o', and we need to detect this. Also, some Intel
  4968. # versions had trouble with output in subdirs.
  4969. am__obj=sub/conftest.${OBJEXT-o}
  4970. am__minus_obj="-o $am__obj"
  4971. case $depmode in
  4972. gcc)
  4973. # This depmode causes a compiler race in universal mode.
  4974. test "$am__universal" = false || continue
  4975. ;;
  4976. nosideeffect)
  4977. # After this tag, mechanisms are not by side-effect, so they'll
  4978. # only be used when explicitly requested.
  4979. if test "x$enable_dependency_tracking" = xyes; then
  4980. continue
  4981. else
  4982. break
  4983. fi
  4984. ;;
  4985. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4986. # This compiler won't grok '-c -o', but also, the minuso test has
  4987. # not run yet. These depmodes are late enough in the game, and
  4988. # so weak that their functioning should not be impacted.
  4989. am__obj=conftest.${OBJEXT-o}
  4990. am__minus_obj=
  4991. ;;
  4992. none) break ;;
  4993. esac
  4994. if depmode=$depmode \
  4995. source=sub/conftest.c object=$am__obj \
  4996. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4997. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4998. >/dev/null 2>conftest.err &&
  4999. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5000. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5001. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5002. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5003. # icc doesn't choke on unknown options, it will just issue warnings
  5004. # or remarks (even with -Werror). So we grep stderr for any message
  5005. # that says an option was ignored or not supported.
  5006. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5007. # icc: Command line warning: ignoring option '-M'; no argument required
  5008. # The diagnosis changed in icc 8.0:
  5009. # icc: Command line remark: option '-MP' not supported
  5010. if (grep 'ignoring option' conftest.err ||
  5011. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5012. am_cv_CC_dependencies_compiler_type=$depmode
  5013. break
  5014. fi
  5015. fi
  5016. done
  5017. cd ..
  5018. rm -rf conftest.dir
  5019. else
  5020. am_cv_CC_dependencies_compiler_type=none
  5021. fi
  5022. fi
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5024. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5025. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5026. if
  5027. test "x$enable_dependency_tracking" != xno \
  5028. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5029. am__fastdepCC_TRUE=
  5030. am__fastdepCC_FALSE='#'
  5031. else
  5032. am__fastdepCC_TRUE='#'
  5033. am__fastdepCC_FALSE=
  5034. fi
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5036. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5037. if ${ac_cv_path_SED+:} false; then :
  5038. $as_echo_n "(cached) " >&6
  5039. else
  5040. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5041. for ac_i in 1 2 3 4 5 6 7; do
  5042. ac_script="$ac_script$as_nl$ac_script"
  5043. done
  5044. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5045. { ac_script=; unset ac_script;}
  5046. if test -z "$SED"; then
  5047. ac_path_SED_found=false
  5048. # Loop through the user's path and test for each of PROGNAME-LIST
  5049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5050. for as_dir in $PATH
  5051. do
  5052. IFS=$as_save_IFS
  5053. test -z "$as_dir" && as_dir=.
  5054. for ac_prog in sed gsed; do
  5055. for ac_exec_ext in '' $ac_executable_extensions; do
  5056. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5057. as_fn_executable_p "$ac_path_SED" || continue
  5058. # Check for GNU ac_path_SED and select it if it is found.
  5059. # Check for GNU $ac_path_SED
  5060. case `"$ac_path_SED" --version 2>&1` in
  5061. *GNU*)
  5062. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5063. *)
  5064. ac_count=0
  5065. $as_echo_n 0123456789 >"conftest.in"
  5066. while :
  5067. do
  5068. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5069. mv "conftest.tmp" "conftest.in"
  5070. cp "conftest.in" "conftest.nl"
  5071. $as_echo '' >> "conftest.nl"
  5072. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5073. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5074. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5075. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5076. # Best one so far, save it but keep looking for a better one
  5077. ac_cv_path_SED="$ac_path_SED"
  5078. ac_path_SED_max=$ac_count
  5079. fi
  5080. # 10*(2^10) chars as input seems more than enough
  5081. test $ac_count -gt 10 && break
  5082. done
  5083. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5084. esac
  5085. $ac_path_SED_found && break 3
  5086. done
  5087. done
  5088. done
  5089. IFS=$as_save_IFS
  5090. if test -z "$ac_cv_path_SED"; then
  5091. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5092. fi
  5093. else
  5094. ac_cv_path_SED=$SED
  5095. fi
  5096. fi
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5098. $as_echo "$ac_cv_path_SED" >&6; }
  5099. SED="$ac_cv_path_SED"
  5100. rm -f conftest.sed
  5101. test -z "$SED" && SED=sed
  5102. Xsed="$SED -e 1s/^X//"
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5104. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5105. if ${ac_cv_path_GREP+:} false; then :
  5106. $as_echo_n "(cached) " >&6
  5107. else
  5108. if test -z "$GREP"; then
  5109. ac_path_GREP_found=false
  5110. # Loop through the user's path and test for each of PROGNAME-LIST
  5111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5112. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5113. do
  5114. IFS=$as_save_IFS
  5115. test -z "$as_dir" && as_dir=.
  5116. for ac_prog in grep ggrep; do
  5117. for ac_exec_ext in '' $ac_executable_extensions; do
  5118. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5119. as_fn_executable_p "$ac_path_GREP" || continue
  5120. # Check for GNU ac_path_GREP and select it if it is found.
  5121. # Check for GNU $ac_path_GREP
  5122. case `"$ac_path_GREP" --version 2>&1` in
  5123. *GNU*)
  5124. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5125. *)
  5126. ac_count=0
  5127. $as_echo_n 0123456789 >"conftest.in"
  5128. while :
  5129. do
  5130. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5131. mv "conftest.tmp" "conftest.in"
  5132. cp "conftest.in" "conftest.nl"
  5133. $as_echo 'GREP' >> "conftest.nl"
  5134. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5135. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5136. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5137. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5138. # Best one so far, save it but keep looking for a better one
  5139. ac_cv_path_GREP="$ac_path_GREP"
  5140. ac_path_GREP_max=$ac_count
  5141. fi
  5142. # 10*(2^10) chars as input seems more than enough
  5143. test $ac_count -gt 10 && break
  5144. done
  5145. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5146. esac
  5147. $ac_path_GREP_found && break 3
  5148. done
  5149. done
  5150. done
  5151. IFS=$as_save_IFS
  5152. if test -z "$ac_cv_path_GREP"; then
  5153. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5154. fi
  5155. else
  5156. ac_cv_path_GREP=$GREP
  5157. fi
  5158. fi
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5160. $as_echo "$ac_cv_path_GREP" >&6; }
  5161. GREP="$ac_cv_path_GREP"
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5163. $as_echo_n "checking for egrep... " >&6; }
  5164. if ${ac_cv_path_EGREP+:} false; then :
  5165. $as_echo_n "(cached) " >&6
  5166. else
  5167. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5168. then ac_cv_path_EGREP="$GREP -E"
  5169. else
  5170. if test -z "$EGREP"; then
  5171. ac_path_EGREP_found=false
  5172. # Loop through the user's path and test for each of PROGNAME-LIST
  5173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5174. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5175. do
  5176. IFS=$as_save_IFS
  5177. test -z "$as_dir" && as_dir=.
  5178. for ac_prog in egrep; do
  5179. for ac_exec_ext in '' $ac_executable_extensions; do
  5180. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5181. as_fn_executable_p "$ac_path_EGREP" || continue
  5182. # Check for GNU ac_path_EGREP and select it if it is found.
  5183. # Check for GNU $ac_path_EGREP
  5184. case `"$ac_path_EGREP" --version 2>&1` in
  5185. *GNU*)
  5186. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5187. *)
  5188. ac_count=0
  5189. $as_echo_n 0123456789 >"conftest.in"
  5190. while :
  5191. do
  5192. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5193. mv "conftest.tmp" "conftest.in"
  5194. cp "conftest.in" "conftest.nl"
  5195. $as_echo 'EGREP' >> "conftest.nl"
  5196. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5197. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5198. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5199. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5200. # Best one so far, save it but keep looking for a better one
  5201. ac_cv_path_EGREP="$ac_path_EGREP"
  5202. ac_path_EGREP_max=$ac_count
  5203. fi
  5204. # 10*(2^10) chars as input seems more than enough
  5205. test $ac_count -gt 10 && break
  5206. done
  5207. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5208. esac
  5209. $ac_path_EGREP_found && break 3
  5210. done
  5211. done
  5212. done
  5213. IFS=$as_save_IFS
  5214. if test -z "$ac_cv_path_EGREP"; then
  5215. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5216. fi
  5217. else
  5218. ac_cv_path_EGREP=$EGREP
  5219. fi
  5220. fi
  5221. fi
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5223. $as_echo "$ac_cv_path_EGREP" >&6; }
  5224. EGREP="$ac_cv_path_EGREP"
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5226. $as_echo_n "checking for fgrep... " >&6; }
  5227. if ${ac_cv_path_FGREP+:} false; then :
  5228. $as_echo_n "(cached) " >&6
  5229. else
  5230. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5231. then ac_cv_path_FGREP="$GREP -F"
  5232. else
  5233. if test -z "$FGREP"; then
  5234. ac_path_FGREP_found=false
  5235. # Loop through the user's path and test for each of PROGNAME-LIST
  5236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5237. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5238. do
  5239. IFS=$as_save_IFS
  5240. test -z "$as_dir" && as_dir=.
  5241. for ac_prog in fgrep; do
  5242. for ac_exec_ext in '' $ac_executable_extensions; do
  5243. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5244. as_fn_executable_p "$ac_path_FGREP" || continue
  5245. # Check for GNU ac_path_FGREP and select it if it is found.
  5246. # Check for GNU $ac_path_FGREP
  5247. case `"$ac_path_FGREP" --version 2>&1` in
  5248. *GNU*)
  5249. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5250. *)
  5251. ac_count=0
  5252. $as_echo_n 0123456789 >"conftest.in"
  5253. while :
  5254. do
  5255. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5256. mv "conftest.tmp" "conftest.in"
  5257. cp "conftest.in" "conftest.nl"
  5258. $as_echo 'FGREP' >> "conftest.nl"
  5259. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5260. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5261. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5262. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5263. # Best one so far, save it but keep looking for a better one
  5264. ac_cv_path_FGREP="$ac_path_FGREP"
  5265. ac_path_FGREP_max=$ac_count
  5266. fi
  5267. # 10*(2^10) chars as input seems more than enough
  5268. test $ac_count -gt 10 && break
  5269. done
  5270. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5271. esac
  5272. $ac_path_FGREP_found && break 3
  5273. done
  5274. done
  5275. done
  5276. IFS=$as_save_IFS
  5277. if test -z "$ac_cv_path_FGREP"; then
  5278. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5279. fi
  5280. else
  5281. ac_cv_path_FGREP=$FGREP
  5282. fi
  5283. fi
  5284. fi
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5286. $as_echo "$ac_cv_path_FGREP" >&6; }
  5287. FGREP="$ac_cv_path_FGREP"
  5288. test -z "$GREP" && GREP=grep
  5289. # Check whether --with-gnu-ld was given.
  5290. if test "${with_gnu_ld+set}" = set; then :
  5291. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5292. else
  5293. with_gnu_ld=no
  5294. fi
  5295. ac_prog=ld
  5296. if test yes = "$GCC"; then
  5297. # Check if gcc -print-prog-name=ld gives a path.
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5299. $as_echo_n "checking for ld used by $CC... " >&6; }
  5300. case $host in
  5301. *-*-mingw*)
  5302. # gcc leaves a trailing carriage return, which upsets mingw
  5303. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5304. *)
  5305. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5306. esac
  5307. case $ac_prog in
  5308. # Accept absolute paths.
  5309. [\\/]* | ?:[\\/]*)
  5310. re_direlt='/[^/][^/]*/\.\./'
  5311. # Canonicalize the pathname of ld
  5312. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5313. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5314. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5315. done
  5316. test -z "$LD" && LD=$ac_prog
  5317. ;;
  5318. "")
  5319. # If it fails, then pretend we aren't using GCC.
  5320. ac_prog=ld
  5321. ;;
  5322. *)
  5323. # If it is relative, then search for the first ld in PATH.
  5324. with_gnu_ld=unknown
  5325. ;;
  5326. esac
  5327. elif test yes = "$with_gnu_ld"; then
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5329. $as_echo_n "checking for GNU ld... " >&6; }
  5330. else
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5332. $as_echo_n "checking for non-GNU ld... " >&6; }
  5333. fi
  5334. if ${lt_cv_path_LD+:} false; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. if test -z "$LD"; then
  5338. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5339. for ac_dir in $PATH; do
  5340. IFS=$lt_save_ifs
  5341. test -z "$ac_dir" && ac_dir=.
  5342. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5343. lt_cv_path_LD=$ac_dir/$ac_prog
  5344. # Check to see if the program is GNU ld. I'd rather use --version,
  5345. # but apparently some variants of GNU ld only accept -v.
  5346. # Break only if it was the GNU/non-GNU ld that we prefer.
  5347. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5348. *GNU* | *'with BFD'*)
  5349. test no != "$with_gnu_ld" && break
  5350. ;;
  5351. *)
  5352. test yes != "$with_gnu_ld" && break
  5353. ;;
  5354. esac
  5355. fi
  5356. done
  5357. IFS=$lt_save_ifs
  5358. else
  5359. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5360. fi
  5361. fi
  5362. LD=$lt_cv_path_LD
  5363. if test -n "$LD"; then
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5365. $as_echo "$LD" >&6; }
  5366. else
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5368. $as_echo "no" >&6; }
  5369. fi
  5370. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5372. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5373. if ${lt_cv_prog_gnu_ld+:} false; then :
  5374. $as_echo_n "(cached) " >&6
  5375. else
  5376. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5377. case `$LD -v 2>&1 </dev/null` in
  5378. *GNU* | *'with BFD'*)
  5379. lt_cv_prog_gnu_ld=yes
  5380. ;;
  5381. *)
  5382. lt_cv_prog_gnu_ld=no
  5383. ;;
  5384. esac
  5385. fi
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5387. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5388. with_gnu_ld=$lt_cv_prog_gnu_ld
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5390. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5391. if ${lt_cv_path_NM+:} false; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. if test -n "$NM"; then
  5395. # Let the user override the test.
  5396. lt_cv_path_NM=$NM
  5397. else
  5398. lt_nm_to_check=${ac_tool_prefix}nm
  5399. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5400. lt_nm_to_check="$lt_nm_to_check nm"
  5401. fi
  5402. for lt_tmp_nm in $lt_nm_to_check; do
  5403. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5404. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5405. IFS=$lt_save_ifs
  5406. test -z "$ac_dir" && ac_dir=.
  5407. tmp_nm=$ac_dir/$lt_tmp_nm
  5408. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5409. # Check to see if the nm accepts a BSD-compat flag.
  5410. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5411. # nm: unknown option "B" ignored
  5412. # Tru64's nm complains that /dev/null is an invalid object file
  5413. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5414. case $build_os in
  5415. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5416. *) lt_bad_file=/dev/null ;;
  5417. esac
  5418. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5419. *$lt_bad_file* | *'Invalid file or object type'*)
  5420. lt_cv_path_NM="$tmp_nm -B"
  5421. break 2
  5422. ;;
  5423. *)
  5424. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5425. */dev/null*)
  5426. lt_cv_path_NM="$tmp_nm -p"
  5427. break 2
  5428. ;;
  5429. *)
  5430. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5431. continue # so that we can try to find one that supports BSD flags
  5432. ;;
  5433. esac
  5434. ;;
  5435. esac
  5436. fi
  5437. done
  5438. IFS=$lt_save_ifs
  5439. done
  5440. : ${lt_cv_path_NM=no}
  5441. fi
  5442. fi
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5444. $as_echo "$lt_cv_path_NM" >&6; }
  5445. if test no != "$lt_cv_path_NM"; then
  5446. NM=$lt_cv_path_NM
  5447. else
  5448. # Didn't find any BSD compatible name lister, look for dumpbin.
  5449. if test -n "$DUMPBIN"; then :
  5450. # Let the user override the test.
  5451. else
  5452. if test -n "$ac_tool_prefix"; then
  5453. for ac_prog in dumpbin "link -dump"
  5454. do
  5455. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5456. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5458. $as_echo_n "checking for $ac_word... " >&6; }
  5459. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. if test -n "$DUMPBIN"; then
  5463. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5464. else
  5465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5466. for as_dir in $PATH
  5467. do
  5468. IFS=$as_save_IFS
  5469. test -z "$as_dir" && as_dir=.
  5470. for ac_exec_ext in '' $ac_executable_extensions; do
  5471. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5472. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5474. break 2
  5475. fi
  5476. done
  5477. done
  5478. IFS=$as_save_IFS
  5479. fi
  5480. fi
  5481. DUMPBIN=$ac_cv_prog_DUMPBIN
  5482. if test -n "$DUMPBIN"; then
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5484. $as_echo "$DUMPBIN" >&6; }
  5485. else
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5487. $as_echo "no" >&6; }
  5488. fi
  5489. test -n "$DUMPBIN" && break
  5490. done
  5491. fi
  5492. if test -z "$DUMPBIN"; then
  5493. ac_ct_DUMPBIN=$DUMPBIN
  5494. for ac_prog in dumpbin "link -dump"
  5495. do
  5496. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5497. set dummy $ac_prog; ac_word=$2
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5499. $as_echo_n "checking for $ac_word... " >&6; }
  5500. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5501. $as_echo_n "(cached) " >&6
  5502. else
  5503. if test -n "$ac_ct_DUMPBIN"; then
  5504. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5505. else
  5506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5507. for as_dir in $PATH
  5508. do
  5509. IFS=$as_save_IFS
  5510. test -z "$as_dir" && as_dir=.
  5511. for ac_exec_ext in '' $ac_executable_extensions; do
  5512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5513. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5515. break 2
  5516. fi
  5517. done
  5518. done
  5519. IFS=$as_save_IFS
  5520. fi
  5521. fi
  5522. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5523. if test -n "$ac_ct_DUMPBIN"; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5525. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5526. else
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5528. $as_echo "no" >&6; }
  5529. fi
  5530. test -n "$ac_ct_DUMPBIN" && break
  5531. done
  5532. if test "x$ac_ct_DUMPBIN" = x; then
  5533. DUMPBIN=":"
  5534. else
  5535. case $cross_compiling:$ac_tool_warned in
  5536. yes:)
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5538. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5539. ac_tool_warned=yes ;;
  5540. esac
  5541. DUMPBIN=$ac_ct_DUMPBIN
  5542. fi
  5543. fi
  5544. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5545. *COFF*)
  5546. DUMPBIN="$DUMPBIN -symbols -headers"
  5547. ;;
  5548. *)
  5549. DUMPBIN=:
  5550. ;;
  5551. esac
  5552. fi
  5553. if test : != "$DUMPBIN"; then
  5554. NM=$DUMPBIN
  5555. fi
  5556. fi
  5557. test -z "$NM" && NM=nm
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5559. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5560. if ${lt_cv_nm_interface+:} false; then :
  5561. $as_echo_n "(cached) " >&6
  5562. else
  5563. lt_cv_nm_interface="BSD nm"
  5564. echo "int some_variable = 0;" > conftest.$ac_ext
  5565. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5566. (eval "$ac_compile" 2>conftest.err)
  5567. cat conftest.err >&5
  5568. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5569. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5570. cat conftest.err >&5
  5571. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5572. cat conftest.out >&5
  5573. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5574. lt_cv_nm_interface="MS dumpbin"
  5575. fi
  5576. rm -f conftest*
  5577. fi
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5579. $as_echo "$lt_cv_nm_interface" >&6; }
  5580. # find the maximum length of command line arguments
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5582. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5583. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5584. $as_echo_n "(cached) " >&6
  5585. else
  5586. i=0
  5587. teststring=ABCD
  5588. case $build_os in
  5589. msdosdjgpp*)
  5590. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5591. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5592. # during glob expansion). Even if it were fixed, the result of this
  5593. # check would be larger than it should be.
  5594. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5595. ;;
  5596. gnu*)
  5597. # Under GNU Hurd, this test is not required because there is
  5598. # no limit to the length of command line arguments.
  5599. # Libtool will interpret -1 as no limit whatsoever
  5600. lt_cv_sys_max_cmd_len=-1;
  5601. ;;
  5602. cygwin* | mingw* | cegcc*)
  5603. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5604. # about 5 minutes as the teststring grows exponentially.
  5605. # Worse, since 9x/ME are not pre-emptively multitasking,
  5606. # you end up with a "frozen" computer, even though with patience
  5607. # the test eventually succeeds (with a max line length of 256k).
  5608. # Instead, let's just punt: use the minimum linelength reported by
  5609. # all of the supported platforms: 8192 (on NT/2K/XP).
  5610. lt_cv_sys_max_cmd_len=8192;
  5611. ;;
  5612. mint*)
  5613. # On MiNT this can take a long time and run out of memory.
  5614. lt_cv_sys_max_cmd_len=8192;
  5615. ;;
  5616. amigaos*)
  5617. # On AmigaOS with pdksh, this test takes hours, literally.
  5618. # So we just punt and use a minimum line length of 8192.
  5619. lt_cv_sys_max_cmd_len=8192;
  5620. ;;
  5621. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5622. # This has been around since 386BSD, at least. Likely further.
  5623. if test -x /sbin/sysctl; then
  5624. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5625. elif test -x /usr/sbin/sysctl; then
  5626. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5627. else
  5628. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5629. fi
  5630. # And add a safety zone
  5631. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5632. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5633. ;;
  5634. interix*)
  5635. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5636. lt_cv_sys_max_cmd_len=196608
  5637. ;;
  5638. os2*)
  5639. # The test takes a long time on OS/2.
  5640. lt_cv_sys_max_cmd_len=8192
  5641. ;;
  5642. osf*)
  5643. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5644. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5645. # nice to cause kernel panics so lets avoid the loop below.
  5646. # First set a reasonable default.
  5647. lt_cv_sys_max_cmd_len=16384
  5648. #
  5649. if test -x /sbin/sysconfig; then
  5650. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5651. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5652. esac
  5653. fi
  5654. ;;
  5655. sco3.2v5*)
  5656. lt_cv_sys_max_cmd_len=102400
  5657. ;;
  5658. sysv5* | sco5v6* | sysv4.2uw2*)
  5659. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5660. if test -n "$kargmax"; then
  5661. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5662. else
  5663. lt_cv_sys_max_cmd_len=32768
  5664. fi
  5665. ;;
  5666. *)
  5667. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5668. if test -n "$lt_cv_sys_max_cmd_len" && \
  5669. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5670. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5671. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5672. else
  5673. # Make teststring a little bigger before we do anything with it.
  5674. # a 1K string should be a reasonable start.
  5675. for i in 1 2 3 4 5 6 7 8; do
  5676. teststring=$teststring$teststring
  5677. done
  5678. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5679. # If test is not a shell built-in, we'll probably end up computing a
  5680. # maximum length that is only half of the actual maximum length, but
  5681. # we can't tell.
  5682. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5683. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5684. test 17 != "$i" # 1/2 MB should be enough
  5685. do
  5686. i=`expr $i + 1`
  5687. teststring=$teststring$teststring
  5688. done
  5689. # Only check the string length outside the loop.
  5690. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5691. teststring=
  5692. # Add a significant safety factor because C++ compilers can tack on
  5693. # massive amounts of additional arguments before passing them to the
  5694. # linker. It appears as though 1/2 is a usable value.
  5695. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5696. fi
  5697. ;;
  5698. esac
  5699. fi
  5700. if test -n "$lt_cv_sys_max_cmd_len"; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5702. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5703. else
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5705. $as_echo "none" >&6; }
  5706. fi
  5707. max_cmd_len=$lt_cv_sys_max_cmd_len
  5708. : ${CP="cp -f"}
  5709. : ${MV="mv -f"}
  5710. : ${RM="rm -f"}
  5711. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5712. lt_unset=unset
  5713. else
  5714. lt_unset=false
  5715. fi
  5716. # test EBCDIC or ASCII
  5717. case `echo X|tr X '\101'` in
  5718. A) # ASCII based system
  5719. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5720. lt_SP2NL='tr \040 \012'
  5721. lt_NL2SP='tr \015\012 \040\040'
  5722. ;;
  5723. *) # EBCDIC based system
  5724. lt_SP2NL='tr \100 \n'
  5725. lt_NL2SP='tr \r\n \100\100'
  5726. ;;
  5727. esac
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5729. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5730. if ${lt_cv_to_host_file_cmd+:} false; then :
  5731. $as_echo_n "(cached) " >&6
  5732. else
  5733. case $host in
  5734. *-*-mingw* )
  5735. case $build in
  5736. *-*-mingw* ) # actually msys
  5737. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5738. ;;
  5739. *-*-cygwin* )
  5740. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5741. ;;
  5742. * ) # otherwise, assume *nix
  5743. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5744. ;;
  5745. esac
  5746. ;;
  5747. *-*-cygwin* )
  5748. case $build in
  5749. *-*-mingw* ) # actually msys
  5750. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5751. ;;
  5752. *-*-cygwin* )
  5753. lt_cv_to_host_file_cmd=func_convert_file_noop
  5754. ;;
  5755. * ) # otherwise, assume *nix
  5756. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5757. ;;
  5758. esac
  5759. ;;
  5760. * ) # unhandled hosts (and "normal" native builds)
  5761. lt_cv_to_host_file_cmd=func_convert_file_noop
  5762. ;;
  5763. esac
  5764. fi
  5765. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5767. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5769. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5770. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5771. $as_echo_n "(cached) " >&6
  5772. else
  5773. #assume ordinary cross tools, or native build.
  5774. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5775. case $host in
  5776. *-*-mingw* )
  5777. case $build in
  5778. *-*-mingw* ) # actually msys
  5779. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5780. ;;
  5781. esac
  5782. ;;
  5783. esac
  5784. fi
  5785. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5787. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5789. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5790. if ${lt_cv_ld_reload_flag+:} false; then :
  5791. $as_echo_n "(cached) " >&6
  5792. else
  5793. lt_cv_ld_reload_flag='-r'
  5794. fi
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5796. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5797. reload_flag=$lt_cv_ld_reload_flag
  5798. case $reload_flag in
  5799. "" | " "*) ;;
  5800. *) reload_flag=" $reload_flag" ;;
  5801. esac
  5802. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5803. case $host_os in
  5804. cygwin* | mingw* | pw32* | cegcc*)
  5805. if test yes != "$GCC"; then
  5806. reload_cmds=false
  5807. fi
  5808. ;;
  5809. darwin*)
  5810. if test yes = "$GCC"; then
  5811. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5812. else
  5813. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5814. fi
  5815. ;;
  5816. esac
  5817. if test -n "$ac_tool_prefix"; then
  5818. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5819. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5821. $as_echo_n "checking for $ac_word... " >&6; }
  5822. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$OBJDUMP"; then
  5826. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5835. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. OBJDUMP=$ac_cv_prog_OBJDUMP
  5845. if test -n "$OBJDUMP"; then
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5847. $as_echo "$OBJDUMP" >&6; }
  5848. else
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. $as_echo "no" >&6; }
  5851. fi
  5852. fi
  5853. if test -z "$ac_cv_prog_OBJDUMP"; then
  5854. ac_ct_OBJDUMP=$OBJDUMP
  5855. # Extract the first word of "objdump", so it can be a program name with args.
  5856. set dummy objdump; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$ac_ct_OBJDUMP"; then
  5863. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5882. if test -n "$ac_ct_OBJDUMP"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5884. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. if test "x$ac_ct_OBJDUMP" = x; then
  5890. OBJDUMP="false"
  5891. else
  5892. case $cross_compiling:$ac_tool_warned in
  5893. yes:)
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5896. ac_tool_warned=yes ;;
  5897. esac
  5898. OBJDUMP=$ac_ct_OBJDUMP
  5899. fi
  5900. else
  5901. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5902. fi
  5903. test -z "$OBJDUMP" && OBJDUMP=objdump
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5905. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5906. if ${lt_cv_deplibs_check_method+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5910. lt_cv_file_magic_test_file=
  5911. lt_cv_deplibs_check_method='unknown'
  5912. # Need to set the preceding variable on all platforms that support
  5913. # interlibrary dependencies.
  5914. # 'none' -- dependencies not supported.
  5915. # 'unknown' -- same as none, but documents that we really don't know.
  5916. # 'pass_all' -- all dependencies passed with no checks.
  5917. # 'test_compile' -- check by making test program.
  5918. # 'file_magic [[regex]]' -- check by looking for files in library path
  5919. # that responds to the $file_magic_cmd with a given extended regex.
  5920. # If you have 'file' or equivalent on your system and you're not sure
  5921. # whether 'pass_all' will *always* work, you probably want this one.
  5922. case $host_os in
  5923. aix[4-9]*)
  5924. lt_cv_deplibs_check_method=pass_all
  5925. ;;
  5926. beos*)
  5927. lt_cv_deplibs_check_method=pass_all
  5928. ;;
  5929. bsdi[45]*)
  5930. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5931. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5932. lt_cv_file_magic_test_file=/shlib/libc.so
  5933. ;;
  5934. cygwin*)
  5935. # func_win32_libid is a shell function defined in ltmain.sh
  5936. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5937. lt_cv_file_magic_cmd='func_win32_libid'
  5938. ;;
  5939. mingw* | pw32*)
  5940. # Base MSYS/MinGW do not provide the 'file' command needed by
  5941. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5942. # unless we find 'file', for example because we are cross-compiling.
  5943. if ( file / ) >/dev/null 2>&1; then
  5944. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5945. lt_cv_file_magic_cmd='func_win32_libid'
  5946. else
  5947. # Keep this pattern in sync with the one in func_win32_libid.
  5948. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5949. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5950. fi
  5951. ;;
  5952. cegcc*)
  5953. # use the weaker test based on 'objdump'. See mingw*.
  5954. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5955. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5956. ;;
  5957. darwin* | rhapsody*)
  5958. lt_cv_deplibs_check_method=pass_all
  5959. ;;
  5960. freebsd* | dragonfly*)
  5961. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5962. case $host_cpu in
  5963. i*86 )
  5964. # Not sure whether the presence of OpenBSD here was a mistake.
  5965. # Let's accept both of them until this is cleared up.
  5966. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5967. lt_cv_file_magic_cmd=/usr/bin/file
  5968. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5969. ;;
  5970. esac
  5971. else
  5972. lt_cv_deplibs_check_method=pass_all
  5973. fi
  5974. ;;
  5975. haiku*)
  5976. lt_cv_deplibs_check_method=pass_all
  5977. ;;
  5978. hpux10.20* | hpux11*)
  5979. lt_cv_file_magic_cmd=/usr/bin/file
  5980. case $host_cpu in
  5981. ia64*)
  5982. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5983. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5984. ;;
  5985. hppa*64*)
  5986. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5987. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5988. ;;
  5989. *)
  5990. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5991. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5992. ;;
  5993. esac
  5994. ;;
  5995. interix[3-9]*)
  5996. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5997. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5998. ;;
  5999. irix5* | irix6* | nonstopux*)
  6000. case $LD in
  6001. *-32|*"-32 ") libmagic=32-bit;;
  6002. *-n32|*"-n32 ") libmagic=N32;;
  6003. *-64|*"-64 ") libmagic=64-bit;;
  6004. *) libmagic=never-match;;
  6005. esac
  6006. lt_cv_deplibs_check_method=pass_all
  6007. ;;
  6008. # This must be glibc/ELF.
  6009. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6010. lt_cv_deplibs_check_method=pass_all
  6011. ;;
  6012. netbsd*)
  6013. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6014. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6015. else
  6016. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6017. fi
  6018. ;;
  6019. newos6*)
  6020. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6021. lt_cv_file_magic_cmd=/usr/bin/file
  6022. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6023. ;;
  6024. *nto* | *qnx*)
  6025. lt_cv_deplibs_check_method=pass_all
  6026. ;;
  6027. openbsd* | bitrig*)
  6028. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6029. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6030. else
  6031. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6032. fi
  6033. ;;
  6034. osf3* | osf4* | osf5*)
  6035. lt_cv_deplibs_check_method=pass_all
  6036. ;;
  6037. rdos*)
  6038. lt_cv_deplibs_check_method=pass_all
  6039. ;;
  6040. solaris*)
  6041. lt_cv_deplibs_check_method=pass_all
  6042. ;;
  6043. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6044. lt_cv_deplibs_check_method=pass_all
  6045. ;;
  6046. sysv4 | sysv4.3*)
  6047. case $host_vendor in
  6048. motorola)
  6049. 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]'
  6050. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6051. ;;
  6052. ncr)
  6053. lt_cv_deplibs_check_method=pass_all
  6054. ;;
  6055. sequent)
  6056. lt_cv_file_magic_cmd='/bin/file'
  6057. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6058. ;;
  6059. sni)
  6060. lt_cv_file_magic_cmd='/bin/file'
  6061. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6062. lt_cv_file_magic_test_file=/lib/libc.so
  6063. ;;
  6064. siemens)
  6065. lt_cv_deplibs_check_method=pass_all
  6066. ;;
  6067. pc)
  6068. lt_cv_deplibs_check_method=pass_all
  6069. ;;
  6070. esac
  6071. ;;
  6072. tpf*)
  6073. lt_cv_deplibs_check_method=pass_all
  6074. ;;
  6075. os2*)
  6076. lt_cv_deplibs_check_method=pass_all
  6077. ;;
  6078. esac
  6079. fi
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6081. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6082. file_magic_glob=
  6083. want_nocaseglob=no
  6084. if test "$build" = "$host"; then
  6085. case $host_os in
  6086. mingw* | pw32*)
  6087. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6088. want_nocaseglob=yes
  6089. else
  6090. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6091. fi
  6092. ;;
  6093. esac
  6094. fi
  6095. file_magic_cmd=$lt_cv_file_magic_cmd
  6096. deplibs_check_method=$lt_cv_deplibs_check_method
  6097. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6098. if test -n "$ac_tool_prefix"; then
  6099. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6100. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6102. $as_echo_n "checking for $ac_word... " >&6; }
  6103. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6104. $as_echo_n "(cached) " >&6
  6105. else
  6106. if test -n "$DLLTOOL"; then
  6107. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6108. else
  6109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6110. for as_dir in $PATH
  6111. do
  6112. IFS=$as_save_IFS
  6113. test -z "$as_dir" && as_dir=.
  6114. for ac_exec_ext in '' $ac_executable_extensions; do
  6115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6116. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6118. break 2
  6119. fi
  6120. done
  6121. done
  6122. IFS=$as_save_IFS
  6123. fi
  6124. fi
  6125. DLLTOOL=$ac_cv_prog_DLLTOOL
  6126. if test -n "$DLLTOOL"; then
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6128. $as_echo "$DLLTOOL" >&6; }
  6129. else
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6131. $as_echo "no" >&6; }
  6132. fi
  6133. fi
  6134. if test -z "$ac_cv_prog_DLLTOOL"; then
  6135. ac_ct_DLLTOOL=$DLLTOOL
  6136. # Extract the first word of "dlltool", so it can be a program name with args.
  6137. set dummy dlltool; ac_word=$2
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6139. $as_echo_n "checking for $ac_word... " >&6; }
  6140. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6141. $as_echo_n "(cached) " >&6
  6142. else
  6143. if test -n "$ac_ct_DLLTOOL"; then
  6144. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6145. else
  6146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6147. for as_dir in $PATH
  6148. do
  6149. IFS=$as_save_IFS
  6150. test -z "$as_dir" && as_dir=.
  6151. for ac_exec_ext in '' $ac_executable_extensions; do
  6152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6153. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6155. break 2
  6156. fi
  6157. done
  6158. done
  6159. IFS=$as_save_IFS
  6160. fi
  6161. fi
  6162. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6163. if test -n "$ac_ct_DLLTOOL"; then
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6165. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6166. else
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6168. $as_echo "no" >&6; }
  6169. fi
  6170. if test "x$ac_ct_DLLTOOL" = x; then
  6171. DLLTOOL="false"
  6172. else
  6173. case $cross_compiling:$ac_tool_warned in
  6174. yes:)
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6176. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6177. ac_tool_warned=yes ;;
  6178. esac
  6179. DLLTOOL=$ac_ct_DLLTOOL
  6180. fi
  6181. else
  6182. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6183. fi
  6184. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6186. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6187. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6191. case $host_os in
  6192. cygwin* | mingw* | pw32* | cegcc*)
  6193. # two different shell functions defined in ltmain.sh;
  6194. # decide which one to use based on capabilities of $DLLTOOL
  6195. case `$DLLTOOL --help 2>&1` in
  6196. *--identify-strict*)
  6197. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6198. ;;
  6199. *)
  6200. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6201. ;;
  6202. esac
  6203. ;;
  6204. *)
  6205. # fallback: assume linklib IS sharedlib
  6206. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6207. ;;
  6208. esac
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6211. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6212. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6213. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6214. if test -n "$ac_tool_prefix"; then
  6215. for ac_prog in ar
  6216. do
  6217. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6218. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6220. $as_echo_n "checking for $ac_word... " >&6; }
  6221. if ${ac_cv_prog_AR+:} false; then :
  6222. $as_echo_n "(cached) " >&6
  6223. else
  6224. if test -n "$AR"; then
  6225. ac_cv_prog_AR="$AR" # Let the user override the test.
  6226. else
  6227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6228. for as_dir in $PATH
  6229. do
  6230. IFS=$as_save_IFS
  6231. test -z "$as_dir" && as_dir=.
  6232. for ac_exec_ext in '' $ac_executable_extensions; do
  6233. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6234. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6236. break 2
  6237. fi
  6238. done
  6239. done
  6240. IFS=$as_save_IFS
  6241. fi
  6242. fi
  6243. AR=$ac_cv_prog_AR
  6244. if test -n "$AR"; then
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6246. $as_echo "$AR" >&6; }
  6247. else
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6249. $as_echo "no" >&6; }
  6250. fi
  6251. test -n "$AR" && break
  6252. done
  6253. fi
  6254. if test -z "$AR"; then
  6255. ac_ct_AR=$AR
  6256. for ac_prog in ar
  6257. do
  6258. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6259. set dummy $ac_prog; ac_word=$2
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6261. $as_echo_n "checking for $ac_word... " >&6; }
  6262. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6263. $as_echo_n "(cached) " >&6
  6264. else
  6265. if test -n "$ac_ct_AR"; then
  6266. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6267. else
  6268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6269. for as_dir in $PATH
  6270. do
  6271. IFS=$as_save_IFS
  6272. test -z "$as_dir" && as_dir=.
  6273. for ac_exec_ext in '' $ac_executable_extensions; do
  6274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6275. ac_cv_prog_ac_ct_AR="$ac_prog"
  6276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6277. break 2
  6278. fi
  6279. done
  6280. done
  6281. IFS=$as_save_IFS
  6282. fi
  6283. fi
  6284. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6285. if test -n "$ac_ct_AR"; then
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6287. $as_echo "$ac_ct_AR" >&6; }
  6288. else
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6290. $as_echo "no" >&6; }
  6291. fi
  6292. test -n "$ac_ct_AR" && break
  6293. done
  6294. if test "x$ac_ct_AR" = x; then
  6295. AR="false"
  6296. else
  6297. case $cross_compiling:$ac_tool_warned in
  6298. yes:)
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6300. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6301. ac_tool_warned=yes ;;
  6302. esac
  6303. AR=$ac_ct_AR
  6304. fi
  6305. fi
  6306. : ${AR=ar}
  6307. : ${AR_FLAGS=cru}
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6309. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6310. if ${lt_cv_ar_at_file+:} false; then :
  6311. $as_echo_n "(cached) " >&6
  6312. else
  6313. lt_cv_ar_at_file=no
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. int
  6317. main ()
  6318. {
  6319. ;
  6320. return 0;
  6321. }
  6322. _ACEOF
  6323. if ac_fn_cxx_try_compile "$LINENO"; then :
  6324. echo conftest.$ac_objext > conftest.lst
  6325. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6326. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6327. (eval $lt_ar_try) 2>&5
  6328. ac_status=$?
  6329. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6330. test $ac_status = 0; }
  6331. if test 0 -eq "$ac_status"; then
  6332. # Ensure the archiver fails upon bogus file names.
  6333. rm -f conftest.$ac_objext libconftest.a
  6334. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6335. (eval $lt_ar_try) 2>&5
  6336. ac_status=$?
  6337. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6338. test $ac_status = 0; }
  6339. if test 0 -ne "$ac_status"; then
  6340. lt_cv_ar_at_file=@
  6341. fi
  6342. fi
  6343. rm -f conftest.* libconftest.a
  6344. fi
  6345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6346. fi
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6348. $as_echo "$lt_cv_ar_at_file" >&6; }
  6349. if test no = "$lt_cv_ar_at_file"; then
  6350. archiver_list_spec=
  6351. else
  6352. archiver_list_spec=$lt_cv_ar_at_file
  6353. fi
  6354. if test -n "$ac_tool_prefix"; then
  6355. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6356. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6358. $as_echo_n "checking for $ac_word... " >&6; }
  6359. if ${ac_cv_prog_STRIP+:} false; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. if test -n "$STRIP"; then
  6363. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6364. else
  6365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6366. for as_dir in $PATH
  6367. do
  6368. IFS=$as_save_IFS
  6369. test -z "$as_dir" && as_dir=.
  6370. for ac_exec_ext in '' $ac_executable_extensions; do
  6371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6372. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6374. break 2
  6375. fi
  6376. done
  6377. done
  6378. IFS=$as_save_IFS
  6379. fi
  6380. fi
  6381. STRIP=$ac_cv_prog_STRIP
  6382. if test -n "$STRIP"; then
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6384. $as_echo "$STRIP" >&6; }
  6385. else
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6387. $as_echo "no" >&6; }
  6388. fi
  6389. fi
  6390. if test -z "$ac_cv_prog_STRIP"; then
  6391. ac_ct_STRIP=$STRIP
  6392. # Extract the first word of "strip", so it can be a program name with args.
  6393. set dummy strip; ac_word=$2
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6395. $as_echo_n "checking for $ac_word... " >&6; }
  6396. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6397. $as_echo_n "(cached) " >&6
  6398. else
  6399. if test -n "$ac_ct_STRIP"; then
  6400. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6401. else
  6402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6403. for as_dir in $PATH
  6404. do
  6405. IFS=$as_save_IFS
  6406. test -z "$as_dir" && as_dir=.
  6407. for ac_exec_ext in '' $ac_executable_extensions; do
  6408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6409. ac_cv_prog_ac_ct_STRIP="strip"
  6410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6411. break 2
  6412. fi
  6413. done
  6414. done
  6415. IFS=$as_save_IFS
  6416. fi
  6417. fi
  6418. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6419. if test -n "$ac_ct_STRIP"; then
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6421. $as_echo "$ac_ct_STRIP" >&6; }
  6422. else
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6424. $as_echo "no" >&6; }
  6425. fi
  6426. if test "x$ac_ct_STRIP" = x; then
  6427. STRIP=":"
  6428. else
  6429. case $cross_compiling:$ac_tool_warned in
  6430. yes:)
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6433. ac_tool_warned=yes ;;
  6434. esac
  6435. STRIP=$ac_ct_STRIP
  6436. fi
  6437. else
  6438. STRIP="$ac_cv_prog_STRIP"
  6439. fi
  6440. test -z "$STRIP" && STRIP=:
  6441. if test -n "$ac_tool_prefix"; then
  6442. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6443. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6445. $as_echo_n "checking for $ac_word... " >&6; }
  6446. if ${ac_cv_prog_RANLIB+:} false; then :
  6447. $as_echo_n "(cached) " >&6
  6448. else
  6449. if test -n "$RANLIB"; then
  6450. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6451. else
  6452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6453. for as_dir in $PATH
  6454. do
  6455. IFS=$as_save_IFS
  6456. test -z "$as_dir" && as_dir=.
  6457. for ac_exec_ext in '' $ac_executable_extensions; do
  6458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6459. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6461. break 2
  6462. fi
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. fi
  6467. fi
  6468. RANLIB=$ac_cv_prog_RANLIB
  6469. if test -n "$RANLIB"; then
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6471. $as_echo "$RANLIB" >&6; }
  6472. else
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6474. $as_echo "no" >&6; }
  6475. fi
  6476. fi
  6477. if test -z "$ac_cv_prog_RANLIB"; then
  6478. ac_ct_RANLIB=$RANLIB
  6479. # Extract the first word of "ranlib", so it can be a program name with args.
  6480. set dummy ranlib; ac_word=$2
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6482. $as_echo_n "checking for $ac_word... " >&6; }
  6483. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6484. $as_echo_n "(cached) " >&6
  6485. else
  6486. if test -n "$ac_ct_RANLIB"; then
  6487. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6488. else
  6489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6490. for as_dir in $PATH
  6491. do
  6492. IFS=$as_save_IFS
  6493. test -z "$as_dir" && as_dir=.
  6494. for ac_exec_ext in '' $ac_executable_extensions; do
  6495. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6496. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6498. break 2
  6499. fi
  6500. done
  6501. done
  6502. IFS=$as_save_IFS
  6503. fi
  6504. fi
  6505. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6506. if test -n "$ac_ct_RANLIB"; then
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6508. $as_echo "$ac_ct_RANLIB" >&6; }
  6509. else
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6511. $as_echo "no" >&6; }
  6512. fi
  6513. if test "x$ac_ct_RANLIB" = x; then
  6514. RANLIB=":"
  6515. else
  6516. case $cross_compiling:$ac_tool_warned in
  6517. yes:)
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6520. ac_tool_warned=yes ;;
  6521. esac
  6522. RANLIB=$ac_ct_RANLIB
  6523. fi
  6524. else
  6525. RANLIB="$ac_cv_prog_RANLIB"
  6526. fi
  6527. test -z "$RANLIB" && RANLIB=:
  6528. # Determine commands to create old-style static archives.
  6529. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6530. old_postinstall_cmds='chmod 644 $oldlib'
  6531. old_postuninstall_cmds=
  6532. if test -n "$RANLIB"; then
  6533. case $host_os in
  6534. bitrig* | openbsd*)
  6535. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6536. ;;
  6537. *)
  6538. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6539. ;;
  6540. esac
  6541. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6542. fi
  6543. case $host_os in
  6544. darwin*)
  6545. lock_old_archive_extraction=yes ;;
  6546. *)
  6547. lock_old_archive_extraction=no ;;
  6548. esac
  6549. # If no C compiler was specified, use CC.
  6550. LTCC=${LTCC-"$CC"}
  6551. # If no C compiler flags were specified, use CFLAGS.
  6552. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6553. # Allow CC to be a program name with arguments.
  6554. compiler=$CC
  6555. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6557. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6558. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. # These are sane defaults that work on at least a few old systems.
  6562. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6563. # Character class describing NM global symbol codes.
  6564. symcode='[BCDEGRST]'
  6565. # Regexp to match symbols that can be accessed directly from C.
  6566. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6567. # Define system-specific variables.
  6568. case $host_os in
  6569. aix*)
  6570. symcode='[BCDT]'
  6571. ;;
  6572. cygwin* | mingw* | pw32* | cegcc*)
  6573. symcode='[ABCDGISTW]'
  6574. ;;
  6575. hpux*)
  6576. if test ia64 = "$host_cpu"; then
  6577. symcode='[ABCDEGRST]'
  6578. fi
  6579. ;;
  6580. irix* | nonstopux*)
  6581. symcode='[BCDEGRST]'
  6582. ;;
  6583. osf*)
  6584. symcode='[BCDEGQRST]'
  6585. ;;
  6586. solaris*)
  6587. symcode='[BDRT]'
  6588. ;;
  6589. sco3.2v5*)
  6590. symcode='[DT]'
  6591. ;;
  6592. sysv4.2uw2*)
  6593. symcode='[DT]'
  6594. ;;
  6595. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6596. symcode='[ABDT]'
  6597. ;;
  6598. sysv4)
  6599. symcode='[DFNSTU]'
  6600. ;;
  6601. esac
  6602. # If we're using GNU nm, then use its standard symbol codes.
  6603. case `$NM -V 2>&1` in
  6604. *GNU* | *'with BFD'*)
  6605. symcode='[ABCDGIRSTW]' ;;
  6606. esac
  6607. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6608. # Gets list of data symbols to import.
  6609. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6610. # Adjust the below global symbol transforms to fixup imported variables.
  6611. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6612. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6613. lt_c_name_lib_hook="\
  6614. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6615. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6616. else
  6617. # Disable hooks by default.
  6618. lt_cv_sys_global_symbol_to_import=
  6619. lt_cdecl_hook=
  6620. lt_c_name_hook=
  6621. lt_c_name_lib_hook=
  6622. fi
  6623. # Transform an extracted symbol line into a proper C declaration.
  6624. # Some systems (esp. on ia64) link data and code symbols differently,
  6625. # so use this general approach.
  6626. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6627. $lt_cdecl_hook\
  6628. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6629. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6630. # Transform an extracted symbol line into symbol name and symbol address
  6631. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6632. $lt_c_name_hook\
  6633. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6634. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6635. # Transform an extracted symbol line into symbol name with lib prefix and
  6636. # symbol address.
  6637. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6638. $lt_c_name_lib_hook\
  6639. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6640. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6641. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6642. # Handle CRLF in mingw tool chain
  6643. opt_cr=
  6644. case $build_os in
  6645. mingw*)
  6646. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6647. ;;
  6648. esac
  6649. # Try without a prefix underscore, then with it.
  6650. for ac_symprfx in "" "_"; do
  6651. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6652. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6653. # Write the raw and C identifiers.
  6654. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6655. # Fake it for dumpbin and say T for any non-static function,
  6656. # D for any global variable and I for any imported variable.
  6657. # Also find C++ and __fastcall symbols from MSVC++,
  6658. # which start with @ or ?.
  6659. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6660. " {last_section=section; section=\$ 3};"\
  6661. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6662. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6663. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6664. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6665. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6666. " \$ 0!~/External *\|/{next};"\
  6667. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6668. " {if(hide[section]) next};"\
  6669. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6670. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6671. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6672. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6673. " ' prfx=^$ac_symprfx"
  6674. else
  6675. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6676. fi
  6677. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6678. # Check to see that the pipe works correctly.
  6679. pipe_works=no
  6680. rm -f conftest*
  6681. cat > conftest.$ac_ext <<_LT_EOF
  6682. #ifdef __cplusplus
  6683. extern "C" {
  6684. #endif
  6685. char nm_test_var;
  6686. void nm_test_func(void);
  6687. void nm_test_func(void){}
  6688. #ifdef __cplusplus
  6689. }
  6690. #endif
  6691. int main(){nm_test_var='a';nm_test_func();return(0);}
  6692. _LT_EOF
  6693. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6694. (eval $ac_compile) 2>&5
  6695. ac_status=$?
  6696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6697. test $ac_status = 0; }; then
  6698. # Now try to grab the symbols.
  6699. nlist=conftest.nm
  6700. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6701. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6702. ac_status=$?
  6703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6704. test $ac_status = 0; } && test -s "$nlist"; then
  6705. # Try sorting and uniquifying the output.
  6706. if sort "$nlist" | uniq > "$nlist"T; then
  6707. mv -f "$nlist"T "$nlist"
  6708. else
  6709. rm -f "$nlist"T
  6710. fi
  6711. # Make sure that we snagged all the symbols we need.
  6712. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6713. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6714. cat <<_LT_EOF > conftest.$ac_ext
  6715. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6716. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6717. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6718. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6719. # define LT_DLSYM_CONST
  6720. #elif defined __osf__
  6721. /* This system does not cope well with relocations in const data. */
  6722. # define LT_DLSYM_CONST
  6723. #else
  6724. # define LT_DLSYM_CONST const
  6725. #endif
  6726. #ifdef __cplusplus
  6727. extern "C" {
  6728. #endif
  6729. _LT_EOF
  6730. # Now generate the symbol file.
  6731. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6732. cat <<_LT_EOF >> conftest.$ac_ext
  6733. /* The mapping between symbol names and symbols. */
  6734. LT_DLSYM_CONST struct {
  6735. const char *name;
  6736. void *address;
  6737. }
  6738. lt__PROGRAM__LTX_preloaded_symbols[] =
  6739. {
  6740. { "@PROGRAM@", (void *) 0 },
  6741. _LT_EOF
  6742. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6743. cat <<\_LT_EOF >> conftest.$ac_ext
  6744. {0, (void *) 0}
  6745. };
  6746. /* This works around a problem in FreeBSD linker */
  6747. #ifdef FREEBSD_WORKAROUND
  6748. static const void *lt_preloaded_setup() {
  6749. return lt__PROGRAM__LTX_preloaded_symbols;
  6750. }
  6751. #endif
  6752. #ifdef __cplusplus
  6753. }
  6754. #endif
  6755. _LT_EOF
  6756. # Now try linking the two files.
  6757. mv conftest.$ac_objext conftstm.$ac_objext
  6758. lt_globsym_save_LIBS=$LIBS
  6759. lt_globsym_save_CFLAGS=$CFLAGS
  6760. LIBS=conftstm.$ac_objext
  6761. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6762. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6763. (eval $ac_link) 2>&5
  6764. ac_status=$?
  6765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6766. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6767. pipe_works=yes
  6768. fi
  6769. LIBS=$lt_globsym_save_LIBS
  6770. CFLAGS=$lt_globsym_save_CFLAGS
  6771. else
  6772. echo "cannot find nm_test_func in $nlist" >&5
  6773. fi
  6774. else
  6775. echo "cannot find nm_test_var in $nlist" >&5
  6776. fi
  6777. else
  6778. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6779. fi
  6780. else
  6781. echo "$progname: failed program was:" >&5
  6782. cat conftest.$ac_ext >&5
  6783. fi
  6784. rm -rf conftest* conftst*
  6785. # Do not use the global_symbol_pipe unless it works.
  6786. if test yes = "$pipe_works"; then
  6787. break
  6788. else
  6789. lt_cv_sys_global_symbol_pipe=
  6790. fi
  6791. done
  6792. fi
  6793. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6794. lt_cv_sys_global_symbol_to_cdecl=
  6795. fi
  6796. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6798. $as_echo "failed" >&6; }
  6799. else
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6801. $as_echo "ok" >&6; }
  6802. fi
  6803. # Response file support.
  6804. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6805. nm_file_list_spec='@'
  6806. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6807. nm_file_list_spec='@'
  6808. fi
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6810. $as_echo_n "checking for sysroot... " >&6; }
  6811. # Check whether --with-sysroot was given.
  6812. if test "${with_sysroot+set}" = set; then :
  6813. withval=$with_sysroot;
  6814. else
  6815. with_sysroot=no
  6816. fi
  6817. lt_sysroot=
  6818. case $with_sysroot in #(
  6819. yes)
  6820. if test yes = "$GCC"; then
  6821. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6822. fi
  6823. ;; #(
  6824. /*)
  6825. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6826. ;; #(
  6827. no|'')
  6828. ;; #(
  6829. *)
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6831. $as_echo "$with_sysroot" >&6; }
  6832. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6833. ;;
  6834. esac
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6836. $as_echo "${lt_sysroot:-no}" >&6; }
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6838. $as_echo_n "checking for a working dd... " >&6; }
  6839. if ${ac_cv_path_lt_DD+:} false; then :
  6840. $as_echo_n "(cached) " >&6
  6841. else
  6842. printf 0123456789abcdef0123456789abcdef >conftest.i
  6843. cat conftest.i conftest.i >conftest2.i
  6844. : ${lt_DD:=$DD}
  6845. if test -z "$lt_DD"; then
  6846. ac_path_lt_DD_found=false
  6847. # Loop through the user's path and test for each of PROGNAME-LIST
  6848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6849. for as_dir in $PATH
  6850. do
  6851. IFS=$as_save_IFS
  6852. test -z "$as_dir" && as_dir=.
  6853. for ac_prog in dd; do
  6854. for ac_exec_ext in '' $ac_executable_extensions; do
  6855. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6856. as_fn_executable_p "$ac_path_lt_DD" || continue
  6857. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6858. cmp -s conftest.i conftest.out \
  6859. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6860. fi
  6861. $ac_path_lt_DD_found && break 3
  6862. done
  6863. done
  6864. done
  6865. IFS=$as_save_IFS
  6866. if test -z "$ac_cv_path_lt_DD"; then
  6867. :
  6868. fi
  6869. else
  6870. ac_cv_path_lt_DD=$lt_DD
  6871. fi
  6872. rm -f conftest.i conftest2.i conftest.out
  6873. fi
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6875. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6877. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6878. if ${lt_cv_truncate_bin+:} false; then :
  6879. $as_echo_n "(cached) " >&6
  6880. else
  6881. printf 0123456789abcdef0123456789abcdef >conftest.i
  6882. cat conftest.i conftest.i >conftest2.i
  6883. lt_cv_truncate_bin=
  6884. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6885. cmp -s conftest.i conftest.out \
  6886. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6887. fi
  6888. rm -f conftest.i conftest2.i conftest.out
  6889. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6890. fi
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6892. $as_echo "$lt_cv_truncate_bin" >&6; }
  6893. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6894. func_cc_basename ()
  6895. {
  6896. for cc_temp in $*""; do
  6897. case $cc_temp in
  6898. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6899. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6900. \-*) ;;
  6901. *) break;;
  6902. esac
  6903. done
  6904. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6905. }
  6906. # Check whether --enable-libtool-lock was given.
  6907. if test "${enable_libtool_lock+set}" = set; then :
  6908. enableval=$enable_libtool_lock;
  6909. fi
  6910. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6911. # Some flags need to be propagated to the compiler or linker for good
  6912. # libtool support.
  6913. case $host in
  6914. ia64-*-hpux*)
  6915. # Find out what ABI is being produced by ac_compile, and set mode
  6916. # options accordingly.
  6917. echo 'int i;' > conftest.$ac_ext
  6918. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6919. (eval $ac_compile) 2>&5
  6920. ac_status=$?
  6921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6922. test $ac_status = 0; }; then
  6923. case `/usr/bin/file conftest.$ac_objext` in
  6924. *ELF-32*)
  6925. HPUX_IA64_MODE=32
  6926. ;;
  6927. *ELF-64*)
  6928. HPUX_IA64_MODE=64
  6929. ;;
  6930. esac
  6931. fi
  6932. rm -rf conftest*
  6933. ;;
  6934. *-*-irix6*)
  6935. # Find out what ABI is being produced by ac_compile, and set linker
  6936. # options accordingly.
  6937. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6938. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6939. (eval $ac_compile) 2>&5
  6940. ac_status=$?
  6941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6942. test $ac_status = 0; }; then
  6943. if test yes = "$lt_cv_prog_gnu_ld"; then
  6944. case `/usr/bin/file conftest.$ac_objext` in
  6945. *32-bit*)
  6946. LD="${LD-ld} -melf32bsmip"
  6947. ;;
  6948. *N32*)
  6949. LD="${LD-ld} -melf32bmipn32"
  6950. ;;
  6951. *64-bit*)
  6952. LD="${LD-ld} -melf64bmip"
  6953. ;;
  6954. esac
  6955. else
  6956. case `/usr/bin/file conftest.$ac_objext` in
  6957. *32-bit*)
  6958. LD="${LD-ld} -32"
  6959. ;;
  6960. *N32*)
  6961. LD="${LD-ld} -n32"
  6962. ;;
  6963. *64-bit*)
  6964. LD="${LD-ld} -64"
  6965. ;;
  6966. esac
  6967. fi
  6968. fi
  6969. rm -rf conftest*
  6970. ;;
  6971. mips64*-*linux*)
  6972. # Find out what ABI is being produced by ac_compile, and set linker
  6973. # options accordingly.
  6974. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6975. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6976. (eval $ac_compile) 2>&5
  6977. ac_status=$?
  6978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6979. test $ac_status = 0; }; then
  6980. emul=elf
  6981. case `/usr/bin/file conftest.$ac_objext` in
  6982. *32-bit*)
  6983. emul="${emul}32"
  6984. ;;
  6985. *64-bit*)
  6986. emul="${emul}64"
  6987. ;;
  6988. esac
  6989. case `/usr/bin/file conftest.$ac_objext` in
  6990. *MSB*)
  6991. emul="${emul}btsmip"
  6992. ;;
  6993. *LSB*)
  6994. emul="${emul}ltsmip"
  6995. ;;
  6996. esac
  6997. case `/usr/bin/file conftest.$ac_objext` in
  6998. *N32*)
  6999. emul="${emul}n32"
  7000. ;;
  7001. esac
  7002. LD="${LD-ld} -m $emul"
  7003. fi
  7004. rm -rf conftest*
  7005. ;;
  7006. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7007. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7008. # Find out what ABI is being produced by ac_compile, and set linker
  7009. # options accordingly. Note that the listed cases only cover the
  7010. # situations where additional linker options are needed (such as when
  7011. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7012. # vice versa); the common cases where no linker options are needed do
  7013. # not appear in the list.
  7014. echo 'int i;' > conftest.$ac_ext
  7015. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7016. (eval $ac_compile) 2>&5
  7017. ac_status=$?
  7018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7019. test $ac_status = 0; }; then
  7020. case `/usr/bin/file conftest.o` in
  7021. *32-bit*)
  7022. case $host in
  7023. x86_64-*kfreebsd*-gnu)
  7024. LD="${LD-ld} -m elf_i386_fbsd"
  7025. ;;
  7026. x86_64-*linux*)
  7027. case `/usr/bin/file conftest.o` in
  7028. *x86-64*)
  7029. LD="${LD-ld} -m elf32_x86_64"
  7030. ;;
  7031. *)
  7032. LD="${LD-ld} -m elf_i386"
  7033. ;;
  7034. esac
  7035. ;;
  7036. powerpc64le-*linux*)
  7037. LD="${LD-ld} -m elf32lppclinux"
  7038. ;;
  7039. powerpc64-*linux*)
  7040. LD="${LD-ld} -m elf32ppclinux"
  7041. ;;
  7042. s390x-*linux*)
  7043. LD="${LD-ld} -m elf_s390"
  7044. ;;
  7045. sparc64-*linux*)
  7046. LD="${LD-ld} -m elf32_sparc"
  7047. ;;
  7048. esac
  7049. ;;
  7050. *64-bit*)
  7051. case $host in
  7052. x86_64-*kfreebsd*-gnu)
  7053. LD="${LD-ld} -m elf_x86_64_fbsd"
  7054. ;;
  7055. x86_64-*linux*)
  7056. LD="${LD-ld} -m elf_x86_64"
  7057. ;;
  7058. powerpcle-*linux*)
  7059. LD="${LD-ld} -m elf64lppc"
  7060. ;;
  7061. powerpc-*linux*)
  7062. LD="${LD-ld} -m elf64ppc"
  7063. ;;
  7064. s390*-*linux*|s390*-*tpf*)
  7065. LD="${LD-ld} -m elf64_s390"
  7066. ;;
  7067. sparc*-*linux*)
  7068. LD="${LD-ld} -m elf64_sparc"
  7069. ;;
  7070. esac
  7071. ;;
  7072. esac
  7073. fi
  7074. rm -rf conftest*
  7075. ;;
  7076. *-*-sco3.2v5*)
  7077. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7078. SAVE_CFLAGS=$CFLAGS
  7079. CFLAGS="$CFLAGS -belf"
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7081. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7082. if ${lt_cv_cc_needs_belf+:} false; then :
  7083. $as_echo_n "(cached) " >&6
  7084. else
  7085. ac_ext=c
  7086. ac_cpp='$CPP $CPPFLAGS'
  7087. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7088. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7089. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7091. /* end confdefs.h. */
  7092. int
  7093. main ()
  7094. {
  7095. ;
  7096. return 0;
  7097. }
  7098. _ACEOF
  7099. if ac_fn_c_try_link "$LINENO"; then :
  7100. lt_cv_cc_needs_belf=yes
  7101. else
  7102. lt_cv_cc_needs_belf=no
  7103. fi
  7104. rm -f core conftest.err conftest.$ac_objext \
  7105. conftest$ac_exeext conftest.$ac_ext
  7106. ac_ext=c
  7107. ac_cpp='$CPP $CPPFLAGS'
  7108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7111. fi
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7113. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7114. if test yes != "$lt_cv_cc_needs_belf"; then
  7115. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7116. CFLAGS=$SAVE_CFLAGS
  7117. fi
  7118. ;;
  7119. *-*solaris*)
  7120. # Find out what ABI is being produced by ac_compile, and set linker
  7121. # options accordingly.
  7122. echo 'int i;' > conftest.$ac_ext
  7123. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7124. (eval $ac_compile) 2>&5
  7125. ac_status=$?
  7126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7127. test $ac_status = 0; }; then
  7128. case `/usr/bin/file conftest.o` in
  7129. *64-bit*)
  7130. case $lt_cv_prog_gnu_ld in
  7131. yes*)
  7132. case $host in
  7133. i?86-*-solaris*|x86_64-*-solaris*)
  7134. LD="${LD-ld} -m elf_x86_64"
  7135. ;;
  7136. sparc*-*-solaris*)
  7137. LD="${LD-ld} -m elf64_sparc"
  7138. ;;
  7139. esac
  7140. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7141. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7142. LD=${LD-ld}_sol2
  7143. fi
  7144. ;;
  7145. *)
  7146. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7147. LD="${LD-ld} -64"
  7148. fi
  7149. ;;
  7150. esac
  7151. ;;
  7152. esac
  7153. fi
  7154. rm -rf conftest*
  7155. ;;
  7156. esac
  7157. need_locks=$enable_libtool_lock
  7158. if test -n "$ac_tool_prefix"; then
  7159. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7160. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7162. $as_echo_n "checking for $ac_word... " >&6; }
  7163. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. if test -n "$MANIFEST_TOOL"; then
  7167. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7168. else
  7169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7170. for as_dir in $PATH
  7171. do
  7172. IFS=$as_save_IFS
  7173. test -z "$as_dir" && as_dir=.
  7174. for ac_exec_ext in '' $ac_executable_extensions; do
  7175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7176. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7178. break 2
  7179. fi
  7180. done
  7181. done
  7182. IFS=$as_save_IFS
  7183. fi
  7184. fi
  7185. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7186. if test -n "$MANIFEST_TOOL"; then
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7188. $as_echo "$MANIFEST_TOOL" >&6; }
  7189. else
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7191. $as_echo "no" >&6; }
  7192. fi
  7193. fi
  7194. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7195. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7196. # Extract the first word of "mt", so it can be a program name with args.
  7197. set dummy mt; ac_word=$2
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7199. $as_echo_n "checking for $ac_word... " >&6; }
  7200. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7201. $as_echo_n "(cached) " >&6
  7202. else
  7203. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7204. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7205. else
  7206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7207. for as_dir in $PATH
  7208. do
  7209. IFS=$as_save_IFS
  7210. test -z "$as_dir" && as_dir=.
  7211. for ac_exec_ext in '' $ac_executable_extensions; do
  7212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7213. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7215. break 2
  7216. fi
  7217. done
  7218. done
  7219. IFS=$as_save_IFS
  7220. fi
  7221. fi
  7222. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7223. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7225. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7226. else
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7228. $as_echo "no" >&6; }
  7229. fi
  7230. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7231. MANIFEST_TOOL=":"
  7232. else
  7233. case $cross_compiling:$ac_tool_warned in
  7234. yes:)
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7237. ac_tool_warned=yes ;;
  7238. esac
  7239. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7240. fi
  7241. else
  7242. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7243. fi
  7244. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7246. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7247. if ${lt_cv_path_mainfest_tool+:} false; then :
  7248. $as_echo_n "(cached) " >&6
  7249. else
  7250. lt_cv_path_mainfest_tool=no
  7251. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7252. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7253. cat conftest.err >&5
  7254. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7255. lt_cv_path_mainfest_tool=yes
  7256. fi
  7257. rm -f conftest*
  7258. fi
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7260. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7261. if test yes != "$lt_cv_path_mainfest_tool"; then
  7262. MANIFEST_TOOL=:
  7263. fi
  7264. case $host_os in
  7265. rhapsody* | darwin*)
  7266. if test -n "$ac_tool_prefix"; then
  7267. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7268. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. $as_echo_n "checking for $ac_word... " >&6; }
  7271. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. if test -n "$DSYMUTIL"; then
  7275. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7276. else
  7277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278. for as_dir in $PATH
  7279. do
  7280. IFS=$as_save_IFS
  7281. test -z "$as_dir" && as_dir=.
  7282. for ac_exec_ext in '' $ac_executable_extensions; do
  7283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7284. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7286. break 2
  7287. fi
  7288. done
  7289. done
  7290. IFS=$as_save_IFS
  7291. fi
  7292. fi
  7293. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7294. if test -n "$DSYMUTIL"; then
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7296. $as_echo "$DSYMUTIL" >&6; }
  7297. else
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7299. $as_echo "no" >&6; }
  7300. fi
  7301. fi
  7302. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7303. ac_ct_DSYMUTIL=$DSYMUTIL
  7304. # Extract the first word of "dsymutil", so it can be a program name with args.
  7305. set dummy dsymutil; ac_word=$2
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7307. $as_echo_n "checking for $ac_word... " >&6; }
  7308. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7309. $as_echo_n "(cached) " >&6
  7310. else
  7311. if test -n "$ac_ct_DSYMUTIL"; then
  7312. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7313. else
  7314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7315. for as_dir in $PATH
  7316. do
  7317. IFS=$as_save_IFS
  7318. test -z "$as_dir" && as_dir=.
  7319. for ac_exec_ext in '' $ac_executable_extensions; do
  7320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7321. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7323. break 2
  7324. fi
  7325. done
  7326. done
  7327. IFS=$as_save_IFS
  7328. fi
  7329. fi
  7330. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7331. if test -n "$ac_ct_DSYMUTIL"; then
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7333. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7334. else
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7336. $as_echo "no" >&6; }
  7337. fi
  7338. if test "x$ac_ct_DSYMUTIL" = x; then
  7339. DSYMUTIL=":"
  7340. else
  7341. case $cross_compiling:$ac_tool_warned in
  7342. yes:)
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7345. ac_tool_warned=yes ;;
  7346. esac
  7347. DSYMUTIL=$ac_ct_DSYMUTIL
  7348. fi
  7349. else
  7350. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7351. fi
  7352. if test -n "$ac_tool_prefix"; then
  7353. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7354. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7356. $as_echo_n "checking for $ac_word... " >&6; }
  7357. if ${ac_cv_prog_NMEDIT+:} false; then :
  7358. $as_echo_n "(cached) " >&6
  7359. else
  7360. if test -n "$NMEDIT"; then
  7361. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7362. else
  7363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7364. for as_dir in $PATH
  7365. do
  7366. IFS=$as_save_IFS
  7367. test -z "$as_dir" && as_dir=.
  7368. for ac_exec_ext in '' $ac_executable_extensions; do
  7369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7370. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7372. break 2
  7373. fi
  7374. done
  7375. done
  7376. IFS=$as_save_IFS
  7377. fi
  7378. fi
  7379. NMEDIT=$ac_cv_prog_NMEDIT
  7380. if test -n "$NMEDIT"; then
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7382. $as_echo "$NMEDIT" >&6; }
  7383. else
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7385. $as_echo "no" >&6; }
  7386. fi
  7387. fi
  7388. if test -z "$ac_cv_prog_NMEDIT"; then
  7389. ac_ct_NMEDIT=$NMEDIT
  7390. # Extract the first word of "nmedit", so it can be a program name with args.
  7391. set dummy nmedit; ac_word=$2
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7393. $as_echo_n "checking for $ac_word... " >&6; }
  7394. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7395. $as_echo_n "(cached) " >&6
  7396. else
  7397. if test -n "$ac_ct_NMEDIT"; then
  7398. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7399. else
  7400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7401. for as_dir in $PATH
  7402. do
  7403. IFS=$as_save_IFS
  7404. test -z "$as_dir" && as_dir=.
  7405. for ac_exec_ext in '' $ac_executable_extensions; do
  7406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7407. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7409. break 2
  7410. fi
  7411. done
  7412. done
  7413. IFS=$as_save_IFS
  7414. fi
  7415. fi
  7416. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7417. if test -n "$ac_ct_NMEDIT"; then
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7419. $as_echo "$ac_ct_NMEDIT" >&6; }
  7420. else
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7422. $as_echo "no" >&6; }
  7423. fi
  7424. if test "x$ac_ct_NMEDIT" = x; then
  7425. NMEDIT=":"
  7426. else
  7427. case $cross_compiling:$ac_tool_warned in
  7428. yes:)
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7430. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7431. ac_tool_warned=yes ;;
  7432. esac
  7433. NMEDIT=$ac_ct_NMEDIT
  7434. fi
  7435. else
  7436. NMEDIT="$ac_cv_prog_NMEDIT"
  7437. fi
  7438. if test -n "$ac_tool_prefix"; then
  7439. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7440. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7442. $as_echo_n "checking for $ac_word... " >&6; }
  7443. if ${ac_cv_prog_LIPO+:} false; then :
  7444. $as_echo_n "(cached) " >&6
  7445. else
  7446. if test -n "$LIPO"; then
  7447. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7448. else
  7449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7450. for as_dir in $PATH
  7451. do
  7452. IFS=$as_save_IFS
  7453. test -z "$as_dir" && as_dir=.
  7454. for ac_exec_ext in '' $ac_executable_extensions; do
  7455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7456. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7458. break 2
  7459. fi
  7460. done
  7461. done
  7462. IFS=$as_save_IFS
  7463. fi
  7464. fi
  7465. LIPO=$ac_cv_prog_LIPO
  7466. if test -n "$LIPO"; then
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7468. $as_echo "$LIPO" >&6; }
  7469. else
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7471. $as_echo "no" >&6; }
  7472. fi
  7473. fi
  7474. if test -z "$ac_cv_prog_LIPO"; then
  7475. ac_ct_LIPO=$LIPO
  7476. # Extract the first word of "lipo", so it can be a program name with args.
  7477. set dummy lipo; ac_word=$2
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7479. $as_echo_n "checking for $ac_word... " >&6; }
  7480. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7481. $as_echo_n "(cached) " >&6
  7482. else
  7483. if test -n "$ac_ct_LIPO"; then
  7484. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7485. else
  7486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7487. for as_dir in $PATH
  7488. do
  7489. IFS=$as_save_IFS
  7490. test -z "$as_dir" && as_dir=.
  7491. for ac_exec_ext in '' $ac_executable_extensions; do
  7492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7493. ac_cv_prog_ac_ct_LIPO="lipo"
  7494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7495. break 2
  7496. fi
  7497. done
  7498. done
  7499. IFS=$as_save_IFS
  7500. fi
  7501. fi
  7502. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7503. if test -n "$ac_ct_LIPO"; then
  7504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7505. $as_echo "$ac_ct_LIPO" >&6; }
  7506. else
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7508. $as_echo "no" >&6; }
  7509. fi
  7510. if test "x$ac_ct_LIPO" = x; then
  7511. LIPO=":"
  7512. else
  7513. case $cross_compiling:$ac_tool_warned in
  7514. yes:)
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7516. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7517. ac_tool_warned=yes ;;
  7518. esac
  7519. LIPO=$ac_ct_LIPO
  7520. fi
  7521. else
  7522. LIPO="$ac_cv_prog_LIPO"
  7523. fi
  7524. if test -n "$ac_tool_prefix"; then
  7525. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7526. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7528. $as_echo_n "checking for $ac_word... " >&6; }
  7529. if ${ac_cv_prog_OTOOL+:} false; then :
  7530. $as_echo_n "(cached) " >&6
  7531. else
  7532. if test -n "$OTOOL"; then
  7533. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7534. else
  7535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7536. for as_dir in $PATH
  7537. do
  7538. IFS=$as_save_IFS
  7539. test -z "$as_dir" && as_dir=.
  7540. for ac_exec_ext in '' $ac_executable_extensions; do
  7541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7542. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7544. break 2
  7545. fi
  7546. done
  7547. done
  7548. IFS=$as_save_IFS
  7549. fi
  7550. fi
  7551. OTOOL=$ac_cv_prog_OTOOL
  7552. if test -n "$OTOOL"; then
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7554. $as_echo "$OTOOL" >&6; }
  7555. else
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7557. $as_echo "no" >&6; }
  7558. fi
  7559. fi
  7560. if test -z "$ac_cv_prog_OTOOL"; then
  7561. ac_ct_OTOOL=$OTOOL
  7562. # Extract the first word of "otool", so it can be a program name with args.
  7563. set dummy otool; ac_word=$2
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7565. $as_echo_n "checking for $ac_word... " >&6; }
  7566. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7567. $as_echo_n "(cached) " >&6
  7568. else
  7569. if test -n "$ac_ct_OTOOL"; then
  7570. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7571. else
  7572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7573. for as_dir in $PATH
  7574. do
  7575. IFS=$as_save_IFS
  7576. test -z "$as_dir" && as_dir=.
  7577. for ac_exec_ext in '' $ac_executable_extensions; do
  7578. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7579. ac_cv_prog_ac_ct_OTOOL="otool"
  7580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7581. break 2
  7582. fi
  7583. done
  7584. done
  7585. IFS=$as_save_IFS
  7586. fi
  7587. fi
  7588. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7589. if test -n "$ac_ct_OTOOL"; then
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7591. $as_echo "$ac_ct_OTOOL" >&6; }
  7592. else
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7594. $as_echo "no" >&6; }
  7595. fi
  7596. if test "x$ac_ct_OTOOL" = x; then
  7597. OTOOL=":"
  7598. else
  7599. case $cross_compiling:$ac_tool_warned in
  7600. yes:)
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7602. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7603. ac_tool_warned=yes ;;
  7604. esac
  7605. OTOOL=$ac_ct_OTOOL
  7606. fi
  7607. else
  7608. OTOOL="$ac_cv_prog_OTOOL"
  7609. fi
  7610. if test -n "$ac_tool_prefix"; then
  7611. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7612. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7614. $as_echo_n "checking for $ac_word... " >&6; }
  7615. if ${ac_cv_prog_OTOOL64+:} false; then :
  7616. $as_echo_n "(cached) " >&6
  7617. else
  7618. if test -n "$OTOOL64"; then
  7619. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7620. else
  7621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7622. for as_dir in $PATH
  7623. do
  7624. IFS=$as_save_IFS
  7625. test -z "$as_dir" && as_dir=.
  7626. for ac_exec_ext in '' $ac_executable_extensions; do
  7627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7628. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7630. break 2
  7631. fi
  7632. done
  7633. done
  7634. IFS=$as_save_IFS
  7635. fi
  7636. fi
  7637. OTOOL64=$ac_cv_prog_OTOOL64
  7638. if test -n "$OTOOL64"; then
  7639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7640. $as_echo "$OTOOL64" >&6; }
  7641. else
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7643. $as_echo "no" >&6; }
  7644. fi
  7645. fi
  7646. if test -z "$ac_cv_prog_OTOOL64"; then
  7647. ac_ct_OTOOL64=$OTOOL64
  7648. # Extract the first word of "otool64", so it can be a program name with args.
  7649. set dummy otool64; ac_word=$2
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7651. $as_echo_n "checking for $ac_word... " >&6; }
  7652. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7653. $as_echo_n "(cached) " >&6
  7654. else
  7655. if test -n "$ac_ct_OTOOL64"; then
  7656. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7657. else
  7658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7659. for as_dir in $PATH
  7660. do
  7661. IFS=$as_save_IFS
  7662. test -z "$as_dir" && as_dir=.
  7663. for ac_exec_ext in '' $ac_executable_extensions; do
  7664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7665. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7667. break 2
  7668. fi
  7669. done
  7670. done
  7671. IFS=$as_save_IFS
  7672. fi
  7673. fi
  7674. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7675. if test -n "$ac_ct_OTOOL64"; then
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7677. $as_echo "$ac_ct_OTOOL64" >&6; }
  7678. else
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7680. $as_echo "no" >&6; }
  7681. fi
  7682. if test "x$ac_ct_OTOOL64" = x; then
  7683. OTOOL64=":"
  7684. else
  7685. case $cross_compiling:$ac_tool_warned in
  7686. yes:)
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7689. ac_tool_warned=yes ;;
  7690. esac
  7691. OTOOL64=$ac_ct_OTOOL64
  7692. fi
  7693. else
  7694. OTOOL64="$ac_cv_prog_OTOOL64"
  7695. fi
  7696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7697. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7698. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7699. $as_echo_n "(cached) " >&6
  7700. else
  7701. lt_cv_apple_cc_single_mod=no
  7702. if test -z "$LT_MULTI_MODULE"; then
  7703. # By default we will add the -single_module flag. You can override
  7704. # by either setting the environment variable LT_MULTI_MODULE
  7705. # non-empty at configure time, or by adding -multi_module to the
  7706. # link flags.
  7707. rm -rf libconftest.dylib*
  7708. echo "int foo(void){return 1;}" > conftest.c
  7709. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7710. -dynamiclib -Wl,-single_module conftest.c" >&5
  7711. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7712. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7713. _lt_result=$?
  7714. # If there is a non-empty error log, and "single_module"
  7715. # appears in it, assume the flag caused a linker warning
  7716. if test -s conftest.err && $GREP single_module conftest.err; then
  7717. cat conftest.err >&5
  7718. # Otherwise, if the output was created with a 0 exit code from
  7719. # the compiler, it worked.
  7720. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7721. lt_cv_apple_cc_single_mod=yes
  7722. else
  7723. cat conftest.err >&5
  7724. fi
  7725. rm -rf libconftest.dylib*
  7726. rm -f conftest.*
  7727. fi
  7728. fi
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7730. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7732. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7733. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7734. $as_echo_n "(cached) " >&6
  7735. else
  7736. lt_cv_ld_exported_symbols_list=no
  7737. save_LDFLAGS=$LDFLAGS
  7738. echo "_main" > conftest.sym
  7739. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7741. /* end confdefs.h. */
  7742. int
  7743. main ()
  7744. {
  7745. ;
  7746. return 0;
  7747. }
  7748. _ACEOF
  7749. if ac_fn_c_try_link "$LINENO"; then :
  7750. lt_cv_ld_exported_symbols_list=yes
  7751. else
  7752. lt_cv_ld_exported_symbols_list=no
  7753. fi
  7754. rm -f core conftest.err conftest.$ac_objext \
  7755. conftest$ac_exeext conftest.$ac_ext
  7756. LDFLAGS=$save_LDFLAGS
  7757. fi
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7759. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7761. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7762. if ${lt_cv_ld_force_load+:} false; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765. lt_cv_ld_force_load=no
  7766. cat > conftest.c << _LT_EOF
  7767. int forced_loaded() { return 2;}
  7768. _LT_EOF
  7769. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7770. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7771. echo "$AR cru libconftest.a conftest.o" >&5
  7772. $AR cru libconftest.a conftest.o 2>&5
  7773. echo "$RANLIB libconftest.a" >&5
  7774. $RANLIB libconftest.a 2>&5
  7775. cat > conftest.c << _LT_EOF
  7776. int main() { return 0;}
  7777. _LT_EOF
  7778. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7779. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7780. _lt_result=$?
  7781. if test -s conftest.err && $GREP force_load conftest.err; then
  7782. cat conftest.err >&5
  7783. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7784. lt_cv_ld_force_load=yes
  7785. else
  7786. cat conftest.err >&5
  7787. fi
  7788. rm -f conftest.err libconftest.a conftest conftest.c
  7789. rm -rf conftest.dSYM
  7790. fi
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7792. $as_echo "$lt_cv_ld_force_load" >&6; }
  7793. case $host_os in
  7794. rhapsody* | darwin1.[012])
  7795. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7796. darwin1.*)
  7797. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7798. darwin*) # darwin 5.x on
  7799. # if running on 10.5 or later, the deployment target defaults
  7800. # to the OS version, if on x86, and 10.4, the deployment
  7801. # target defaults to 10.4. Don't you love it?
  7802. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7803. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7804. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7805. 10.[012][,.]*)
  7806. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7807. 10.*)
  7808. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7809. esac
  7810. ;;
  7811. esac
  7812. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7813. _lt_dar_single_mod='$single_module'
  7814. fi
  7815. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7816. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7817. else
  7818. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7819. fi
  7820. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7821. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7822. else
  7823. _lt_dsymutil=
  7824. fi
  7825. ;;
  7826. esac
  7827. # func_munge_path_list VARIABLE PATH
  7828. # -----------------------------------
  7829. # VARIABLE is name of variable containing _space_ separated list of
  7830. # directories to be munged by the contents of PATH, which is string
  7831. # having a format:
  7832. # "DIR[:DIR]:"
  7833. # string "DIR[ DIR]" will be prepended to VARIABLE
  7834. # ":DIR[:DIR]"
  7835. # string "DIR[ DIR]" will be appended to VARIABLE
  7836. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7837. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7838. # "DIRA[ DIRA]" will be appended to VARIABLE
  7839. # "DIR[:DIR]"
  7840. # VARIABLE will be replaced by "DIR[ DIR]"
  7841. func_munge_path_list ()
  7842. {
  7843. case x$2 in
  7844. x)
  7845. ;;
  7846. *:)
  7847. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\"
  7848. ;;
  7849. x:*)
  7850. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7851. ;;
  7852. *::*)
  7853. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7854. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7855. ;;
  7856. *)
  7857. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7858. ;;
  7859. esac
  7860. }
  7861. ac_ext=c
  7862. ac_cpp='$CPP $CPPFLAGS'
  7863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7867. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7868. # On Suns, sometimes $CPP names a directory.
  7869. if test -n "$CPP" && test -d "$CPP"; then
  7870. CPP=
  7871. fi
  7872. if test -z "$CPP"; then
  7873. if ${ac_cv_prog_CPP+:} false; then :
  7874. $as_echo_n "(cached) " >&6
  7875. else
  7876. # Double quotes because CPP needs to be expanded
  7877. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7878. do
  7879. ac_preproc_ok=false
  7880. for ac_c_preproc_warn_flag in '' yes
  7881. do
  7882. # Use a header file that comes with gcc, so configuring glibc
  7883. # with a fresh cross-compiler works.
  7884. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7885. # <limits.h> exists even on freestanding compilers.
  7886. # On the NeXT, cc -E runs the code through the compiler's parser,
  7887. # not just through cpp. "Syntax error" is here to catch this case.
  7888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7889. /* end confdefs.h. */
  7890. #ifdef __STDC__
  7891. # include <limits.h>
  7892. #else
  7893. # include <assert.h>
  7894. #endif
  7895. Syntax error
  7896. _ACEOF
  7897. if ac_fn_c_try_cpp "$LINENO"; then :
  7898. else
  7899. # Broken: fails on valid input.
  7900. continue
  7901. fi
  7902. rm -f conftest.err conftest.i conftest.$ac_ext
  7903. # OK, works on sane cases. Now check whether nonexistent headers
  7904. # can be detected and how.
  7905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7906. /* end confdefs.h. */
  7907. #include <ac_nonexistent.h>
  7908. _ACEOF
  7909. if ac_fn_c_try_cpp "$LINENO"; then :
  7910. # Broken: success on invalid input.
  7911. continue
  7912. else
  7913. # Passes both tests.
  7914. ac_preproc_ok=:
  7915. break
  7916. fi
  7917. rm -f conftest.err conftest.i conftest.$ac_ext
  7918. done
  7919. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7920. rm -f conftest.i conftest.err conftest.$ac_ext
  7921. if $ac_preproc_ok; then :
  7922. break
  7923. fi
  7924. done
  7925. ac_cv_prog_CPP=$CPP
  7926. fi
  7927. CPP=$ac_cv_prog_CPP
  7928. else
  7929. ac_cv_prog_CPP=$CPP
  7930. fi
  7931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7932. $as_echo "$CPP" >&6; }
  7933. ac_preproc_ok=false
  7934. for ac_c_preproc_warn_flag in '' yes
  7935. do
  7936. # Use a header file that comes with gcc, so configuring glibc
  7937. # with a fresh cross-compiler works.
  7938. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7939. # <limits.h> exists even on freestanding compilers.
  7940. # On the NeXT, cc -E runs the code through the compiler's parser,
  7941. # not just through cpp. "Syntax error" is here to catch this case.
  7942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7943. /* end confdefs.h. */
  7944. #ifdef __STDC__
  7945. # include <limits.h>
  7946. #else
  7947. # include <assert.h>
  7948. #endif
  7949. Syntax error
  7950. _ACEOF
  7951. if ac_fn_c_try_cpp "$LINENO"; then :
  7952. else
  7953. # Broken: fails on valid input.
  7954. continue
  7955. fi
  7956. rm -f conftest.err conftest.i conftest.$ac_ext
  7957. # OK, works on sane cases. Now check whether nonexistent headers
  7958. # can be detected and how.
  7959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7960. /* end confdefs.h. */
  7961. #include <ac_nonexistent.h>
  7962. _ACEOF
  7963. if ac_fn_c_try_cpp "$LINENO"; then :
  7964. # Broken: success on invalid input.
  7965. continue
  7966. else
  7967. # Passes both tests.
  7968. ac_preproc_ok=:
  7969. break
  7970. fi
  7971. rm -f conftest.err conftest.i conftest.$ac_ext
  7972. done
  7973. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7974. rm -f conftest.i conftest.err conftest.$ac_ext
  7975. if $ac_preproc_ok; then :
  7976. else
  7977. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7978. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7979. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7980. See \`config.log' for more details" "$LINENO" 5; }
  7981. fi
  7982. ac_ext=c
  7983. ac_cpp='$CPP $CPPFLAGS'
  7984. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7985. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7988. $as_echo_n "checking for ANSI C header files... " >&6; }
  7989. if ${ac_cv_header_stdc+:} false; then :
  7990. $as_echo_n "(cached) " >&6
  7991. else
  7992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7993. /* end confdefs.h. */
  7994. #include <stdlib.h>
  7995. #include <stdarg.h>
  7996. #include <string.h>
  7997. #include <float.h>
  7998. int
  7999. main ()
  8000. {
  8001. ;
  8002. return 0;
  8003. }
  8004. _ACEOF
  8005. if ac_fn_c_try_compile "$LINENO"; then :
  8006. ac_cv_header_stdc=yes
  8007. else
  8008. ac_cv_header_stdc=no
  8009. fi
  8010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8011. if test $ac_cv_header_stdc = yes; then
  8012. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8014. /* end confdefs.h. */
  8015. #include <string.h>
  8016. _ACEOF
  8017. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8018. $EGREP "memchr" >/dev/null 2>&1; then :
  8019. else
  8020. ac_cv_header_stdc=no
  8021. fi
  8022. rm -f conftest*
  8023. fi
  8024. if test $ac_cv_header_stdc = yes; then
  8025. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8027. /* end confdefs.h. */
  8028. #include <stdlib.h>
  8029. _ACEOF
  8030. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8031. $EGREP "free" >/dev/null 2>&1; then :
  8032. else
  8033. ac_cv_header_stdc=no
  8034. fi
  8035. rm -f conftest*
  8036. fi
  8037. if test $ac_cv_header_stdc = yes; then
  8038. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8039. if test "$cross_compiling" = yes; then :
  8040. :
  8041. else
  8042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8043. /* end confdefs.h. */
  8044. #include <ctype.h>
  8045. #include <stdlib.h>
  8046. #if ((' ' & 0x0FF) == 0x020)
  8047. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8048. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8049. #else
  8050. # define ISLOWER(c) \
  8051. (('a' <= (c) && (c) <= 'i') \
  8052. || ('j' <= (c) && (c) <= 'r') \
  8053. || ('s' <= (c) && (c) <= 'z'))
  8054. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8055. #endif
  8056. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8057. int
  8058. main ()
  8059. {
  8060. int i;
  8061. for (i = 0; i < 256; i++)
  8062. if (XOR (islower (i), ISLOWER (i))
  8063. || toupper (i) != TOUPPER (i))
  8064. return 2;
  8065. return 0;
  8066. }
  8067. _ACEOF
  8068. if ac_fn_c_try_run "$LINENO"; then :
  8069. else
  8070. ac_cv_header_stdc=no
  8071. fi
  8072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8073. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8074. fi
  8075. fi
  8076. fi
  8077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8078. $as_echo "$ac_cv_header_stdc" >&6; }
  8079. if test $ac_cv_header_stdc = yes; then
  8080. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8081. fi
  8082. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8083. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8084. inttypes.h stdint.h unistd.h
  8085. do :
  8086. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8087. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8088. "
  8089. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8090. cat >>confdefs.h <<_ACEOF
  8091. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8092. _ACEOF
  8093. fi
  8094. done
  8095. for ac_header in dlfcn.h
  8096. do :
  8097. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8098. "
  8099. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8100. cat >>confdefs.h <<_ACEOF
  8101. #define HAVE_DLFCN_H 1
  8102. _ACEOF
  8103. fi
  8104. done
  8105. func_stripname_cnf ()
  8106. {
  8107. case $2 in
  8108. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  8109. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  8110. esac
  8111. } # func_stripname_cnf
  8112. # Set options
  8113. enable_dlopen=no
  8114. # Check whether --enable-shared was given.
  8115. if test "${enable_shared+set}" = set; then :
  8116. enableval=$enable_shared; p=${PACKAGE-default}
  8117. case $enableval in
  8118. yes) enable_shared=yes ;;
  8119. no) enable_shared=no ;;
  8120. *)
  8121. enable_shared=no
  8122. # Look at the argument we got. We use all the common list separators.
  8123. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8124. for pkg in $enableval; do
  8125. IFS=$lt_save_ifs
  8126. if test "X$pkg" = "X$p"; then
  8127. enable_shared=yes
  8128. fi
  8129. done
  8130. IFS=$lt_save_ifs
  8131. ;;
  8132. esac
  8133. else
  8134. enable_shared=yes
  8135. fi
  8136. # Check whether --enable-static was given.
  8137. if test "${enable_static+set}" = set; then :
  8138. enableval=$enable_static; p=${PACKAGE-default}
  8139. case $enableval in
  8140. yes) enable_static=yes ;;
  8141. no) enable_static=no ;;
  8142. *)
  8143. enable_static=no
  8144. # Look at the argument we got. We use all the common list separators.
  8145. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8146. for pkg in $enableval; do
  8147. IFS=$lt_save_ifs
  8148. if test "X$pkg" = "X$p"; then
  8149. enable_static=yes
  8150. fi
  8151. done
  8152. IFS=$lt_save_ifs
  8153. ;;
  8154. esac
  8155. else
  8156. enable_static=yes
  8157. fi
  8158. # Check whether --with-pic was given.
  8159. if test "${with_pic+set}" = set; then :
  8160. withval=$with_pic; lt_p=${PACKAGE-default}
  8161. case $withval in
  8162. yes|no) pic_mode=$withval ;;
  8163. *)
  8164. pic_mode=default
  8165. # Look at the argument we got. We use all the common list separators.
  8166. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8167. for lt_pkg in $withval; do
  8168. IFS=$lt_save_ifs
  8169. if test "X$lt_pkg" = "X$lt_p"; then
  8170. pic_mode=yes
  8171. fi
  8172. done
  8173. IFS=$lt_save_ifs
  8174. ;;
  8175. esac
  8176. else
  8177. pic_mode=default
  8178. fi
  8179. # Check whether --enable-fast-install was given.
  8180. if test "${enable_fast_install+set}" = set; then :
  8181. enableval=$enable_fast_install; p=${PACKAGE-default}
  8182. case $enableval in
  8183. yes) enable_fast_install=yes ;;
  8184. no) enable_fast_install=no ;;
  8185. *)
  8186. enable_fast_install=no
  8187. # Look at the argument we got. We use all the common list separators.
  8188. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8189. for pkg in $enableval; do
  8190. IFS=$lt_save_ifs
  8191. if test "X$pkg" = "X$p"; then
  8192. enable_fast_install=yes
  8193. fi
  8194. done
  8195. IFS=$lt_save_ifs
  8196. ;;
  8197. esac
  8198. else
  8199. enable_fast_install=yes
  8200. fi
  8201. shared_archive_member_spec=
  8202. case $host,$enable_shared in
  8203. power*-*-aix[5-9]*,yes)
  8204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8205. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8206. # Check whether --with-aix-soname was given.
  8207. if test "${with_aix_soname+set}" = set; then :
  8208. withval=$with_aix_soname; case $withval in
  8209. aix|svr4|both)
  8210. ;;
  8211. *)
  8212. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8213. ;;
  8214. esac
  8215. lt_cv_with_aix_soname=$with_aix_soname
  8216. else
  8217. if ${lt_cv_with_aix_soname+:} false; then :
  8218. $as_echo_n "(cached) " >&6
  8219. else
  8220. lt_cv_with_aix_soname=aix
  8221. fi
  8222. with_aix_soname=$lt_cv_with_aix_soname
  8223. fi
  8224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8225. $as_echo "$with_aix_soname" >&6; }
  8226. if test aix != "$with_aix_soname"; then
  8227. # For the AIX way of multilib, we name the shared archive member
  8228. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8229. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8230. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8231. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8232. if test 64 = "${OBJECT_MODE-32}"; then
  8233. shared_archive_member_spec=shr_64
  8234. else
  8235. shared_archive_member_spec=shr
  8236. fi
  8237. fi
  8238. ;;
  8239. *)
  8240. with_aix_soname=aix
  8241. ;;
  8242. esac
  8243. # This can be used to rebuild libtool when needed
  8244. LIBTOOL_DEPS=$ltmain
  8245. # Always use our own libtool.
  8246. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8247. test -z "$LN_S" && LN_S="ln -s"
  8248. if test -n "${ZSH_VERSION+set}"; then
  8249. setopt NO_GLOB_SUBST
  8250. fi
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8252. $as_echo_n "checking for objdir... " >&6; }
  8253. if ${lt_cv_objdir+:} false; then :
  8254. $as_echo_n "(cached) " >&6
  8255. else
  8256. rm -f .libs 2>/dev/null
  8257. mkdir .libs 2>/dev/null
  8258. if test -d .libs; then
  8259. lt_cv_objdir=.libs
  8260. else
  8261. # MS-DOS does not allow filenames that begin with a dot.
  8262. lt_cv_objdir=_libs
  8263. fi
  8264. rmdir .libs 2>/dev/null
  8265. fi
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8267. $as_echo "$lt_cv_objdir" >&6; }
  8268. objdir=$lt_cv_objdir
  8269. cat >>confdefs.h <<_ACEOF
  8270. #define LT_OBJDIR "$lt_cv_objdir/"
  8271. _ACEOF
  8272. case $host_os in
  8273. aix3*)
  8274. # AIX sometimes has problems with the GCC collect2 program. For some
  8275. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8276. # vanish in a puff of smoke.
  8277. if test set != "${COLLECT_NAMES+set}"; then
  8278. COLLECT_NAMES=
  8279. export COLLECT_NAMES
  8280. fi
  8281. ;;
  8282. esac
  8283. # Global variables:
  8284. ofile=libtool
  8285. can_build_shared=yes
  8286. # All known linkers require a '.a' archive for static linking (except MSVC,
  8287. # which needs '.lib').
  8288. libext=a
  8289. with_gnu_ld=$lt_cv_prog_gnu_ld
  8290. old_CC=$CC
  8291. old_CFLAGS=$CFLAGS
  8292. # Set sane defaults for various variables
  8293. test -z "$CC" && CC=cc
  8294. test -z "$LTCC" && LTCC=$CC
  8295. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8296. test -z "$LD" && LD=ld
  8297. test -z "$ac_objext" && ac_objext=o
  8298. func_cc_basename $compiler
  8299. cc_basename=$func_cc_basename_result
  8300. # Only perform the check for file, if the check method requires it
  8301. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8302. case $deplibs_check_method in
  8303. file_magic*)
  8304. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8306. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8307. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8308. $as_echo_n "(cached) " >&6
  8309. else
  8310. case $MAGIC_CMD in
  8311. [\\/*] | ?:[\\/]*)
  8312. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8313. ;;
  8314. *)
  8315. lt_save_MAGIC_CMD=$MAGIC_CMD
  8316. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8317. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8318. for ac_dir in $ac_dummy; do
  8319. IFS=$lt_save_ifs
  8320. test -z "$ac_dir" && ac_dir=.
  8321. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8322. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8323. if test -n "$file_magic_test_file"; then
  8324. case $deplibs_check_method in
  8325. "file_magic "*)
  8326. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8327. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8328. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8329. $EGREP "$file_magic_regex" > /dev/null; then
  8330. :
  8331. else
  8332. cat <<_LT_EOF 1>&2
  8333. *** Warning: the command libtool uses to detect shared libraries,
  8334. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8335. *** The result is that libtool may fail to recognize shared libraries
  8336. *** as such. This will affect the creation of libtool libraries that
  8337. *** depend on shared libraries, but programs linked with such libtool
  8338. *** libraries will work regardless of this problem. Nevertheless, you
  8339. *** may want to report the problem to your system manager and/or to
  8340. *** bug-libtool@gnu.org
  8341. _LT_EOF
  8342. fi ;;
  8343. esac
  8344. fi
  8345. break
  8346. fi
  8347. done
  8348. IFS=$lt_save_ifs
  8349. MAGIC_CMD=$lt_save_MAGIC_CMD
  8350. ;;
  8351. esac
  8352. fi
  8353. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8354. if test -n "$MAGIC_CMD"; then
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8356. $as_echo "$MAGIC_CMD" >&6; }
  8357. else
  8358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8359. $as_echo "no" >&6; }
  8360. fi
  8361. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8362. if test -n "$ac_tool_prefix"; then
  8363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8364. $as_echo_n "checking for file... " >&6; }
  8365. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8366. $as_echo_n "(cached) " >&6
  8367. else
  8368. case $MAGIC_CMD in
  8369. [\\/*] | ?:[\\/]*)
  8370. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8371. ;;
  8372. *)
  8373. lt_save_MAGIC_CMD=$MAGIC_CMD
  8374. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8375. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8376. for ac_dir in $ac_dummy; do
  8377. IFS=$lt_save_ifs
  8378. test -z "$ac_dir" && ac_dir=.
  8379. if test -f "$ac_dir/file"; then
  8380. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8381. if test -n "$file_magic_test_file"; then
  8382. case $deplibs_check_method in
  8383. "file_magic "*)
  8384. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8385. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8386. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8387. $EGREP "$file_magic_regex" > /dev/null; then
  8388. :
  8389. else
  8390. cat <<_LT_EOF 1>&2
  8391. *** Warning: the command libtool uses to detect shared libraries,
  8392. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8393. *** The result is that libtool may fail to recognize shared libraries
  8394. *** as such. This will affect the creation of libtool libraries that
  8395. *** depend on shared libraries, but programs linked with such libtool
  8396. *** libraries will work regardless of this problem. Nevertheless, you
  8397. *** may want to report the problem to your system manager and/or to
  8398. *** bug-libtool@gnu.org
  8399. _LT_EOF
  8400. fi ;;
  8401. esac
  8402. fi
  8403. break
  8404. fi
  8405. done
  8406. IFS=$lt_save_ifs
  8407. MAGIC_CMD=$lt_save_MAGIC_CMD
  8408. ;;
  8409. esac
  8410. fi
  8411. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8412. if test -n "$MAGIC_CMD"; then
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8414. $as_echo "$MAGIC_CMD" >&6; }
  8415. else
  8416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8417. $as_echo "no" >&6; }
  8418. fi
  8419. else
  8420. MAGIC_CMD=:
  8421. fi
  8422. fi
  8423. fi
  8424. ;;
  8425. esac
  8426. # Use C for the default configuration in the libtool script
  8427. lt_save_CC=$CC
  8428. ac_ext=c
  8429. ac_cpp='$CPP $CPPFLAGS'
  8430. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8431. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8432. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8433. # Source file extension for C test sources.
  8434. ac_ext=c
  8435. # Object file extension for compiled C test sources.
  8436. objext=o
  8437. objext=$objext
  8438. # Code to be used in simple compile tests
  8439. lt_simple_compile_test_code="int some_variable = 0;"
  8440. # Code to be used in simple link tests
  8441. lt_simple_link_test_code='int main(){return(0);}'
  8442. # If no C compiler was specified, use CC.
  8443. LTCC=${LTCC-"$CC"}
  8444. # If no C compiler flags were specified, use CFLAGS.
  8445. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8446. # Allow CC to be a program name with arguments.
  8447. compiler=$CC
  8448. # Save the default compiler, since it gets overwritten when the other
  8449. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8450. compiler_DEFAULT=$CC
  8451. # save warnings/boilerplate of simple test code
  8452. ac_outfile=conftest.$ac_objext
  8453. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8454. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8455. _lt_compiler_boilerplate=`cat conftest.err`
  8456. $RM conftest*
  8457. ac_outfile=conftest.$ac_objext
  8458. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8459. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8460. _lt_linker_boilerplate=`cat conftest.err`
  8461. $RM -r conftest*
  8462. ## CAVEAT EMPTOR:
  8463. ## There is no encapsulation within the following macros, do not change
  8464. ## the running order or otherwise move them around unless you know exactly
  8465. ## what you are doing...
  8466. if test -n "$compiler"; then
  8467. lt_prog_compiler_no_builtin_flag=
  8468. if test yes = "$GCC"; then
  8469. case $cc_basename in
  8470. nvcc*)
  8471. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8472. *)
  8473. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8474. esac
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8476. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8477. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8478. $as_echo_n "(cached) " >&6
  8479. else
  8480. lt_cv_prog_compiler_rtti_exceptions=no
  8481. ac_outfile=conftest.$ac_objext
  8482. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8483. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8484. # Insert the option either (1) after the last *FLAGS variable, or
  8485. # (2) before a word containing "conftest.", or (3) at the end.
  8486. # Note that $ac_compile itself does not contain backslashes and begins
  8487. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8488. # The option is referenced via a variable to avoid confusing sed.
  8489. lt_compile=`echo "$ac_compile" | $SED \
  8490. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8491. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8492. -e 's:$: $lt_compiler_flag:'`
  8493. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8494. (eval "$lt_compile" 2>conftest.err)
  8495. ac_status=$?
  8496. cat conftest.err >&5
  8497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8498. if (exit $ac_status) && test -s "$ac_outfile"; then
  8499. # The compiler can only warn and ignore the option if not recognized
  8500. # So say no if there are warnings other than the usual output.
  8501. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8502. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8503. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8504. lt_cv_prog_compiler_rtti_exceptions=yes
  8505. fi
  8506. fi
  8507. $RM conftest*
  8508. fi
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8510. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8511. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8512. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8513. else
  8514. :
  8515. fi
  8516. fi
  8517. lt_prog_compiler_wl=
  8518. lt_prog_compiler_pic=
  8519. lt_prog_compiler_static=
  8520. if test yes = "$GCC"; then
  8521. lt_prog_compiler_wl='-Wl,'
  8522. lt_prog_compiler_static='-static'
  8523. case $host_os in
  8524. aix*)
  8525. # All AIX code is PIC.
  8526. if test ia64 = "$host_cpu"; then
  8527. # AIX 5 now supports IA64 processor
  8528. lt_prog_compiler_static='-Bstatic'
  8529. fi
  8530. lt_prog_compiler_pic='-fPIC'
  8531. ;;
  8532. amigaos*)
  8533. case $host_cpu in
  8534. powerpc)
  8535. # see comment about AmigaOS4 .so support
  8536. lt_prog_compiler_pic='-fPIC'
  8537. ;;
  8538. m68k)
  8539. # FIXME: we need at least 68020 code to build shared libraries, but
  8540. # adding the '-m68020' flag to GCC prevents building anything better,
  8541. # like '-m68040'.
  8542. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8543. ;;
  8544. esac
  8545. ;;
  8546. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8547. # PIC is the default for these OSes.
  8548. ;;
  8549. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8550. # This hack is so that the source file can tell whether it is being
  8551. # built for inclusion in a dll (and should export symbols for example).
  8552. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8553. # (--disable-auto-import) libraries
  8554. lt_prog_compiler_pic='-DDLL_EXPORT'
  8555. case $host_os in
  8556. os2*)
  8557. lt_prog_compiler_static='$wl-static'
  8558. ;;
  8559. esac
  8560. ;;
  8561. darwin* | rhapsody*)
  8562. # PIC is the default on this platform
  8563. # Common symbols not allowed in MH_DYLIB files
  8564. lt_prog_compiler_pic='-fno-common'
  8565. ;;
  8566. haiku*)
  8567. # PIC is the default for Haiku.
  8568. # The "-static" flag exists, but is broken.
  8569. lt_prog_compiler_static=
  8570. ;;
  8571. hpux*)
  8572. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8573. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8574. # sets the default TLS model and affects inlining.
  8575. case $host_cpu in
  8576. hppa*64*)
  8577. # +Z the default
  8578. ;;
  8579. *)
  8580. lt_prog_compiler_pic='-fPIC'
  8581. ;;
  8582. esac
  8583. ;;
  8584. interix[3-9]*)
  8585. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8586. # Instead, we relocate shared libraries at runtime.
  8587. ;;
  8588. msdosdjgpp*)
  8589. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8590. # on systems that don't support them.
  8591. lt_prog_compiler_can_build_shared=no
  8592. enable_shared=no
  8593. ;;
  8594. *nto* | *qnx*)
  8595. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8596. # it will coredump.
  8597. lt_prog_compiler_pic='-fPIC -shared'
  8598. ;;
  8599. sysv4*MP*)
  8600. if test -d /usr/nec; then
  8601. lt_prog_compiler_pic=-Kconform_pic
  8602. fi
  8603. ;;
  8604. *)
  8605. lt_prog_compiler_pic='-fPIC'
  8606. ;;
  8607. esac
  8608. case $cc_basename in
  8609. nvcc*) # Cuda Compiler Driver 2.2
  8610. lt_prog_compiler_wl='-Xlinker '
  8611. if test -n "$lt_prog_compiler_pic"; then
  8612. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8613. fi
  8614. ;;
  8615. esac
  8616. else
  8617. # PORTME Check for flag to pass linker flags through the system compiler.
  8618. case $host_os in
  8619. aix*)
  8620. lt_prog_compiler_wl='-Wl,'
  8621. if test ia64 = "$host_cpu"; then
  8622. # AIX 5 now supports IA64 processor
  8623. lt_prog_compiler_static='-Bstatic'
  8624. else
  8625. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8626. fi
  8627. ;;
  8628. darwin* | rhapsody*)
  8629. # PIC is the default on this platform
  8630. # Common symbols not allowed in MH_DYLIB files
  8631. lt_prog_compiler_pic='-fno-common'
  8632. case $cc_basename in
  8633. nagfor*)
  8634. # NAG Fortran compiler
  8635. lt_prog_compiler_wl='-Wl,-Wl,,'
  8636. lt_prog_compiler_pic='-PIC'
  8637. lt_prog_compiler_static='-Bstatic'
  8638. ;;
  8639. esac
  8640. ;;
  8641. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8642. # This hack is so that the source file can tell whether it is being
  8643. # built for inclusion in a dll (and should export symbols for example).
  8644. lt_prog_compiler_pic='-DDLL_EXPORT'
  8645. case $host_os in
  8646. os2*)
  8647. lt_prog_compiler_static='$wl-static'
  8648. ;;
  8649. esac
  8650. ;;
  8651. hpux9* | hpux10* | hpux11*)
  8652. lt_prog_compiler_wl='-Wl,'
  8653. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8654. # not for PA HP-UX.
  8655. case $host_cpu in
  8656. hppa*64*|ia64*)
  8657. # +Z the default
  8658. ;;
  8659. *)
  8660. lt_prog_compiler_pic='+Z'
  8661. ;;
  8662. esac
  8663. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8664. lt_prog_compiler_static='$wl-a ${wl}archive'
  8665. ;;
  8666. irix5* | irix6* | nonstopux*)
  8667. lt_prog_compiler_wl='-Wl,'
  8668. # PIC (with -KPIC) is the default.
  8669. lt_prog_compiler_static='-non_shared'
  8670. ;;
  8671. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8672. case $cc_basename in
  8673. # old Intel for x86_64, which still supported -KPIC.
  8674. ecc*)
  8675. lt_prog_compiler_wl='-Wl,'
  8676. lt_prog_compiler_pic='-KPIC'
  8677. lt_prog_compiler_static='-static'
  8678. ;;
  8679. # icc used to be incompatible with GCC.
  8680. # ICC 10 doesn't accept -KPIC any more.
  8681. icc* | ifort*)
  8682. lt_prog_compiler_wl='-Wl,'
  8683. lt_prog_compiler_pic='-fPIC'
  8684. lt_prog_compiler_static='-static'
  8685. ;;
  8686. # Lahey Fortran 8.1.
  8687. lf95*)
  8688. lt_prog_compiler_wl='-Wl,'
  8689. lt_prog_compiler_pic='--shared'
  8690. lt_prog_compiler_static='--static'
  8691. ;;
  8692. nagfor*)
  8693. # NAG Fortran compiler
  8694. lt_prog_compiler_wl='-Wl,-Wl,,'
  8695. lt_prog_compiler_pic='-PIC'
  8696. lt_prog_compiler_static='-Bstatic'
  8697. ;;
  8698. tcc*)
  8699. # Fabrice Bellard et al's Tiny C Compiler
  8700. lt_prog_compiler_wl='-Wl,'
  8701. lt_prog_compiler_pic='-fPIC'
  8702. lt_prog_compiler_static='-static'
  8703. ;;
  8704. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8705. # Portland Group compilers (*not* the Pentium gcc compiler,
  8706. # which looks to be a dead project)
  8707. lt_prog_compiler_wl='-Wl,'
  8708. lt_prog_compiler_pic='-fpic'
  8709. lt_prog_compiler_static='-Bstatic'
  8710. ;;
  8711. ccc*)
  8712. lt_prog_compiler_wl='-Wl,'
  8713. # All Alpha code is PIC.
  8714. lt_prog_compiler_static='-non_shared'
  8715. ;;
  8716. xl* | bgxl* | bgf* | mpixl*)
  8717. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8718. lt_prog_compiler_wl='-Wl,'
  8719. lt_prog_compiler_pic='-qpic'
  8720. lt_prog_compiler_static='-qstaticlink'
  8721. ;;
  8722. *)
  8723. case `$CC -V 2>&1 | sed 5q` in
  8724. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8725. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8726. lt_prog_compiler_pic='-KPIC'
  8727. lt_prog_compiler_static='-Bstatic'
  8728. lt_prog_compiler_wl=''
  8729. ;;
  8730. *Sun\ F* | *Sun*Fortran*)
  8731. lt_prog_compiler_pic='-KPIC'
  8732. lt_prog_compiler_static='-Bstatic'
  8733. lt_prog_compiler_wl='-Qoption ld '
  8734. ;;
  8735. *Sun\ C*)
  8736. # Sun C 5.9
  8737. lt_prog_compiler_pic='-KPIC'
  8738. lt_prog_compiler_static='-Bstatic'
  8739. lt_prog_compiler_wl='-Wl,'
  8740. ;;
  8741. *Intel*\ [CF]*Compiler*)
  8742. lt_prog_compiler_wl='-Wl,'
  8743. lt_prog_compiler_pic='-fPIC'
  8744. lt_prog_compiler_static='-static'
  8745. ;;
  8746. *Portland\ Group*)
  8747. lt_prog_compiler_wl='-Wl,'
  8748. lt_prog_compiler_pic='-fpic'
  8749. lt_prog_compiler_static='-Bstatic'
  8750. ;;
  8751. esac
  8752. ;;
  8753. esac
  8754. ;;
  8755. newsos6)
  8756. lt_prog_compiler_pic='-KPIC'
  8757. lt_prog_compiler_static='-Bstatic'
  8758. ;;
  8759. *nto* | *qnx*)
  8760. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8761. # it will coredump.
  8762. lt_prog_compiler_pic='-fPIC -shared'
  8763. ;;
  8764. osf3* | osf4* | osf5*)
  8765. lt_prog_compiler_wl='-Wl,'
  8766. # All OSF/1 code is PIC.
  8767. lt_prog_compiler_static='-non_shared'
  8768. ;;
  8769. rdos*)
  8770. lt_prog_compiler_static='-non_shared'
  8771. ;;
  8772. solaris*)
  8773. lt_prog_compiler_pic='-KPIC'
  8774. lt_prog_compiler_static='-Bstatic'
  8775. case $cc_basename in
  8776. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8777. lt_prog_compiler_wl='-Qoption ld ';;
  8778. *)
  8779. lt_prog_compiler_wl='-Wl,';;
  8780. esac
  8781. ;;
  8782. sunos4*)
  8783. lt_prog_compiler_wl='-Qoption ld '
  8784. lt_prog_compiler_pic='-PIC'
  8785. lt_prog_compiler_static='-Bstatic'
  8786. ;;
  8787. sysv4 | sysv4.2uw2* | sysv4.3*)
  8788. lt_prog_compiler_wl='-Wl,'
  8789. lt_prog_compiler_pic='-KPIC'
  8790. lt_prog_compiler_static='-Bstatic'
  8791. ;;
  8792. sysv4*MP*)
  8793. if test -d /usr/nec; then
  8794. lt_prog_compiler_pic='-Kconform_pic'
  8795. lt_prog_compiler_static='-Bstatic'
  8796. fi
  8797. ;;
  8798. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8799. lt_prog_compiler_wl='-Wl,'
  8800. lt_prog_compiler_pic='-KPIC'
  8801. lt_prog_compiler_static='-Bstatic'
  8802. ;;
  8803. unicos*)
  8804. lt_prog_compiler_wl='-Wl,'
  8805. lt_prog_compiler_can_build_shared=no
  8806. ;;
  8807. uts4*)
  8808. lt_prog_compiler_pic='-pic'
  8809. lt_prog_compiler_static='-Bstatic'
  8810. ;;
  8811. *)
  8812. lt_prog_compiler_can_build_shared=no
  8813. ;;
  8814. esac
  8815. fi
  8816. case $host_os in
  8817. # For platforms that do not support PIC, -DPIC is meaningless:
  8818. *djgpp*)
  8819. lt_prog_compiler_pic=
  8820. ;;
  8821. *)
  8822. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8823. ;;
  8824. esac
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8826. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8827. if ${lt_cv_prog_compiler_pic+:} false; then :
  8828. $as_echo_n "(cached) " >&6
  8829. else
  8830. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8831. fi
  8832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8833. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8834. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8835. #
  8836. # Check to make sure the PIC flag actually works.
  8837. #
  8838. if test -n "$lt_prog_compiler_pic"; then
  8839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8840. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8841. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8842. $as_echo_n "(cached) " >&6
  8843. else
  8844. lt_cv_prog_compiler_pic_works=no
  8845. ac_outfile=conftest.$ac_objext
  8846. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8847. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8848. # Insert the option either (1) after the last *FLAGS variable, or
  8849. # (2) before a word containing "conftest.", or (3) at the end.
  8850. # Note that $ac_compile itself does not contain backslashes and begins
  8851. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8852. # The option is referenced via a variable to avoid confusing sed.
  8853. lt_compile=`echo "$ac_compile" | $SED \
  8854. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8855. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8856. -e 's:$: $lt_compiler_flag:'`
  8857. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8858. (eval "$lt_compile" 2>conftest.err)
  8859. ac_status=$?
  8860. cat conftest.err >&5
  8861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8862. if (exit $ac_status) && test -s "$ac_outfile"; then
  8863. # The compiler can only warn and ignore the option if not recognized
  8864. # So say no if there are warnings other than the usual output.
  8865. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8866. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8867. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8868. lt_cv_prog_compiler_pic_works=yes
  8869. fi
  8870. fi
  8871. $RM conftest*
  8872. fi
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8874. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8875. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8876. case $lt_prog_compiler_pic in
  8877. "" | " "*) ;;
  8878. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8879. esac
  8880. else
  8881. lt_prog_compiler_pic=
  8882. lt_prog_compiler_can_build_shared=no
  8883. fi
  8884. fi
  8885. #
  8886. # Check to make sure the static flag actually works.
  8887. #
  8888. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8890. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8891. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8892. $as_echo_n "(cached) " >&6
  8893. else
  8894. lt_cv_prog_compiler_static_works=no
  8895. save_LDFLAGS=$LDFLAGS
  8896. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8897. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8898. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8899. # The linker can only warn and ignore the option if not recognized
  8900. # So say no if there are warnings
  8901. if test -s conftest.err; then
  8902. # Append any errors to the config.log.
  8903. cat conftest.err 1>&5
  8904. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8905. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8906. if diff conftest.exp conftest.er2 >/dev/null; then
  8907. lt_cv_prog_compiler_static_works=yes
  8908. fi
  8909. else
  8910. lt_cv_prog_compiler_static_works=yes
  8911. fi
  8912. fi
  8913. $RM -r conftest*
  8914. LDFLAGS=$save_LDFLAGS
  8915. fi
  8916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8917. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8918. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8919. :
  8920. else
  8921. lt_prog_compiler_static=
  8922. fi
  8923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8924. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8925. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8926. $as_echo_n "(cached) " >&6
  8927. else
  8928. lt_cv_prog_compiler_c_o=no
  8929. $RM -r conftest 2>/dev/null
  8930. mkdir conftest
  8931. cd conftest
  8932. mkdir out
  8933. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8934. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8935. # Insert the option either (1) after the last *FLAGS variable, or
  8936. # (2) before a word containing "conftest.", or (3) at the end.
  8937. # Note that $ac_compile itself does not contain backslashes and begins
  8938. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8939. lt_compile=`echo "$ac_compile" | $SED \
  8940. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8941. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8942. -e 's:$: $lt_compiler_flag:'`
  8943. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8944. (eval "$lt_compile" 2>out/conftest.err)
  8945. ac_status=$?
  8946. cat out/conftest.err >&5
  8947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8949. then
  8950. # The compiler can only warn and ignore the option if not recognized
  8951. # So say no if there are warnings
  8952. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8953. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8954. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8955. lt_cv_prog_compiler_c_o=yes
  8956. fi
  8957. fi
  8958. chmod u+w . 2>&5
  8959. $RM conftest*
  8960. # SGI C++ compiler will create directory out/ii_files/ for
  8961. # template instantiation
  8962. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8963. $RM out/* && rmdir out
  8964. cd ..
  8965. $RM -r conftest
  8966. $RM conftest*
  8967. fi
  8968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8969. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8971. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8972. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8973. $as_echo_n "(cached) " >&6
  8974. else
  8975. lt_cv_prog_compiler_c_o=no
  8976. $RM -r conftest 2>/dev/null
  8977. mkdir conftest
  8978. cd conftest
  8979. mkdir out
  8980. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8981. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8982. # Insert the option either (1) after the last *FLAGS variable, or
  8983. # (2) before a word containing "conftest.", or (3) at the end.
  8984. # Note that $ac_compile itself does not contain backslashes and begins
  8985. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8986. lt_compile=`echo "$ac_compile" | $SED \
  8987. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8988. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8989. -e 's:$: $lt_compiler_flag:'`
  8990. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8991. (eval "$lt_compile" 2>out/conftest.err)
  8992. ac_status=$?
  8993. cat out/conftest.err >&5
  8994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8995. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8996. then
  8997. # The compiler can only warn and ignore the option if not recognized
  8998. # So say no if there are warnings
  8999. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9000. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9001. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9002. lt_cv_prog_compiler_c_o=yes
  9003. fi
  9004. fi
  9005. chmod u+w . 2>&5
  9006. $RM conftest*
  9007. # SGI C++ compiler will create directory out/ii_files/ for
  9008. # template instantiation
  9009. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9010. $RM out/* && rmdir out
  9011. cd ..
  9012. $RM -r conftest
  9013. $RM conftest*
  9014. fi
  9015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9016. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9017. hard_links=nottested
  9018. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9019. # do not overwrite the value of need_locks provided by the user
  9020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9021. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9022. hard_links=yes
  9023. $RM conftest*
  9024. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9025. touch conftest.a
  9026. ln conftest.a conftest.b 2>&5 || hard_links=no
  9027. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9029. $as_echo "$hard_links" >&6; }
  9030. if test no = "$hard_links"; then
  9031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9032. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9033. need_locks=warn
  9034. fi
  9035. else
  9036. need_locks=no
  9037. fi
  9038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9039. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9040. runpath_var=
  9041. allow_undefined_flag=
  9042. always_export_symbols=no
  9043. archive_cmds=
  9044. archive_expsym_cmds=
  9045. compiler_needs_object=no
  9046. enable_shared_with_static_runtimes=no
  9047. export_dynamic_flag_spec=
  9048. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9049. hardcode_automatic=no
  9050. hardcode_direct=no
  9051. hardcode_direct_absolute=no
  9052. hardcode_libdir_flag_spec=
  9053. hardcode_libdir_separator=
  9054. hardcode_minus_L=no
  9055. hardcode_shlibpath_var=unsupported
  9056. inherit_rpath=no
  9057. link_all_deplibs=unknown
  9058. module_cmds=
  9059. module_expsym_cmds=
  9060. old_archive_from_new_cmds=
  9061. old_archive_from_expsyms_cmds=
  9062. thread_safe_flag_spec=
  9063. whole_archive_flag_spec=
  9064. # include_expsyms should be a list of space-separated symbols to be *always*
  9065. # included in the symbol list
  9066. include_expsyms=
  9067. # exclude_expsyms can be an extended regexp of symbols to exclude
  9068. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9069. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9070. # as well as any symbol that contains 'd'.
  9071. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9072. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9073. # platforms (ab)use it in PIC code, but their linkers get confused if
  9074. # the symbol is explicitly referenced. Since portable code cannot
  9075. # rely on this symbol name, it's probably fine to never include it in
  9076. # preloaded symbol tables.
  9077. # Exclude shared library initialization/finalization symbols.
  9078. extract_expsyms_cmds=
  9079. case $host_os in
  9080. cygwin* | mingw* | pw32* | cegcc*)
  9081. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9082. # When not using gcc, we currently assume that we are using
  9083. # Microsoft Visual C++.
  9084. if test yes != "$GCC"; then
  9085. with_gnu_ld=no
  9086. fi
  9087. ;;
  9088. interix*)
  9089. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9090. with_gnu_ld=yes
  9091. ;;
  9092. openbsd* | bitrig*)
  9093. with_gnu_ld=no
  9094. ;;
  9095. esac
  9096. ld_shlibs=yes
  9097. # On some targets, GNU ld is compatible enough with the native linker
  9098. # that we're better off using the native interface for both.
  9099. lt_use_gnu_ld_interface=no
  9100. if test yes = "$with_gnu_ld"; then
  9101. case $host_os in
  9102. aix*)
  9103. # The AIX port of GNU ld has always aspired to compatibility
  9104. # with the native linker. However, as the warning in the GNU ld
  9105. # block says, versions before 2.19.5* couldn't really create working
  9106. # shared libraries, regardless of the interface used.
  9107. case `$LD -v 2>&1` in
  9108. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9109. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9110. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9111. *)
  9112. lt_use_gnu_ld_interface=yes
  9113. ;;
  9114. esac
  9115. ;;
  9116. *)
  9117. lt_use_gnu_ld_interface=yes
  9118. ;;
  9119. esac
  9120. fi
  9121. if test yes = "$lt_use_gnu_ld_interface"; then
  9122. # If archive_cmds runs LD, not CC, wlarc should be empty
  9123. wlarc='$wl'
  9124. # Set some defaults for GNU ld with shared library support. These
  9125. # are reset later if shared libraries are not supported. Putting them
  9126. # here allows them to be overridden if necessary.
  9127. runpath_var=LD_RUN_PATH
  9128. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9129. export_dynamic_flag_spec='$wl--export-dynamic'
  9130. # ancient GNU ld didn't support --whole-archive et. al.
  9131. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9132. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9133. else
  9134. whole_archive_flag_spec=
  9135. fi
  9136. supports_anon_versioning=no
  9137. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9138. *GNU\ gold*) supports_anon_versioning=yes ;;
  9139. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9140. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9141. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9142. *\ 2.11.*) ;; # other 2.11 versions
  9143. *) supports_anon_versioning=yes ;;
  9144. esac
  9145. # See if GNU ld supports shared libraries.
  9146. case $host_os in
  9147. aix[3-9]*)
  9148. # On AIX/PPC, the GNU linker is very broken
  9149. if test ia64 != "$host_cpu"; then
  9150. ld_shlibs=no
  9151. cat <<_LT_EOF 1>&2
  9152. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9153. *** to be unable to reliably create shared libraries on AIX.
  9154. *** Therefore, libtool is disabling shared libraries support. If you
  9155. *** really care for shared libraries, you may want to install binutils
  9156. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9157. *** You will then need to restart the configuration process.
  9158. _LT_EOF
  9159. fi
  9160. ;;
  9161. amigaos*)
  9162. case $host_cpu in
  9163. powerpc)
  9164. # see comment about AmigaOS4 .so support
  9165. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9166. archive_expsym_cmds=''
  9167. ;;
  9168. m68k)
  9169. 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)'
  9170. hardcode_libdir_flag_spec='-L$libdir'
  9171. hardcode_minus_L=yes
  9172. ;;
  9173. esac
  9174. ;;
  9175. beos*)
  9176. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9177. allow_undefined_flag=unsupported
  9178. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9179. # support --undefined. This deserves some investigation. FIXME
  9180. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9181. else
  9182. ld_shlibs=no
  9183. fi
  9184. ;;
  9185. cygwin* | mingw* | pw32* | cegcc*)
  9186. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9187. # as there is no search path for DLLs.
  9188. hardcode_libdir_flag_spec='-L$libdir'
  9189. export_dynamic_flag_spec='$wl--export-all-symbols'
  9190. allow_undefined_flag=unsupported
  9191. always_export_symbols=no
  9192. enable_shared_with_static_runtimes=yes
  9193. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  9194. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9195. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9196. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9197. # If the export-symbols file already is a .def file, use it as
  9198. # is; otherwise, prepend EXPORTS...
  9199. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9200. cp $export_symbols $output_objdir/$soname.def;
  9201. else
  9202. echo EXPORTS > $output_objdir/$soname.def;
  9203. cat $export_symbols >> $output_objdir/$soname.def;
  9204. fi~
  9205. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9206. else
  9207. ld_shlibs=no
  9208. fi
  9209. ;;
  9210. haiku*)
  9211. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9212. link_all_deplibs=yes
  9213. ;;
  9214. os2*)
  9215. hardcode_libdir_flag_spec='-L$libdir'
  9216. hardcode_minus_L=yes
  9217. allow_undefined_flag=unsupported
  9218. shrext_cmds=.dll
  9219. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9220. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9221. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9222. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9223. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9224. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9225. emximp -o $lib $output_objdir/$libname.def'
  9226. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9227. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9228. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9229. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9230. prefix_cmds="$SED"~
  9231. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9232. prefix_cmds="$prefix_cmds -e 1d";
  9233. fi~
  9234. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9235. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9236. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9237. emximp -o $lib $output_objdir/$libname.def'
  9238. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9239. enable_shared_with_static_runtimes=yes
  9240. ;;
  9241. interix[3-9]*)
  9242. hardcode_direct=no
  9243. hardcode_shlibpath_var=no
  9244. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9245. export_dynamic_flag_spec='$wl-E'
  9246. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9247. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9248. # default) and relocated if they conflict, which is a slow very memory
  9249. # consuming and fragmenting process. To avoid this, we pick a random,
  9250. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9251. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9252. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9253. 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'
  9254. ;;
  9255. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9256. tmp_diet=no
  9257. if test linux-dietlibc = "$host_os"; then
  9258. case $cc_basename in
  9259. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9260. esac
  9261. fi
  9262. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9263. && test no = "$tmp_diet"
  9264. then
  9265. tmp_addflag=' $pic_flag'
  9266. tmp_sharedflag='-shared'
  9267. case $cc_basename,$host_cpu in
  9268. pgcc*) # Portland Group C compiler
  9269. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9270. tmp_addflag=' $pic_flag'
  9271. ;;
  9272. pgf77* | pgf90* | pgf95* | pgfortran*)
  9273. # Portland Group f77 and f90 compilers
  9274. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9275. tmp_addflag=' $pic_flag -Mnomain' ;;
  9276. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9277. tmp_addflag=' -i_dynamic' ;;
  9278. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9279. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9280. ifc* | ifort*) # Intel Fortran compiler
  9281. tmp_addflag=' -nofor_main' ;;
  9282. lf95*) # Lahey Fortran 8.1
  9283. whole_archive_flag_spec=
  9284. tmp_sharedflag='--shared' ;;
  9285. nagfor*) # NAGFOR 5.3
  9286. tmp_sharedflag='-Wl,-shared' ;;
  9287. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9288. tmp_sharedflag='-qmkshrobj'
  9289. tmp_addflag= ;;
  9290. nvcc*) # Cuda Compiler Driver 2.2
  9291. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9292. compiler_needs_object=yes
  9293. ;;
  9294. esac
  9295. case `$CC -V 2>&1 | sed 5q` in
  9296. *Sun\ C*) # Sun C 5.9
  9297. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9298. compiler_needs_object=yes
  9299. tmp_sharedflag='-G' ;;
  9300. *Sun\ F*) # Sun Fortran 8.3
  9301. tmp_sharedflag='-G' ;;
  9302. esac
  9303. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9304. if test yes = "$supports_anon_versioning"; then
  9305. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9306. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9307. echo "local: *; };" >> $output_objdir/$libname.ver~
  9308. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9309. fi
  9310. case $cc_basename in
  9311. tcc*)
  9312. export_dynamic_flag_spec='-rdynamic'
  9313. ;;
  9314. xlf* | bgf* | bgxlf* | mpixlf*)
  9315. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9316. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9317. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9318. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9319. if test yes = "$supports_anon_versioning"; then
  9320. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9321. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9322. echo "local: *; };" >> $output_objdir/$libname.ver~
  9323. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9324. fi
  9325. ;;
  9326. esac
  9327. else
  9328. ld_shlibs=no
  9329. fi
  9330. ;;
  9331. netbsd*)
  9332. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9333. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9334. wlarc=
  9335. else
  9336. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9337. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9338. fi
  9339. ;;
  9340. solaris*)
  9341. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9342. ld_shlibs=no
  9343. cat <<_LT_EOF 1>&2
  9344. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9345. *** create shared libraries on Solaris systems. Therefore, libtool
  9346. *** is disabling shared libraries support. We urge you to upgrade GNU
  9347. *** binutils to release 2.9.1 or newer. Another option is to modify
  9348. *** your PATH or compiler configuration so that the native linker is
  9349. *** used, and then restart.
  9350. _LT_EOF
  9351. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9352. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9353. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9354. else
  9355. ld_shlibs=no
  9356. fi
  9357. ;;
  9358. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9359. case `$LD -v 2>&1` in
  9360. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9361. ld_shlibs=no
  9362. cat <<_LT_EOF 1>&2
  9363. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9364. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9365. *** is disabling shared libraries support. We urge you to upgrade GNU
  9366. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9367. *** your PATH or compiler configuration so that the native linker is
  9368. *** used, and then restart.
  9369. _LT_EOF
  9370. ;;
  9371. *)
  9372. # For security reasons, it is highly recommended that you always
  9373. # use absolute paths for naming shared libraries, and exclude the
  9374. # DT_RUNPATH tag from executables and libraries. But doing so
  9375. # requires that you compile everything twice, which is a pain.
  9376. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9377. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9378. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9379. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9380. else
  9381. ld_shlibs=no
  9382. fi
  9383. ;;
  9384. esac
  9385. ;;
  9386. sunos4*)
  9387. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9388. wlarc=
  9389. hardcode_direct=yes
  9390. hardcode_shlibpath_var=no
  9391. ;;
  9392. *)
  9393. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9394. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9395. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9396. else
  9397. ld_shlibs=no
  9398. fi
  9399. ;;
  9400. esac
  9401. if test no = "$ld_shlibs"; then
  9402. runpath_var=
  9403. hardcode_libdir_flag_spec=
  9404. export_dynamic_flag_spec=
  9405. whole_archive_flag_spec=
  9406. fi
  9407. else
  9408. # PORTME fill in a description of your system's linker (not GNU ld)
  9409. case $host_os in
  9410. aix3*)
  9411. allow_undefined_flag=unsupported
  9412. always_export_symbols=yes
  9413. 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'
  9414. # Note: this linker hardcodes the directories in LIBPATH if there
  9415. # are no directories specified by -L.
  9416. hardcode_minus_L=yes
  9417. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9418. # Neither direct hardcoding nor static linking is supported with a
  9419. # broken collect2.
  9420. hardcode_direct=unsupported
  9421. fi
  9422. ;;
  9423. aix[4-9]*)
  9424. if test ia64 = "$host_cpu"; then
  9425. # On IA64, the linker does run time linking by default, so we don't
  9426. # have to do anything special.
  9427. aix_use_runtimelinking=no
  9428. exp_sym_flag='-Bexport'
  9429. no_entry_flag=
  9430. else
  9431. # If we're using GNU nm, then we don't want the "-C" option.
  9432. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9433. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9434. # weak defined symbols like other global defined symbols, whereas
  9435. # GNU nm marks them as "W".
  9436. # While the 'weak' keyword is ignored in the Export File, we need
  9437. # it in the Import File for the 'aix-soname' feature, so we have
  9438. # to replace the "-B" option with "-P" for AIX nm.
  9439. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9440. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9441. else
  9442. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9443. fi
  9444. aix_use_runtimelinking=no
  9445. # Test if we are trying to use run time linking or normal
  9446. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9447. # have runtime linking enabled, and use it for executables.
  9448. # For shared libraries, we enable/disable runtime linking
  9449. # depending on the kind of the shared library created -
  9450. # when "with_aix_soname,aix_use_runtimelinking" is:
  9451. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9452. # "aix,yes" lib.so shared, rtl:yes, for executables
  9453. # lib.a static archive
  9454. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9455. # lib.a(lib.so.V) shared, rtl:no, for executables
  9456. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9457. # lib.a(lib.so.V) shared, rtl:no
  9458. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9459. # lib.a static archive
  9460. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9461. for ld_flag in $LDFLAGS; do
  9462. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9463. aix_use_runtimelinking=yes
  9464. break
  9465. fi
  9466. done
  9467. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9468. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9469. # so we don't have lib.a shared libs to link our executables.
  9470. # We have to force runtime linking in this case.
  9471. aix_use_runtimelinking=yes
  9472. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9473. fi
  9474. ;;
  9475. esac
  9476. exp_sym_flag='-bexport'
  9477. no_entry_flag='-bnoentry'
  9478. fi
  9479. # When large executables or shared objects are built, AIX ld can
  9480. # have problems creating the table of contents. If linking a library
  9481. # or program results in "error TOC overflow" add -mminimal-toc to
  9482. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9483. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9484. archive_cmds=''
  9485. hardcode_direct=yes
  9486. hardcode_direct_absolute=yes
  9487. hardcode_libdir_separator=':'
  9488. link_all_deplibs=yes
  9489. file_list_spec='$wl-f,'
  9490. case $with_aix_soname,$aix_use_runtimelinking in
  9491. aix,*) ;; # traditional, no import file
  9492. svr4,* | *,yes) # use import file
  9493. # The Import File defines what to hardcode.
  9494. hardcode_direct=no
  9495. hardcode_direct_absolute=no
  9496. ;;
  9497. esac
  9498. if test yes = "$GCC"; then
  9499. case $host_os in aix4.[012]|aix4.[012].*)
  9500. # We only want to do this on AIX 4.2 and lower, the check
  9501. # below for broken collect2 doesn't work under 4.3+
  9502. collect2name=`$CC -print-prog-name=collect2`
  9503. if test -f "$collect2name" &&
  9504. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9505. then
  9506. # We have reworked collect2
  9507. :
  9508. else
  9509. # We have old collect2
  9510. hardcode_direct=unsupported
  9511. # It fails to find uninstalled libraries when the uninstalled
  9512. # path is not listed in the libpath. Setting hardcode_minus_L
  9513. # to unsupported forces relinking
  9514. hardcode_minus_L=yes
  9515. hardcode_libdir_flag_spec='-L$libdir'
  9516. hardcode_libdir_separator=
  9517. fi
  9518. ;;
  9519. esac
  9520. shared_flag='-shared'
  9521. if test yes = "$aix_use_runtimelinking"; then
  9522. shared_flag="$shared_flag "'$wl-G'
  9523. fi
  9524. # Need to ensure runtime linking is disabled for the traditional
  9525. # shared library, or the linker may eventually find shared libraries
  9526. # /with/ Import File - we do not want to mix them.
  9527. shared_flag_aix='-shared'
  9528. shared_flag_svr4='-shared $wl-G'
  9529. else
  9530. # not using gcc
  9531. if test ia64 = "$host_cpu"; then
  9532. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9533. # chokes on -Wl,-G. The following line is correct:
  9534. shared_flag='-G'
  9535. else
  9536. if test yes = "$aix_use_runtimelinking"; then
  9537. shared_flag='$wl-G'
  9538. else
  9539. shared_flag='$wl-bM:SRE'
  9540. fi
  9541. shared_flag_aix='$wl-bM:SRE'
  9542. shared_flag_svr4='$wl-G'
  9543. fi
  9544. fi
  9545. export_dynamic_flag_spec='$wl-bexpall'
  9546. # It seems that -bexpall does not export symbols beginning with
  9547. # underscore (_), so it is better to generate a list of symbols to export.
  9548. always_export_symbols=yes
  9549. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9550. # Warning - without using the other runtime loading flags (-brtl),
  9551. # -berok will link without error, but may produce a broken library.
  9552. allow_undefined_flag='-berok'
  9553. # Determine the default libpath from the value encoded in an
  9554. # empty executable.
  9555. if test set = "${lt_cv_aix_libpath+set}"; then
  9556. aix_libpath=$lt_cv_aix_libpath
  9557. else
  9558. if ${lt_cv_aix_libpath_+:} false; then :
  9559. $as_echo_n "(cached) " >&6
  9560. else
  9561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9562. /* end confdefs.h. */
  9563. int
  9564. main ()
  9565. {
  9566. ;
  9567. return 0;
  9568. }
  9569. _ACEOF
  9570. if ac_fn_c_try_link "$LINENO"; then :
  9571. lt_aix_libpath_sed='
  9572. /Import File Strings/,/^$/ {
  9573. /^0/ {
  9574. s/^0 *\([^ ]*\) *$/\1/
  9575. p
  9576. }
  9577. }'
  9578. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9579. # Check for a 64-bit object if we didn't find anything.
  9580. if test -z "$lt_cv_aix_libpath_"; then
  9581. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9582. fi
  9583. fi
  9584. rm -f core conftest.err conftest.$ac_objext \
  9585. conftest$ac_exeext conftest.$ac_ext
  9586. if test -z "$lt_cv_aix_libpath_"; then
  9587. lt_cv_aix_libpath_=/usr/lib:/lib
  9588. fi
  9589. fi
  9590. aix_libpath=$lt_cv_aix_libpath_
  9591. fi
  9592. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9593. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9594. else
  9595. if test ia64 = "$host_cpu"; then
  9596. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9597. allow_undefined_flag="-z nodefs"
  9598. 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"
  9599. else
  9600. # Determine the default libpath from the value encoded in an
  9601. # empty executable.
  9602. if test set = "${lt_cv_aix_libpath+set}"; then
  9603. aix_libpath=$lt_cv_aix_libpath
  9604. else
  9605. if ${lt_cv_aix_libpath_+:} false; then :
  9606. $as_echo_n "(cached) " >&6
  9607. else
  9608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9609. /* end confdefs.h. */
  9610. int
  9611. main ()
  9612. {
  9613. ;
  9614. return 0;
  9615. }
  9616. _ACEOF
  9617. if ac_fn_c_try_link "$LINENO"; then :
  9618. lt_aix_libpath_sed='
  9619. /Import File Strings/,/^$/ {
  9620. /^0/ {
  9621. s/^0 *\([^ ]*\) *$/\1/
  9622. p
  9623. }
  9624. }'
  9625. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9626. # Check for a 64-bit object if we didn't find anything.
  9627. if test -z "$lt_cv_aix_libpath_"; then
  9628. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9629. fi
  9630. fi
  9631. rm -f core conftest.err conftest.$ac_objext \
  9632. conftest$ac_exeext conftest.$ac_ext
  9633. if test -z "$lt_cv_aix_libpath_"; then
  9634. lt_cv_aix_libpath_=/usr/lib:/lib
  9635. fi
  9636. fi
  9637. aix_libpath=$lt_cv_aix_libpath_
  9638. fi
  9639. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9640. # Warning - without using the other run time loading flags,
  9641. # -berok will link without error, but may produce a broken library.
  9642. no_undefined_flag=' $wl-bernotok'
  9643. allow_undefined_flag=' $wl-berok'
  9644. if test yes = "$with_gnu_ld"; then
  9645. # We only use this code for GNU lds that support --whole-archive.
  9646. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9647. else
  9648. # Exported symbols can be pulled into shared objects from archives
  9649. whole_archive_flag_spec='$convenience'
  9650. fi
  9651. archive_cmds_need_lc=yes
  9652. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9653. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9654. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9655. if test svr4 != "$with_aix_soname"; then
  9656. # This is similar to how AIX traditionally builds its shared libraries.
  9657. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9658. fi
  9659. if test aix != "$with_aix_soname"; then
  9660. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9661. else
  9662. # used by -dlpreopen to get the symbols
  9663. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9664. fi
  9665. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9666. fi
  9667. fi
  9668. ;;
  9669. amigaos*)
  9670. case $host_cpu in
  9671. powerpc)
  9672. # see comment about AmigaOS4 .so support
  9673. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9674. archive_expsym_cmds=''
  9675. ;;
  9676. m68k)
  9677. 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)'
  9678. hardcode_libdir_flag_spec='-L$libdir'
  9679. hardcode_minus_L=yes
  9680. ;;
  9681. esac
  9682. ;;
  9683. bsdi[45]*)
  9684. export_dynamic_flag_spec=-rdynamic
  9685. ;;
  9686. cygwin* | mingw* | pw32* | cegcc*)
  9687. # When not using gcc, we currently assume that we are using
  9688. # Microsoft Visual C++.
  9689. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9690. # no search path for DLLs.
  9691. case $cc_basename in
  9692. cl*)
  9693. # Native MSVC
  9694. hardcode_libdir_flag_spec=' '
  9695. allow_undefined_flag=unsupported
  9696. always_export_symbols=yes
  9697. file_list_spec='@'
  9698. # Tell ltmain to make .lib files, not .a files.
  9699. libext=lib
  9700. # Tell ltmain to make .dll files, not .so files.
  9701. shrext_cmds=.dll
  9702. # FIXME: Setting linknames here is a bad hack.
  9703. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9704. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9705. cp "$export_symbols" "$output_objdir/$soname.def";
  9706. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9707. else
  9708. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9709. fi~
  9710. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9711. linknames='
  9712. # The linker will not automatically build a static lib if we build a DLL.
  9713. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9714. enable_shared_with_static_runtimes=yes
  9715. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9716. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9717. # Don't use ranlib
  9718. old_postinstall_cmds='chmod 644 $oldlib'
  9719. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9720. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9721. case $lt_outputfile in
  9722. *.exe|*.EXE) ;;
  9723. *)
  9724. lt_outputfile=$lt_outputfile.exe
  9725. lt_tool_outputfile=$lt_tool_outputfile.exe
  9726. ;;
  9727. esac~
  9728. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9729. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9730. $RM "$lt_outputfile.manifest";
  9731. fi'
  9732. ;;
  9733. *)
  9734. # Assume MSVC wrapper
  9735. hardcode_libdir_flag_spec=' '
  9736. allow_undefined_flag=unsupported
  9737. # Tell ltmain to make .lib files, not .a files.
  9738. libext=lib
  9739. # Tell ltmain to make .dll files, not .so files.
  9740. shrext_cmds=.dll
  9741. # FIXME: Setting linknames here is a bad hack.
  9742. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9743. # The linker will automatically build a .lib file if we build a DLL.
  9744. old_archive_from_new_cmds='true'
  9745. # FIXME: Should let the user specify the lib program.
  9746. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9747. enable_shared_with_static_runtimes=yes
  9748. ;;
  9749. esac
  9750. ;;
  9751. darwin* | rhapsody*)
  9752. archive_cmds_need_lc=no
  9753. hardcode_direct=no
  9754. hardcode_automatic=yes
  9755. hardcode_shlibpath_var=unsupported
  9756. if test yes = "$lt_cv_ld_force_load"; then
  9757. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9758. else
  9759. whole_archive_flag_spec=''
  9760. fi
  9761. link_all_deplibs=yes
  9762. allow_undefined_flag=$_lt_dar_allow_undefined
  9763. case $cc_basename in
  9764. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9765. *) _lt_dar_can_shared=$GCC ;;
  9766. esac
  9767. if test yes = "$_lt_dar_can_shared"; then
  9768. output_verbose_link_cmd=func_echo_all
  9769. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9770. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9771. 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"
  9772. 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"
  9773. else
  9774. ld_shlibs=no
  9775. fi
  9776. ;;
  9777. dgux*)
  9778. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9779. hardcode_libdir_flag_spec='-L$libdir'
  9780. hardcode_shlibpath_var=no
  9781. ;;
  9782. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9783. # support. Future versions do this automatically, but an explicit c++rt0.o
  9784. # does not break anything, and helps significantly (at the cost of a little
  9785. # extra space).
  9786. freebsd2.2*)
  9787. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9788. hardcode_libdir_flag_spec='-R$libdir'
  9789. hardcode_direct=yes
  9790. hardcode_shlibpath_var=no
  9791. ;;
  9792. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9793. freebsd2.*)
  9794. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9795. hardcode_direct=yes
  9796. hardcode_minus_L=yes
  9797. hardcode_shlibpath_var=no
  9798. ;;
  9799. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9800. freebsd* | dragonfly*)
  9801. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9802. hardcode_libdir_flag_spec='-R$libdir'
  9803. hardcode_direct=yes
  9804. hardcode_shlibpath_var=no
  9805. ;;
  9806. hpux9*)
  9807. if test yes = "$GCC"; then
  9808. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9809. else
  9810. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9811. fi
  9812. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9813. hardcode_libdir_separator=:
  9814. hardcode_direct=yes
  9815. # hardcode_minus_L: Not really in the search PATH,
  9816. # but as the default location of the library.
  9817. hardcode_minus_L=yes
  9818. export_dynamic_flag_spec='$wl-E'
  9819. ;;
  9820. hpux10*)
  9821. if test yes,no = "$GCC,$with_gnu_ld"; then
  9822. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9823. else
  9824. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9825. fi
  9826. if test no = "$with_gnu_ld"; then
  9827. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9828. hardcode_libdir_separator=:
  9829. hardcode_direct=yes
  9830. hardcode_direct_absolute=yes
  9831. export_dynamic_flag_spec='$wl-E'
  9832. # hardcode_minus_L: Not really in the search PATH,
  9833. # but as the default location of the library.
  9834. hardcode_minus_L=yes
  9835. fi
  9836. ;;
  9837. hpux11*)
  9838. if test yes,no = "$GCC,$with_gnu_ld"; then
  9839. case $host_cpu in
  9840. hppa*64*)
  9841. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9842. ;;
  9843. ia64*)
  9844. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9845. ;;
  9846. *)
  9847. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9848. ;;
  9849. esac
  9850. else
  9851. case $host_cpu in
  9852. hppa*64*)
  9853. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9854. ;;
  9855. ia64*)
  9856. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9857. ;;
  9858. *)
  9859. # Older versions of the 11.00 compiler do not understand -b yet
  9860. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9862. $as_echo_n "checking if $CC understands -b... " >&6; }
  9863. if ${lt_cv_prog_compiler__b+:} false; then :
  9864. $as_echo_n "(cached) " >&6
  9865. else
  9866. lt_cv_prog_compiler__b=no
  9867. save_LDFLAGS=$LDFLAGS
  9868. LDFLAGS="$LDFLAGS -b"
  9869. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9870. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9871. # The linker can only warn and ignore the option if not recognized
  9872. # So say no if there are warnings
  9873. if test -s conftest.err; then
  9874. # Append any errors to the config.log.
  9875. cat conftest.err 1>&5
  9876. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9877. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9878. if diff conftest.exp conftest.er2 >/dev/null; then
  9879. lt_cv_prog_compiler__b=yes
  9880. fi
  9881. else
  9882. lt_cv_prog_compiler__b=yes
  9883. fi
  9884. fi
  9885. $RM -r conftest*
  9886. LDFLAGS=$save_LDFLAGS
  9887. fi
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9889. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9890. if test yes = "$lt_cv_prog_compiler__b"; then
  9891. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9892. else
  9893. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9894. fi
  9895. ;;
  9896. esac
  9897. fi
  9898. if test no = "$with_gnu_ld"; then
  9899. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9900. hardcode_libdir_separator=:
  9901. case $host_cpu in
  9902. hppa*64*|ia64*)
  9903. hardcode_direct=no
  9904. hardcode_shlibpath_var=no
  9905. ;;
  9906. *)
  9907. hardcode_direct=yes
  9908. hardcode_direct_absolute=yes
  9909. export_dynamic_flag_spec='$wl-E'
  9910. # hardcode_minus_L: Not really in the search PATH,
  9911. # but as the default location of the library.
  9912. hardcode_minus_L=yes
  9913. ;;
  9914. esac
  9915. fi
  9916. ;;
  9917. irix5* | irix6* | nonstopux*)
  9918. if test yes = "$GCC"; then
  9919. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9920. # Try to use the -exported_symbol ld option, if it does not
  9921. # work, assume that -exports_file does not work either and
  9922. # implicitly export all symbols.
  9923. # This should be the same for all languages, so no per-tag cache variable.
  9924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9925. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9926. if ${lt_cv_irix_exported_symbol+:} false; then :
  9927. $as_echo_n "(cached) " >&6
  9928. else
  9929. save_LDFLAGS=$LDFLAGS
  9930. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9932. /* end confdefs.h. */
  9933. int foo (void) { return 0; }
  9934. _ACEOF
  9935. if ac_fn_c_try_link "$LINENO"; then :
  9936. lt_cv_irix_exported_symbol=yes
  9937. else
  9938. lt_cv_irix_exported_symbol=no
  9939. fi
  9940. rm -f core conftest.err conftest.$ac_objext \
  9941. conftest$ac_exeext conftest.$ac_ext
  9942. LDFLAGS=$save_LDFLAGS
  9943. fi
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9945. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9946. if test yes = "$lt_cv_irix_exported_symbol"; then
  9947. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9948. fi
  9949. else
  9950. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9951. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9952. fi
  9953. archive_cmds_need_lc='no'
  9954. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9955. hardcode_libdir_separator=:
  9956. inherit_rpath=yes
  9957. link_all_deplibs=yes
  9958. ;;
  9959. linux*)
  9960. case $cc_basename in
  9961. tcc*)
  9962. # Fabrice Bellard et al's Tiny C Compiler
  9963. ld_shlibs=yes
  9964. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9965. ;;
  9966. esac
  9967. ;;
  9968. netbsd*)
  9969. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9970. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9971. else
  9972. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9973. fi
  9974. hardcode_libdir_flag_spec='-R$libdir'
  9975. hardcode_direct=yes
  9976. hardcode_shlibpath_var=no
  9977. ;;
  9978. newsos6)
  9979. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9980. hardcode_direct=yes
  9981. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9982. hardcode_libdir_separator=:
  9983. hardcode_shlibpath_var=no
  9984. ;;
  9985. *nto* | *qnx*)
  9986. ;;
  9987. openbsd* | bitrig*)
  9988. if test -f /usr/libexec/ld.so; then
  9989. hardcode_direct=yes
  9990. hardcode_shlibpath_var=no
  9991. hardcode_direct_absolute=yes
  9992. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9993. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9994. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9995. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9996. export_dynamic_flag_spec='$wl-E'
  9997. else
  9998. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9999. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10000. fi
  10001. else
  10002. ld_shlibs=no
  10003. fi
  10004. ;;
  10005. os2*)
  10006. hardcode_libdir_flag_spec='-L$libdir'
  10007. hardcode_minus_L=yes
  10008. allow_undefined_flag=unsupported
  10009. shrext_cmds=.dll
  10010. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10011. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10012. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10013. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10014. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10015. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10016. emximp -o $lib $output_objdir/$libname.def'
  10017. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10018. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10019. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10020. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10021. prefix_cmds="$SED"~
  10022. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10023. prefix_cmds="$prefix_cmds -e 1d";
  10024. fi~
  10025. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10026. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10027. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10028. emximp -o $lib $output_objdir/$libname.def'
  10029. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10030. enable_shared_with_static_runtimes=yes
  10031. ;;
  10032. osf3*)
  10033. if test yes = "$GCC"; then
  10034. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10035. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  10036. else
  10037. allow_undefined_flag=' -expect_unresolved \*'
  10038. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  10039. fi
  10040. archive_cmds_need_lc='no'
  10041. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10042. hardcode_libdir_separator=:
  10043. ;;
  10044. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10045. if test yes = "$GCC"; then
  10046. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10047. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  10048. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10049. else
  10050. allow_undefined_flag=' -expect_unresolved \*'
  10051. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  10052. 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~
  10053. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  10054. # Both c and cxx compiler support -rpath directly
  10055. hardcode_libdir_flag_spec='-rpath $libdir'
  10056. fi
  10057. archive_cmds_need_lc='no'
  10058. hardcode_libdir_separator=:
  10059. ;;
  10060. solaris*)
  10061. no_undefined_flag=' -z defs'
  10062. if test yes = "$GCC"; then
  10063. wlarc='$wl'
  10064. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10065. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10066. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10067. else
  10068. case `$CC -V 2>&1` in
  10069. *"Compilers 5.0"*)
  10070. wlarc=''
  10071. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10072. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10073. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10074. ;;
  10075. *)
  10076. wlarc='$wl'
  10077. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10078. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10079. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10080. ;;
  10081. esac
  10082. fi
  10083. hardcode_libdir_flag_spec='-R$libdir'
  10084. hardcode_shlibpath_var=no
  10085. case $host_os in
  10086. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10087. *)
  10088. # The compiler driver will combine and reorder linker options,
  10089. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10090. # but is careful enough not to reorder.
  10091. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10092. if test yes = "$GCC"; then
  10093. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10094. else
  10095. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10096. fi
  10097. ;;
  10098. esac
  10099. link_all_deplibs=yes
  10100. ;;
  10101. sunos4*)
  10102. if test sequent = "$host_vendor"; then
  10103. # Use $CC to link under sequent, because it throws in some extra .o
  10104. # files that make .init and .fini sections work.
  10105. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10106. else
  10107. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10108. fi
  10109. hardcode_libdir_flag_spec='-L$libdir'
  10110. hardcode_direct=yes
  10111. hardcode_minus_L=yes
  10112. hardcode_shlibpath_var=no
  10113. ;;
  10114. sysv4)
  10115. case $host_vendor in
  10116. sni)
  10117. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10118. hardcode_direct=yes # is this really true???
  10119. ;;
  10120. siemens)
  10121. ## LD is ld it makes a PLAMLIB
  10122. ## CC just makes a GrossModule.
  10123. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10124. reload_cmds='$CC -r -o $output$reload_objs'
  10125. hardcode_direct=no
  10126. ;;
  10127. motorola)
  10128. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10129. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10130. ;;
  10131. esac
  10132. runpath_var='LD_RUN_PATH'
  10133. hardcode_shlibpath_var=no
  10134. ;;
  10135. sysv4.3*)
  10136. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10137. hardcode_shlibpath_var=no
  10138. export_dynamic_flag_spec='-Bexport'
  10139. ;;
  10140. sysv4*MP*)
  10141. if test -d /usr/nec; then
  10142. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10143. hardcode_shlibpath_var=no
  10144. runpath_var=LD_RUN_PATH
  10145. hardcode_runpath_var=yes
  10146. ld_shlibs=yes
  10147. fi
  10148. ;;
  10149. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10150. no_undefined_flag='$wl-z,text'
  10151. archive_cmds_need_lc=no
  10152. hardcode_shlibpath_var=no
  10153. runpath_var='LD_RUN_PATH'
  10154. if test yes = "$GCC"; then
  10155. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10156. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10157. else
  10158. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10159. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10160. fi
  10161. ;;
  10162. sysv5* | sco3.2v5* | sco5v6*)
  10163. # Note: We CANNOT use -z defs as we might desire, because we do not
  10164. # link with -lc, and that would cause any symbols used from libc to
  10165. # always be unresolved, which means just about no library would
  10166. # ever link correctly. If we're not using GNU ld we use -z text
  10167. # though, which does catch some bad symbols but isn't as heavy-handed
  10168. # as -z defs.
  10169. no_undefined_flag='$wl-z,text'
  10170. allow_undefined_flag='$wl-z,nodefs'
  10171. archive_cmds_need_lc=no
  10172. hardcode_shlibpath_var=no
  10173. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10174. hardcode_libdir_separator=':'
  10175. link_all_deplibs=yes
  10176. export_dynamic_flag_spec='$wl-Bexport'
  10177. runpath_var='LD_RUN_PATH'
  10178. if test yes = "$GCC"; then
  10179. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10180. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10181. else
  10182. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10183. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10184. fi
  10185. ;;
  10186. uts4*)
  10187. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10188. hardcode_libdir_flag_spec='-L$libdir'
  10189. hardcode_shlibpath_var=no
  10190. ;;
  10191. *)
  10192. ld_shlibs=no
  10193. ;;
  10194. esac
  10195. if test sni = "$host_vendor"; then
  10196. case $host in
  10197. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10198. export_dynamic_flag_spec='$wl-Blargedynsym'
  10199. ;;
  10200. esac
  10201. fi
  10202. fi
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10204. $as_echo "$ld_shlibs" >&6; }
  10205. test no = "$ld_shlibs" && can_build_shared=no
  10206. with_gnu_ld=$with_gnu_ld
  10207. #
  10208. # Do we need to explicitly link libc?
  10209. #
  10210. case "x$archive_cmds_need_lc" in
  10211. x|xyes)
  10212. # Assume -lc should be added
  10213. archive_cmds_need_lc=yes
  10214. if test yes,yes = "$GCC,$enable_shared"; then
  10215. case $archive_cmds in
  10216. *'~'*)
  10217. # FIXME: we may have to deal with multi-command sequences.
  10218. ;;
  10219. '$CC '*)
  10220. # Test whether the compiler implicitly links with -lc since on some
  10221. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10222. # to ld, don't add -lc before -lgcc.
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10224. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10225. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10226. $as_echo_n "(cached) " >&6
  10227. else
  10228. $RM conftest*
  10229. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10230. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10231. (eval $ac_compile) 2>&5
  10232. ac_status=$?
  10233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10234. test $ac_status = 0; } 2>conftest.err; then
  10235. soname=conftest
  10236. lib=conftest
  10237. libobjs=conftest.$ac_objext
  10238. deplibs=
  10239. wl=$lt_prog_compiler_wl
  10240. pic_flag=$lt_prog_compiler_pic
  10241. compiler_flags=-v
  10242. linker_flags=-v
  10243. verstring=
  10244. output_objdir=.
  10245. libname=conftest
  10246. lt_save_allow_undefined_flag=$allow_undefined_flag
  10247. allow_undefined_flag=
  10248. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10249. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10250. ac_status=$?
  10251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10252. test $ac_status = 0; }
  10253. then
  10254. lt_cv_archive_cmds_need_lc=no
  10255. else
  10256. lt_cv_archive_cmds_need_lc=yes
  10257. fi
  10258. allow_undefined_flag=$lt_save_allow_undefined_flag
  10259. else
  10260. cat conftest.err 1>&5
  10261. fi
  10262. $RM conftest*
  10263. fi
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10265. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10266. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10267. ;;
  10268. esac
  10269. fi
  10270. ;;
  10271. esac
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10273. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10274. if test yes = "$GCC"; then
  10275. case $host_os in
  10276. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10277. *) lt_awk_arg='/^libraries:/' ;;
  10278. esac
  10279. case $host_os in
  10280. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10281. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10282. esac
  10283. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10284. case $lt_search_path_spec in
  10285. *\;*)
  10286. # if the path contains ";" then we assume it to be the separator
  10287. # otherwise default to the standard path separator (i.e. ":") - it is
  10288. # assumed that no part of a normal pathname contains ";" but that should
  10289. # okay in the real world where ";" in dirpaths is itself problematic.
  10290. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10291. ;;
  10292. *)
  10293. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10294. ;;
  10295. esac
  10296. # Ok, now we have the path, separated by spaces, we can step through it
  10297. # and add multilib dir if necessary...
  10298. lt_tmp_lt_search_path_spec=
  10299. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10300. # ...but if some path component already ends with the multilib dir we assume
  10301. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10302. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10303. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10304. lt_multi_os_dir=
  10305. ;;
  10306. esac
  10307. for lt_sys_path in $lt_search_path_spec; do
  10308. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10309. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10310. elif test -n "$lt_multi_os_dir"; then
  10311. test -d "$lt_sys_path" && \
  10312. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10313. fi
  10314. done
  10315. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10316. BEGIN {RS = " "; FS = "/|\n";} {
  10317. lt_foo = "";
  10318. lt_count = 0;
  10319. for (lt_i = NF; lt_i > 0; lt_i--) {
  10320. if ($lt_i != "" && $lt_i != ".") {
  10321. if ($lt_i == "..") {
  10322. lt_count++;
  10323. } else {
  10324. if (lt_count == 0) {
  10325. lt_foo = "/" $lt_i lt_foo;
  10326. } else {
  10327. lt_count--;
  10328. }
  10329. }
  10330. }
  10331. }
  10332. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10333. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10334. }'`
  10335. # AWK program above erroneously prepends '/' to C:/dos/paths
  10336. # for these hosts.
  10337. case $host_os in
  10338. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10339. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10340. esac
  10341. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10342. else
  10343. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10344. fi
  10345. library_names_spec=
  10346. libname_spec='lib$name'
  10347. soname_spec=
  10348. shrext_cmds=.so
  10349. postinstall_cmds=
  10350. postuninstall_cmds=
  10351. finish_cmds=
  10352. finish_eval=
  10353. shlibpath_var=
  10354. shlibpath_overrides_runpath=unknown
  10355. version_type=none
  10356. dynamic_linker="$host_os ld.so"
  10357. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10358. need_lib_prefix=unknown
  10359. hardcode_into_libs=no
  10360. # when you set need_version to no, make sure it does not cause -set_version
  10361. # flags to be left without arguments
  10362. need_version=unknown
  10363. case $host_os in
  10364. aix3*)
  10365. version_type=linux # correct to gnu/linux during the next big refactor
  10366. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10367. shlibpath_var=LIBPATH
  10368. # AIX 3 has no versioning support, so we append a major version to the name.
  10369. soname_spec='$libname$release$shared_ext$major'
  10370. ;;
  10371. aix[4-9]*)
  10372. version_type=linux # correct to gnu/linux during the next big refactor
  10373. need_lib_prefix=no
  10374. need_version=no
  10375. hardcode_into_libs=yes
  10376. if test ia64 = "$host_cpu"; then
  10377. # AIX 5 supports IA64
  10378. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10379. shlibpath_var=LD_LIBRARY_PATH
  10380. else
  10381. # With GCC up to 2.95.x, collect2 would create an import file
  10382. # for dependence libraries. The import file would start with
  10383. # the line '#! .'. This would cause the generated library to
  10384. # depend on '.', always an invalid library. This was fixed in
  10385. # development snapshots of GCC prior to 3.0.
  10386. case $host_os in
  10387. aix4 | aix4.[01] | aix4.[01].*)
  10388. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10389. echo ' yes '
  10390. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10391. :
  10392. else
  10393. can_build_shared=no
  10394. fi
  10395. ;;
  10396. esac
  10397. # Using Import Files as archive members, it is possible to support
  10398. # filename-based versioning of shared library archives on AIX. While
  10399. # this would work for both with and without runtime linking, it will
  10400. # prevent static linking of such archives. So we do filename-based
  10401. # shared library versioning with .so extension only, which is used
  10402. # when both runtime linking and shared linking is enabled.
  10403. # Unfortunately, runtime linking may impact performance, so we do
  10404. # not want this to be the default eventually. Also, we use the
  10405. # versioned .so libs for executables only if there is the -brtl
  10406. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10407. # To allow for filename-based versioning support, we need to create
  10408. # libNAME.so.V as an archive file, containing:
  10409. # *) an Import File, referring to the versioned filename of the
  10410. # archive as well as the shared archive member, telling the
  10411. # bitwidth (32 or 64) of that shared object, and providing the
  10412. # list of exported symbols of that shared object, eventually
  10413. # decorated with the 'weak' keyword
  10414. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10415. # it being seen by the linker.
  10416. # At run time we better use the real file rather than another symlink,
  10417. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10418. case $with_aix_soname,$aix_use_runtimelinking in
  10419. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10420. # soname into executable. Probably we can add versioning support to
  10421. # collect2, so additional links can be useful in future.
  10422. aix,yes) # traditional libtool
  10423. dynamic_linker='AIX unversionable lib.so'
  10424. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10425. # instead of lib<name>.a to let people know that these are not
  10426. # typical AIX shared libraries.
  10427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10428. ;;
  10429. aix,no) # traditional AIX only
  10430. dynamic_linker='AIX lib.a(lib.so.V)'
  10431. # We preserve .a as extension for shared libraries through AIX4.2
  10432. # and later when we are not doing run time linking.
  10433. library_names_spec='$libname$release.a $libname.a'
  10434. soname_spec='$libname$release$shared_ext$major'
  10435. ;;
  10436. svr4,*) # full svr4 only
  10437. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10438. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10439. # We do not specify a path in Import Files, so LIBPATH fires.
  10440. shlibpath_overrides_runpath=yes
  10441. ;;
  10442. *,yes) # both, prefer svr4
  10443. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10444. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10445. # unpreferred sharedlib libNAME.a needs extra handling
  10446. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10447. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10448. # We do not specify a path in Import Files, so LIBPATH fires.
  10449. shlibpath_overrides_runpath=yes
  10450. ;;
  10451. *,no) # both, prefer aix
  10452. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10453. library_names_spec='$libname$release.a $libname.a'
  10454. soname_spec='$libname$release$shared_ext$major'
  10455. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10456. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10457. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10458. ;;
  10459. esac
  10460. shlibpath_var=LIBPATH
  10461. fi
  10462. ;;
  10463. amigaos*)
  10464. case $host_cpu in
  10465. powerpc)
  10466. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10467. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10468. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10469. ;;
  10470. m68k)
  10471. library_names_spec='$libname.ixlibrary $libname.a'
  10472. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10473. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  10474. ;;
  10475. esac
  10476. ;;
  10477. beos*)
  10478. library_names_spec='$libname$shared_ext'
  10479. dynamic_linker="$host_os ld.so"
  10480. shlibpath_var=LIBRARY_PATH
  10481. ;;
  10482. bsdi[45]*)
  10483. version_type=linux # correct to gnu/linux during the next big refactor
  10484. need_version=no
  10485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10486. soname_spec='$libname$release$shared_ext$major'
  10487. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10488. shlibpath_var=LD_LIBRARY_PATH
  10489. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10490. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10491. # the default ld.so.conf also contains /usr/contrib/lib and
  10492. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10493. # libtool to hard-code these into programs
  10494. ;;
  10495. cygwin* | mingw* | pw32* | cegcc*)
  10496. version_type=windows
  10497. shrext_cmds=.dll
  10498. need_version=no
  10499. need_lib_prefix=no
  10500. case $GCC,$cc_basename in
  10501. yes,*)
  10502. # gcc
  10503. library_names_spec='$libname.dll.a'
  10504. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10505. postinstall_cmds='base_file=`basename \$file`~
  10506. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10507. dldir=$destdir/`dirname \$dlpath`~
  10508. test -d \$dldir || mkdir -p \$dldir~
  10509. $install_prog $dir/$dlname \$dldir/$dlname~
  10510. chmod a+x \$dldir/$dlname~
  10511. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10512. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10513. fi'
  10514. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10515. dlpath=$dir/\$dldll~
  10516. $RM \$dlpath'
  10517. shlibpath_overrides_runpath=yes
  10518. case $host_os in
  10519. cygwin*)
  10520. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10521. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10522. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10523. ;;
  10524. mingw* | cegcc*)
  10525. # MinGW DLLs use traditional 'lib' prefix
  10526. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10527. ;;
  10528. pw32*)
  10529. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10530. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10531. ;;
  10532. esac
  10533. dynamic_linker='Win32 ld.exe'
  10534. ;;
  10535. *,cl*)
  10536. # Native MSVC
  10537. libname_spec='$name'
  10538. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10539. library_names_spec='$libname.dll.lib'
  10540. case $build_os in
  10541. mingw*)
  10542. sys_lib_search_path_spec=
  10543. lt_save_ifs=$IFS
  10544. IFS=';'
  10545. for lt_path in $LIB
  10546. do
  10547. IFS=$lt_save_ifs
  10548. # Let DOS variable expansion print the short 8.3 style file name.
  10549. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10550. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10551. done
  10552. IFS=$lt_save_ifs
  10553. # Convert to MSYS style.
  10554. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10555. ;;
  10556. cygwin*)
  10557. # Convert to unix form, then to dos form, then back to unix form
  10558. # but this time dos style (no spaces!) so that the unix form looks
  10559. # like /cygdrive/c/PROGRA~1:/cygdr...
  10560. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10561. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10562. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10563. ;;
  10564. *)
  10565. sys_lib_search_path_spec=$LIB
  10566. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10567. # It is most probably a Windows format PATH.
  10568. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10569. else
  10570. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10571. fi
  10572. # FIXME: find the short name or the path components, as spaces are
  10573. # common. (e.g. "Program Files" -> "PROGRA~1")
  10574. ;;
  10575. esac
  10576. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10577. postinstall_cmds='base_file=`basename \$file`~
  10578. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10579. dldir=$destdir/`dirname \$dlpath`~
  10580. test -d \$dldir || mkdir -p \$dldir~
  10581. $install_prog $dir/$dlname \$dldir/$dlname'
  10582. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10583. dlpath=$dir/\$dldll~
  10584. $RM \$dlpath'
  10585. shlibpath_overrides_runpath=yes
  10586. dynamic_linker='Win32 link.exe'
  10587. ;;
  10588. *)
  10589. # Assume MSVC wrapper
  10590. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10591. dynamic_linker='Win32 ld.exe'
  10592. ;;
  10593. esac
  10594. # FIXME: first we should search . and the directory the executable is in
  10595. shlibpath_var=PATH
  10596. ;;
  10597. darwin* | rhapsody*)
  10598. dynamic_linker="$host_os dyld"
  10599. version_type=darwin
  10600. need_lib_prefix=no
  10601. need_version=no
  10602. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10603. soname_spec='$libname$release$major$shared_ext'
  10604. shlibpath_overrides_runpath=yes
  10605. shlibpath_var=DYLD_LIBRARY_PATH
  10606. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10607. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10608. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10609. ;;
  10610. dgux*)
  10611. version_type=linux # correct to gnu/linux during the next big refactor
  10612. need_lib_prefix=no
  10613. need_version=no
  10614. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10615. soname_spec='$libname$release$shared_ext$major'
  10616. shlibpath_var=LD_LIBRARY_PATH
  10617. ;;
  10618. freebsd* | dragonfly*)
  10619. # DragonFly does not have aout. When/if they implement a new
  10620. # versioning mechanism, adjust this.
  10621. if test -x /usr/bin/objformat; then
  10622. objformat=`/usr/bin/objformat`
  10623. else
  10624. case $host_os in
  10625. freebsd[23].*) objformat=aout ;;
  10626. *) objformat=elf ;;
  10627. esac
  10628. fi
  10629. version_type=freebsd-$objformat
  10630. case $version_type in
  10631. freebsd-elf*)
  10632. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10633. soname_spec='$libname$release$shared_ext$major'
  10634. need_version=no
  10635. need_lib_prefix=no
  10636. ;;
  10637. freebsd-*)
  10638. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10639. need_version=yes
  10640. ;;
  10641. esac
  10642. shlibpath_var=LD_LIBRARY_PATH
  10643. case $host_os in
  10644. freebsd2.*)
  10645. shlibpath_overrides_runpath=yes
  10646. ;;
  10647. freebsd3.[01]* | freebsdelf3.[01]*)
  10648. shlibpath_overrides_runpath=yes
  10649. hardcode_into_libs=yes
  10650. ;;
  10651. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10652. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10653. shlibpath_overrides_runpath=no
  10654. hardcode_into_libs=yes
  10655. ;;
  10656. *) # from 4.6 on, and DragonFly
  10657. shlibpath_overrides_runpath=yes
  10658. hardcode_into_libs=yes
  10659. ;;
  10660. esac
  10661. ;;
  10662. haiku*)
  10663. version_type=linux # correct to gnu/linux during the next big refactor
  10664. need_lib_prefix=no
  10665. need_version=no
  10666. dynamic_linker="$host_os runtime_loader"
  10667. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10668. soname_spec='$libname$release$shared_ext$major'
  10669. shlibpath_var=LIBRARY_PATH
  10670. shlibpath_overrides_runpath=no
  10671. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10672. hardcode_into_libs=yes
  10673. ;;
  10674. hpux9* | hpux10* | hpux11*)
  10675. # Give a soname corresponding to the major version so that dld.sl refuses to
  10676. # link against other versions.
  10677. version_type=sunos
  10678. need_lib_prefix=no
  10679. need_version=no
  10680. case $host_cpu in
  10681. ia64*)
  10682. shrext_cmds='.so'
  10683. hardcode_into_libs=yes
  10684. dynamic_linker="$host_os dld.so"
  10685. shlibpath_var=LD_LIBRARY_PATH
  10686. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10687. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10688. soname_spec='$libname$release$shared_ext$major'
  10689. if test 32 = "$HPUX_IA64_MODE"; then
  10690. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10691. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10692. else
  10693. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10694. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10695. fi
  10696. ;;
  10697. hppa*64*)
  10698. shrext_cmds='.sl'
  10699. hardcode_into_libs=yes
  10700. dynamic_linker="$host_os dld.sl"
  10701. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10702. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10704. soname_spec='$libname$release$shared_ext$major'
  10705. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10706. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10707. ;;
  10708. *)
  10709. shrext_cmds='.sl'
  10710. dynamic_linker="$host_os dld.sl"
  10711. shlibpath_var=SHLIB_PATH
  10712. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10714. soname_spec='$libname$release$shared_ext$major'
  10715. ;;
  10716. esac
  10717. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10718. postinstall_cmds='chmod 555 $lib'
  10719. # or fails outright, so override atomically:
  10720. install_override_mode=555
  10721. ;;
  10722. interix[3-9]*)
  10723. version_type=linux # correct to gnu/linux during the next big refactor
  10724. need_lib_prefix=no
  10725. need_version=no
  10726. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10727. soname_spec='$libname$release$shared_ext$major'
  10728. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10729. shlibpath_var=LD_LIBRARY_PATH
  10730. shlibpath_overrides_runpath=no
  10731. hardcode_into_libs=yes
  10732. ;;
  10733. irix5* | irix6* | nonstopux*)
  10734. case $host_os in
  10735. nonstopux*) version_type=nonstopux ;;
  10736. *)
  10737. if test yes = "$lt_cv_prog_gnu_ld"; then
  10738. version_type=linux # correct to gnu/linux during the next big refactor
  10739. else
  10740. version_type=irix
  10741. fi ;;
  10742. esac
  10743. need_lib_prefix=no
  10744. need_version=no
  10745. soname_spec='$libname$release$shared_ext$major'
  10746. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10747. case $host_os in
  10748. irix5* | nonstopux*)
  10749. libsuff= shlibsuff=
  10750. ;;
  10751. *)
  10752. case $LD in # libtool.m4 will add one of these switches to LD
  10753. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10754. libsuff= shlibsuff= libmagic=32-bit;;
  10755. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10756. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10757. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10758. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10759. *) libsuff= shlibsuff= libmagic=never-match;;
  10760. esac
  10761. ;;
  10762. esac
  10763. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10764. shlibpath_overrides_runpath=no
  10765. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10766. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10767. hardcode_into_libs=yes
  10768. ;;
  10769. # No shared lib support for Linux oldld, aout, or coff.
  10770. linux*oldld* | linux*aout* | linux*coff*)
  10771. dynamic_linker=no
  10772. ;;
  10773. linux*android*)
  10774. version_type=none # Android doesn't support versioned libraries.
  10775. need_lib_prefix=no
  10776. need_version=no
  10777. library_names_spec='$libname$release$shared_ext'
  10778. soname_spec='$libname$release$shared_ext'
  10779. finish_cmds=
  10780. shlibpath_var=LD_LIBRARY_PATH
  10781. shlibpath_overrides_runpath=yes
  10782. # This implies no fast_install, which is unacceptable.
  10783. # Some rework will be needed to allow for fast_install
  10784. # before this can be enabled.
  10785. hardcode_into_libs=yes
  10786. dynamic_linker='Android linker'
  10787. # Don't embed -rpath directories since the linker doesn't support them.
  10788. hardcode_libdir_flag_spec='-L$libdir'
  10789. ;;
  10790. # This must be glibc/ELF.
  10791. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10792. version_type=linux # correct to gnu/linux during the next big refactor
  10793. need_lib_prefix=no
  10794. need_version=no
  10795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10796. soname_spec='$libname$release$shared_ext$major'
  10797. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10798. shlibpath_var=LD_LIBRARY_PATH
  10799. shlibpath_overrides_runpath=no
  10800. # Some binutils ld are patched to set DT_RUNPATH
  10801. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10802. $as_echo_n "(cached) " >&6
  10803. else
  10804. lt_cv_shlibpath_overrides_runpath=no
  10805. save_LDFLAGS=$LDFLAGS
  10806. save_libdir=$libdir
  10807. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10808. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10810. /* end confdefs.h. */
  10811. int
  10812. main ()
  10813. {
  10814. ;
  10815. return 0;
  10816. }
  10817. _ACEOF
  10818. if ac_fn_c_try_link "$LINENO"; then :
  10819. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10820. lt_cv_shlibpath_overrides_runpath=yes
  10821. fi
  10822. fi
  10823. rm -f core conftest.err conftest.$ac_objext \
  10824. conftest$ac_exeext conftest.$ac_ext
  10825. LDFLAGS=$save_LDFLAGS
  10826. libdir=$save_libdir
  10827. fi
  10828. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10829. # This implies no fast_install, which is unacceptable.
  10830. # Some rework will be needed to allow for fast_install
  10831. # before this can be enabled.
  10832. hardcode_into_libs=yes
  10833. # Ideally, we could use ldconfig to report *all* directores which are
  10834. # searched for libraries, however this is still not possible. Aside from not
  10835. # being certain /sbin/ldconfig is available, command
  10836. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10837. # even though it is searched at run-time. Try to do the best guess by
  10838. # appending ld.so.conf contents (and includes) to the search path.
  10839. if test -f /etc/ld.so.conf; then
  10840. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10841. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10842. fi
  10843. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10844. # powerpc, because MkLinux only supported shared libraries with the
  10845. # GNU dynamic linker. Since this was broken with cross compilers,
  10846. # most powerpc-linux boxes support dynamic linking these days and
  10847. # people can always --disable-shared, the test was removed, and we
  10848. # assume the GNU/Linux dynamic linker is in use.
  10849. dynamic_linker='GNU/Linux ld.so'
  10850. ;;
  10851. netbsd*)
  10852. version_type=sunos
  10853. need_lib_prefix=no
  10854. need_version=no
  10855. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10856. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10857. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10858. dynamic_linker='NetBSD (a.out) ld.so'
  10859. else
  10860. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10861. soname_spec='$libname$release$shared_ext$major'
  10862. dynamic_linker='NetBSD ld.elf_so'
  10863. fi
  10864. shlibpath_var=LD_LIBRARY_PATH
  10865. shlibpath_overrides_runpath=yes
  10866. hardcode_into_libs=yes
  10867. ;;
  10868. newsos6)
  10869. version_type=linux # correct to gnu/linux during the next big refactor
  10870. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10871. shlibpath_var=LD_LIBRARY_PATH
  10872. shlibpath_overrides_runpath=yes
  10873. ;;
  10874. *nto* | *qnx*)
  10875. version_type=qnx
  10876. need_lib_prefix=no
  10877. need_version=no
  10878. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10879. soname_spec='$libname$release$shared_ext$major'
  10880. shlibpath_var=LD_LIBRARY_PATH
  10881. shlibpath_overrides_runpath=no
  10882. hardcode_into_libs=yes
  10883. dynamic_linker='ldqnx.so'
  10884. ;;
  10885. openbsd* | bitrig*)
  10886. version_type=sunos
  10887. sys_lib_dlsearch_path_spec=/usr/lib
  10888. need_lib_prefix=no
  10889. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10890. need_version=no
  10891. else
  10892. need_version=yes
  10893. fi
  10894. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10895. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10896. shlibpath_var=LD_LIBRARY_PATH
  10897. shlibpath_overrides_runpath=yes
  10898. ;;
  10899. os2*)
  10900. libname_spec='$name'
  10901. version_type=windows
  10902. shrext_cmds=.dll
  10903. need_version=no
  10904. need_lib_prefix=no
  10905. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10906. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10907. v=$($ECHO $release$versuffix | tr -d .-);
  10908. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10909. $ECHO $n$v`$shared_ext'
  10910. library_names_spec='${libname}_dll.$libext'
  10911. dynamic_linker='OS/2 ld.exe'
  10912. shlibpath_var=BEGINLIBPATH
  10913. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10914. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10915. postinstall_cmds='base_file=`basename \$file`~
  10916. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10917. dldir=$destdir/`dirname \$dlpath`~
  10918. test -d \$dldir || mkdir -p \$dldir~
  10919. $install_prog $dir/$dlname \$dldir/$dlname~
  10920. chmod a+x \$dldir/$dlname~
  10921. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10922. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10923. fi'
  10924. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10925. dlpath=$dir/\$dldll~
  10926. $RM \$dlpath'
  10927. ;;
  10928. osf3* | osf4* | osf5*)
  10929. version_type=osf
  10930. need_lib_prefix=no
  10931. need_version=no
  10932. soname_spec='$libname$release$shared_ext$major'
  10933. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10934. shlibpath_var=LD_LIBRARY_PATH
  10935. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10936. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10937. ;;
  10938. rdos*)
  10939. dynamic_linker=no
  10940. ;;
  10941. solaris*)
  10942. version_type=linux # correct to gnu/linux during the next big refactor
  10943. need_lib_prefix=no
  10944. need_version=no
  10945. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10946. soname_spec='$libname$release$shared_ext$major'
  10947. shlibpath_var=LD_LIBRARY_PATH
  10948. shlibpath_overrides_runpath=yes
  10949. hardcode_into_libs=yes
  10950. # ldd complains unless libraries are executable
  10951. postinstall_cmds='chmod +x $lib'
  10952. ;;
  10953. sunos4*)
  10954. version_type=sunos
  10955. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10956. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10957. shlibpath_var=LD_LIBRARY_PATH
  10958. shlibpath_overrides_runpath=yes
  10959. if test yes = "$with_gnu_ld"; then
  10960. need_lib_prefix=no
  10961. fi
  10962. need_version=yes
  10963. ;;
  10964. sysv4 | sysv4.3*)
  10965. version_type=linux # correct to gnu/linux during the next big refactor
  10966. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10967. soname_spec='$libname$release$shared_ext$major'
  10968. shlibpath_var=LD_LIBRARY_PATH
  10969. case $host_vendor in
  10970. sni)
  10971. shlibpath_overrides_runpath=no
  10972. need_lib_prefix=no
  10973. runpath_var=LD_RUN_PATH
  10974. ;;
  10975. siemens)
  10976. need_lib_prefix=no
  10977. ;;
  10978. motorola)
  10979. need_lib_prefix=no
  10980. need_version=no
  10981. shlibpath_overrides_runpath=no
  10982. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10983. ;;
  10984. esac
  10985. ;;
  10986. sysv4*MP*)
  10987. if test -d /usr/nec; then
  10988. version_type=linux # correct to gnu/linux during the next big refactor
  10989. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10990. soname_spec='$libname$shared_ext.$major'
  10991. shlibpath_var=LD_LIBRARY_PATH
  10992. fi
  10993. ;;
  10994. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10995. version_type=sco
  10996. need_lib_prefix=no
  10997. need_version=no
  10998. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10999. soname_spec='$libname$release$shared_ext$major'
  11000. shlibpath_var=LD_LIBRARY_PATH
  11001. shlibpath_overrides_runpath=yes
  11002. hardcode_into_libs=yes
  11003. if test yes = "$with_gnu_ld"; then
  11004. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11005. else
  11006. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11007. case $host_os in
  11008. sco3.2v5*)
  11009. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11010. ;;
  11011. esac
  11012. fi
  11013. sys_lib_dlsearch_path_spec='/usr/lib'
  11014. ;;
  11015. tpf*)
  11016. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11017. version_type=linux # correct to gnu/linux during the next big refactor
  11018. need_lib_prefix=no
  11019. need_version=no
  11020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11021. shlibpath_var=LD_LIBRARY_PATH
  11022. shlibpath_overrides_runpath=no
  11023. hardcode_into_libs=yes
  11024. ;;
  11025. uts4*)
  11026. version_type=linux # correct to gnu/linux during the next big refactor
  11027. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11028. soname_spec='$libname$release$shared_ext$major'
  11029. shlibpath_var=LD_LIBRARY_PATH
  11030. ;;
  11031. *)
  11032. dynamic_linker=no
  11033. ;;
  11034. esac
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11036. $as_echo "$dynamic_linker" >&6; }
  11037. test no = "$dynamic_linker" && can_build_shared=no
  11038. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11039. if test yes = "$GCC"; then
  11040. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11041. fi
  11042. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11043. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11044. fi
  11045. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11046. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11047. fi
  11048. # lt_cv_sys_lib... is unaugmented for libtool script decls...
  11049. lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
  11050. # ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for
  11051. # LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths:
  11052. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11054. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11055. hardcode_action=
  11056. if test -n "$hardcode_libdir_flag_spec" ||
  11057. test -n "$runpath_var" ||
  11058. test yes = "$hardcode_automatic"; then
  11059. # We can hardcode non-existent directories.
  11060. if test no != "$hardcode_direct" &&
  11061. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11062. # have to relink, otherwise we might link with an installed library
  11063. # when we should be linking with a yet-to-be-installed one
  11064. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11065. test no != "$hardcode_minus_L"; then
  11066. # Linking always hardcodes the temporary library directory.
  11067. hardcode_action=relink
  11068. else
  11069. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11070. hardcode_action=immediate
  11071. fi
  11072. else
  11073. # We cannot hardcode anything, or else we can only hardcode existing
  11074. # directories.
  11075. hardcode_action=unsupported
  11076. fi
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11078. $as_echo "$hardcode_action" >&6; }
  11079. if test relink = "$hardcode_action" ||
  11080. test yes = "$inherit_rpath"; then
  11081. # Fast installation is not supported
  11082. enable_fast_install=no
  11083. elif test yes = "$shlibpath_overrides_runpath" ||
  11084. test no = "$enable_shared"; then
  11085. # Fast installation is not necessary
  11086. enable_fast_install=needless
  11087. fi
  11088. if test yes != "$enable_dlopen"; then
  11089. enable_dlopen=unknown
  11090. enable_dlopen_self=unknown
  11091. enable_dlopen_self_static=unknown
  11092. else
  11093. lt_cv_dlopen=no
  11094. lt_cv_dlopen_libs=
  11095. case $host_os in
  11096. beos*)
  11097. lt_cv_dlopen=load_add_on
  11098. lt_cv_dlopen_libs=
  11099. lt_cv_dlopen_self=yes
  11100. ;;
  11101. mingw* | pw32* | cegcc*)
  11102. lt_cv_dlopen=LoadLibrary
  11103. lt_cv_dlopen_libs=
  11104. ;;
  11105. cygwin*)
  11106. lt_cv_dlopen=dlopen
  11107. lt_cv_dlopen_libs=
  11108. ;;
  11109. darwin*)
  11110. # if libdl is installed we need to link against it
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11112. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11113. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11114. $as_echo_n "(cached) " >&6
  11115. else
  11116. ac_check_lib_save_LIBS=$LIBS
  11117. LIBS="-ldl $LIBS"
  11118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11119. /* end confdefs.h. */
  11120. /* Override any GCC internal prototype to avoid an error.
  11121. Use char because int might match the return type of a GCC
  11122. builtin and then its argument prototype would still apply. */
  11123. #ifdef __cplusplus
  11124. extern "C"
  11125. #endif
  11126. char dlopen ();
  11127. int
  11128. main ()
  11129. {
  11130. return dlopen ();
  11131. ;
  11132. return 0;
  11133. }
  11134. _ACEOF
  11135. if ac_fn_c_try_link "$LINENO"; then :
  11136. ac_cv_lib_dl_dlopen=yes
  11137. else
  11138. ac_cv_lib_dl_dlopen=no
  11139. fi
  11140. rm -f core conftest.err conftest.$ac_objext \
  11141. conftest$ac_exeext conftest.$ac_ext
  11142. LIBS=$ac_check_lib_save_LIBS
  11143. fi
  11144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11145. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11146. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11147. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11148. else
  11149. lt_cv_dlopen=dyld
  11150. lt_cv_dlopen_libs=
  11151. lt_cv_dlopen_self=yes
  11152. fi
  11153. ;;
  11154. tpf*)
  11155. # Don't try to run any link tests for TPF. We know it's impossible
  11156. # because TPF is a cross-compiler, and we know how we open DSOs.
  11157. lt_cv_dlopen=dlopen
  11158. lt_cv_dlopen_libs=
  11159. lt_cv_dlopen_self=no
  11160. ;;
  11161. *)
  11162. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11163. if test "x$ac_cv_func_shl_load" = xyes; then :
  11164. lt_cv_dlopen=shl_load
  11165. else
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11167. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11168. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11169. $as_echo_n "(cached) " >&6
  11170. else
  11171. ac_check_lib_save_LIBS=$LIBS
  11172. LIBS="-ldld $LIBS"
  11173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11174. /* end confdefs.h. */
  11175. /* Override any GCC internal prototype to avoid an error.
  11176. Use char because int might match the return type of a GCC
  11177. builtin and then its argument prototype would still apply. */
  11178. #ifdef __cplusplus
  11179. extern "C"
  11180. #endif
  11181. char shl_load ();
  11182. int
  11183. main ()
  11184. {
  11185. return shl_load ();
  11186. ;
  11187. return 0;
  11188. }
  11189. _ACEOF
  11190. if ac_fn_c_try_link "$LINENO"; then :
  11191. ac_cv_lib_dld_shl_load=yes
  11192. else
  11193. ac_cv_lib_dld_shl_load=no
  11194. fi
  11195. rm -f core conftest.err conftest.$ac_objext \
  11196. conftest$ac_exeext conftest.$ac_ext
  11197. LIBS=$ac_check_lib_save_LIBS
  11198. fi
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11200. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11201. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11202. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11203. else
  11204. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11205. if test "x$ac_cv_func_dlopen" = xyes; then :
  11206. lt_cv_dlopen=dlopen
  11207. else
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11209. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11210. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11211. $as_echo_n "(cached) " >&6
  11212. else
  11213. ac_check_lib_save_LIBS=$LIBS
  11214. LIBS="-ldl $LIBS"
  11215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11216. /* end confdefs.h. */
  11217. /* Override any GCC internal prototype to avoid an error.
  11218. Use char because int might match the return type of a GCC
  11219. builtin and then its argument prototype would still apply. */
  11220. #ifdef __cplusplus
  11221. extern "C"
  11222. #endif
  11223. char dlopen ();
  11224. int
  11225. main ()
  11226. {
  11227. return dlopen ();
  11228. ;
  11229. return 0;
  11230. }
  11231. _ACEOF
  11232. if ac_fn_c_try_link "$LINENO"; then :
  11233. ac_cv_lib_dl_dlopen=yes
  11234. else
  11235. ac_cv_lib_dl_dlopen=no
  11236. fi
  11237. rm -f core conftest.err conftest.$ac_objext \
  11238. conftest$ac_exeext conftest.$ac_ext
  11239. LIBS=$ac_check_lib_save_LIBS
  11240. fi
  11241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11242. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11243. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11244. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11245. else
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11247. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11248. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11249. $as_echo_n "(cached) " >&6
  11250. else
  11251. ac_check_lib_save_LIBS=$LIBS
  11252. LIBS="-lsvld $LIBS"
  11253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11254. /* end confdefs.h. */
  11255. /* Override any GCC internal prototype to avoid an error.
  11256. Use char because int might match the return type of a GCC
  11257. builtin and then its argument prototype would still apply. */
  11258. #ifdef __cplusplus
  11259. extern "C"
  11260. #endif
  11261. char dlopen ();
  11262. int
  11263. main ()
  11264. {
  11265. return dlopen ();
  11266. ;
  11267. return 0;
  11268. }
  11269. _ACEOF
  11270. if ac_fn_c_try_link "$LINENO"; then :
  11271. ac_cv_lib_svld_dlopen=yes
  11272. else
  11273. ac_cv_lib_svld_dlopen=no
  11274. fi
  11275. rm -f core conftest.err conftest.$ac_objext \
  11276. conftest$ac_exeext conftest.$ac_ext
  11277. LIBS=$ac_check_lib_save_LIBS
  11278. fi
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11280. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11281. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11282. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11283. else
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11285. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11286. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11287. $as_echo_n "(cached) " >&6
  11288. else
  11289. ac_check_lib_save_LIBS=$LIBS
  11290. LIBS="-ldld $LIBS"
  11291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11292. /* end confdefs.h. */
  11293. /* Override any GCC internal prototype to avoid an error.
  11294. Use char because int might match the return type of a GCC
  11295. builtin and then its argument prototype would still apply. */
  11296. #ifdef __cplusplus
  11297. extern "C"
  11298. #endif
  11299. char dld_link ();
  11300. int
  11301. main ()
  11302. {
  11303. return dld_link ();
  11304. ;
  11305. return 0;
  11306. }
  11307. _ACEOF
  11308. if ac_fn_c_try_link "$LINENO"; then :
  11309. ac_cv_lib_dld_dld_link=yes
  11310. else
  11311. ac_cv_lib_dld_dld_link=no
  11312. fi
  11313. rm -f core conftest.err conftest.$ac_objext \
  11314. conftest$ac_exeext conftest.$ac_ext
  11315. LIBS=$ac_check_lib_save_LIBS
  11316. fi
  11317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11318. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11319. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11320. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11321. fi
  11322. fi
  11323. fi
  11324. fi
  11325. fi
  11326. fi
  11327. ;;
  11328. esac
  11329. if test no = "$lt_cv_dlopen"; then
  11330. enable_dlopen=no
  11331. else
  11332. enable_dlopen=yes
  11333. fi
  11334. case $lt_cv_dlopen in
  11335. dlopen)
  11336. save_CPPFLAGS=$CPPFLAGS
  11337. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11338. save_LDFLAGS=$LDFLAGS
  11339. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11340. save_LIBS=$LIBS
  11341. LIBS="$lt_cv_dlopen_libs $LIBS"
  11342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11343. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11344. if ${lt_cv_dlopen_self+:} false; then :
  11345. $as_echo_n "(cached) " >&6
  11346. else
  11347. if test yes = "$cross_compiling"; then :
  11348. lt_cv_dlopen_self=cross
  11349. else
  11350. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11351. lt_status=$lt_dlunknown
  11352. cat > conftest.$ac_ext <<_LT_EOF
  11353. #line $LINENO "configure"
  11354. #include "confdefs.h"
  11355. #if HAVE_DLFCN_H
  11356. #include <dlfcn.h>
  11357. #endif
  11358. #include <stdio.h>
  11359. #ifdef RTLD_GLOBAL
  11360. # define LT_DLGLOBAL RTLD_GLOBAL
  11361. #else
  11362. # ifdef DL_GLOBAL
  11363. # define LT_DLGLOBAL DL_GLOBAL
  11364. # else
  11365. # define LT_DLGLOBAL 0
  11366. # endif
  11367. #endif
  11368. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11369. find out it does not work in some platform. */
  11370. #ifndef LT_DLLAZY_OR_NOW
  11371. # ifdef RTLD_LAZY
  11372. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11373. # else
  11374. # ifdef DL_LAZY
  11375. # define LT_DLLAZY_OR_NOW DL_LAZY
  11376. # else
  11377. # ifdef RTLD_NOW
  11378. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11379. # else
  11380. # ifdef DL_NOW
  11381. # define LT_DLLAZY_OR_NOW DL_NOW
  11382. # else
  11383. # define LT_DLLAZY_OR_NOW 0
  11384. # endif
  11385. # endif
  11386. # endif
  11387. # endif
  11388. #endif
  11389. /* When -fvisibility=hidden is used, assume the code has been annotated
  11390. correspondingly for the symbols needed. */
  11391. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11392. int fnord () __attribute__((visibility("default")));
  11393. #endif
  11394. int fnord () { return 42; }
  11395. int main ()
  11396. {
  11397. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11398. int status = $lt_dlunknown;
  11399. if (self)
  11400. {
  11401. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11402. else
  11403. {
  11404. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11405. else puts (dlerror ());
  11406. }
  11407. /* dlclose (self); */
  11408. }
  11409. else
  11410. puts (dlerror ());
  11411. return status;
  11412. }
  11413. _LT_EOF
  11414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11415. (eval $ac_link) 2>&5
  11416. ac_status=$?
  11417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11418. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11419. (./conftest; exit; ) >&5 2>/dev/null
  11420. lt_status=$?
  11421. case x$lt_status in
  11422. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11423. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11424. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11425. esac
  11426. else :
  11427. # compilation failed
  11428. lt_cv_dlopen_self=no
  11429. fi
  11430. fi
  11431. rm -fr conftest*
  11432. fi
  11433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11434. $as_echo "$lt_cv_dlopen_self" >&6; }
  11435. if test yes = "$lt_cv_dlopen_self"; then
  11436. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11438. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11439. if ${lt_cv_dlopen_self_static+:} false; then :
  11440. $as_echo_n "(cached) " >&6
  11441. else
  11442. if test yes = "$cross_compiling"; then :
  11443. lt_cv_dlopen_self_static=cross
  11444. else
  11445. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11446. lt_status=$lt_dlunknown
  11447. cat > conftest.$ac_ext <<_LT_EOF
  11448. #line $LINENO "configure"
  11449. #include "confdefs.h"
  11450. #if HAVE_DLFCN_H
  11451. #include <dlfcn.h>
  11452. #endif
  11453. #include <stdio.h>
  11454. #ifdef RTLD_GLOBAL
  11455. # define LT_DLGLOBAL RTLD_GLOBAL
  11456. #else
  11457. # ifdef DL_GLOBAL
  11458. # define LT_DLGLOBAL DL_GLOBAL
  11459. # else
  11460. # define LT_DLGLOBAL 0
  11461. # endif
  11462. #endif
  11463. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11464. find out it does not work in some platform. */
  11465. #ifndef LT_DLLAZY_OR_NOW
  11466. # ifdef RTLD_LAZY
  11467. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11468. # else
  11469. # ifdef DL_LAZY
  11470. # define LT_DLLAZY_OR_NOW DL_LAZY
  11471. # else
  11472. # ifdef RTLD_NOW
  11473. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11474. # else
  11475. # ifdef DL_NOW
  11476. # define LT_DLLAZY_OR_NOW DL_NOW
  11477. # else
  11478. # define LT_DLLAZY_OR_NOW 0
  11479. # endif
  11480. # endif
  11481. # endif
  11482. # endif
  11483. #endif
  11484. /* When -fvisibility=hidden is used, assume the code has been annotated
  11485. correspondingly for the symbols needed. */
  11486. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11487. int fnord () __attribute__((visibility("default")));
  11488. #endif
  11489. int fnord () { return 42; }
  11490. int main ()
  11491. {
  11492. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11493. int status = $lt_dlunknown;
  11494. if (self)
  11495. {
  11496. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11497. else
  11498. {
  11499. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11500. else puts (dlerror ());
  11501. }
  11502. /* dlclose (self); */
  11503. }
  11504. else
  11505. puts (dlerror ());
  11506. return status;
  11507. }
  11508. _LT_EOF
  11509. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11510. (eval $ac_link) 2>&5
  11511. ac_status=$?
  11512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11513. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11514. (./conftest; exit; ) >&5 2>/dev/null
  11515. lt_status=$?
  11516. case x$lt_status in
  11517. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11518. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11519. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11520. esac
  11521. else :
  11522. # compilation failed
  11523. lt_cv_dlopen_self_static=no
  11524. fi
  11525. fi
  11526. rm -fr conftest*
  11527. fi
  11528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11529. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11530. fi
  11531. CPPFLAGS=$save_CPPFLAGS
  11532. LDFLAGS=$save_LDFLAGS
  11533. LIBS=$save_LIBS
  11534. ;;
  11535. esac
  11536. case $lt_cv_dlopen_self in
  11537. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11538. *) enable_dlopen_self=unknown ;;
  11539. esac
  11540. case $lt_cv_dlopen_self_static in
  11541. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11542. *) enable_dlopen_self_static=unknown ;;
  11543. esac
  11544. fi
  11545. striplib=
  11546. old_striplib=
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11548. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11549. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11550. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11551. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11553. $as_echo "yes" >&6; }
  11554. else
  11555. # FIXME - insert some real tests, host_os isn't really good enough
  11556. case $host_os in
  11557. darwin*)
  11558. if test -n "$STRIP"; then
  11559. striplib="$STRIP -x"
  11560. old_striplib="$STRIP -S"
  11561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11562. $as_echo "yes" >&6; }
  11563. else
  11564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11565. $as_echo "no" >&6; }
  11566. fi
  11567. ;;
  11568. *)
  11569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11570. $as_echo "no" >&6; }
  11571. ;;
  11572. esac
  11573. fi
  11574. # Report what library types will actually be built
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11576. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11578. $as_echo "$can_build_shared" >&6; }
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11580. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11581. test no = "$can_build_shared" && enable_shared=no
  11582. # On AIX, shared libraries and static libraries use the same namespace, and
  11583. # are all built from PIC.
  11584. case $host_os in
  11585. aix3*)
  11586. test yes = "$enable_shared" && enable_static=no
  11587. if test -n "$RANLIB"; then
  11588. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11589. postinstall_cmds='$RANLIB $lib'
  11590. fi
  11591. ;;
  11592. aix[4-9]*)
  11593. if test ia64 != "$host_cpu"; then
  11594. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11595. yes,aix,yes) ;; # shared object as lib.so file only
  11596. yes,svr4,*) ;; # shared object as lib.so archive member only
  11597. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11598. esac
  11599. fi
  11600. ;;
  11601. esac
  11602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11603. $as_echo "$enable_shared" >&6; }
  11604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11605. $as_echo_n "checking whether to build static libraries... " >&6; }
  11606. # Make sure either enable_shared or enable_static is yes.
  11607. test yes = "$enable_shared" || enable_static=yes
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11609. $as_echo "$enable_static" >&6; }
  11610. fi
  11611. ac_ext=cpp
  11612. ac_cpp='$CXXCPP $CPPFLAGS'
  11613. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11614. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11615. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11616. CC=$lt_save_CC
  11617. if test -n "$CXX" && ( test no != "$CXX" &&
  11618. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11619. (test g++ != "$CXX"))); then
  11620. ac_ext=cpp
  11621. ac_cpp='$CXXCPP $CPPFLAGS'
  11622. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11623. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11624. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11626. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11627. if test -z "$CXXCPP"; then
  11628. if ${ac_cv_prog_CXXCPP+:} false; then :
  11629. $as_echo_n "(cached) " >&6
  11630. else
  11631. # Double quotes because CXXCPP needs to be expanded
  11632. for CXXCPP in "$CXX -E" "/lib/cpp"
  11633. do
  11634. ac_preproc_ok=false
  11635. for ac_cxx_preproc_warn_flag in '' yes
  11636. do
  11637. # Use a header file that comes with gcc, so configuring glibc
  11638. # with a fresh cross-compiler works.
  11639. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11640. # <limits.h> exists even on freestanding compilers.
  11641. # On the NeXT, cc -E runs the code through the compiler's parser,
  11642. # not just through cpp. "Syntax error" is here to catch this case.
  11643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11644. /* end confdefs.h. */
  11645. #ifdef __STDC__
  11646. # include <limits.h>
  11647. #else
  11648. # include <assert.h>
  11649. #endif
  11650. Syntax error
  11651. _ACEOF
  11652. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11653. else
  11654. # Broken: fails on valid input.
  11655. continue
  11656. fi
  11657. rm -f conftest.err conftest.i conftest.$ac_ext
  11658. # OK, works on sane cases. Now check whether nonexistent headers
  11659. # can be detected and how.
  11660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11661. /* end confdefs.h. */
  11662. #include <ac_nonexistent.h>
  11663. _ACEOF
  11664. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11665. # Broken: success on invalid input.
  11666. continue
  11667. else
  11668. # Passes both tests.
  11669. ac_preproc_ok=:
  11670. break
  11671. fi
  11672. rm -f conftest.err conftest.i conftest.$ac_ext
  11673. done
  11674. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11675. rm -f conftest.i conftest.err conftest.$ac_ext
  11676. if $ac_preproc_ok; then :
  11677. break
  11678. fi
  11679. done
  11680. ac_cv_prog_CXXCPP=$CXXCPP
  11681. fi
  11682. CXXCPP=$ac_cv_prog_CXXCPP
  11683. else
  11684. ac_cv_prog_CXXCPP=$CXXCPP
  11685. fi
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11687. $as_echo "$CXXCPP" >&6; }
  11688. ac_preproc_ok=false
  11689. for ac_cxx_preproc_warn_flag in '' yes
  11690. do
  11691. # Use a header file that comes with gcc, so configuring glibc
  11692. # with a fresh cross-compiler works.
  11693. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11694. # <limits.h> exists even on freestanding compilers.
  11695. # On the NeXT, cc -E runs the code through the compiler's parser,
  11696. # not just through cpp. "Syntax error" is here to catch this case.
  11697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11698. /* end confdefs.h. */
  11699. #ifdef __STDC__
  11700. # include <limits.h>
  11701. #else
  11702. # include <assert.h>
  11703. #endif
  11704. Syntax error
  11705. _ACEOF
  11706. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11707. else
  11708. # Broken: fails on valid input.
  11709. continue
  11710. fi
  11711. rm -f conftest.err conftest.i conftest.$ac_ext
  11712. # OK, works on sane cases. Now check whether nonexistent headers
  11713. # can be detected and how.
  11714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11715. /* end confdefs.h. */
  11716. #include <ac_nonexistent.h>
  11717. _ACEOF
  11718. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11719. # Broken: success on invalid input.
  11720. continue
  11721. else
  11722. # Passes both tests.
  11723. ac_preproc_ok=:
  11724. break
  11725. fi
  11726. rm -f conftest.err conftest.i conftest.$ac_ext
  11727. done
  11728. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11729. rm -f conftest.i conftest.err conftest.$ac_ext
  11730. if $ac_preproc_ok; then :
  11731. else
  11732. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11733. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11734. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11735. See \`config.log' for more details" "$LINENO" 5; }
  11736. fi
  11737. ac_ext=cpp
  11738. ac_cpp='$CXXCPP $CPPFLAGS'
  11739. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11740. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11741. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11742. else
  11743. _lt_caught_CXX_error=yes
  11744. fi
  11745. ac_ext=cpp
  11746. ac_cpp='$CXXCPP $CPPFLAGS'
  11747. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11748. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11749. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11750. archive_cmds_need_lc_CXX=no
  11751. allow_undefined_flag_CXX=
  11752. always_export_symbols_CXX=no
  11753. archive_expsym_cmds_CXX=
  11754. compiler_needs_object_CXX=no
  11755. export_dynamic_flag_spec_CXX=
  11756. hardcode_direct_CXX=no
  11757. hardcode_direct_absolute_CXX=no
  11758. hardcode_libdir_flag_spec_CXX=
  11759. hardcode_libdir_separator_CXX=
  11760. hardcode_minus_L_CXX=no
  11761. hardcode_shlibpath_var_CXX=unsupported
  11762. hardcode_automatic_CXX=no
  11763. inherit_rpath_CXX=no
  11764. module_cmds_CXX=
  11765. module_expsym_cmds_CXX=
  11766. link_all_deplibs_CXX=unknown
  11767. old_archive_cmds_CXX=$old_archive_cmds
  11768. reload_flag_CXX=$reload_flag
  11769. reload_cmds_CXX=$reload_cmds
  11770. no_undefined_flag_CXX=
  11771. whole_archive_flag_spec_CXX=
  11772. enable_shared_with_static_runtimes_CXX=no
  11773. # Source file extension for C++ test sources.
  11774. ac_ext=cpp
  11775. # Object file extension for compiled C++ test sources.
  11776. objext=o
  11777. objext_CXX=$objext
  11778. # No sense in running all these tests if we already determined that
  11779. # the CXX compiler isn't working. Some variables (like enable_shared)
  11780. # are currently assumed to apply to all compilers on this platform,
  11781. # and will be corrupted by setting them based on a non-working compiler.
  11782. if test yes != "$_lt_caught_CXX_error"; then
  11783. # Code to be used in simple compile tests
  11784. lt_simple_compile_test_code="int some_variable = 0;"
  11785. # Code to be used in simple link tests
  11786. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11787. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11788. # If no C compiler was specified, use CC.
  11789. LTCC=${LTCC-"$CC"}
  11790. # If no C compiler flags were specified, use CFLAGS.
  11791. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11792. # Allow CC to be a program name with arguments.
  11793. compiler=$CC
  11794. # save warnings/boilerplate of simple test code
  11795. ac_outfile=conftest.$ac_objext
  11796. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11797. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11798. _lt_compiler_boilerplate=`cat conftest.err`
  11799. $RM conftest*
  11800. ac_outfile=conftest.$ac_objext
  11801. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11802. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11803. _lt_linker_boilerplate=`cat conftest.err`
  11804. $RM -r conftest*
  11805. # Allow CC to be a program name with arguments.
  11806. lt_save_CC=$CC
  11807. lt_save_CFLAGS=$CFLAGS
  11808. lt_save_LD=$LD
  11809. lt_save_GCC=$GCC
  11810. GCC=$GXX
  11811. lt_save_with_gnu_ld=$with_gnu_ld
  11812. lt_save_path_LD=$lt_cv_path_LD
  11813. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11814. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11815. else
  11816. $as_unset lt_cv_prog_gnu_ld
  11817. fi
  11818. if test -n "${lt_cv_path_LDCXX+set}"; then
  11819. lt_cv_path_LD=$lt_cv_path_LDCXX
  11820. else
  11821. $as_unset lt_cv_path_LD
  11822. fi
  11823. test -z "${LDCXX+set}" || LD=$LDCXX
  11824. CC=${CXX-"c++"}
  11825. CFLAGS=$CXXFLAGS
  11826. compiler=$CC
  11827. compiler_CXX=$CC
  11828. func_cc_basename $compiler
  11829. cc_basename=$func_cc_basename_result
  11830. if test -n "$compiler"; then
  11831. # We don't want -fno-exception when compiling C++ code, so set the
  11832. # no_builtin_flag separately
  11833. if test yes = "$GXX"; then
  11834. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11835. else
  11836. lt_prog_compiler_no_builtin_flag_CXX=
  11837. fi
  11838. if test yes = "$GXX"; then
  11839. # Set up default GNU C++ configuration
  11840. # Check whether --with-gnu-ld was given.
  11841. if test "${with_gnu_ld+set}" = set; then :
  11842. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11843. else
  11844. with_gnu_ld=no
  11845. fi
  11846. ac_prog=ld
  11847. if test yes = "$GCC"; then
  11848. # Check if gcc -print-prog-name=ld gives a path.
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11850. $as_echo_n "checking for ld used by $CC... " >&6; }
  11851. case $host in
  11852. *-*-mingw*)
  11853. # gcc leaves a trailing carriage return, which upsets mingw
  11854. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11855. *)
  11856. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11857. esac
  11858. case $ac_prog in
  11859. # Accept absolute paths.
  11860. [\\/]* | ?:[\\/]*)
  11861. re_direlt='/[^/][^/]*/\.\./'
  11862. # Canonicalize the pathname of ld
  11863. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11864. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11865. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11866. done
  11867. test -z "$LD" && LD=$ac_prog
  11868. ;;
  11869. "")
  11870. # If it fails, then pretend we aren't using GCC.
  11871. ac_prog=ld
  11872. ;;
  11873. *)
  11874. # If it is relative, then search for the first ld in PATH.
  11875. with_gnu_ld=unknown
  11876. ;;
  11877. esac
  11878. elif test yes = "$with_gnu_ld"; then
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11880. $as_echo_n "checking for GNU ld... " >&6; }
  11881. else
  11882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11883. $as_echo_n "checking for non-GNU ld... " >&6; }
  11884. fi
  11885. if ${lt_cv_path_LD+:} false; then :
  11886. $as_echo_n "(cached) " >&6
  11887. else
  11888. if test -z "$LD"; then
  11889. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11890. for ac_dir in $PATH; do
  11891. IFS=$lt_save_ifs
  11892. test -z "$ac_dir" && ac_dir=.
  11893. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11894. lt_cv_path_LD=$ac_dir/$ac_prog
  11895. # Check to see if the program is GNU ld. I'd rather use --version,
  11896. # but apparently some variants of GNU ld only accept -v.
  11897. # Break only if it was the GNU/non-GNU ld that we prefer.
  11898. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11899. *GNU* | *'with BFD'*)
  11900. test no != "$with_gnu_ld" && break
  11901. ;;
  11902. *)
  11903. test yes != "$with_gnu_ld" && break
  11904. ;;
  11905. esac
  11906. fi
  11907. done
  11908. IFS=$lt_save_ifs
  11909. else
  11910. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11911. fi
  11912. fi
  11913. LD=$lt_cv_path_LD
  11914. if test -n "$LD"; then
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11916. $as_echo "$LD" >&6; }
  11917. else
  11918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11919. $as_echo "no" >&6; }
  11920. fi
  11921. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11923. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11924. if ${lt_cv_prog_gnu_ld+:} false; then :
  11925. $as_echo_n "(cached) " >&6
  11926. else
  11927. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11928. case `$LD -v 2>&1 </dev/null` in
  11929. *GNU* | *'with BFD'*)
  11930. lt_cv_prog_gnu_ld=yes
  11931. ;;
  11932. *)
  11933. lt_cv_prog_gnu_ld=no
  11934. ;;
  11935. esac
  11936. fi
  11937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11938. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11939. with_gnu_ld=$lt_cv_prog_gnu_ld
  11940. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11941. # archiving commands below assume that GNU ld is being used.
  11942. if test yes = "$with_gnu_ld"; then
  11943. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11944. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11945. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11946. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11947. # If archive_cmds runs LD, not CC, wlarc should be empty
  11948. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11949. # investigate it a little bit more. (MM)
  11950. wlarc='$wl'
  11951. # ancient GNU ld didn't support --whole-archive et. al.
  11952. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11953. $GREP 'no-whole-archive' > /dev/null; then
  11954. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11955. else
  11956. whole_archive_flag_spec_CXX=
  11957. fi
  11958. else
  11959. with_gnu_ld=no
  11960. wlarc=
  11961. # A generic and very simple default shared library creation
  11962. # command for GNU C++ for the case where it uses the native
  11963. # linker, instead of GNU ld. If possible, this setting should
  11964. # overridden to take advantage of the native linker features on
  11965. # the platform it is being used on.
  11966. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11967. fi
  11968. # Commands to make compiler produce verbose output that lists
  11969. # what "hidden" libraries, object files and flags are used when
  11970. # linking a shared library.
  11971. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11972. else
  11973. GXX=no
  11974. with_gnu_ld=no
  11975. wlarc=
  11976. fi
  11977. # PORTME: fill in a description of your system's C++ link characteristics
  11978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11979. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11980. ld_shlibs_CXX=yes
  11981. case $host_os in
  11982. aix3*)
  11983. # FIXME: insert proper C++ library support
  11984. ld_shlibs_CXX=no
  11985. ;;
  11986. aix[4-9]*)
  11987. if test ia64 = "$host_cpu"; then
  11988. # On IA64, the linker does run time linking by default, so we don't
  11989. # have to do anything special.
  11990. aix_use_runtimelinking=no
  11991. exp_sym_flag='-Bexport'
  11992. no_entry_flag=
  11993. else
  11994. aix_use_runtimelinking=no
  11995. # Test if we are trying to use run time linking or normal
  11996. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11997. # have runtime linking enabled, and use it for executables.
  11998. # For shared libraries, we enable/disable runtime linking
  11999. # depending on the kind of the shared library created -
  12000. # when "with_aix_soname,aix_use_runtimelinking" is:
  12001. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12002. # "aix,yes" lib.so shared, rtl:yes, for executables
  12003. # lib.a static archive
  12004. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12005. # lib.a(lib.so.V) shared, rtl:no, for executables
  12006. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12007. # lib.a(lib.so.V) shared, rtl:no
  12008. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12009. # lib.a static archive
  12010. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12011. for ld_flag in $LDFLAGS; do
  12012. case $ld_flag in
  12013. *-brtl*)
  12014. aix_use_runtimelinking=yes
  12015. break
  12016. ;;
  12017. esac
  12018. done
  12019. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12020. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12021. # so we don't have lib.a shared libs to link our executables.
  12022. # We have to force runtime linking in this case.
  12023. aix_use_runtimelinking=yes
  12024. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12025. fi
  12026. ;;
  12027. esac
  12028. exp_sym_flag='-bexport'
  12029. no_entry_flag='-bnoentry'
  12030. fi
  12031. # When large executables or shared objects are built, AIX ld can
  12032. # have problems creating the table of contents. If linking a library
  12033. # or program results in "error TOC overflow" add -mminimal-toc to
  12034. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12035. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12036. archive_cmds_CXX=''
  12037. hardcode_direct_CXX=yes
  12038. hardcode_direct_absolute_CXX=yes
  12039. hardcode_libdir_separator_CXX=':'
  12040. link_all_deplibs_CXX=yes
  12041. file_list_spec_CXX='$wl-f,'
  12042. case $with_aix_soname,$aix_use_runtimelinking in
  12043. aix,*) ;; # no import file
  12044. svr4,* | *,yes) # use import file
  12045. # The Import File defines what to hardcode.
  12046. hardcode_direct_CXX=no
  12047. hardcode_direct_absolute_CXX=no
  12048. ;;
  12049. esac
  12050. if test yes = "$GXX"; then
  12051. case $host_os in aix4.[012]|aix4.[012].*)
  12052. # We only want to do this on AIX 4.2 and lower, the check
  12053. # below for broken collect2 doesn't work under 4.3+
  12054. collect2name=`$CC -print-prog-name=collect2`
  12055. if test -f "$collect2name" &&
  12056. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12057. then
  12058. # We have reworked collect2
  12059. :
  12060. else
  12061. # We have old collect2
  12062. hardcode_direct_CXX=unsupported
  12063. # It fails to find uninstalled libraries when the uninstalled
  12064. # path is not listed in the libpath. Setting hardcode_minus_L
  12065. # to unsupported forces relinking
  12066. hardcode_minus_L_CXX=yes
  12067. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12068. hardcode_libdir_separator_CXX=
  12069. fi
  12070. esac
  12071. shared_flag='-shared'
  12072. if test yes = "$aix_use_runtimelinking"; then
  12073. shared_flag=$shared_flag' $wl-G'
  12074. fi
  12075. # Need to ensure runtime linking is disabled for the traditional
  12076. # shared library, or the linker may eventually find shared libraries
  12077. # /with/ Import File - we do not want to mix them.
  12078. shared_flag_aix='-shared'
  12079. shared_flag_svr4='-shared $wl-G'
  12080. else
  12081. # not using gcc
  12082. if test ia64 = "$host_cpu"; then
  12083. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12084. # chokes on -Wl,-G. The following line is correct:
  12085. shared_flag='-G'
  12086. else
  12087. if test yes = "$aix_use_runtimelinking"; then
  12088. shared_flag='$wl-G'
  12089. else
  12090. shared_flag='$wl-bM:SRE'
  12091. fi
  12092. shared_flag_aix='$wl-bM:SRE'
  12093. shared_flag_svr4='$wl-G'
  12094. fi
  12095. fi
  12096. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12097. # It seems that -bexpall does not export symbols beginning with
  12098. # underscore (_), so it is better to generate a list of symbols to
  12099. # export.
  12100. always_export_symbols_CXX=yes
  12101. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12102. # Warning - without using the other runtime loading flags (-brtl),
  12103. # -berok will link without error, but may produce a broken library.
  12104. # The "-G" linker flag allows undefined symbols.
  12105. no_undefined_flag_CXX='-bernotok'
  12106. # Determine the default libpath from the value encoded in an empty
  12107. # executable.
  12108. if test set = "${lt_cv_aix_libpath+set}"; then
  12109. aix_libpath=$lt_cv_aix_libpath
  12110. else
  12111. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12112. $as_echo_n "(cached) " >&6
  12113. else
  12114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12115. /* end confdefs.h. */
  12116. int
  12117. main ()
  12118. {
  12119. ;
  12120. return 0;
  12121. }
  12122. _ACEOF
  12123. if ac_fn_cxx_try_link "$LINENO"; then :
  12124. lt_aix_libpath_sed='
  12125. /Import File Strings/,/^$/ {
  12126. /^0/ {
  12127. s/^0 *\([^ ]*\) *$/\1/
  12128. p
  12129. }
  12130. }'
  12131. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12132. # Check for a 64-bit object if we didn't find anything.
  12133. if test -z "$lt_cv_aix_libpath__CXX"; then
  12134. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12135. fi
  12136. fi
  12137. rm -f core conftest.err conftest.$ac_objext \
  12138. conftest$ac_exeext conftest.$ac_ext
  12139. if test -z "$lt_cv_aix_libpath__CXX"; then
  12140. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12141. fi
  12142. fi
  12143. aix_libpath=$lt_cv_aix_libpath__CXX
  12144. fi
  12145. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12146. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12147. else
  12148. if test ia64 = "$host_cpu"; then
  12149. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12150. allow_undefined_flag_CXX="-z nodefs"
  12151. 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"
  12152. else
  12153. # Determine the default libpath from the value encoded in an
  12154. # empty executable.
  12155. if test set = "${lt_cv_aix_libpath+set}"; then
  12156. aix_libpath=$lt_cv_aix_libpath
  12157. else
  12158. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12159. $as_echo_n "(cached) " >&6
  12160. else
  12161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12162. /* end confdefs.h. */
  12163. int
  12164. main ()
  12165. {
  12166. ;
  12167. return 0;
  12168. }
  12169. _ACEOF
  12170. if ac_fn_cxx_try_link "$LINENO"; then :
  12171. lt_aix_libpath_sed='
  12172. /Import File Strings/,/^$/ {
  12173. /^0/ {
  12174. s/^0 *\([^ ]*\) *$/\1/
  12175. p
  12176. }
  12177. }'
  12178. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12179. # Check for a 64-bit object if we didn't find anything.
  12180. if test -z "$lt_cv_aix_libpath__CXX"; then
  12181. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12182. fi
  12183. fi
  12184. rm -f core conftest.err conftest.$ac_objext \
  12185. conftest$ac_exeext conftest.$ac_ext
  12186. if test -z "$lt_cv_aix_libpath__CXX"; then
  12187. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12188. fi
  12189. fi
  12190. aix_libpath=$lt_cv_aix_libpath__CXX
  12191. fi
  12192. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12193. # Warning - without using the other run time loading flags,
  12194. # -berok will link without error, but may produce a broken library.
  12195. no_undefined_flag_CXX=' $wl-bernotok'
  12196. allow_undefined_flag_CXX=' $wl-berok'
  12197. if test yes = "$with_gnu_ld"; then
  12198. # We only use this code for GNU lds that support --whole-archive.
  12199. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12200. else
  12201. # Exported symbols can be pulled into shared objects from archives
  12202. whole_archive_flag_spec_CXX='$convenience'
  12203. fi
  12204. archive_cmds_need_lc_CXX=yes
  12205. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12206. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12207. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12208. if test svr4 != "$with_aix_soname"; then
  12209. # This is similar to how AIX traditionally builds its shared
  12210. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12211. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12212. fi
  12213. if test aix != "$with_aix_soname"; then
  12214. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12215. else
  12216. # used by -dlpreopen to get the symbols
  12217. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12218. fi
  12219. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12220. fi
  12221. fi
  12222. ;;
  12223. beos*)
  12224. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12225. allow_undefined_flag_CXX=unsupported
  12226. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12227. # support --undefined. This deserves some investigation. FIXME
  12228. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12229. else
  12230. ld_shlibs_CXX=no
  12231. fi
  12232. ;;
  12233. chorus*)
  12234. case $cc_basename in
  12235. *)
  12236. # FIXME: insert proper C++ library support
  12237. ld_shlibs_CXX=no
  12238. ;;
  12239. esac
  12240. ;;
  12241. cygwin* | mingw* | pw32* | cegcc*)
  12242. case $GXX,$cc_basename in
  12243. ,cl* | no,cl*)
  12244. # Native MSVC
  12245. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12246. # no search path for DLLs.
  12247. hardcode_libdir_flag_spec_CXX=' '
  12248. allow_undefined_flag_CXX=unsupported
  12249. always_export_symbols_CXX=yes
  12250. file_list_spec_CXX='@'
  12251. # Tell ltmain to make .lib files, not .a files.
  12252. libext=lib
  12253. # Tell ltmain to make .dll files, not .so files.
  12254. shrext_cmds=.dll
  12255. # FIXME: Setting linknames here is a bad hack.
  12256. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12257. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12258. cp "$export_symbols" "$output_objdir/$soname.def";
  12259. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12260. else
  12261. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12262. fi~
  12263. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12264. linknames='
  12265. # The linker will not automatically build a static lib if we build a DLL.
  12266. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12267. enable_shared_with_static_runtimes_CXX=yes
  12268. # Don't use ranlib
  12269. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12270. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12271. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12272. case $lt_outputfile in
  12273. *.exe|*.EXE) ;;
  12274. *)
  12275. lt_outputfile=$lt_outputfile.exe
  12276. lt_tool_outputfile=$lt_tool_outputfile.exe
  12277. ;;
  12278. esac~
  12279. func_to_tool_file "$lt_outputfile"~
  12280. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12281. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12282. $RM "$lt_outputfile.manifest";
  12283. fi'
  12284. ;;
  12285. *)
  12286. # g++
  12287. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12288. # as there is no search path for DLLs.
  12289. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12290. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12291. allow_undefined_flag_CXX=unsupported
  12292. always_export_symbols_CXX=no
  12293. enable_shared_with_static_runtimes_CXX=yes
  12294. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12295. 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'
  12296. # If the export-symbols file already is a .def file, use it as
  12297. # is; otherwise, prepend EXPORTS...
  12298. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12299. cp $export_symbols $output_objdir/$soname.def;
  12300. else
  12301. echo EXPORTS > $output_objdir/$soname.def;
  12302. cat $export_symbols >> $output_objdir/$soname.def;
  12303. fi~
  12304. $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'
  12305. else
  12306. ld_shlibs_CXX=no
  12307. fi
  12308. ;;
  12309. esac
  12310. ;;
  12311. darwin* | rhapsody*)
  12312. archive_cmds_need_lc_CXX=no
  12313. hardcode_direct_CXX=no
  12314. hardcode_automatic_CXX=yes
  12315. hardcode_shlibpath_var_CXX=unsupported
  12316. if test yes = "$lt_cv_ld_force_load"; then
  12317. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  12318. else
  12319. whole_archive_flag_spec_CXX=''
  12320. fi
  12321. link_all_deplibs_CXX=yes
  12322. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12323. case $cc_basename in
  12324. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12325. *) _lt_dar_can_shared=$GCC ;;
  12326. esac
  12327. if test yes = "$_lt_dar_can_shared"; then
  12328. output_verbose_link_cmd=func_echo_all
  12329. 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"
  12330. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12331. 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"
  12332. 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"
  12333. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12334. 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"
  12335. 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"
  12336. fi
  12337. else
  12338. ld_shlibs_CXX=no
  12339. fi
  12340. ;;
  12341. os2*)
  12342. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12343. hardcode_minus_L_CXX=yes
  12344. allow_undefined_flag_CXX=unsupported
  12345. shrext_cmds=.dll
  12346. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12347. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12348. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12349. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12350. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12351. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12352. emximp -o $lib $output_objdir/$libname.def'
  12353. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12354. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12355. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12356. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12357. prefix_cmds="$SED"~
  12358. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12359. prefix_cmds="$prefix_cmds -e 1d";
  12360. fi~
  12361. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12362. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12363. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12364. emximp -o $lib $output_objdir/$libname.def'
  12365. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12366. enable_shared_with_static_runtimes_CXX=yes
  12367. ;;
  12368. dgux*)
  12369. case $cc_basename in
  12370. ec++*)
  12371. # FIXME: insert proper C++ library support
  12372. ld_shlibs_CXX=no
  12373. ;;
  12374. ghcx*)
  12375. # Green Hills C++ Compiler
  12376. # FIXME: insert proper C++ library support
  12377. ld_shlibs_CXX=no
  12378. ;;
  12379. *)
  12380. # FIXME: insert proper C++ library support
  12381. ld_shlibs_CXX=no
  12382. ;;
  12383. esac
  12384. ;;
  12385. freebsd2.*)
  12386. # C++ shared libraries reported to be fairly broken before
  12387. # switch to ELF
  12388. ld_shlibs_CXX=no
  12389. ;;
  12390. freebsd-elf*)
  12391. archive_cmds_need_lc_CXX=no
  12392. ;;
  12393. freebsd* | dragonfly*)
  12394. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12395. # conventions
  12396. ld_shlibs_CXX=yes
  12397. ;;
  12398. haiku*)
  12399. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12400. link_all_deplibs_CXX=yes
  12401. ;;
  12402. hpux9*)
  12403. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12404. hardcode_libdir_separator_CXX=:
  12405. export_dynamic_flag_spec_CXX='$wl-E'
  12406. hardcode_direct_CXX=yes
  12407. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12408. # but as the default
  12409. # location of the library.
  12410. case $cc_basename in
  12411. CC*)
  12412. # FIXME: insert proper C++ library support
  12413. ld_shlibs_CXX=no
  12414. ;;
  12415. aCC*)
  12416. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12417. # Commands to make compiler produce verbose output that lists
  12418. # what "hidden" libraries, object files and flags are used when
  12419. # linking a shared library.
  12420. #
  12421. # There doesn't appear to be a way to prevent this compiler from
  12422. # explicitly linking system object files so we need to strip them
  12423. # from the output so that they don't get included in the library
  12424. # dependencies.
  12425. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12426. ;;
  12427. *)
  12428. if test yes = "$GXX"; then
  12429. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12430. else
  12431. # FIXME: insert proper C++ library support
  12432. ld_shlibs_CXX=no
  12433. fi
  12434. ;;
  12435. esac
  12436. ;;
  12437. hpux10*|hpux11*)
  12438. if test no = "$with_gnu_ld"; then
  12439. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12440. hardcode_libdir_separator_CXX=:
  12441. case $host_cpu in
  12442. hppa*64*|ia64*)
  12443. ;;
  12444. *)
  12445. export_dynamic_flag_spec_CXX='$wl-E'
  12446. ;;
  12447. esac
  12448. fi
  12449. case $host_cpu in
  12450. hppa*64*|ia64*)
  12451. hardcode_direct_CXX=no
  12452. hardcode_shlibpath_var_CXX=no
  12453. ;;
  12454. *)
  12455. hardcode_direct_CXX=yes
  12456. hardcode_direct_absolute_CXX=yes
  12457. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12458. # but as the default
  12459. # location of the library.
  12460. ;;
  12461. esac
  12462. case $cc_basename in
  12463. CC*)
  12464. # FIXME: insert proper C++ library support
  12465. ld_shlibs_CXX=no
  12466. ;;
  12467. aCC*)
  12468. case $host_cpu in
  12469. hppa*64*)
  12470. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12471. ;;
  12472. ia64*)
  12473. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12474. ;;
  12475. *)
  12476. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12477. ;;
  12478. esac
  12479. # Commands to make compiler produce verbose output that lists
  12480. # what "hidden" libraries, object files and flags are used when
  12481. # linking a shared library.
  12482. #
  12483. # There doesn't appear to be a way to prevent this compiler from
  12484. # explicitly linking system object files so we need to strip them
  12485. # from the output so that they don't get included in the library
  12486. # dependencies.
  12487. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12488. ;;
  12489. *)
  12490. if test yes = "$GXX"; then
  12491. if test no = "$with_gnu_ld"; then
  12492. case $host_cpu in
  12493. hppa*64*)
  12494. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12495. ;;
  12496. ia64*)
  12497. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12498. ;;
  12499. *)
  12500. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12501. ;;
  12502. esac
  12503. fi
  12504. else
  12505. # FIXME: insert proper C++ library support
  12506. ld_shlibs_CXX=no
  12507. fi
  12508. ;;
  12509. esac
  12510. ;;
  12511. interix[3-9]*)
  12512. hardcode_direct_CXX=no
  12513. hardcode_shlibpath_var_CXX=no
  12514. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12515. export_dynamic_flag_spec_CXX='$wl-E'
  12516. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12517. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12518. # default) and relocated if they conflict, which is a slow very memory
  12519. # consuming and fragmenting process. To avoid this, we pick a random,
  12520. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12521. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12522. 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'
  12523. 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'
  12524. ;;
  12525. irix5* | irix6*)
  12526. case $cc_basename in
  12527. CC*)
  12528. # SGI C++
  12529. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12530. # Archives containing C++ object files must be created using
  12531. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12532. # necessary to make sure instantiated templates are included
  12533. # in the archive.
  12534. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12535. ;;
  12536. *)
  12537. if test yes = "$GXX"; then
  12538. if test no = "$with_gnu_ld"; then
  12539. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12540. else
  12541. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  12542. fi
  12543. fi
  12544. link_all_deplibs_CXX=yes
  12545. ;;
  12546. esac
  12547. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12548. hardcode_libdir_separator_CXX=:
  12549. inherit_rpath_CXX=yes
  12550. ;;
  12551. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12552. case $cc_basename in
  12553. KCC*)
  12554. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12555. # KCC will only create a shared library if the output file
  12556. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12557. # to its proper name (with version) after linking.
  12558. 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'
  12559. 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'
  12560. # Commands to make compiler produce verbose output that lists
  12561. # what "hidden" libraries, object files and flags are used when
  12562. # linking a shared library.
  12563. #
  12564. # There doesn't appear to be a way to prevent this compiler from
  12565. # explicitly linking system object files so we need to strip them
  12566. # from the output so that they don't get included in the library
  12567. # dependencies.
  12568. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12569. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12570. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12571. # Archives containing C++ object files must be created using
  12572. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12573. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12574. ;;
  12575. icpc* | ecpc* )
  12576. # Intel C++
  12577. with_gnu_ld=yes
  12578. # version 8.0 and above of icpc choke on multiply defined symbols
  12579. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12580. # earlier do not add the objects themselves.
  12581. case `$CC -V 2>&1` in
  12582. *"Version 7."*)
  12583. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12584. 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'
  12585. ;;
  12586. *) # Version 8.0 or newer
  12587. tmp_idyn=
  12588. case $host_cpu in
  12589. ia64*) tmp_idyn=' -i_dynamic';;
  12590. esac
  12591. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12592. 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'
  12593. ;;
  12594. esac
  12595. archive_cmds_need_lc_CXX=no
  12596. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12597. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12598. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12599. ;;
  12600. pgCC* | pgcpp*)
  12601. # Portland Group C++ compiler
  12602. case `$CC -V` in
  12603. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12604. prelink_cmds_CXX='tpldir=Template.dir~
  12605. rm -rf $tpldir~
  12606. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12607. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12608. old_archive_cmds_CXX='tpldir=Template.dir~
  12609. rm -rf $tpldir~
  12610. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12611. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12612. $RANLIB $oldlib'
  12613. archive_cmds_CXX='tpldir=Template.dir~
  12614. rm -rf $tpldir~
  12615. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12616. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12617. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12618. rm -rf $tpldir~
  12619. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12620. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12621. ;;
  12622. *) # Version 6 and above use weak symbols
  12623. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12624. 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'
  12625. ;;
  12626. esac
  12627. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12628. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12629. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12630. ;;
  12631. cxx*)
  12632. # Compaq C++
  12633. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12634. 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'
  12635. runpath_var=LD_RUN_PATH
  12636. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12637. hardcode_libdir_separator_CXX=:
  12638. # Commands to make compiler produce verbose output that lists
  12639. # what "hidden" libraries, object files and flags are used when
  12640. # linking a shared library.
  12641. #
  12642. # There doesn't appear to be a way to prevent this compiler from
  12643. # explicitly linking system object files so we need to strip them
  12644. # from the output so that they don't get included in the library
  12645. # dependencies.
  12646. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  12647. ;;
  12648. xl* | mpixl* | bgxl*)
  12649. # IBM XL 8.0 on PPC, with GNU ld
  12650. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12651. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12652. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12653. if test yes = "$supports_anon_versioning"; then
  12654. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12655. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12656. echo "local: *; };" >> $output_objdir/$libname.ver~
  12657. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12658. fi
  12659. ;;
  12660. *)
  12661. case `$CC -V 2>&1 | sed 5q` in
  12662. *Sun\ C*)
  12663. # Sun C++ 5.9
  12664. no_undefined_flag_CXX=' -zdefs'
  12665. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12666. 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'
  12667. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12668. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12669. compiler_needs_object_CXX=yes
  12670. # Not sure whether something based on
  12671. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12672. # would be better.
  12673. output_verbose_link_cmd='func_echo_all'
  12674. # Archives containing C++ object files must be created using
  12675. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12676. # necessary to make sure instantiated templates are included
  12677. # in the archive.
  12678. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12679. ;;
  12680. esac
  12681. ;;
  12682. esac
  12683. ;;
  12684. lynxos*)
  12685. # FIXME: insert proper C++ library support
  12686. ld_shlibs_CXX=no
  12687. ;;
  12688. m88k*)
  12689. # FIXME: insert proper C++ library support
  12690. ld_shlibs_CXX=no
  12691. ;;
  12692. mvs*)
  12693. case $cc_basename in
  12694. cxx*)
  12695. # FIXME: insert proper C++ library support
  12696. ld_shlibs_CXX=no
  12697. ;;
  12698. *)
  12699. # FIXME: insert proper C++ library support
  12700. ld_shlibs_CXX=no
  12701. ;;
  12702. esac
  12703. ;;
  12704. netbsd*)
  12705. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12706. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12707. wlarc=
  12708. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12709. hardcode_direct_CXX=yes
  12710. hardcode_shlibpath_var_CXX=no
  12711. fi
  12712. # Workaround some broken pre-1.5 toolchains
  12713. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12714. ;;
  12715. *nto* | *qnx*)
  12716. ld_shlibs_CXX=yes
  12717. ;;
  12718. openbsd* | bitrig*)
  12719. if test -f /usr/libexec/ld.so; then
  12720. hardcode_direct_CXX=yes
  12721. hardcode_shlibpath_var_CXX=no
  12722. hardcode_direct_absolute_CXX=yes
  12723. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12724. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12725. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12726. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12727. export_dynamic_flag_spec_CXX='$wl-E'
  12728. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12729. fi
  12730. output_verbose_link_cmd=func_echo_all
  12731. else
  12732. ld_shlibs_CXX=no
  12733. fi
  12734. ;;
  12735. osf3* | osf4* | osf5*)
  12736. case $cc_basename in
  12737. KCC*)
  12738. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12739. # KCC will only create a shared library if the output file
  12740. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12741. # to its proper name (with version) after linking.
  12742. 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'
  12743. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12744. hardcode_libdir_separator_CXX=:
  12745. # Archives containing C++ object files must be created using
  12746. # the KAI C++ compiler.
  12747. case $host in
  12748. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12749. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12750. esac
  12751. ;;
  12752. RCC*)
  12753. # Rational C++ 2.4.1
  12754. # FIXME: insert proper C++ library support
  12755. ld_shlibs_CXX=no
  12756. ;;
  12757. cxx*)
  12758. case $host in
  12759. osf3*)
  12760. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12761. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12762. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12763. ;;
  12764. *)
  12765. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12766. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12767. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12768. echo "-hidden">> $lib.exp~
  12769. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  12770. $RM $lib.exp'
  12771. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12772. ;;
  12773. esac
  12774. hardcode_libdir_separator_CXX=:
  12775. # Commands to make compiler produce verbose output that lists
  12776. # what "hidden" libraries, object files and flags are used when
  12777. # linking a shared library.
  12778. #
  12779. # There doesn't appear to be a way to prevent this compiler from
  12780. # explicitly linking system object files so we need to strip them
  12781. # from the output so that they don't get included in the library
  12782. # dependencies.
  12783. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12784. ;;
  12785. *)
  12786. if test yes,no = "$GXX,$with_gnu_ld"; then
  12787. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12788. case $host in
  12789. osf3*)
  12790. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12791. ;;
  12792. *)
  12793. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12794. ;;
  12795. esac
  12796. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12797. hardcode_libdir_separator_CXX=:
  12798. # Commands to make compiler produce verbose output that lists
  12799. # what "hidden" libraries, object files and flags are used when
  12800. # linking a shared library.
  12801. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12802. else
  12803. # FIXME: insert proper C++ library support
  12804. ld_shlibs_CXX=no
  12805. fi
  12806. ;;
  12807. esac
  12808. ;;
  12809. psos*)
  12810. # FIXME: insert proper C++ library support
  12811. ld_shlibs_CXX=no
  12812. ;;
  12813. sunos4*)
  12814. case $cc_basename in
  12815. CC*)
  12816. # Sun C++ 4.x
  12817. # FIXME: insert proper C++ library support
  12818. ld_shlibs_CXX=no
  12819. ;;
  12820. lcc*)
  12821. # Lucid
  12822. # FIXME: insert proper C++ library support
  12823. ld_shlibs_CXX=no
  12824. ;;
  12825. *)
  12826. # FIXME: insert proper C++ library support
  12827. ld_shlibs_CXX=no
  12828. ;;
  12829. esac
  12830. ;;
  12831. solaris*)
  12832. case $cc_basename in
  12833. CC* | sunCC*)
  12834. # Sun C++ 4.2, 5.x and Centerline C++
  12835. archive_cmds_need_lc_CXX=yes
  12836. no_undefined_flag_CXX=' -zdefs'
  12837. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12838. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12839. $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'
  12840. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12841. hardcode_shlibpath_var_CXX=no
  12842. case $host_os in
  12843. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12844. *)
  12845. # The compiler driver will combine and reorder linker options,
  12846. # but understands '-z linker_flag'.
  12847. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12848. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12849. ;;
  12850. esac
  12851. link_all_deplibs_CXX=yes
  12852. output_verbose_link_cmd='func_echo_all'
  12853. # Archives containing C++ object files must be created using
  12854. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12855. # necessary to make sure instantiated templates are included
  12856. # in the archive.
  12857. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12858. ;;
  12859. gcx*)
  12860. # Green Hills C++ Compiler
  12861. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12862. # The C++ compiler must be used to create the archive.
  12863. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12864. ;;
  12865. *)
  12866. # GNU C++ compiler with Solaris linker
  12867. if test yes,no = "$GXX,$with_gnu_ld"; then
  12868. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12869. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12870. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12871. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12872. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12873. # Commands to make compiler produce verbose output that lists
  12874. # what "hidden" libraries, object files and flags are used when
  12875. # linking a shared library.
  12876. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12877. else
  12878. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12879. # platform.
  12880. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12881. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12882. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12883. # Commands to make compiler produce verbose output that lists
  12884. # what "hidden" libraries, object files and flags are used when
  12885. # linking a shared library.
  12886. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12887. fi
  12888. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12889. case $host_os in
  12890. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12891. *)
  12892. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12893. ;;
  12894. esac
  12895. fi
  12896. ;;
  12897. esac
  12898. ;;
  12899. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12900. no_undefined_flag_CXX='$wl-z,text'
  12901. archive_cmds_need_lc_CXX=no
  12902. hardcode_shlibpath_var_CXX=no
  12903. runpath_var='LD_RUN_PATH'
  12904. case $cc_basename in
  12905. CC*)
  12906. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12907. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12908. ;;
  12909. *)
  12910. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12911. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12912. ;;
  12913. esac
  12914. ;;
  12915. sysv5* | sco3.2v5* | sco5v6*)
  12916. # Note: We CANNOT use -z defs as we might desire, because we do not
  12917. # link with -lc, and that would cause any symbols used from libc to
  12918. # always be unresolved, which means just about no library would
  12919. # ever link correctly. If we're not using GNU ld we use -z text
  12920. # though, which does catch some bad symbols but isn't as heavy-handed
  12921. # as -z defs.
  12922. no_undefined_flag_CXX='$wl-z,text'
  12923. allow_undefined_flag_CXX='$wl-z,nodefs'
  12924. archive_cmds_need_lc_CXX=no
  12925. hardcode_shlibpath_var_CXX=no
  12926. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12927. hardcode_libdir_separator_CXX=':'
  12928. link_all_deplibs_CXX=yes
  12929. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12930. runpath_var='LD_RUN_PATH'
  12931. case $cc_basename in
  12932. CC*)
  12933. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12934. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12935. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12936. '"$old_archive_cmds_CXX"
  12937. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12938. '"$reload_cmds_CXX"
  12939. ;;
  12940. *)
  12941. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12942. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12943. ;;
  12944. esac
  12945. ;;
  12946. tandem*)
  12947. case $cc_basename in
  12948. NCC*)
  12949. # NonStop-UX NCC 3.20
  12950. # FIXME: insert proper C++ library support
  12951. ld_shlibs_CXX=no
  12952. ;;
  12953. *)
  12954. # FIXME: insert proper C++ library support
  12955. ld_shlibs_CXX=no
  12956. ;;
  12957. esac
  12958. ;;
  12959. vxworks*)
  12960. # FIXME: insert proper C++ library support
  12961. ld_shlibs_CXX=no
  12962. ;;
  12963. *)
  12964. # FIXME: insert proper C++ library support
  12965. ld_shlibs_CXX=no
  12966. ;;
  12967. esac
  12968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12969. $as_echo "$ld_shlibs_CXX" >&6; }
  12970. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12971. GCC_CXX=$GXX
  12972. LD_CXX=$LD
  12973. ## CAVEAT EMPTOR:
  12974. ## There is no encapsulation within the following macros, do not change
  12975. ## the running order or otherwise move them around unless you know exactly
  12976. ## what you are doing...
  12977. # Dependencies to place before and after the object being linked:
  12978. predep_objects_CXX=
  12979. postdep_objects_CXX=
  12980. predeps_CXX=
  12981. postdeps_CXX=
  12982. compiler_lib_search_path_CXX=
  12983. cat > conftest.$ac_ext <<_LT_EOF
  12984. class Foo
  12985. {
  12986. public:
  12987. Foo (void) { a = 0; }
  12988. private:
  12989. int a;
  12990. };
  12991. _LT_EOF
  12992. _lt_libdeps_save_CFLAGS=$CFLAGS
  12993. case "$CC $CFLAGS " in #(
  12994. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12995. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12996. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12997. esac
  12998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12999. (eval $ac_compile) 2>&5
  13000. ac_status=$?
  13001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13002. test $ac_status = 0; }; then
  13003. # Parse the compiler output and extract the necessary
  13004. # objects, libraries and library flags.
  13005. # Sentinel used to keep track of whether or not we are before
  13006. # the conftest object file.
  13007. pre_test_object_deps_done=no
  13008. for p in `eval "$output_verbose_link_cmd"`; do
  13009. case $prev$p in
  13010. -L* | -R* | -l*)
  13011. # Some compilers place space between "-{L,R}" and the path.
  13012. # Remove the space.
  13013. if test x-L = "$p" ||
  13014. test x-R = "$p"; then
  13015. prev=$p
  13016. continue
  13017. fi
  13018. # Expand the sysroot to ease extracting the directories later.
  13019. if test -z "$prev"; then
  13020. case $p in
  13021. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13022. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13023. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13024. esac
  13025. fi
  13026. case $p in
  13027. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13028. esac
  13029. if test no = "$pre_test_object_deps_done"; then
  13030. case $prev in
  13031. -L | -R)
  13032. # Internal compiler library paths should come after those
  13033. # provided the user. The postdeps already come after the
  13034. # user supplied libs so there is no need to process them.
  13035. if test -z "$compiler_lib_search_path_CXX"; then
  13036. compiler_lib_search_path_CXX=$prev$p
  13037. else
  13038. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13039. fi
  13040. ;;
  13041. # The "-l" case would never come before the object being
  13042. # linked, so don't bother handling this case.
  13043. esac
  13044. else
  13045. if test -z "$postdeps_CXX"; then
  13046. postdeps_CXX=$prev$p
  13047. else
  13048. postdeps_CXX="${postdeps_CXX} $prev$p"
  13049. fi
  13050. fi
  13051. prev=
  13052. ;;
  13053. *.lto.$objext) ;; # Ignore GCC LTO objects
  13054. *.$objext)
  13055. # This assumes that the test object file only shows up
  13056. # once in the compiler output.
  13057. if test "$p" = "conftest.$objext"; then
  13058. pre_test_object_deps_done=yes
  13059. continue
  13060. fi
  13061. if test no = "$pre_test_object_deps_done"; then
  13062. if test -z "$predep_objects_CXX"; then
  13063. predep_objects_CXX=$p
  13064. else
  13065. predep_objects_CXX="$predep_objects_CXX $p"
  13066. fi
  13067. else
  13068. if test -z "$postdep_objects_CXX"; then
  13069. postdep_objects_CXX=$p
  13070. else
  13071. postdep_objects_CXX="$postdep_objects_CXX $p"
  13072. fi
  13073. fi
  13074. ;;
  13075. *) ;; # Ignore the rest.
  13076. esac
  13077. done
  13078. # Clean up.
  13079. rm -f a.out a.exe
  13080. else
  13081. echo "libtool.m4: error: problem compiling CXX test program"
  13082. fi
  13083. $RM -f confest.$objext
  13084. CFLAGS=$_lt_libdeps_save_CFLAGS
  13085. # PORTME: override above test on systems where it is broken
  13086. case $host_os in
  13087. interix[3-9]*)
  13088. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13089. # hack all around it, let's just trust "g++" to DTRT.
  13090. predep_objects_CXX=
  13091. postdep_objects_CXX=
  13092. postdeps_CXX=
  13093. ;;
  13094. esac
  13095. case " $postdeps_CXX " in
  13096. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13097. esac
  13098. compiler_lib_search_dirs_CXX=
  13099. if test -n "${compiler_lib_search_path_CXX}"; then
  13100. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13101. fi
  13102. lt_prog_compiler_wl_CXX=
  13103. lt_prog_compiler_pic_CXX=
  13104. lt_prog_compiler_static_CXX=
  13105. # C++ specific cases for pic, static, wl, etc.
  13106. if test yes = "$GXX"; then
  13107. lt_prog_compiler_wl_CXX='-Wl,'
  13108. lt_prog_compiler_static_CXX='-static'
  13109. case $host_os in
  13110. aix*)
  13111. # All AIX code is PIC.
  13112. if test ia64 = "$host_cpu"; then
  13113. # AIX 5 now supports IA64 processor
  13114. lt_prog_compiler_static_CXX='-Bstatic'
  13115. fi
  13116. lt_prog_compiler_pic_CXX='-fPIC'
  13117. ;;
  13118. amigaos*)
  13119. case $host_cpu in
  13120. powerpc)
  13121. # see comment about AmigaOS4 .so support
  13122. lt_prog_compiler_pic_CXX='-fPIC'
  13123. ;;
  13124. m68k)
  13125. # FIXME: we need at least 68020 code to build shared libraries, but
  13126. # adding the '-m68020' flag to GCC prevents building anything better,
  13127. # like '-m68040'.
  13128. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13129. ;;
  13130. esac
  13131. ;;
  13132. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13133. # PIC is the default for these OSes.
  13134. ;;
  13135. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13136. # This hack is so that the source file can tell whether it is being
  13137. # built for inclusion in a dll (and should export symbols for example).
  13138. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13139. # (--disable-auto-import) libraries
  13140. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13141. case $host_os in
  13142. os2*)
  13143. lt_prog_compiler_static_CXX='$wl-static'
  13144. ;;
  13145. esac
  13146. ;;
  13147. darwin* | rhapsody*)
  13148. # PIC is the default on this platform
  13149. # Common symbols not allowed in MH_DYLIB files
  13150. lt_prog_compiler_pic_CXX='-fno-common'
  13151. ;;
  13152. *djgpp*)
  13153. # DJGPP does not support shared libraries at all
  13154. lt_prog_compiler_pic_CXX=
  13155. ;;
  13156. haiku*)
  13157. # PIC is the default for Haiku.
  13158. # The "-static" flag exists, but is broken.
  13159. lt_prog_compiler_static_CXX=
  13160. ;;
  13161. interix[3-9]*)
  13162. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13163. # Instead, we relocate shared libraries at runtime.
  13164. ;;
  13165. sysv4*MP*)
  13166. if test -d /usr/nec; then
  13167. lt_prog_compiler_pic_CXX=-Kconform_pic
  13168. fi
  13169. ;;
  13170. hpux*)
  13171. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13172. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13173. # sets the default TLS model and affects inlining.
  13174. case $host_cpu in
  13175. hppa*64*)
  13176. ;;
  13177. *)
  13178. lt_prog_compiler_pic_CXX='-fPIC'
  13179. ;;
  13180. esac
  13181. ;;
  13182. *qnx* | *nto*)
  13183. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13184. # it will coredump.
  13185. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13186. ;;
  13187. *)
  13188. lt_prog_compiler_pic_CXX='-fPIC'
  13189. ;;
  13190. esac
  13191. else
  13192. case $host_os in
  13193. aix[4-9]*)
  13194. # All AIX code is PIC.
  13195. if test ia64 = "$host_cpu"; then
  13196. # AIX 5 now supports IA64 processor
  13197. lt_prog_compiler_static_CXX='-Bstatic'
  13198. else
  13199. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13200. fi
  13201. ;;
  13202. chorus*)
  13203. case $cc_basename in
  13204. cxch68*)
  13205. # Green Hills C++ Compiler
  13206. # _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"
  13207. ;;
  13208. esac
  13209. ;;
  13210. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13211. # This hack is so that the source file can tell whether it is being
  13212. # built for inclusion in a dll (and should export symbols for example).
  13213. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13214. ;;
  13215. dgux*)
  13216. case $cc_basename in
  13217. ec++*)
  13218. lt_prog_compiler_pic_CXX='-KPIC'
  13219. ;;
  13220. ghcx*)
  13221. # Green Hills C++ Compiler
  13222. lt_prog_compiler_pic_CXX='-pic'
  13223. ;;
  13224. *)
  13225. ;;
  13226. esac
  13227. ;;
  13228. freebsd* | dragonfly*)
  13229. # FreeBSD uses GNU C++
  13230. ;;
  13231. hpux9* | hpux10* | hpux11*)
  13232. case $cc_basename in
  13233. CC*)
  13234. lt_prog_compiler_wl_CXX='-Wl,'
  13235. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13236. if test ia64 != "$host_cpu"; then
  13237. lt_prog_compiler_pic_CXX='+Z'
  13238. fi
  13239. ;;
  13240. aCC*)
  13241. lt_prog_compiler_wl_CXX='-Wl,'
  13242. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13243. case $host_cpu in
  13244. hppa*64*|ia64*)
  13245. # +Z the default
  13246. ;;
  13247. *)
  13248. lt_prog_compiler_pic_CXX='+Z'
  13249. ;;
  13250. esac
  13251. ;;
  13252. *)
  13253. ;;
  13254. esac
  13255. ;;
  13256. interix*)
  13257. # This is c89, which is MS Visual C++ (no shared libs)
  13258. # Anyone wants to do a port?
  13259. ;;
  13260. irix5* | irix6* | nonstopux*)
  13261. case $cc_basename in
  13262. CC*)
  13263. lt_prog_compiler_wl_CXX='-Wl,'
  13264. lt_prog_compiler_static_CXX='-non_shared'
  13265. # CC pic flag -KPIC is the default.
  13266. ;;
  13267. *)
  13268. ;;
  13269. esac
  13270. ;;
  13271. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13272. case $cc_basename in
  13273. KCC*)
  13274. # KAI C++ Compiler
  13275. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13276. lt_prog_compiler_pic_CXX='-fPIC'
  13277. ;;
  13278. ecpc* )
  13279. # old Intel C++ for x86_64, which still supported -KPIC.
  13280. lt_prog_compiler_wl_CXX='-Wl,'
  13281. lt_prog_compiler_pic_CXX='-KPIC'
  13282. lt_prog_compiler_static_CXX='-static'
  13283. ;;
  13284. icpc* )
  13285. # Intel C++, used to be incompatible with GCC.
  13286. # ICC 10 doesn't accept -KPIC any more.
  13287. lt_prog_compiler_wl_CXX='-Wl,'
  13288. lt_prog_compiler_pic_CXX='-fPIC'
  13289. lt_prog_compiler_static_CXX='-static'
  13290. ;;
  13291. pgCC* | pgcpp*)
  13292. # Portland Group C++ compiler
  13293. lt_prog_compiler_wl_CXX='-Wl,'
  13294. lt_prog_compiler_pic_CXX='-fpic'
  13295. lt_prog_compiler_static_CXX='-Bstatic'
  13296. ;;
  13297. cxx*)
  13298. # Compaq C++
  13299. # Make sure the PIC flag is empty. It appears that all Alpha
  13300. # Linux and Compaq Tru64 Unix objects are PIC.
  13301. lt_prog_compiler_pic_CXX=
  13302. lt_prog_compiler_static_CXX='-non_shared'
  13303. ;;
  13304. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13305. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13306. lt_prog_compiler_wl_CXX='-Wl,'
  13307. lt_prog_compiler_pic_CXX='-qpic'
  13308. lt_prog_compiler_static_CXX='-qstaticlink'
  13309. ;;
  13310. *)
  13311. case `$CC -V 2>&1 | sed 5q` in
  13312. *Sun\ C*)
  13313. # Sun C++ 5.9
  13314. lt_prog_compiler_pic_CXX='-KPIC'
  13315. lt_prog_compiler_static_CXX='-Bstatic'
  13316. lt_prog_compiler_wl_CXX='-Qoption ld '
  13317. ;;
  13318. esac
  13319. ;;
  13320. esac
  13321. ;;
  13322. lynxos*)
  13323. ;;
  13324. m88k*)
  13325. ;;
  13326. mvs*)
  13327. case $cc_basename in
  13328. cxx*)
  13329. lt_prog_compiler_pic_CXX='-W c,exportall'
  13330. ;;
  13331. *)
  13332. ;;
  13333. esac
  13334. ;;
  13335. netbsd*)
  13336. ;;
  13337. *qnx* | *nto*)
  13338. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13339. # it will coredump.
  13340. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13341. ;;
  13342. osf3* | osf4* | osf5*)
  13343. case $cc_basename in
  13344. KCC*)
  13345. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13346. ;;
  13347. RCC*)
  13348. # Rational C++ 2.4.1
  13349. lt_prog_compiler_pic_CXX='-pic'
  13350. ;;
  13351. cxx*)
  13352. # Digital/Compaq C++
  13353. lt_prog_compiler_wl_CXX='-Wl,'
  13354. # Make sure the PIC flag is empty. It appears that all Alpha
  13355. # Linux and Compaq Tru64 Unix objects are PIC.
  13356. lt_prog_compiler_pic_CXX=
  13357. lt_prog_compiler_static_CXX='-non_shared'
  13358. ;;
  13359. *)
  13360. ;;
  13361. esac
  13362. ;;
  13363. psos*)
  13364. ;;
  13365. solaris*)
  13366. case $cc_basename in
  13367. CC* | sunCC*)
  13368. # Sun C++ 4.2, 5.x and Centerline C++
  13369. lt_prog_compiler_pic_CXX='-KPIC'
  13370. lt_prog_compiler_static_CXX='-Bstatic'
  13371. lt_prog_compiler_wl_CXX='-Qoption ld '
  13372. ;;
  13373. gcx*)
  13374. # Green Hills C++ Compiler
  13375. lt_prog_compiler_pic_CXX='-PIC'
  13376. ;;
  13377. *)
  13378. ;;
  13379. esac
  13380. ;;
  13381. sunos4*)
  13382. case $cc_basename in
  13383. CC*)
  13384. # Sun C++ 4.x
  13385. lt_prog_compiler_pic_CXX='-pic'
  13386. lt_prog_compiler_static_CXX='-Bstatic'
  13387. ;;
  13388. lcc*)
  13389. # Lucid
  13390. lt_prog_compiler_pic_CXX='-pic'
  13391. ;;
  13392. *)
  13393. ;;
  13394. esac
  13395. ;;
  13396. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13397. case $cc_basename in
  13398. CC*)
  13399. lt_prog_compiler_wl_CXX='-Wl,'
  13400. lt_prog_compiler_pic_CXX='-KPIC'
  13401. lt_prog_compiler_static_CXX='-Bstatic'
  13402. ;;
  13403. esac
  13404. ;;
  13405. tandem*)
  13406. case $cc_basename in
  13407. NCC*)
  13408. # NonStop-UX NCC 3.20
  13409. lt_prog_compiler_pic_CXX='-KPIC'
  13410. ;;
  13411. *)
  13412. ;;
  13413. esac
  13414. ;;
  13415. vxworks*)
  13416. ;;
  13417. *)
  13418. lt_prog_compiler_can_build_shared_CXX=no
  13419. ;;
  13420. esac
  13421. fi
  13422. case $host_os in
  13423. # For platforms that do not support PIC, -DPIC is meaningless:
  13424. *djgpp*)
  13425. lt_prog_compiler_pic_CXX=
  13426. ;;
  13427. *)
  13428. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13429. ;;
  13430. esac
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13432. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13433. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13434. $as_echo_n "(cached) " >&6
  13435. else
  13436. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13437. fi
  13438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13439. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13440. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13441. #
  13442. # Check to make sure the PIC flag actually works.
  13443. #
  13444. if test -n "$lt_prog_compiler_pic_CXX"; then
  13445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13446. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13447. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13448. $as_echo_n "(cached) " >&6
  13449. else
  13450. lt_cv_prog_compiler_pic_works_CXX=no
  13451. ac_outfile=conftest.$ac_objext
  13452. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13453. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13454. # Insert the option either (1) after the last *FLAGS variable, or
  13455. # (2) before a word containing "conftest.", or (3) at the end.
  13456. # Note that $ac_compile itself does not contain backslashes and begins
  13457. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13458. # The option is referenced via a variable to avoid confusing sed.
  13459. lt_compile=`echo "$ac_compile" | $SED \
  13460. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13461. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13462. -e 's:$: $lt_compiler_flag:'`
  13463. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13464. (eval "$lt_compile" 2>conftest.err)
  13465. ac_status=$?
  13466. cat conftest.err >&5
  13467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13468. if (exit $ac_status) && test -s "$ac_outfile"; then
  13469. # The compiler can only warn and ignore the option if not recognized
  13470. # So say no if there are warnings other than the usual output.
  13471. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13472. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13473. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13474. lt_cv_prog_compiler_pic_works_CXX=yes
  13475. fi
  13476. fi
  13477. $RM conftest*
  13478. fi
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13480. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13481. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13482. case $lt_prog_compiler_pic_CXX in
  13483. "" | " "*) ;;
  13484. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13485. esac
  13486. else
  13487. lt_prog_compiler_pic_CXX=
  13488. lt_prog_compiler_can_build_shared_CXX=no
  13489. fi
  13490. fi
  13491. #
  13492. # Check to make sure the static flag actually works.
  13493. #
  13494. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13496. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13497. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13498. $as_echo_n "(cached) " >&6
  13499. else
  13500. lt_cv_prog_compiler_static_works_CXX=no
  13501. save_LDFLAGS=$LDFLAGS
  13502. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13503. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13504. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13505. # The linker can only warn and ignore the option if not recognized
  13506. # So say no if there are warnings
  13507. if test -s conftest.err; then
  13508. # Append any errors to the config.log.
  13509. cat conftest.err 1>&5
  13510. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13511. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13512. if diff conftest.exp conftest.er2 >/dev/null; then
  13513. lt_cv_prog_compiler_static_works_CXX=yes
  13514. fi
  13515. else
  13516. lt_cv_prog_compiler_static_works_CXX=yes
  13517. fi
  13518. fi
  13519. $RM -r conftest*
  13520. LDFLAGS=$save_LDFLAGS
  13521. fi
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13523. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13524. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13525. :
  13526. else
  13527. lt_prog_compiler_static_CXX=
  13528. fi
  13529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13530. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13531. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13532. $as_echo_n "(cached) " >&6
  13533. else
  13534. lt_cv_prog_compiler_c_o_CXX=no
  13535. $RM -r conftest 2>/dev/null
  13536. mkdir conftest
  13537. cd conftest
  13538. mkdir out
  13539. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13540. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13541. # Insert the option either (1) after the last *FLAGS variable, or
  13542. # (2) before a word containing "conftest.", or (3) at the end.
  13543. # Note that $ac_compile itself does not contain backslashes and begins
  13544. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13545. lt_compile=`echo "$ac_compile" | $SED \
  13546. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13547. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13548. -e 's:$: $lt_compiler_flag:'`
  13549. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13550. (eval "$lt_compile" 2>out/conftest.err)
  13551. ac_status=$?
  13552. cat out/conftest.err >&5
  13553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13554. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13555. then
  13556. # The compiler can only warn and ignore the option if not recognized
  13557. # So say no if there are warnings
  13558. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13559. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13560. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13561. lt_cv_prog_compiler_c_o_CXX=yes
  13562. fi
  13563. fi
  13564. chmod u+w . 2>&5
  13565. $RM conftest*
  13566. # SGI C++ compiler will create directory out/ii_files/ for
  13567. # template instantiation
  13568. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13569. $RM out/* && rmdir out
  13570. cd ..
  13571. $RM -r conftest
  13572. $RM conftest*
  13573. fi
  13574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13575. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13577. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13578. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13579. $as_echo_n "(cached) " >&6
  13580. else
  13581. lt_cv_prog_compiler_c_o_CXX=no
  13582. $RM -r conftest 2>/dev/null
  13583. mkdir conftest
  13584. cd conftest
  13585. mkdir out
  13586. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13587. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13588. # Insert the option either (1) after the last *FLAGS variable, or
  13589. # (2) before a word containing "conftest.", or (3) at the end.
  13590. # Note that $ac_compile itself does not contain backslashes and begins
  13591. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13592. lt_compile=`echo "$ac_compile" | $SED \
  13593. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13594. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13595. -e 's:$: $lt_compiler_flag:'`
  13596. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13597. (eval "$lt_compile" 2>out/conftest.err)
  13598. ac_status=$?
  13599. cat out/conftest.err >&5
  13600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13601. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13602. then
  13603. # The compiler can only warn and ignore the option if not recognized
  13604. # So say no if there are warnings
  13605. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13606. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13607. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13608. lt_cv_prog_compiler_c_o_CXX=yes
  13609. fi
  13610. fi
  13611. chmod u+w . 2>&5
  13612. $RM conftest*
  13613. # SGI C++ compiler will create directory out/ii_files/ for
  13614. # template instantiation
  13615. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13616. $RM out/* && rmdir out
  13617. cd ..
  13618. $RM -r conftest
  13619. $RM conftest*
  13620. fi
  13621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13622. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13623. hard_links=nottested
  13624. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13625. # do not overwrite the value of need_locks provided by the user
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13627. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13628. hard_links=yes
  13629. $RM conftest*
  13630. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13631. touch conftest.a
  13632. ln conftest.a conftest.b 2>&5 || hard_links=no
  13633. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13635. $as_echo "$hard_links" >&6; }
  13636. if test no = "$hard_links"; then
  13637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13638. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13639. need_locks=warn
  13640. fi
  13641. else
  13642. need_locks=no
  13643. fi
  13644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13645. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13646. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13647. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13648. case $host_os in
  13649. aix[4-9]*)
  13650. # If we're using GNU nm, then we don't want the "-C" option.
  13651. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13652. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13653. # weak defined symbols like other global defined symbols, whereas
  13654. # GNU nm marks them as "W".
  13655. # While the 'weak' keyword is ignored in the Export File, we need
  13656. # it in the Import File for the 'aix-soname' feature, so we have
  13657. # to replace the "-B" option with "-P" for AIX nm.
  13658. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13659. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13660. else
  13661. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13662. fi
  13663. ;;
  13664. pw32*)
  13665. export_symbols_cmds_CXX=$ltdll_cmds
  13666. ;;
  13667. cygwin* | mingw* | cegcc*)
  13668. case $cc_basename in
  13669. cl*)
  13670. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13671. ;;
  13672. *)
  13673. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13674. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13675. ;;
  13676. esac
  13677. ;;
  13678. *)
  13679. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13680. ;;
  13681. esac
  13682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13683. $as_echo "$ld_shlibs_CXX" >&6; }
  13684. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13685. with_gnu_ld_CXX=$with_gnu_ld
  13686. #
  13687. # Do we need to explicitly link libc?
  13688. #
  13689. case "x$archive_cmds_need_lc_CXX" in
  13690. x|xyes)
  13691. # Assume -lc should be added
  13692. archive_cmds_need_lc_CXX=yes
  13693. if test yes,yes = "$GCC,$enable_shared"; then
  13694. case $archive_cmds_CXX in
  13695. *'~'*)
  13696. # FIXME: we may have to deal with multi-command sequences.
  13697. ;;
  13698. '$CC '*)
  13699. # Test whether the compiler implicitly links with -lc since on some
  13700. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13701. # to ld, don't add -lc before -lgcc.
  13702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13703. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13704. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13705. $as_echo_n "(cached) " >&6
  13706. else
  13707. $RM conftest*
  13708. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13709. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13710. (eval $ac_compile) 2>&5
  13711. ac_status=$?
  13712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13713. test $ac_status = 0; } 2>conftest.err; then
  13714. soname=conftest
  13715. lib=conftest
  13716. libobjs=conftest.$ac_objext
  13717. deplibs=
  13718. wl=$lt_prog_compiler_wl_CXX
  13719. pic_flag=$lt_prog_compiler_pic_CXX
  13720. compiler_flags=-v
  13721. linker_flags=-v
  13722. verstring=
  13723. output_objdir=.
  13724. libname=conftest
  13725. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13726. allow_undefined_flag_CXX=
  13727. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13728. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13729. ac_status=$?
  13730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13731. test $ac_status = 0; }
  13732. then
  13733. lt_cv_archive_cmds_need_lc_CXX=no
  13734. else
  13735. lt_cv_archive_cmds_need_lc_CXX=yes
  13736. fi
  13737. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13738. else
  13739. cat conftest.err 1>&5
  13740. fi
  13741. $RM conftest*
  13742. fi
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13744. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13745. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13746. ;;
  13747. esac
  13748. fi
  13749. ;;
  13750. esac
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13752. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13753. library_names_spec=
  13754. libname_spec='lib$name'
  13755. soname_spec=
  13756. shrext_cmds=.so
  13757. postinstall_cmds=
  13758. postuninstall_cmds=
  13759. finish_cmds=
  13760. finish_eval=
  13761. shlibpath_var=
  13762. shlibpath_overrides_runpath=unknown
  13763. version_type=none
  13764. dynamic_linker="$host_os ld.so"
  13765. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13766. need_lib_prefix=unknown
  13767. hardcode_into_libs=no
  13768. # when you set need_version to no, make sure it does not cause -set_version
  13769. # flags to be left without arguments
  13770. need_version=unknown
  13771. case $host_os in
  13772. aix3*)
  13773. version_type=linux # correct to gnu/linux during the next big refactor
  13774. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13775. shlibpath_var=LIBPATH
  13776. # AIX 3 has no versioning support, so we append a major version to the name.
  13777. soname_spec='$libname$release$shared_ext$major'
  13778. ;;
  13779. aix[4-9]*)
  13780. version_type=linux # correct to gnu/linux during the next big refactor
  13781. need_lib_prefix=no
  13782. need_version=no
  13783. hardcode_into_libs=yes
  13784. if test ia64 = "$host_cpu"; then
  13785. # AIX 5 supports IA64
  13786. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13787. shlibpath_var=LD_LIBRARY_PATH
  13788. else
  13789. # With GCC up to 2.95.x, collect2 would create an import file
  13790. # for dependence libraries. The import file would start with
  13791. # the line '#! .'. This would cause the generated library to
  13792. # depend on '.', always an invalid library. This was fixed in
  13793. # development snapshots of GCC prior to 3.0.
  13794. case $host_os in
  13795. aix4 | aix4.[01] | aix4.[01].*)
  13796. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13797. echo ' yes '
  13798. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13799. :
  13800. else
  13801. can_build_shared=no
  13802. fi
  13803. ;;
  13804. esac
  13805. # Using Import Files as archive members, it is possible to support
  13806. # filename-based versioning of shared library archives on AIX. While
  13807. # this would work for both with and without runtime linking, it will
  13808. # prevent static linking of such archives. So we do filename-based
  13809. # shared library versioning with .so extension only, which is used
  13810. # when both runtime linking and shared linking is enabled.
  13811. # Unfortunately, runtime linking may impact performance, so we do
  13812. # not want this to be the default eventually. Also, we use the
  13813. # versioned .so libs for executables only if there is the -brtl
  13814. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13815. # To allow for filename-based versioning support, we need to create
  13816. # libNAME.so.V as an archive file, containing:
  13817. # *) an Import File, referring to the versioned filename of the
  13818. # archive as well as the shared archive member, telling the
  13819. # bitwidth (32 or 64) of that shared object, and providing the
  13820. # list of exported symbols of that shared object, eventually
  13821. # decorated with the 'weak' keyword
  13822. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13823. # it being seen by the linker.
  13824. # At run time we better use the real file rather than another symlink,
  13825. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13826. case $with_aix_soname,$aix_use_runtimelinking in
  13827. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13828. # soname into executable. Probably we can add versioning support to
  13829. # collect2, so additional links can be useful in future.
  13830. aix,yes) # traditional libtool
  13831. dynamic_linker='AIX unversionable lib.so'
  13832. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13833. # instead of lib<name>.a to let people know that these are not
  13834. # typical AIX shared libraries.
  13835. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13836. ;;
  13837. aix,no) # traditional AIX only
  13838. dynamic_linker='AIX lib.a(lib.so.V)'
  13839. # We preserve .a as extension for shared libraries through AIX4.2
  13840. # and later when we are not doing run time linking.
  13841. library_names_spec='$libname$release.a $libname.a'
  13842. soname_spec='$libname$release$shared_ext$major'
  13843. ;;
  13844. svr4,*) # full svr4 only
  13845. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13846. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13847. # We do not specify a path in Import Files, so LIBPATH fires.
  13848. shlibpath_overrides_runpath=yes
  13849. ;;
  13850. *,yes) # both, prefer svr4
  13851. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13852. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13853. # unpreferred sharedlib libNAME.a needs extra handling
  13854. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13855. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13856. # We do not specify a path in Import Files, so LIBPATH fires.
  13857. shlibpath_overrides_runpath=yes
  13858. ;;
  13859. *,no) # both, prefer aix
  13860. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13861. library_names_spec='$libname$release.a $libname.a'
  13862. soname_spec='$libname$release$shared_ext$major'
  13863. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13864. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13865. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13866. ;;
  13867. esac
  13868. shlibpath_var=LIBPATH
  13869. fi
  13870. ;;
  13871. amigaos*)
  13872. case $host_cpu in
  13873. powerpc)
  13874. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13875. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13876. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13877. ;;
  13878. m68k)
  13879. library_names_spec='$libname.ixlibrary $libname.a'
  13880. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13881. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  13882. ;;
  13883. esac
  13884. ;;
  13885. beos*)
  13886. library_names_spec='$libname$shared_ext'
  13887. dynamic_linker="$host_os ld.so"
  13888. shlibpath_var=LIBRARY_PATH
  13889. ;;
  13890. bsdi[45]*)
  13891. version_type=linux # correct to gnu/linux during the next big refactor
  13892. need_version=no
  13893. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13894. soname_spec='$libname$release$shared_ext$major'
  13895. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13896. shlibpath_var=LD_LIBRARY_PATH
  13897. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13898. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13899. # the default ld.so.conf also contains /usr/contrib/lib and
  13900. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13901. # libtool to hard-code these into programs
  13902. ;;
  13903. cygwin* | mingw* | pw32* | cegcc*)
  13904. version_type=windows
  13905. shrext_cmds=.dll
  13906. need_version=no
  13907. need_lib_prefix=no
  13908. case $GCC,$cc_basename in
  13909. yes,*)
  13910. # gcc
  13911. library_names_spec='$libname.dll.a'
  13912. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13913. postinstall_cmds='base_file=`basename \$file`~
  13914. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13915. dldir=$destdir/`dirname \$dlpath`~
  13916. test -d \$dldir || mkdir -p \$dldir~
  13917. $install_prog $dir/$dlname \$dldir/$dlname~
  13918. chmod a+x \$dldir/$dlname~
  13919. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13920. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13921. fi'
  13922. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13923. dlpath=$dir/\$dldll~
  13924. $RM \$dlpath'
  13925. shlibpath_overrides_runpath=yes
  13926. case $host_os in
  13927. cygwin*)
  13928. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13929. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13930. ;;
  13931. mingw* | cegcc*)
  13932. # MinGW DLLs use traditional 'lib' prefix
  13933. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13934. ;;
  13935. pw32*)
  13936. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13937. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13938. ;;
  13939. esac
  13940. dynamic_linker='Win32 ld.exe'
  13941. ;;
  13942. *,cl*)
  13943. # Native MSVC
  13944. libname_spec='$name'
  13945. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13946. library_names_spec='$libname.dll.lib'
  13947. case $build_os in
  13948. mingw*)
  13949. sys_lib_search_path_spec=
  13950. lt_save_ifs=$IFS
  13951. IFS=';'
  13952. for lt_path in $LIB
  13953. do
  13954. IFS=$lt_save_ifs
  13955. # Let DOS variable expansion print the short 8.3 style file name.
  13956. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13957. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13958. done
  13959. IFS=$lt_save_ifs
  13960. # Convert to MSYS style.
  13961. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13962. ;;
  13963. cygwin*)
  13964. # Convert to unix form, then to dos form, then back to unix form
  13965. # but this time dos style (no spaces!) so that the unix form looks
  13966. # like /cygdrive/c/PROGRA~1:/cygdr...
  13967. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13968. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13969. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13970. ;;
  13971. *)
  13972. sys_lib_search_path_spec=$LIB
  13973. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13974. # It is most probably a Windows format PATH.
  13975. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13976. else
  13977. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13978. fi
  13979. # FIXME: find the short name or the path components, as spaces are
  13980. # common. (e.g. "Program Files" -> "PROGRA~1")
  13981. ;;
  13982. esac
  13983. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13984. postinstall_cmds='base_file=`basename \$file`~
  13985. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13986. dldir=$destdir/`dirname \$dlpath`~
  13987. test -d \$dldir || mkdir -p \$dldir~
  13988. $install_prog $dir/$dlname \$dldir/$dlname'
  13989. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13990. dlpath=$dir/\$dldll~
  13991. $RM \$dlpath'
  13992. shlibpath_overrides_runpath=yes
  13993. dynamic_linker='Win32 link.exe'
  13994. ;;
  13995. *)
  13996. # Assume MSVC wrapper
  13997. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13998. dynamic_linker='Win32 ld.exe'
  13999. ;;
  14000. esac
  14001. # FIXME: first we should search . and the directory the executable is in
  14002. shlibpath_var=PATH
  14003. ;;
  14004. darwin* | rhapsody*)
  14005. dynamic_linker="$host_os dyld"
  14006. version_type=darwin
  14007. need_lib_prefix=no
  14008. need_version=no
  14009. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14010. soname_spec='$libname$release$major$shared_ext'
  14011. shlibpath_overrides_runpath=yes
  14012. shlibpath_var=DYLD_LIBRARY_PATH
  14013. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14014. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14015. ;;
  14016. dgux*)
  14017. version_type=linux # correct to gnu/linux during the next big refactor
  14018. need_lib_prefix=no
  14019. need_version=no
  14020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14021. soname_spec='$libname$release$shared_ext$major'
  14022. shlibpath_var=LD_LIBRARY_PATH
  14023. ;;
  14024. freebsd* | dragonfly*)
  14025. # DragonFly does not have aout. When/if they implement a new
  14026. # versioning mechanism, adjust this.
  14027. if test -x /usr/bin/objformat; then
  14028. objformat=`/usr/bin/objformat`
  14029. else
  14030. case $host_os in
  14031. freebsd[23].*) objformat=aout ;;
  14032. *) objformat=elf ;;
  14033. esac
  14034. fi
  14035. version_type=freebsd-$objformat
  14036. case $version_type in
  14037. freebsd-elf*)
  14038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14039. soname_spec='$libname$release$shared_ext$major'
  14040. need_version=no
  14041. need_lib_prefix=no
  14042. ;;
  14043. freebsd-*)
  14044. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14045. need_version=yes
  14046. ;;
  14047. esac
  14048. shlibpath_var=LD_LIBRARY_PATH
  14049. case $host_os in
  14050. freebsd2.*)
  14051. shlibpath_overrides_runpath=yes
  14052. ;;
  14053. freebsd3.[01]* | freebsdelf3.[01]*)
  14054. shlibpath_overrides_runpath=yes
  14055. hardcode_into_libs=yes
  14056. ;;
  14057. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14058. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14059. shlibpath_overrides_runpath=no
  14060. hardcode_into_libs=yes
  14061. ;;
  14062. *) # from 4.6 on, and DragonFly
  14063. shlibpath_overrides_runpath=yes
  14064. hardcode_into_libs=yes
  14065. ;;
  14066. esac
  14067. ;;
  14068. haiku*)
  14069. version_type=linux # correct to gnu/linux during the next big refactor
  14070. need_lib_prefix=no
  14071. need_version=no
  14072. dynamic_linker="$host_os runtime_loader"
  14073. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14074. soname_spec='$libname$release$shared_ext$major'
  14075. shlibpath_var=LIBRARY_PATH
  14076. shlibpath_overrides_runpath=no
  14077. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14078. hardcode_into_libs=yes
  14079. ;;
  14080. hpux9* | hpux10* | hpux11*)
  14081. # Give a soname corresponding to the major version so that dld.sl refuses to
  14082. # link against other versions.
  14083. version_type=sunos
  14084. need_lib_prefix=no
  14085. need_version=no
  14086. case $host_cpu in
  14087. ia64*)
  14088. shrext_cmds='.so'
  14089. hardcode_into_libs=yes
  14090. dynamic_linker="$host_os dld.so"
  14091. shlibpath_var=LD_LIBRARY_PATH
  14092. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14094. soname_spec='$libname$release$shared_ext$major'
  14095. if test 32 = "$HPUX_IA64_MODE"; then
  14096. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14097. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14098. else
  14099. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14100. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14101. fi
  14102. ;;
  14103. hppa*64*)
  14104. shrext_cmds='.sl'
  14105. hardcode_into_libs=yes
  14106. dynamic_linker="$host_os dld.sl"
  14107. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14108. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14110. soname_spec='$libname$release$shared_ext$major'
  14111. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14112. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14113. ;;
  14114. *)
  14115. shrext_cmds='.sl'
  14116. dynamic_linker="$host_os dld.sl"
  14117. shlibpath_var=SHLIB_PATH
  14118. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14119. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14120. soname_spec='$libname$release$shared_ext$major'
  14121. ;;
  14122. esac
  14123. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14124. postinstall_cmds='chmod 555 $lib'
  14125. # or fails outright, so override atomically:
  14126. install_override_mode=555
  14127. ;;
  14128. interix[3-9]*)
  14129. version_type=linux # correct to gnu/linux during the next big refactor
  14130. need_lib_prefix=no
  14131. need_version=no
  14132. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14133. soname_spec='$libname$release$shared_ext$major'
  14134. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14135. shlibpath_var=LD_LIBRARY_PATH
  14136. shlibpath_overrides_runpath=no
  14137. hardcode_into_libs=yes
  14138. ;;
  14139. irix5* | irix6* | nonstopux*)
  14140. case $host_os in
  14141. nonstopux*) version_type=nonstopux ;;
  14142. *)
  14143. if test yes = "$lt_cv_prog_gnu_ld"; then
  14144. version_type=linux # correct to gnu/linux during the next big refactor
  14145. else
  14146. version_type=irix
  14147. fi ;;
  14148. esac
  14149. need_lib_prefix=no
  14150. need_version=no
  14151. soname_spec='$libname$release$shared_ext$major'
  14152. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14153. case $host_os in
  14154. irix5* | nonstopux*)
  14155. libsuff= shlibsuff=
  14156. ;;
  14157. *)
  14158. case $LD in # libtool.m4 will add one of these switches to LD
  14159. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14160. libsuff= shlibsuff= libmagic=32-bit;;
  14161. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14162. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14163. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14164. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14165. *) libsuff= shlibsuff= libmagic=never-match;;
  14166. esac
  14167. ;;
  14168. esac
  14169. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14170. shlibpath_overrides_runpath=no
  14171. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14172. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14173. hardcode_into_libs=yes
  14174. ;;
  14175. # No shared lib support for Linux oldld, aout, or coff.
  14176. linux*oldld* | linux*aout* | linux*coff*)
  14177. dynamic_linker=no
  14178. ;;
  14179. linux*android*)
  14180. version_type=none # Android doesn't support versioned libraries.
  14181. need_lib_prefix=no
  14182. need_version=no
  14183. library_names_spec='$libname$release$shared_ext'
  14184. soname_spec='$libname$release$shared_ext'
  14185. finish_cmds=
  14186. shlibpath_var=LD_LIBRARY_PATH
  14187. shlibpath_overrides_runpath=yes
  14188. # This implies no fast_install, which is unacceptable.
  14189. # Some rework will be needed to allow for fast_install
  14190. # before this can be enabled.
  14191. hardcode_into_libs=yes
  14192. dynamic_linker='Android linker'
  14193. # Don't embed -rpath directories since the linker doesn't support them.
  14194. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14195. ;;
  14196. # This must be glibc/ELF.
  14197. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14198. version_type=linux # correct to gnu/linux during the next big refactor
  14199. need_lib_prefix=no
  14200. need_version=no
  14201. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14202. soname_spec='$libname$release$shared_ext$major'
  14203. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14204. shlibpath_var=LD_LIBRARY_PATH
  14205. shlibpath_overrides_runpath=no
  14206. # Some binutils ld are patched to set DT_RUNPATH
  14207. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14208. $as_echo_n "(cached) " >&6
  14209. else
  14210. lt_cv_shlibpath_overrides_runpath=no
  14211. save_LDFLAGS=$LDFLAGS
  14212. save_libdir=$libdir
  14213. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14214. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. int
  14218. main ()
  14219. {
  14220. ;
  14221. return 0;
  14222. }
  14223. _ACEOF
  14224. if ac_fn_cxx_try_link "$LINENO"; then :
  14225. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14226. lt_cv_shlibpath_overrides_runpath=yes
  14227. fi
  14228. fi
  14229. rm -f core conftest.err conftest.$ac_objext \
  14230. conftest$ac_exeext conftest.$ac_ext
  14231. LDFLAGS=$save_LDFLAGS
  14232. libdir=$save_libdir
  14233. fi
  14234. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14235. # This implies no fast_install, which is unacceptable.
  14236. # Some rework will be needed to allow for fast_install
  14237. # before this can be enabled.
  14238. hardcode_into_libs=yes
  14239. # Ideally, we could use ldconfig to report *all* directores which are
  14240. # searched for libraries, however this is still not possible. Aside from not
  14241. # being certain /sbin/ldconfig is available, command
  14242. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14243. # even though it is searched at run-time. Try to do the best guess by
  14244. # appending ld.so.conf contents (and includes) to the search path.
  14245. if test -f /etc/ld.so.conf; then
  14246. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  14247. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14248. fi
  14249. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14250. # powerpc, because MkLinux only supported shared libraries with the
  14251. # GNU dynamic linker. Since this was broken with cross compilers,
  14252. # most powerpc-linux boxes support dynamic linking these days and
  14253. # people can always --disable-shared, the test was removed, and we
  14254. # assume the GNU/Linux dynamic linker is in use.
  14255. dynamic_linker='GNU/Linux ld.so'
  14256. ;;
  14257. netbsd*)
  14258. version_type=sunos
  14259. need_lib_prefix=no
  14260. need_version=no
  14261. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14262. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14263. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14264. dynamic_linker='NetBSD (a.out) ld.so'
  14265. else
  14266. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14267. soname_spec='$libname$release$shared_ext$major'
  14268. dynamic_linker='NetBSD ld.elf_so'
  14269. fi
  14270. shlibpath_var=LD_LIBRARY_PATH
  14271. shlibpath_overrides_runpath=yes
  14272. hardcode_into_libs=yes
  14273. ;;
  14274. newsos6)
  14275. version_type=linux # correct to gnu/linux during the next big refactor
  14276. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14277. shlibpath_var=LD_LIBRARY_PATH
  14278. shlibpath_overrides_runpath=yes
  14279. ;;
  14280. *nto* | *qnx*)
  14281. version_type=qnx
  14282. need_lib_prefix=no
  14283. need_version=no
  14284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14285. soname_spec='$libname$release$shared_ext$major'
  14286. shlibpath_var=LD_LIBRARY_PATH
  14287. shlibpath_overrides_runpath=no
  14288. hardcode_into_libs=yes
  14289. dynamic_linker='ldqnx.so'
  14290. ;;
  14291. openbsd* | bitrig*)
  14292. version_type=sunos
  14293. sys_lib_dlsearch_path_spec=/usr/lib
  14294. need_lib_prefix=no
  14295. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14296. need_version=no
  14297. else
  14298. need_version=yes
  14299. fi
  14300. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14301. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14302. shlibpath_var=LD_LIBRARY_PATH
  14303. shlibpath_overrides_runpath=yes
  14304. ;;
  14305. os2*)
  14306. libname_spec='$name'
  14307. version_type=windows
  14308. shrext_cmds=.dll
  14309. need_version=no
  14310. need_lib_prefix=no
  14311. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14312. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14313. v=$($ECHO $release$versuffix | tr -d .-);
  14314. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14315. $ECHO $n$v`$shared_ext'
  14316. library_names_spec='${libname}_dll.$libext'
  14317. dynamic_linker='OS/2 ld.exe'
  14318. shlibpath_var=BEGINLIBPATH
  14319. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14320. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14321. postinstall_cmds='base_file=`basename \$file`~
  14322. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14323. dldir=$destdir/`dirname \$dlpath`~
  14324. test -d \$dldir || mkdir -p \$dldir~
  14325. $install_prog $dir/$dlname \$dldir/$dlname~
  14326. chmod a+x \$dldir/$dlname~
  14327. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14328. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14329. fi'
  14330. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14331. dlpath=$dir/\$dldll~
  14332. $RM \$dlpath'
  14333. ;;
  14334. osf3* | osf4* | osf5*)
  14335. version_type=osf
  14336. need_lib_prefix=no
  14337. need_version=no
  14338. soname_spec='$libname$release$shared_ext$major'
  14339. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14340. shlibpath_var=LD_LIBRARY_PATH
  14341. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14342. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14343. ;;
  14344. rdos*)
  14345. dynamic_linker=no
  14346. ;;
  14347. solaris*)
  14348. version_type=linux # correct to gnu/linux during the next big refactor
  14349. need_lib_prefix=no
  14350. need_version=no
  14351. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14352. soname_spec='$libname$release$shared_ext$major'
  14353. shlibpath_var=LD_LIBRARY_PATH
  14354. shlibpath_overrides_runpath=yes
  14355. hardcode_into_libs=yes
  14356. # ldd complains unless libraries are executable
  14357. postinstall_cmds='chmod +x $lib'
  14358. ;;
  14359. sunos4*)
  14360. version_type=sunos
  14361. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14362. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14363. shlibpath_var=LD_LIBRARY_PATH
  14364. shlibpath_overrides_runpath=yes
  14365. if test yes = "$with_gnu_ld"; then
  14366. need_lib_prefix=no
  14367. fi
  14368. need_version=yes
  14369. ;;
  14370. sysv4 | sysv4.3*)
  14371. version_type=linux # correct to gnu/linux during the next big refactor
  14372. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14373. soname_spec='$libname$release$shared_ext$major'
  14374. shlibpath_var=LD_LIBRARY_PATH
  14375. case $host_vendor in
  14376. sni)
  14377. shlibpath_overrides_runpath=no
  14378. need_lib_prefix=no
  14379. runpath_var=LD_RUN_PATH
  14380. ;;
  14381. siemens)
  14382. need_lib_prefix=no
  14383. ;;
  14384. motorola)
  14385. need_lib_prefix=no
  14386. need_version=no
  14387. shlibpath_overrides_runpath=no
  14388. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14389. ;;
  14390. esac
  14391. ;;
  14392. sysv4*MP*)
  14393. if test -d /usr/nec; then
  14394. version_type=linux # correct to gnu/linux during the next big refactor
  14395. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14396. soname_spec='$libname$shared_ext.$major'
  14397. shlibpath_var=LD_LIBRARY_PATH
  14398. fi
  14399. ;;
  14400. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14401. version_type=sco
  14402. need_lib_prefix=no
  14403. need_version=no
  14404. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14405. soname_spec='$libname$release$shared_ext$major'
  14406. shlibpath_var=LD_LIBRARY_PATH
  14407. shlibpath_overrides_runpath=yes
  14408. hardcode_into_libs=yes
  14409. if test yes = "$with_gnu_ld"; then
  14410. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14411. else
  14412. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14413. case $host_os in
  14414. sco3.2v5*)
  14415. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14416. ;;
  14417. esac
  14418. fi
  14419. sys_lib_dlsearch_path_spec='/usr/lib'
  14420. ;;
  14421. tpf*)
  14422. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14423. version_type=linux # correct to gnu/linux during the next big refactor
  14424. need_lib_prefix=no
  14425. need_version=no
  14426. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14427. shlibpath_var=LD_LIBRARY_PATH
  14428. shlibpath_overrides_runpath=no
  14429. hardcode_into_libs=yes
  14430. ;;
  14431. uts4*)
  14432. version_type=linux # correct to gnu/linux during the next big refactor
  14433. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14434. soname_spec='$libname$release$shared_ext$major'
  14435. shlibpath_var=LD_LIBRARY_PATH
  14436. ;;
  14437. *)
  14438. dynamic_linker=no
  14439. ;;
  14440. esac
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14442. $as_echo "$dynamic_linker" >&6; }
  14443. test no = "$dynamic_linker" && can_build_shared=no
  14444. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14445. if test yes = "$GCC"; then
  14446. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14447. fi
  14448. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14449. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14450. fi
  14451. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14452. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14453. fi
  14454. # lt_cv_sys_lib... is unaugmented for libtool script decls...
  14455. lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
  14456. # ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for
  14457. # LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths:
  14458. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14460. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14461. hardcode_action_CXX=
  14462. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14463. test -n "$runpath_var_CXX" ||
  14464. test yes = "$hardcode_automatic_CXX"; then
  14465. # We can hardcode non-existent directories.
  14466. if test no != "$hardcode_direct_CXX" &&
  14467. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14468. # have to relink, otherwise we might link with an installed library
  14469. # when we should be linking with a yet-to-be-installed one
  14470. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14471. test no != "$hardcode_minus_L_CXX"; then
  14472. # Linking always hardcodes the temporary library directory.
  14473. hardcode_action_CXX=relink
  14474. else
  14475. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14476. hardcode_action_CXX=immediate
  14477. fi
  14478. else
  14479. # We cannot hardcode anything, or else we can only hardcode existing
  14480. # directories.
  14481. hardcode_action_CXX=unsupported
  14482. fi
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14484. $as_echo "$hardcode_action_CXX" >&6; }
  14485. if test relink = "$hardcode_action_CXX" ||
  14486. test yes = "$inherit_rpath_CXX"; then
  14487. # Fast installation is not supported
  14488. enable_fast_install=no
  14489. elif test yes = "$shlibpath_overrides_runpath" ||
  14490. test no = "$enable_shared"; then
  14491. # Fast installation is not necessary
  14492. enable_fast_install=needless
  14493. fi
  14494. fi # test -n "$compiler"
  14495. CC=$lt_save_CC
  14496. CFLAGS=$lt_save_CFLAGS
  14497. LDCXX=$LD
  14498. LD=$lt_save_LD
  14499. GCC=$lt_save_GCC
  14500. with_gnu_ld=$lt_save_with_gnu_ld
  14501. lt_cv_path_LDCXX=$lt_cv_path_LD
  14502. lt_cv_path_LD=$lt_save_path_LD
  14503. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14504. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14505. fi # test yes != "$_lt_caught_CXX_error"
  14506. ac_ext=cpp
  14507. ac_cpp='$CXXCPP $CPPFLAGS'
  14508. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14509. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14510. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14511. ac_config_commands="$ac_config_commands libtool"
  14512. # Only expand once:
  14513. if test x$AR = xfalse; then :
  14514. as_fn_error $? "Cannot find a valid 'ar' tool" "$LINENO" 5
  14515. fi
  14516. # Patch libtool to not use rpath if requested.
  14517. #
  14518. ac_config_commands="$ac_config_commands libtool-rpath-patch"
  14519. # Export information on whether we are building static/shared libraries.
  14520. # enable_shared and enable_static are defined by AC_PROG_LIBTOOL.
  14521. #
  14522. BUILD_SHARED=$enable_shared
  14523. BUILD_STATIC=$enable_static
  14524. # Checks for header files.
  14525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14526. $as_echo_n "checking for ANSI C header files... " >&6; }
  14527. if ${ac_cv_header_stdc+:} false; then :
  14528. $as_echo_n "(cached) " >&6
  14529. else
  14530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14531. /* end confdefs.h. */
  14532. #include <stdlib.h>
  14533. #include <stdarg.h>
  14534. #include <string.h>
  14535. #include <float.h>
  14536. int
  14537. main ()
  14538. {
  14539. ;
  14540. return 0;
  14541. }
  14542. _ACEOF
  14543. if ac_fn_cxx_try_compile "$LINENO"; then :
  14544. ac_cv_header_stdc=yes
  14545. else
  14546. ac_cv_header_stdc=no
  14547. fi
  14548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14549. if test $ac_cv_header_stdc = yes; then
  14550. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14552. /* end confdefs.h. */
  14553. #include <string.h>
  14554. _ACEOF
  14555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14556. $EGREP "memchr" >/dev/null 2>&1; then :
  14557. else
  14558. ac_cv_header_stdc=no
  14559. fi
  14560. rm -f conftest*
  14561. fi
  14562. if test $ac_cv_header_stdc = yes; then
  14563. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14565. /* end confdefs.h. */
  14566. #include <stdlib.h>
  14567. _ACEOF
  14568. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14569. $EGREP "free" >/dev/null 2>&1; then :
  14570. else
  14571. ac_cv_header_stdc=no
  14572. fi
  14573. rm -f conftest*
  14574. fi
  14575. if test $ac_cv_header_stdc = yes; then
  14576. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14577. if test "$cross_compiling" = yes; then :
  14578. :
  14579. else
  14580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14581. /* end confdefs.h. */
  14582. #include <ctype.h>
  14583. #include <stdlib.h>
  14584. #if ((' ' & 0x0FF) == 0x020)
  14585. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14586. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14587. #else
  14588. # define ISLOWER(c) \
  14589. (('a' <= (c) && (c) <= 'i') \
  14590. || ('j' <= (c) && (c) <= 'r') \
  14591. || ('s' <= (c) && (c) <= 'z'))
  14592. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14593. #endif
  14594. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14595. int
  14596. main ()
  14597. {
  14598. int i;
  14599. for (i = 0; i < 256; i++)
  14600. if (XOR (islower (i), ISLOWER (i))
  14601. || toupper (i) != TOUPPER (i))
  14602. return 2;
  14603. return 0;
  14604. }
  14605. _ACEOF
  14606. if ac_fn_cxx_try_run "$LINENO"; then :
  14607. else
  14608. ac_cv_header_stdc=no
  14609. fi
  14610. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14611. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14612. fi
  14613. fi
  14614. fi
  14615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14616. $as_echo "$ac_cv_header_stdc" >&6; }
  14617. if test $ac_cv_header_stdc = yes; then
  14618. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14619. fi
  14620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14621. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14622. if ${ac_cv_header_time+:} false; then :
  14623. $as_echo_n "(cached) " >&6
  14624. else
  14625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14626. /* end confdefs.h. */
  14627. #include <sys/types.h>
  14628. #include <sys/time.h>
  14629. #include <time.h>
  14630. int
  14631. main ()
  14632. {
  14633. if ((struct tm *) 0)
  14634. return 0;
  14635. ;
  14636. return 0;
  14637. }
  14638. _ACEOF
  14639. if ac_fn_cxx_try_compile "$LINENO"; then :
  14640. ac_cv_header_time=yes
  14641. else
  14642. ac_cv_header_time=no
  14643. fi
  14644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14645. fi
  14646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14647. $as_echo "$ac_cv_header_time" >&6; }
  14648. if test $ac_cv_header_time = yes; then
  14649. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14650. fi
  14651. for ac_header in arpa/inet.h fcntl.h float.h inttypes.h langinfo.h limits.h locale.h \
  14652. memory.h netdb.h netinet/in.h nl_types.h stddef.h stdint.h stdlib.h \
  14653. string.h strings.h \
  14654. sys/param.h sys/socket.h sys/time.h sys/timeb.h \
  14655. unistd.h wchar.h wctype.h \
  14656. CoreServices/CoreServices.h \
  14657. endian.h machine/endian.h arpa/nameser_compat.h \
  14658. do :
  14659. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14660. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14661. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14662. cat >>confdefs.h <<_ACEOF
  14663. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14664. _ACEOF
  14665. fi
  14666. done
  14667. # Checks for typedefs, structures, and compiler characteristics.
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14669. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14670. if ${ac_cv_header_stdbool_h+:} false; then :
  14671. $as_echo_n "(cached) " >&6
  14672. else
  14673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14674. /* end confdefs.h. */
  14675. #include <stdbool.h>
  14676. #ifndef bool
  14677. "error: bool is not defined"
  14678. #endif
  14679. #ifndef false
  14680. "error: false is not defined"
  14681. #endif
  14682. #if false
  14683. "error: false is not 0"
  14684. #endif
  14685. #ifndef true
  14686. "error: true is not defined"
  14687. #endif
  14688. #if true != 1
  14689. "error: true is not 1"
  14690. #endif
  14691. #ifndef __bool_true_false_are_defined
  14692. "error: __bool_true_false_are_defined is not defined"
  14693. #endif
  14694. struct s { _Bool s: 1; _Bool t; } s;
  14695. char a[true == 1 ? 1 : -1];
  14696. char b[false == 0 ? 1 : -1];
  14697. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14698. char d[(bool) 0.5 == true ? 1 : -1];
  14699. /* See body of main program for 'e'. */
  14700. char f[(_Bool) 0.0 == false ? 1 : -1];
  14701. char g[true];
  14702. char h[sizeof (_Bool)];
  14703. char i[sizeof s.t];
  14704. enum { j = false, k = true, l = false * true, m = true * 256 };
  14705. /* The following fails for
  14706. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14707. _Bool n[m];
  14708. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14709. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14710. /* Catch a bug in an HP-UX C compiler. See
  14711. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14712. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14713. */
  14714. _Bool q = true;
  14715. _Bool *pq = &q;
  14716. int
  14717. main ()
  14718. {
  14719. bool e = &s;
  14720. *pq |= q;
  14721. *pq |= ! q;
  14722. /* Refer to every declared value, to avoid compiler optimizations. */
  14723. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14724. + !m + !n + !o + !p + !q + !pq);
  14725. ;
  14726. return 0;
  14727. }
  14728. _ACEOF
  14729. if ac_fn_cxx_try_compile "$LINENO"; then :
  14730. ac_cv_header_stdbool_h=yes
  14731. else
  14732. ac_cv_header_stdbool_h=no
  14733. fi
  14734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14735. fi
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14737. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14738. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14739. if test "x$ac_cv_type__Bool" = xyes; then :
  14740. cat >>confdefs.h <<_ACEOF
  14741. #define HAVE__BOOL 1
  14742. _ACEOF
  14743. fi
  14744. if test $ac_cv_header_stdbool_h = yes; then
  14745. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14746. fi
  14747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14748. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14749. if ${ac_cv_c_const+:} false; then :
  14750. $as_echo_n "(cached) " >&6
  14751. else
  14752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14753. /* end confdefs.h. */
  14754. int
  14755. main ()
  14756. {
  14757. #ifndef __cplusplus
  14758. /* Ultrix mips cc rejects this sort of thing. */
  14759. typedef int charset[2];
  14760. const charset cs = { 0, 0 };
  14761. /* SunOS 4.1.1 cc rejects this. */
  14762. char const *const *pcpcc;
  14763. char **ppc;
  14764. /* NEC SVR4.0.2 mips cc rejects this. */
  14765. struct point {int x, y;};
  14766. static struct point const zero = {0,0};
  14767. /* AIX XL C 1.02.0.0 rejects this.
  14768. It does not let you subtract one const X* pointer from another in
  14769. an arm of an if-expression whose if-part is not a constant
  14770. expression */
  14771. const char *g = "string";
  14772. pcpcc = &g + (g ? g-g : 0);
  14773. /* HPUX 7.0 cc rejects these. */
  14774. ++pcpcc;
  14775. ppc = (char**) pcpcc;
  14776. pcpcc = (char const *const *) ppc;
  14777. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14778. char tx;
  14779. char *t = &tx;
  14780. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14781. *t++ = 0;
  14782. if (s) return 0;
  14783. }
  14784. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14785. int x[] = {25, 17};
  14786. const int *foo = &x[0];
  14787. ++foo;
  14788. }
  14789. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14790. typedef const int *iptr;
  14791. iptr p = 0;
  14792. ++p;
  14793. }
  14794. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14795. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14796. struct s { int j; const int *ap[3]; } bx;
  14797. struct s *b = &bx; b->j = 5;
  14798. }
  14799. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14800. const int foo = 10;
  14801. if (!foo) return 0;
  14802. }
  14803. return !cs[0] && !zero.x;
  14804. #endif
  14805. ;
  14806. return 0;
  14807. }
  14808. _ACEOF
  14809. if ac_fn_cxx_try_compile "$LINENO"; then :
  14810. ac_cv_c_const=yes
  14811. else
  14812. ac_cv_c_const=no
  14813. fi
  14814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14815. fi
  14816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14817. $as_echo "$ac_cv_c_const" >&6; }
  14818. if test $ac_cv_c_const = no; then
  14819. $as_echo "#define const /**/" >>confdefs.h
  14820. fi
  14821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14822. $as_echo_n "checking for inline... " >&6; }
  14823. if ${ac_cv_c_inline+:} false; then :
  14824. $as_echo_n "(cached) " >&6
  14825. else
  14826. ac_cv_c_inline=no
  14827. for ac_kw in inline __inline__ __inline; do
  14828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14829. /* end confdefs.h. */
  14830. #ifndef __cplusplus
  14831. typedef int foo_t;
  14832. static $ac_kw foo_t static_foo () {return 0; }
  14833. $ac_kw foo_t foo () {return 0; }
  14834. #endif
  14835. _ACEOF
  14836. if ac_fn_cxx_try_compile "$LINENO"; then :
  14837. ac_cv_c_inline=$ac_kw
  14838. fi
  14839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14840. test "$ac_cv_c_inline" != no && break
  14841. done
  14842. fi
  14843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14844. $as_echo "$ac_cv_c_inline" >&6; }
  14845. case $ac_cv_c_inline in
  14846. inline | yes) ;;
  14847. *)
  14848. case $ac_cv_c_inline in
  14849. no) ac_val=;;
  14850. *) ac_val=$ac_cv_c_inline;;
  14851. esac
  14852. cat >>confdefs.h <<_ACEOF
  14853. #ifndef __cplusplus
  14854. #define inline $ac_val
  14855. #endif
  14856. _ACEOF
  14857. ;;
  14858. esac
  14859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14860. $as_echo_n "checking for working volatile... " >&6; }
  14861. if ${ac_cv_c_volatile+:} false; then :
  14862. $as_echo_n "(cached) " >&6
  14863. else
  14864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14865. /* end confdefs.h. */
  14866. int
  14867. main ()
  14868. {
  14869. volatile int x;
  14870. int * volatile y = (int *) 0;
  14871. return !x && !y;
  14872. ;
  14873. return 0;
  14874. }
  14875. _ACEOF
  14876. if ac_fn_cxx_try_compile "$LINENO"; then :
  14877. ac_cv_c_volatile=yes
  14878. else
  14879. ac_cv_c_volatile=no
  14880. fi
  14881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14882. fi
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14884. $as_echo "$ac_cv_c_volatile" >&6; }
  14885. if test $ac_cv_c_volatile = no; then
  14886. $as_echo "#define volatile /**/" >>confdefs.h
  14887. fi
  14888. # The cast to long int works around a bug in the HP C Compiler
  14889. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14890. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14891. # This bug is HP SR number 8606223364.
  14892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
  14893. $as_echo_n "checking size of wchar_t... " >&6; }
  14894. if ${ac_cv_sizeof_wchar_t+:} false; then :
  14895. $as_echo_n "(cached) " >&6
  14896. else
  14897. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
  14898. else
  14899. if test "$ac_cv_type_wchar_t" = yes; then
  14900. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14901. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14902. as_fn_error 77 "cannot compute sizeof (wchar_t)
  14903. See \`config.log' for more details" "$LINENO" 5; }
  14904. else
  14905. ac_cv_sizeof_wchar_t=0
  14906. fi
  14907. fi
  14908. fi
  14909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
  14910. $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
  14911. cat >>confdefs.h <<_ACEOF
  14912. #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
  14913. _ACEOF
  14914. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14915. if test "x$ac_cv_type_size_t" = xyes; then :
  14916. fi
  14917. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  14918. if test "x$ac_cv_type_ssize_t" = xyes; then :
  14919. fi
  14920. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  14921. if test "x$ac_cv_type_off_t" = xyes; then :
  14922. else
  14923. cat >>confdefs.h <<_ACEOF
  14924. #define off_t long int
  14925. _ACEOF
  14926. fi
  14927. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14928. if test "x$ac_cv_type_size_t" = xyes; then :
  14929. else
  14930. cat >>confdefs.h <<_ACEOF
  14931. #define size_t unsigned int
  14932. _ACEOF
  14933. fi
  14934. for ac_header in inttypes.h
  14935. do :
  14936. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  14937. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  14938. cat >>confdefs.h <<_ACEOF
  14939. #define HAVE_INTTYPES_H 1
  14940. _ACEOF
  14941. fi
  14942. done
  14943. # The cast to long int works around a bug in the HP C Compiler
  14944. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14945. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14946. # This bug is HP SR number 8606223364.
  14947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  14948. $as_echo_n "checking size of short... " >&6; }
  14949. if ${ac_cv_sizeof_short+:} false; then :
  14950. $as_echo_n "(cached) " >&6
  14951. else
  14952. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  14953. else
  14954. if test "$ac_cv_type_short" = yes; then
  14955. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14956. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14957. as_fn_error 77 "cannot compute sizeof (short)
  14958. See \`config.log' for more details" "$LINENO" 5; }
  14959. else
  14960. ac_cv_sizeof_short=0
  14961. fi
  14962. fi
  14963. fi
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  14965. $as_echo "$ac_cv_sizeof_short" >&6; }
  14966. cat >>confdefs.h <<_ACEOF
  14967. #define SIZEOF_SHORT $ac_cv_sizeof_short
  14968. _ACEOF
  14969. # The cast to long int works around a bug in the HP C Compiler
  14970. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14971. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14972. # This bug is HP SR number 8606223364.
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14974. $as_echo_n "checking size of int... " >&6; }
  14975. if ${ac_cv_sizeof_int+:} false; then :
  14976. $as_echo_n "(cached) " >&6
  14977. else
  14978. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14979. else
  14980. if test "$ac_cv_type_int" = yes; then
  14981. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14983. as_fn_error 77 "cannot compute sizeof (int)
  14984. See \`config.log' for more details" "$LINENO" 5; }
  14985. else
  14986. ac_cv_sizeof_int=0
  14987. fi
  14988. fi
  14989. fi
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14991. $as_echo "$ac_cv_sizeof_int" >&6; }
  14992. cat >>confdefs.h <<_ACEOF
  14993. #define SIZEOF_INT $ac_cv_sizeof_int
  14994. _ACEOF
  14995. # The cast to long int works around a bug in the HP C Compiler
  14996. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14997. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14998. # This bug is HP SR number 8606223364.
  14999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  15000. $as_echo_n "checking size of long... " >&6; }
  15001. if ${ac_cv_sizeof_long+:} false; then :
  15002. $as_echo_n "(cached) " >&6
  15003. else
  15004. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  15005. else
  15006. if test "$ac_cv_type_long" = yes; then
  15007. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15009. as_fn_error 77 "cannot compute sizeof (long)
  15010. See \`config.log' for more details" "$LINENO" 5; }
  15011. else
  15012. ac_cv_sizeof_long=0
  15013. fi
  15014. fi
  15015. fi
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  15017. $as_echo "$ac_cv_sizeof_long" >&6; }
  15018. cat >>confdefs.h <<_ACEOF
  15019. #define SIZEOF_LONG $ac_cv_sizeof_long
  15020. _ACEOF
  15021. # The cast to long int works around a bug in the HP C Compiler
  15022. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15023. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15024. # This bug is HP SR number 8606223364.
  15025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  15026. $as_echo_n "checking size of long long... " >&6; }
  15027. if ${ac_cv_sizeof_long_long+:} false; then :
  15028. $as_echo_n "(cached) " >&6
  15029. else
  15030. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  15031. else
  15032. if test "$ac_cv_type_long_long" = yes; then
  15033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15035. as_fn_error 77 "cannot compute sizeof (long long)
  15036. See \`config.log' for more details" "$LINENO" 5; }
  15037. else
  15038. ac_cv_sizeof_long_long=0
  15039. fi
  15040. fi
  15041. fi
  15042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  15043. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  15044. cat >>confdefs.h <<_ACEOF
  15045. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  15046. _ACEOF
  15047. # The cast to long int works around a bug in the HP C Compiler
  15048. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15049. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15050. # This bug is HP SR number 8606223364.
  15051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
  15052. $as_echo_n "checking size of __int64... " >&6; }
  15053. if ${ac_cv_sizeof___int64+:} false; then :
  15054. $as_echo_n "(cached) " >&6
  15055. else
  15056. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
  15057. else
  15058. if test "$ac_cv_type___int64" = yes; then
  15059. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15060. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15061. as_fn_error 77 "cannot compute sizeof (__int64)
  15062. See \`config.log' for more details" "$LINENO" 5; }
  15063. else
  15064. ac_cv_sizeof___int64=0
  15065. fi
  15066. fi
  15067. fi
  15068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
  15069. $as_echo "$ac_cv_sizeof___int64" >&6; }
  15070. cat >>confdefs.h <<_ACEOF
  15071. #define SIZEOF___INT64 $ac_cv_sizeof___int64
  15072. _ACEOF
  15073. ac_fn_cxx_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  15074. if test "x$ac_cv_type_int16_t" = xyes; then :
  15075. fi
  15076. ac_fn_cxx_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  15077. if test "x$ac_cv_type_int32_t" = xyes; then :
  15078. fi
  15079. ac_fn_cxx_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
  15080. if test "x$ac_cv_type_int64_t" = xyes; then :
  15081. fi
  15082. ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  15083. if test "x$ac_cv_type_uint16_t" = xyes; then :
  15084. fi
  15085. ac_fn_cxx_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  15086. if test "x$ac_cv_type_uint32_t" = xyes; then :
  15087. fi
  15088. ac_fn_cxx_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
  15089. if test "x$ac_cv_type_uint64_t" = xyes; then :
  15090. fi
  15091. #
  15092. # Select a signed 16 bit integer type
  15093. #
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an appropriate signed 16 bit integer type" >&5
  15095. $as_echo_n "checking for an appropriate signed 16 bit integer type... " >&6; }
  15096. if ${xerces_cv_type_s16bit_int+:} false; then :
  15097. $as_echo_n "(cached) " >&6
  15098. else
  15099. if test x$ac_cv_header_inttypes_h = xyes && test x$ac_cv_type_int16_t = xyes; then :
  15100. xerces_cv_type_s16bit_int=int16_t
  15101. else
  15102. case $ac_cv_sizeof_int in
  15103. 2*) xerces_cv_type_s16bit_int=int;;
  15104. *)
  15105. case $ac_cv_sizeof_short in
  15106. 2*) xerces_cv_type_s16bit_int=short;;
  15107. *) as_fn_error $? "Couldn't find a signed 16 bit int type" "$LINENO" 5;;
  15108. esac
  15109. ;;
  15110. esac
  15111. fi
  15112. fi
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xerces_cv_type_s16bit_int" >&5
  15114. $as_echo "$xerces_cv_type_s16bit_int" >&6; }
  15115. #
  15116. # Select an unsigned 16 bit integer type
  15117. #
  15118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an appropriate unsigned 16 bit integer type" >&5
  15119. $as_echo_n "checking for an appropriate unsigned 16 bit integer type... " >&6; }
  15120. if ${xerces_cv_type_u16bit_int+:} false; then :
  15121. $as_echo_n "(cached) " >&6
  15122. else
  15123. if test x$ac_cv_header_inttypes_h = xyes && test x$ac_cv_type_uint16_t = xyes; then :
  15124. xerces_cv_type_u16bit_int=uint16_t
  15125. else
  15126. case $ac_cv_sizeof_int in
  15127. 2*) xerces_cv_type_u16bit_int="unsigned int";;
  15128. *)
  15129. case $ac_cv_sizeof_short in
  15130. 2*) xerces_cv_type_u16bit_int="unsigned short";;
  15131. *) as_fn_error $? "Couldn't find an unsigned 16 bit int type" "$LINENO" 5;;
  15132. esac
  15133. ;;
  15134. esac
  15135. fi
  15136. fi
  15137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xerces_cv_type_u16bit_int" >&5
  15138. $as_echo "$xerces_cv_type_u16bit_int" >&6; }
  15139. #
  15140. # Select a signed 32 bit integer type
  15141. #
  15142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an appropriate signed 32 bit integer type" >&5
  15143. $as_echo_n "checking for an appropriate signed 32 bit integer type... " >&6; }
  15144. if ${xerces_cv_type_s32bit_int+:} false; then :
  15145. $as_echo_n "(cached) " >&6
  15146. else
  15147. if test x$ac_cv_header_inttypes_h = xyes && test x$ac_cv_type_int32_t = xyes; then :
  15148. xerces_cv_type_s32bit_int=int32_t
  15149. else
  15150. case $ac_cv_sizeof_int in
  15151. 4*) xerces_cv_type_s32bit_int=int;;
  15152. *)
  15153. case $ac_cv_sizeof_long in
  15154. 4*) xerces_cv_type_s32bit_int=long;;
  15155. *) as_fn_error $? "Couldn't find a signed 32 bit int type" "$LINENO" 5;;
  15156. esac
  15157. ;;
  15158. esac
  15159. fi
  15160. fi
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xerces_cv_type_s32bit_int" >&5
  15162. $as_echo "$xerces_cv_type_s32bit_int" >&6; }
  15163. #
  15164. # Select an unsigned 32 bit integer type
  15165. #
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an appropriate unsigned 32 bit integer type" >&5
  15167. $as_echo_n "checking for an appropriate unsigned 32 bit integer type... " >&6; }
  15168. if ${xerces_cv_type_u32bit_int+:} false; then :
  15169. $as_echo_n "(cached) " >&6
  15170. else
  15171. if test x$ac_cv_header_inttypes_h = xyes && test x$ac_cv_type_uint32_t = xyes; then :
  15172. xerces_cv_type_u32bit_int=uint32_t
  15173. else
  15174. case $ac_cv_sizeof_int in
  15175. 4*) xerces_cv_type_u32bit_int="unsigned int";;
  15176. *)
  15177. case $ac_cv_sizeof_long in
  15178. 4*) xerces_cv_type_u32bit_int="unsigned long";;
  15179. *) as_fn_error $? "Couldn't find an unsigned 32 bit int type" "$LINENO" 5;;
  15180. esac
  15181. ;;
  15182. esac
  15183. fi
  15184. fi
  15185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xerces_cv_type_u32bit_int" >&5
  15186. $as_echo "$xerces_cv_type_u32bit_int" >&6; }
  15187. #
  15188. # Select an signed 64 bit integer type
  15189. #
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an appropriate signed 64 bit integer type" >&5
  15191. $as_echo_n "checking for an appropriate signed 64 bit integer type... " >&6; }
  15192. if ${xerces_cv_type_s64bit_int+:} false; then :
  15193. $as_echo_n "(cached) " >&6
  15194. else
  15195. if test x$ac_cv_header_inttypes_h = xyes && test x$ac_cv_type_int64_t = xyes; then :
  15196. xerces_cv_type_s64bit_int=int64_t
  15197. xerces_cv_sizeof_int64=8
  15198. else
  15199. case $ac_cv_sizeof_int in
  15200. 8*) xerces_cv_type_s64bit_int="int"
  15201. xerces_cv_sizeof_int64=8
  15202. ;;
  15203. *)
  15204. case $ac_cv_sizeof_long in
  15205. 8*) xerces_cv_type_s64bit_int="long"
  15206. xerces_cv_sizeof_int64=8
  15207. ;;
  15208. *)
  15209. case $ac_cv_sizeof_long_long in
  15210. 8*) xerces_cv_type_s64bit_int="long long"
  15211. xerces_cv_sizeof_int64=8
  15212. ;;
  15213. *)
  15214. case $ac_cv_sizeof___int64 in
  15215. 8*) xerces_cv_type_s64bit_int="__int64"
  15216. xerces_cv_sizeof_int64=8
  15217. ;;
  15218. *) xerces_cv_type_s64bit_int=$xerces_cv_type_s32bit_int
  15219. xerces_cv_sizeof_int64=4
  15220. ;;
  15221. esac
  15222. ;;
  15223. esac
  15224. ;;
  15225. esac
  15226. ;;
  15227. esac
  15228. fi
  15229. fi
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xerces_cv_type_s64bit_int" >&5
  15231. $as_echo "$xerces_cv_type_s64bit_int" >&6; }
  15232. #
  15233. # Select an unsigned 64 bit integer type
  15234. #
  15235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an appropriate unsigned 64 bit integer type" >&5
  15236. $as_echo_n "checking for an appropriate unsigned 64 bit integer type... " >&6; }
  15237. if ${xerces_cv_type_u64bit_int+:} false; then :
  15238. $as_echo_n "(cached) " >&6
  15239. else
  15240. if test x$ac_cv_header_inttypes_h = xyes && test x$ac_cv_type_uint64_t = xyes; then :
  15241. xerces_cv_type_u64bit_int=uint64_t
  15242. else
  15243. case $ac_cv_sizeof_int in
  15244. 8*) xerces_cv_type_u64bit_int="unsigned int";;
  15245. *)
  15246. case $ac_cv_sizeof_long in
  15247. 8*) xerces_cv_type_u64bit_int="unsigned long";;
  15248. *)
  15249. case $ac_cv_sizeof_long_long in
  15250. 8*) xerces_cv_type_u64bit_int="unsigned long long";;
  15251. *)
  15252. case $ac_cv_sizeof___int64 in
  15253. 8*) xerces_cv_type_u64bit_int="unsigned __int64";;
  15254. *) xerces_cv_type_u64bit_int=$xerces_cv_type_u32bit_int;;
  15255. esac
  15256. ;;
  15257. esac
  15258. ;;
  15259. esac
  15260. ;;
  15261. esac
  15262. fi
  15263. fi
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xerces_cv_type_u64bit_int" >&5
  15265. $as_echo "$xerces_cv_type_u64bit_int" >&6; }
  15266. cat >>confdefs.h <<_ACEOF
  15267. #define XERCES_S16BIT_INT $xerces_cv_type_s16bit_int
  15268. _ACEOF
  15269. cat >>confdefs.h <<_ACEOF
  15270. #define XERCES_U16BIT_INT $xerces_cv_type_u16bit_int
  15271. _ACEOF
  15272. cat >>confdefs.h <<_ACEOF
  15273. #define XERCES_S32BIT_INT $xerces_cv_type_s32bit_int
  15274. _ACEOF
  15275. cat >>confdefs.h <<_ACEOF
  15276. #define XERCES_U32BIT_INT $xerces_cv_type_u32bit_int
  15277. _ACEOF
  15278. cat >>confdefs.h <<_ACEOF
  15279. #define XERCES_S64BIT_INT $xerces_cv_type_s64bit_int
  15280. _ACEOF
  15281. cat >>confdefs.h <<_ACEOF
  15282. #define XERCES_U64BIT_INT $xerces_cv_type_u64bit_int
  15283. _ACEOF
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
  15285. $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
  15286. if ${ac_cv_cxx_have_bool+:} false; then :
  15287. $as_echo_n "(cached) " >&6
  15288. else
  15289. ac_ext=cpp
  15290. ac_cpp='$CXXCPP $CPPFLAGS'
  15291. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15292. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15293. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15295. /* end confdefs.h. */
  15296. int f(int x){return 1;}
  15297. int f(char x){return 1;}
  15298. int f(bool x){return 1;}
  15299. int
  15300. main ()
  15301. {
  15302. bool b = true; return f(b);
  15303. ;
  15304. return 0;
  15305. }
  15306. _ACEOF
  15307. if ac_fn_cxx_try_compile "$LINENO"; then :
  15308. ac_cv_cxx_have_bool=yes
  15309. else
  15310. ac_cv_cxx_have_bool=no
  15311. fi
  15312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15313. ac_ext=cpp
  15314. ac_cpp='$CXXCPP $CPPFLAGS'
  15315. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15316. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15317. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15318. fi
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
  15320. $as_echo "$ac_cv_cxx_have_bool" >&6; }
  15321. if test "$ac_cv_cxx_have_bool" = yes; then
  15322. $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
  15323. fi
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
  15325. $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
  15326. if ${ac_cv_cxx_have_namespaces+:} false; then :
  15327. $as_echo_n "(cached) " >&6
  15328. else
  15329. ac_ext=cpp
  15330. ac_cpp='$CXXCPP $CPPFLAGS'
  15331. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15332. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15333. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15335. /* end confdefs.h. */
  15336. namespace Outer { namespace Inner { int i = 0; }}
  15337. int
  15338. main ()
  15339. {
  15340. using namespace Outer::Inner; return i;
  15341. ;
  15342. return 0;
  15343. }
  15344. _ACEOF
  15345. if ac_fn_cxx_try_compile "$LINENO"; then :
  15346. ac_cv_cxx_have_namespaces=yes
  15347. else
  15348. ac_cv_cxx_have_namespaces=no
  15349. fi
  15350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15351. ac_ext=cpp
  15352. ac_cpp='$CXXCPP $CPPFLAGS'
  15353. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15354. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15355. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15356. fi
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
  15358. $as_echo "$ac_cv_cxx_have_namespaces" >&6; }
  15359. if test "$ac_cv_cxx_have_namespaces" = yes; then
  15360. $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
  15361. fi
  15362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
  15363. $as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
  15364. if ${ac_cv_cxx_have_std_namespace+:} false; then :
  15365. $as_echo_n "(cached) " >&6
  15366. else
  15367. ac_ext=cpp
  15368. ac_cpp='$CXXCPP $CPPFLAGS'
  15369. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15370. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15371. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15373. /* end confdefs.h. */
  15374. #include <iostream>
  15375. std::istream& is = std::cin;
  15376. int
  15377. main ()
  15378. {
  15379. return 0;
  15380. ;
  15381. return 0;
  15382. }
  15383. _ACEOF
  15384. if ac_fn_cxx_try_compile "$LINENO"; then :
  15385. ac_cv_cxx_have_std_namespace=yes
  15386. else
  15387. ac_cv_cxx_have_std_namespace=no
  15388. fi
  15389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15390. ac_ext=cpp
  15391. ac_cpp='$CXXCPP $CPPFLAGS'
  15392. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15393. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15394. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15395. fi
  15396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
  15397. $as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
  15398. if test "$ac_cv_cxx_have_std_namespace" = yes; then
  15399. $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
  15400. fi
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
  15402. $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
  15403. if ${ac_cv_cxx_have_std_libs+:} false; then :
  15404. $as_echo_n "(cached) " >&6
  15405. else
  15406. ac_ext=cpp
  15407. ac_cpp='$CXXCPP $CPPFLAGS'
  15408. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15409. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15410. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15412. /* end confdefs.h. */
  15413. #include <iostream>
  15414. #include <map>
  15415. #include <iomanip>
  15416. #include <cmath>
  15417. #ifdef HAVE_NAMESPACES
  15418. using namespace std;
  15419. #endif
  15420. int
  15421. main ()
  15422. {
  15423. return 0;
  15424. ;
  15425. return 0;
  15426. }
  15427. _ACEOF
  15428. if ac_fn_cxx_try_compile "$LINENO"; then :
  15429. ac_cv_cxx_have_std_libs=yes
  15430. else
  15431. ac_cv_cxx_have_std_libs=no
  15432. fi
  15433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15434. ac_ext=cpp
  15435. ac_cpp='$CXXCPP $CPPFLAGS'
  15436. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15437. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15438. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15439. fi
  15440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
  15441. $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
  15442. if test "$ac_cv_cxx_have_std_libs" = yes; then
  15443. $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
  15444. fi
  15445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
  15446. $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
  15447. if ${ac_cv_cxx_have_lstring+:} false; then :
  15448. $as_echo_n "(cached) " >&6
  15449. else
  15450. ac_ext=cpp
  15451. ac_cpp='$CXXCPP $CPPFLAGS'
  15452. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15453. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15454. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15456. /* end confdefs.h. */
  15457. const wchar_t* s=L"wide string";
  15458. _ACEOF
  15459. if ac_fn_cxx_try_compile "$LINENO"; then :
  15460. ac_cv_cxx_have_lstring=yes
  15461. else
  15462. ac_cv_cxx_have_lstring=no
  15463. fi
  15464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15465. ac_ext=cpp
  15466. ac_cpp='$CXXCPP $CPPFLAGS'
  15467. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15468. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15469. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15470. fi
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
  15472. $as_echo "$ac_cv_cxx_have_lstring" >&6; }
  15473. if test "$ac_cv_cxx_have_lstring" = yes; then
  15474. $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
  15475. fi
  15476. ac_ext=c
  15477. ac_cpp='$CPP $CPPFLAGS'
  15478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15481. acx_pthread_ok=no
  15482. # We used to check for pthread.h first, but this fails if pthread.h
  15483. # requires special compiler flags (e.g. on True64 or Sequent).
  15484. # It gets checked for in the link test anyway.
  15485. # First of all, check if the user has set any of the PTHREAD_LIBS,
  15486. # etcetera environment variables, and if threads linking works using
  15487. # them:
  15488. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  15489. save_CFLAGS="$CFLAGS"
  15490. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  15491. save_LIBS="$LIBS"
  15492. LIBS="$PTHREAD_LIBS $LIBS"
  15493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  15494. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  15495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15496. /* end confdefs.h. */
  15497. /* Override any GCC internal prototype to avoid an error.
  15498. Use char because int might match the return type of a GCC
  15499. builtin and then its argument prototype would still apply. */
  15500. #ifdef __cplusplus
  15501. extern "C"
  15502. #endif
  15503. char pthread_join ();
  15504. int
  15505. main ()
  15506. {
  15507. return pthread_join ();
  15508. ;
  15509. return 0;
  15510. }
  15511. _ACEOF
  15512. if ac_fn_c_try_link "$LINENO"; then :
  15513. acx_pthread_ok=yes
  15514. fi
  15515. rm -f core conftest.err conftest.$ac_objext \
  15516. conftest$ac_exeext conftest.$ac_ext
  15517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  15518. $as_echo "$acx_pthread_ok" >&6; }
  15519. if test x"$acx_pthread_ok" = xno; then
  15520. PTHREAD_LIBS=""
  15521. PTHREAD_CFLAGS=""
  15522. fi
  15523. LIBS="$save_LIBS"
  15524. CFLAGS="$save_CFLAGS"
  15525. fi
  15526. # We must check for the threads library under a number of different
  15527. # names; the ordering is very important because some systems
  15528. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  15529. # libraries is broken (non-POSIX).
  15530. # Create a list of thread flags to try. Items starting with a "-" are
  15531. # C compiler flags, and other items are library names, except for "none"
  15532. # which indicates that we try without any flags at all, and "pthread-config"
  15533. # which is a program returning the flags for the Pth emulation library.
  15534. # XERCES: On GNU/Linux with gcc both -pthread and -lpthread are valid.
  15535. # However, libtool links libraries with -nostdlib which results in
  15536. # -pthread being stripped from the linker command line. To resolve
  15537. # this we move pthread from after -mthreads to after pthreads.
  15538. #
  15539. acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
  15540. # The ordering *is* (sometimes) important. Some notes on the
  15541. # individual items follow:
  15542. # pthreads: AIX (must check this before -lpthread)
  15543. # none: in case threads are in libc; should be tried before -Kthread and
  15544. # other compiler flags to prevent continual compiler warnings
  15545. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  15546. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  15547. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  15548. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  15549. # -pthreads: Solaris/gcc
  15550. # -mthreads: Mingw32/gcc, Lynx/gcc
  15551. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  15552. # doesn't hurt to check since this sometimes defines pthreads too;
  15553. # also defines -D_REENTRANT)
  15554. # ... -mt is also the pthreads flag for HP/aCC
  15555. # pthread: Linux, etcetera
  15556. # --thread-safe: KAI C++
  15557. # pthread-config: use pthread-config program (for GNU Pth library)
  15558. case "${host_cpu}-${host_os}" in
  15559. *solaris*)
  15560. # On Solaris (at least, for some versions), libc contains stubbed
  15561. # (non-functional) versions of the pthreads routines, so link-based
  15562. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  15563. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  15564. # a function called by this macro, so we could check for that, but
  15565. # who knows whether they'll stub that too in a future libc.) So,
  15566. # we'll just look for -pthreads and -lpthread first:
  15567. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  15568. ;;
  15569. esac
  15570. if test x"$acx_pthread_ok" = xno; then
  15571. for flag in $acx_pthread_flags; do
  15572. case $flag in
  15573. none)
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  15575. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  15576. ;;
  15577. -*)
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  15579. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  15580. PTHREAD_CFLAGS="$flag"
  15581. ;;
  15582. pthread-config)
  15583. # Extract the first word of "pthread-config", so it can be a program name with args.
  15584. set dummy pthread-config; ac_word=$2
  15585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15586. $as_echo_n "checking for $ac_word... " >&6; }
  15587. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  15588. $as_echo_n "(cached) " >&6
  15589. else
  15590. if test -n "$acx_pthread_config"; then
  15591. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  15592. else
  15593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15594. for as_dir in $PATH
  15595. do
  15596. IFS=$as_save_IFS
  15597. test -z "$as_dir" && as_dir=.
  15598. for ac_exec_ext in '' $ac_executable_extensions; do
  15599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15600. ac_cv_prog_acx_pthread_config="yes"
  15601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15602. break 2
  15603. fi
  15604. done
  15605. done
  15606. IFS=$as_save_IFS
  15607. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  15608. fi
  15609. fi
  15610. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  15611. if test -n "$acx_pthread_config"; then
  15612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  15613. $as_echo "$acx_pthread_config" >&6; }
  15614. else
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15616. $as_echo "no" >&6; }
  15617. fi
  15618. if test x"$acx_pthread_config" = xno; then continue; fi
  15619. PTHREAD_CFLAGS="`pthread-config --cflags`"
  15620. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  15621. ;;
  15622. *)
  15623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  15624. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  15625. PTHREAD_LIBS="-l$flag"
  15626. ;;
  15627. esac
  15628. save_LIBS="$LIBS"
  15629. save_CFLAGS="$CFLAGS"
  15630. LIBS="$PTHREAD_LIBS $LIBS"
  15631. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  15632. # Check for various functions. We must include pthread.h,
  15633. # since some functions may be macros. (On the Sequent, we
  15634. # need a special flag -Kthread to make this header compile.)
  15635. # We check for pthread_join because it is in -lpthread on IRIX
  15636. # while pthread_create is in libc. We check for pthread_attr_init
  15637. # due to DEC craziness with -lpthreads. We check for
  15638. # pthread_cleanup_push because it is one of the few pthread
  15639. # functions on Solaris that doesn't have a non-functional libc stub.
  15640. # We try pthread_create on general principles.
  15641. # XERCES: Add tests for pthread_mutexattr_init and
  15642. # pthread_mutexattr_destroy.
  15643. #
  15644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15645. /* end confdefs.h. */
  15646. #include <pthread.h>
  15647. int
  15648. main ()
  15649. {
  15650. pthread_t th; pthread_join(th, 0);
  15651. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  15652. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  15653. pthread_mutexattr_init(0); pthread_mutexattr_destroy(0);
  15654. ;
  15655. return 0;
  15656. }
  15657. _ACEOF
  15658. if ac_fn_c_try_link "$LINENO"; then :
  15659. acx_pthread_ok=yes
  15660. fi
  15661. rm -f core conftest.err conftest.$ac_objext \
  15662. conftest$ac_exeext conftest.$ac_ext
  15663. LIBS="$save_LIBS"
  15664. CFLAGS="$save_CFLAGS"
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  15666. $as_echo "$acx_pthread_ok" >&6; }
  15667. if test "x$acx_pthread_ok" = xyes; then
  15668. break;
  15669. fi
  15670. PTHREAD_LIBS=""
  15671. PTHREAD_CFLAGS=""
  15672. done
  15673. fi
  15674. # Various other checks:
  15675. if test "x$acx_pthread_ok" = xyes; then
  15676. save_LIBS="$LIBS"
  15677. LIBS="$PTHREAD_LIBS $LIBS"
  15678. save_CFLAGS="$CFLAGS"
  15679. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  15680. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  15681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  15682. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  15683. attr_name=unknown
  15684. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  15685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15686. /* end confdefs.h. */
  15687. #include <pthread.h>
  15688. int
  15689. main ()
  15690. {
  15691. int attr=$attr; return attr;
  15692. ;
  15693. return 0;
  15694. }
  15695. _ACEOF
  15696. if ac_fn_c_try_link "$LINENO"; then :
  15697. attr_name=$attr; break
  15698. fi
  15699. rm -f core conftest.err conftest.$ac_objext \
  15700. conftest$ac_exeext conftest.$ac_ext
  15701. done
  15702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  15703. $as_echo "$attr_name" >&6; }
  15704. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  15705. cat >>confdefs.h <<_ACEOF
  15706. #define PTHREAD_CREATE_JOINABLE $attr_name
  15707. _ACEOF
  15708. fi
  15709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  15710. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  15711. flag=no
  15712. case "${host_cpu}-${host_os}" in
  15713. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  15714. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  15715. esac
  15716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  15717. $as_echo "${flag}" >&6; }
  15718. if test "x$flag" != xno; then
  15719. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  15720. fi
  15721. LIBS="$save_LIBS"
  15722. CFLAGS="$save_CFLAGS"
  15723. # More AIX lossage: must compile with xlc_r or cc_r
  15724. if test x"$GCC" != xyes; then
  15725. for ac_prog in xlc_r cc_r
  15726. do
  15727. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15728. set dummy $ac_prog; ac_word=$2
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15730. $as_echo_n "checking for $ac_word... " >&6; }
  15731. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  15732. $as_echo_n "(cached) " >&6
  15733. else
  15734. if test -n "$PTHREAD_CC"; then
  15735. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  15736. else
  15737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15738. for as_dir in $PATH
  15739. do
  15740. IFS=$as_save_IFS
  15741. test -z "$as_dir" && as_dir=.
  15742. for ac_exec_ext in '' $ac_executable_extensions; do
  15743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15744. ac_cv_prog_PTHREAD_CC="$ac_prog"
  15745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15746. break 2
  15747. fi
  15748. done
  15749. done
  15750. IFS=$as_save_IFS
  15751. fi
  15752. fi
  15753. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  15754. if test -n "$PTHREAD_CC"; then
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  15756. $as_echo "$PTHREAD_CC" >&6; }
  15757. else
  15758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15759. $as_echo "no" >&6; }
  15760. fi
  15761. test -n "$PTHREAD_CC" && break
  15762. done
  15763. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  15764. else
  15765. PTHREAD_CC=$CC
  15766. fi
  15767. else
  15768. PTHREAD_CC="$CC"
  15769. fi
  15770. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  15771. if test x"$acx_pthread_ok" = xyes; then
  15772. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  15773. :
  15774. else
  15775. acx_pthread_ok=no
  15776. fi
  15777. ac_ext=cpp
  15778. ac_cpp='$CXXCPP $CPPFLAGS'
  15779. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15780. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15781. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15782. # Checks for library functions.
  15783. #AC_FUNC_ERROR_AT_LINE
  15784. #AC_FUNC_MALLOC
  15785. #AC_FUNC_MEMCMP
  15786. #AC_FUNC_STRCOLL
  15787. #AC_FUNC_STRTOD
  15788. for ac_func in getcwd pathconf realpath \
  15789. getaddrinfo gethostbyaddr gethostbyname socket \
  15790. clock_gettime ftime gettimeofday \
  15791. memmove memset nl_langinfo setlocale localeconv \
  15792. strcasecmp strncasecmp stricmp strnicmp strchr strdup \
  15793. strrchr strstr strtol strtoul \
  15794. towupper towlower mblen \
  15795. wcsupr wcslwr wcsnicmp wcsicmp \
  15796. do :
  15797. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15798. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15799. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15800. cat >>confdefs.h <<_ACEOF
  15801. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15802. _ACEOF
  15803. fi
  15804. done
  15805. # Some Unix systems, like Gnu Hurd, don't define PATH_MAX
  15806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX" >&5
  15807. $as_echo_n "checking for PATH_MAX... " >&6; }
  15808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15809. /* end confdefs.h. */
  15810. #include <limits.h>
  15811. int
  15812. main ()
  15813. {
  15814. char dummy[PATH_MAX];
  15815. ;
  15816. return 0;
  15817. }
  15818. _ACEOF
  15819. if ac_fn_cxx_try_compile "$LINENO"; then :
  15820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15821. $as_echo "yes" >&6; }
  15822. cat >>confdefs.h <<_ACEOF
  15823. #define HAVE_PATH_MAX 1
  15824. _ACEOF
  15825. else
  15826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15827. $as_echo "no" >&6; }
  15828. cat >>confdefs.h <<_ACEOF
  15829. #define HAVE_PATH_MAX 0
  15830. _ACEOF
  15831. fi
  15832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15833. # The check for mbrlen, wcsrtombs and mbsrtowcs gives a false
  15834. # positive on HP-UX, so we use a different snippet to set the
  15835. # corresponding macro
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbrlen" >&5
  15837. $as_echo_n "checking for mbrlen... " >&6; }
  15838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15839. /* end confdefs.h. */
  15840. #include <wchar.h>
  15841. int
  15842. main ()
  15843. {
  15844. mbstate_t st; mbrlen( "t", 5, &st );
  15845. ;
  15846. return 0;
  15847. }
  15848. _ACEOF
  15849. if ac_fn_cxx_try_compile "$LINENO"; then :
  15850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15851. $as_echo "yes" >&6; }
  15852. cat >>confdefs.h <<_ACEOF
  15853. #define HAVE_MBRLEN 1
  15854. _ACEOF
  15855. else
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15857. $as_echo "no" >&6; }
  15858. cat >>confdefs.h <<_ACEOF
  15859. #define HAVE_MBRLEN 0
  15860. _ACEOF
  15861. fi
  15862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcsrtombs" >&5
  15864. $as_echo_n "checking for wcsrtombs... " >&6; }
  15865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15866. /* end confdefs.h. */
  15867. #include <wchar.h>
  15868. int
  15869. main ()
  15870. {
  15871. mbstate_t st; char buffer[2]; const wchar_t* src=0; wcsrtombs(buffer, &src, 2, &st);
  15872. ;
  15873. return 0;
  15874. }
  15875. _ACEOF
  15876. if ac_fn_cxx_try_compile "$LINENO"; then :
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15878. $as_echo "yes" >&6; }
  15879. cat >>confdefs.h <<_ACEOF
  15880. #define HAVE_WCSRTOMBS 1
  15881. _ACEOF
  15882. else
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15884. $as_echo "no" >&6; }
  15885. cat >>confdefs.h <<_ACEOF
  15886. #define HAVE_WCSRTOMBS 0
  15887. _ACEOF
  15888. fi
  15889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbsrtowcs" >&5
  15891. $as_echo_n "checking for mbsrtowcs... " >&6; }
  15892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15893. /* end confdefs.h. */
  15894. #include <wchar.h>
  15895. int
  15896. main ()
  15897. {
  15898. mbstate_t st; wchar_t buffer[2]; const char* src=0; mbsrtowcs(buffer, &src, 2, &st);
  15899. ;
  15900. return 0;
  15901. }
  15902. _ACEOF
  15903. if ac_fn_cxx_try_compile "$LINENO"; then :
  15904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15905. $as_echo "yes" >&6; }
  15906. cat >>confdefs.h <<_ACEOF
  15907. #define HAVE_MBSRTOWCS 1
  15908. _ACEOF
  15909. else
  15910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15911. $as_echo "no" >&6; }
  15912. cat >>confdefs.h <<_ACEOF
  15913. #define HAVE_MBSRTOWCS 0
  15914. _ACEOF
  15915. fi
  15916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv uses const pointers" >&5
  15918. $as_echo_n "checking if iconv uses const pointers... " >&6; }
  15919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15920. /* end confdefs.h. */
  15921. #include <iconv.h>
  15922. int
  15923. main ()
  15924. {
  15925. const char *fromPtr=0;
  15926. size_t fromLen=0;
  15927. char *toPtr=0;
  15928. size_t toLen=0;
  15929. iconv_t cv=0;
  15930. iconv(cv, &fromPtr, &fromLen, &toPtr, &toLen);
  15931. ;
  15932. return 0;
  15933. }
  15934. _ACEOF
  15935. if ac_fn_cxx_try_compile "$LINENO"; then :
  15936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15937. $as_echo "yes" >&6; }
  15938. cat >>confdefs.h <<_ACEOF
  15939. #define ICONV_USES_CONST_POINTER 1
  15940. _ACEOF
  15941. else
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15943. $as_echo "no" >&6; }
  15944. cat >>confdefs.h <<_ACEOF
  15945. #define ICONV_USES_CONST_POINTER 0
  15946. _ACEOF
  15947. fi
  15948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15949. SHREXT=$shrext_cmds
  15950. #
  15951. # Orchestrate the replacement of missing functions
  15952. #
  15953. ac_fn_cxx_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
  15954. if test "x$ac_cv_func_stricmp" = xyes; then :
  15955. $as_echo "#define HAVE_STRICMP 1" >>confdefs.h
  15956. else
  15957. case " $LIBOBJS " in
  15958. *" stricmp.$ac_objext "* ) ;;
  15959. *) LIBOBJS="$LIBOBJS stricmp.$ac_objext"
  15960. ;;
  15961. esac
  15962. fi
  15963. ac_fn_cxx_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
  15964. if test "x$ac_cv_func_strnicmp" = xyes; then :
  15965. $as_echo "#define HAVE_STRNICMP 1" >>confdefs.h
  15966. else
  15967. case " $LIBOBJS " in
  15968. *" strnicmp.$ac_objext "* ) ;;
  15969. *) LIBOBJS="$LIBOBJS strnicmp.$ac_objext"
  15970. ;;
  15971. esac
  15972. fi
  15973. ac_fn_cxx_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
  15974. if test "x$ac_cv_func_towlower" = xyes; then :
  15975. $as_echo "#define HAVE_TOWLOWER 1" >>confdefs.h
  15976. else
  15977. case " $LIBOBJS " in
  15978. *" towlower.$ac_objext "* ) ;;
  15979. *) LIBOBJS="$LIBOBJS towlower.$ac_objext"
  15980. ;;
  15981. esac
  15982. fi
  15983. ac_fn_cxx_check_func "$LINENO" "towupper" "ac_cv_func_towupper"
  15984. if test "x$ac_cv_func_towupper" = xyes; then :
  15985. $as_echo "#define HAVE_TOWUPPER 1" >>confdefs.h
  15986. else
  15987. case " $LIBOBJS " in
  15988. *" towupper.$ac_objext "* ) ;;
  15989. *) LIBOBJS="$LIBOBJS towupper.$ac_objext"
  15990. ;;
  15991. esac
  15992. fi
  15993. abs_top_srcdir=`cd $srcdir; pwd`
  15994. abs_top_builddir=`pwd`
  15995. ######################################################
  15996. # Look for availability of available packages
  15997. ######################################################
  15998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we'll generate prettier make output" >&5
  15999. $as_echo_n "checking whether we'll generate prettier make output... " >&6; }
  16000. # Check whether --enable-pretty-make was given.
  16001. if test "${enable_pretty_make+set}" = set; then :
  16002. enableval=$enable_pretty_make; if test x"$enableval" = xyes; then :
  16003. xerces_pretty_make=yes
  16004. else
  16005. xerces_pretty_make=no
  16006. fi
  16007. else
  16008. xerces_pretty_make=yes
  16009. fi
  16010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xerces_pretty_make" >&5
  16011. $as_echo "$xerces_pretty_make" >&6; }
  16012. # Define the auto-make conditionals which determine what actually gets compiled
  16013. # Note that these macros can't be executed conditionally, which is why they're here, not above.
  16014. if test x"$xerces_pretty_make" = xyes; then
  16015. XERCES_PRETTY_MAKE_TRUE=
  16016. XERCES_PRETTY_MAKE_FALSE='#'
  16017. else
  16018. XERCES_PRETTY_MAKE_TRUE='#'
  16019. XERCES_PRETTY_MAKE_FALSE=
  16020. fi
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which path delimiter characters to accept" >&5
  16022. $as_echo_n "checking for which path delimiter characters to accept... " >&6; }
  16023. path_delims=/
  16024. case $host_os in
  16025. msdos* | windows* | mingw*)
  16026. $as_echo "#define XERCES_PATH_DELIMITER_BACKSLASH 1" >>confdefs.h
  16027. path_delims="${path_delims}\\"
  16028. ;;
  16029. esac
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $path_delims" >&5
  16031. $as_echo "$path_delims" >&6; }
  16032. # Check whether --enable-threads was given.
  16033. if test "${enable_threads+set}" = set; then :
  16034. enableval=$enable_threads; if test x"$enableval" = xno; then :
  16035. xerces_cv_no_threads=yes
  16036. fi
  16037. else
  16038. xerces_cv_no_threads=no
  16039. fi
  16040. if test x$xerces_cv_no_threads = xyes; then :
  16041. $as_echo "#define APP_NO_THREADS 1" >>confdefs.h
  16042. fi
  16043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which Mutex Manager to use" >&5
  16044. $as_echo_n "checking for which Mutex Manager to use... " >&6; }
  16045. mutexmgr=
  16046. # If no threads is specified, use the NoThread Mutex Mgr
  16047. if test x$xerces_cv_no_threads = xyes; then :
  16048. mutexmgr=NoThreads
  16049. $as_echo "#define XERCES_USE_MUTEXMGR_NOTHREAD 1" >>confdefs.h
  16050. fi
  16051. # Platform specific checks
  16052. if test -z "$mutexmgr"; then :
  16053. case $host_os in
  16054. windows* | cygwin* | mingw*)
  16055. mutexmgr=Windows;
  16056. $as_echo "#define XERCES_USE_MUTEXMGR_WINDOWS 1" >>confdefs.h
  16057. case $host_os in
  16058. mingw*)
  16059. CXXFLAGS="${CXXFLAGS} -mthreads"
  16060. ;;
  16061. esac
  16062. ;;
  16063. esac
  16064. fi
  16065. # Fall back to using posix mutex id we can
  16066. if test -z "$mutexmgr" && test x$acx_pthread_ok = xyes; then :
  16067. mutexmgr=POSIX;
  16068. $as_echo "#define XERCES_USE_MUTEXMGR_POSIX 1" >>confdefs.h
  16069. # Set additional flags for link and compile
  16070. LIBS="${LIBS} ${PTHREAD_LIBS}"
  16071. CXXFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS}"
  16072. fi
  16073. # If we still didn't find a mutex package, bail
  16074. if test -z "$mutexmgr"; then :
  16075. as_fn_error $? "Xerces cannot function without mutex support. You may want to --disable-threads." "$LINENO" 5
  16076. fi
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutexmgr" >&5
  16078. $as_echo "$mutexmgr" >&6; }
  16079. # Define the auto-make conditionals which determine what actually gets compiled
  16080. # Note that these macros can't be executed conditionally, which is why they're here, not above.
  16081. if test x"$mutexmgr" = xNoThreads; then
  16082. XERCES_USE_MUTEXMGR_NOTHREAD_TRUE=
  16083. XERCES_USE_MUTEXMGR_NOTHREAD_FALSE='#'
  16084. else
  16085. XERCES_USE_MUTEXMGR_NOTHREAD_TRUE='#'
  16086. XERCES_USE_MUTEXMGR_NOTHREAD_FALSE=
  16087. fi
  16088. if test x"$mutexmgr" = xPOSIX; then
  16089. XERCES_USE_MUTEXMGR_POSIX_TRUE=
  16090. XERCES_USE_MUTEXMGR_POSIX_FALSE='#'
  16091. else
  16092. XERCES_USE_MUTEXMGR_POSIX_TRUE='#'
  16093. XERCES_USE_MUTEXMGR_POSIX_FALSE=
  16094. fi
  16095. if test x"$mutexmgr" = xWindows; then
  16096. XERCES_USE_MUTEXMGR_WINDOWS_TRUE=
  16097. XERCES_USE_MUTEXMGR_WINDOWS_FALSE='#'
  16098. else
  16099. XERCES_USE_MUTEXMGR_WINDOWS_TRUE='#'
  16100. XERCES_USE_MUTEXMGR_WINDOWS_FALSE=
  16101. fi
  16102. # Check whether --with-curl was given.
  16103. if test "${with_curl+set}" = set; then :
  16104. withval=$with_curl;
  16105. if test x"$with_curl" = x"yes"; then
  16106. with_curl=
  16107. fi
  16108. else
  16109. with_curl=
  16110. fi
  16111. # Determine if curl is available
  16112. if ${xerces_cv_curl_present+:} false; then :
  16113. $as_echo_n "(cached) " >&6
  16114. else
  16115. xerces_cv_curl_present=no
  16116. if test x"$with_curl" != x"no"; then
  16117. # See if we were given a prefix.
  16118. #
  16119. if test -n "$with_curl"; then
  16120. # Extract the first word of "curl-config", so it can be a program name with args.
  16121. set dummy curl-config; ac_word=$2
  16122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16123. $as_echo_n "checking for $ac_word... " >&6; }
  16124. if ${ac_cv_path_curl_config+:} false; then :
  16125. $as_echo_n "(cached) " >&6
  16126. else
  16127. case $curl_config in
  16128. [\\/]* | ?:[\\/]*)
  16129. ac_cv_path_curl_config="$curl_config" # Let the user override the test with a path.
  16130. ;;
  16131. *)
  16132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16133. for as_dir in $with_curl/bin
  16134. do
  16135. IFS=$as_save_IFS
  16136. test -z "$as_dir" && as_dir=.
  16137. for ac_exec_ext in '' $ac_executable_extensions; do
  16138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16139. ac_cv_path_curl_config="$as_dir/$ac_word$ac_exec_ext"
  16140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16141. break 2
  16142. fi
  16143. done
  16144. done
  16145. IFS=$as_save_IFS
  16146. ;;
  16147. esac
  16148. fi
  16149. curl_config=$ac_cv_path_curl_config
  16150. if test -n "$curl_config"; then
  16151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_config" >&5
  16152. $as_echo "$curl_config" >&6; }
  16153. else
  16154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16155. $as_echo "no" >&6; }
  16156. fi
  16157. else
  16158. # Extract the first word of "curl-config", so it can be a program name with args.
  16159. set dummy curl-config; ac_word=$2
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16161. $as_echo_n "checking for $ac_word... " >&6; }
  16162. if ${ac_cv_path_curl_config+:} false; then :
  16163. $as_echo_n "(cached) " >&6
  16164. else
  16165. case $curl_config in
  16166. [\\/]* | ?:[\\/]*)
  16167. ac_cv_path_curl_config="$curl_config" # Let the user override the test with a path.
  16168. ;;
  16169. *)
  16170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16171. for as_dir in $PATH
  16172. do
  16173. IFS=$as_save_IFS
  16174. test -z "$as_dir" && as_dir=.
  16175. for ac_exec_ext in '' $ac_executable_extensions; do
  16176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16177. ac_cv_path_curl_config="$as_dir/$ac_word$ac_exec_ext"
  16178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16179. break 2
  16180. fi
  16181. done
  16182. done
  16183. IFS=$as_save_IFS
  16184. ;;
  16185. esac
  16186. fi
  16187. curl_config=$ac_cv_path_curl_config
  16188. if test -n "$curl_config"; then
  16189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_config" >&5
  16190. $as_echo "$curl_config" >&6; }
  16191. else
  16192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16193. $as_echo "no" >&6; }
  16194. fi
  16195. fi
  16196. if test -n "$curl_config"; then
  16197. curl_flags=`$curl_config --cflags`
  16198. curl_libs=`$curl_config --libs`
  16199. else
  16200. if test -n "$with_curl"; then
  16201. curl_flags="-I$with_curl/include"
  16202. curl_libs="-L$with_curl/lib -lcurl"
  16203. else
  16204. # Default compiler paths.
  16205. #
  16206. curl_flags=
  16207. curl_libs=-lcurl
  16208. fi
  16209. fi
  16210. # Check that the headers exist and can be compiled.
  16211. #
  16212. orig_cppflags=$CPPFLAGS
  16213. if test -n "$curl_flags"; then
  16214. CPPFLAGS="$curl_flags $CPPFLAGS"
  16215. fi
  16216. ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
  16217. if test "x$ac_cv_header_curl_curl_h" = xyes; then :
  16218. xerces_cv_curl_present=yes
  16219. fi
  16220. CPPFLAGS=$orig_cppflags
  16221. if test x"$xerces_cv_curl_present" != x"no"; then
  16222. # Check that the library can be linked.
  16223. #
  16224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_multi_init in -lcurl" >&5
  16225. $as_echo_n "checking for curl_multi_init in -lcurl... " >&6; }
  16226. orig_libs=$LIBS
  16227. LIBS="$curl_libs $LIBS"
  16228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16229. /* end confdefs.h. */
  16230. #include <curl/curl.h>
  16231. #include <curl/multi.h>
  16232. #include <curl/easy.h>
  16233. int main ()
  16234. {
  16235. curl_multi_init();
  16236. return 0;
  16237. }
  16238. _ACEOF
  16239. if ac_fn_cxx_try_link "$LINENO"; then :
  16240. else
  16241. xerces_cv_curl_present=no
  16242. fi
  16243. rm -f core conftest.err conftest.$ac_objext \
  16244. conftest$ac_exeext conftest.$ac_ext
  16245. LIBS=$orig_libs
  16246. if test x"$xerces_cv_curl_present" != x"no"; then
  16247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16248. $as_echo "yes" >&6; }
  16249. else
  16250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16251. $as_echo "no" >&6; }
  16252. fi
  16253. fi
  16254. fi
  16255. fi
  16256. if ${xerces_cv_curl_flags+:} false; then :
  16257. $as_echo_n "(cached) " >&6
  16258. else
  16259. xerces_cv_curl_flags=$curl_flags
  16260. fi
  16261. if ${xerces_cv_curl_libs+:} false; then :
  16262. $as_echo_n "(cached) " >&6
  16263. else
  16264. xerces_cv_curl_libs=$curl_libs
  16265. fi
  16266. CURL_PRESENT=$xerces_cv_curl_present
  16267. CURL_FLAGS=$xerces_cv_curl_flags
  16268. CURL_LIBS=$xerces_cv_curl_libs
  16269. network=yes
  16270. # Check whether --enable-network was given.
  16271. if test "${enable_network+set}" = set; then :
  16272. enableval=$enable_network; if test x"$enableval" = xno; then :
  16273. network=no
  16274. fi
  16275. fi
  16276. # If network is disabled we don't need to check any of the
  16277. # netaccessors.
  16278. #
  16279. na_list=
  16280. if test x"$network" = xyes; then
  16281. # Checks for libraries.
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  16283. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16284. if ${ac_cv_lib_socket_socket+:} false; then :
  16285. $as_echo_n "(cached) " >&6
  16286. else
  16287. ac_check_lib_save_LIBS=$LIBS
  16288. LIBS="-lsocket $LIBS"
  16289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16290. /* end confdefs.h. */
  16291. /* Override any GCC internal prototype to avoid an error.
  16292. Use char because int might match the return type of a GCC
  16293. builtin and then its argument prototype would still apply. */
  16294. #ifdef __cplusplus
  16295. extern "C"
  16296. #endif
  16297. char socket ();
  16298. int
  16299. main ()
  16300. {
  16301. return socket ();
  16302. ;
  16303. return 0;
  16304. }
  16305. _ACEOF
  16306. if ac_fn_cxx_try_link "$LINENO"; then :
  16307. ac_cv_lib_socket_socket=yes
  16308. else
  16309. ac_cv_lib_socket_socket=no
  16310. fi
  16311. rm -f core conftest.err conftest.$ac_objext \
  16312. conftest$ac_exeext conftest.$ac_ext
  16313. LIBS=$ac_check_lib_save_LIBS
  16314. fi
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  16316. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16317. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  16318. cat >>confdefs.h <<_ACEOF
  16319. #define HAVE_LIBSOCKET 1
  16320. _ACEOF
  16321. LIBS="-lsocket $LIBS"
  16322. fi
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16324. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16325. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16326. $as_echo_n "(cached) " >&6
  16327. else
  16328. ac_check_lib_save_LIBS=$LIBS
  16329. LIBS="-lnsl $LIBS"
  16330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16331. /* end confdefs.h. */
  16332. /* Override any GCC internal prototype to avoid an error.
  16333. Use char because int might match the return type of a GCC
  16334. builtin and then its argument prototype would still apply. */
  16335. #ifdef __cplusplus
  16336. extern "C"
  16337. #endif
  16338. char gethostbyname ();
  16339. int
  16340. main ()
  16341. {
  16342. return gethostbyname ();
  16343. ;
  16344. return 0;
  16345. }
  16346. _ACEOF
  16347. if ac_fn_cxx_try_link "$LINENO"; then :
  16348. ac_cv_lib_nsl_gethostbyname=yes
  16349. else
  16350. ac_cv_lib_nsl_gethostbyname=no
  16351. fi
  16352. rm -f core conftest.err conftest.$ac_objext \
  16353. conftest$ac_exeext conftest.$ac_ext
  16354. LIBS=$ac_check_lib_save_LIBS
  16355. fi
  16356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16357. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16358. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16359. cat >>confdefs.h <<_ACEOF
  16360. #define HAVE_LIBNSL 1
  16361. _ACEOF
  16362. LIBS="-lnsl $LIBS"
  16363. fi
  16364. ######################################################
  16365. # Test for availability of each netaccessor on this host.
  16366. # For each netaccessor that's available, and hasn't been disabled, add it to our list.
  16367. # If the netaccessor has been explicitly "enable"d, then vote for it strongly,
  16368. # in upper case.
  16369. ######################################################
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the libcurl-based NetAccessor" >&5
  16371. $as_echo_n "checking whether we can support the libcurl-based NetAccessor... " >&6; }
  16372. list_add=
  16373. if test x"$xerces_cv_curl_present" != x"no"; then :
  16374. # Check whether --enable-netaccessor-curl was given.
  16375. if test "${enable_netaccessor_curl+set}" = set; then :
  16376. enableval=$enable_netaccessor_curl; if test x"$enableval" = xyes; then :
  16377. list_add=CURL
  16378. fi
  16379. else
  16380. list_add=curl
  16381. fi
  16382. fi
  16383. if test x"$list_add" != x; then :
  16384. na_list="$na_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16385. $as_echo "yes" >&6; }
  16386. else
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16388. $as_echo "no" >&6; }
  16389. fi
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the sockets-based NetAccessor" >&5
  16391. $as_echo_n "checking whether we can support the sockets-based NetAccessor... " >&6; }
  16392. list_add=
  16393. if test x"$ac_cv_header_sys_socket_h" = xyes; then :
  16394. # Check whether --enable-netaccessor-socket was given.
  16395. if test "${enable_netaccessor_socket+set}" = set; then :
  16396. enableval=$enable_netaccessor_socket; if test x"$enableval" = xyes; then :
  16397. list_add=SOCKET
  16398. fi
  16399. else
  16400. list_add=socket
  16401. fi
  16402. fi
  16403. if test x"$list_add" != x; then :
  16404. na_list="$na_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16405. $as_echo "yes" >&6; }
  16406. else
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16408. $as_echo "no" >&6; }
  16409. fi
  16410. # Check for OS-specific netaccessors
  16411. case $host_os in
  16412. darwin*)
  16413. list_add=
  16414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the CFURL NetAccessor (Mac OS X)" >&5
  16415. $as_echo_n "checking whether we can support the CFURL NetAccessor (Mac OS X)... " >&6; }
  16416. if test x"$ac_cv_header_CoreServices_CoreServices_h" = xyes; then :
  16417. # Check whether --enable-netaccessor-cfurl was given.
  16418. if test "${enable_netaccessor_cfurl+set}" = set; then :
  16419. enableval=$enable_netaccessor_cfurl; if test x"$enableval" = xyes; then :
  16420. list_add=CFURL
  16421. fi
  16422. else
  16423. list_add=cfurl
  16424. fi
  16425. fi
  16426. if test x"$list_add" != x; then :
  16427. na_list="$na_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16428. $as_echo "yes" >&6; }
  16429. else
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16431. $as_echo "no" >&6; }
  16432. fi
  16433. ;;
  16434. windows* | mingw*)
  16435. list_add=
  16436. no_winsock=false
  16437. for ac_header in winsock2.h
  16438. do :
  16439. ac_fn_cxx_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  16440. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  16441. cat >>confdefs.h <<_ACEOF
  16442. #define HAVE_WINSOCK2_H 1
  16443. _ACEOF
  16444. else
  16445. no_winsock=true
  16446. fi
  16447. done
  16448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the WinSock NetAccessor (Windows)" >&5
  16449. $as_echo_n "checking whether we can support the WinSock NetAccessor (Windows)... " >&6; }
  16450. if ! $no_winsock; then :
  16451. # Check whether --enable-netaccessor-winsock was given.
  16452. if test "${enable_netaccessor_winsock+set}" = set; then :
  16453. enableval=$enable_netaccessor_winsock; if test x"$enableval" = xyes; then :
  16454. list_add=WINSOCK
  16455. fi
  16456. else
  16457. list_add=winsock
  16458. fi
  16459. fi
  16460. if test x"$list_add" != x; then :
  16461. na_list="$na_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16462. $as_echo "yes" >&6; }
  16463. else
  16464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16465. $as_echo "no" >&6; }
  16466. fi
  16467. ;;
  16468. cygwin*)
  16469. # Only add it to the list if the user explicitly asked
  16470. # for it.
  16471. #
  16472. list_add=
  16473. no_winsock=false
  16474. for ac_header in winsock2.h
  16475. do :
  16476. ac_fn_cxx_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  16477. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  16478. cat >>confdefs.h <<_ACEOF
  16479. #define HAVE_WINSOCK2_H 1
  16480. _ACEOF
  16481. else
  16482. no_winsock=true
  16483. fi
  16484. done
  16485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the WinSock NetAccessor (Windows)" >&5
  16486. $as_echo_n "checking whether to use the WinSock NetAccessor (Windows)... " >&6; }
  16487. if ! $no_winsock; then :
  16488. # Check whether --enable-netaccessor-winsock was given.
  16489. if test "${enable_netaccessor_winsock+set}" = set; then :
  16490. enableval=$enable_netaccessor_winsock; if test x"$enableval" = xyes; then :
  16491. list_add=WINSOCK
  16492. fi
  16493. fi
  16494. fi
  16495. if test x"$list_add" != x; then :
  16496. na_list="$na_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16497. $as_echo "yes" >&6; }
  16498. else
  16499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16500. $as_echo "no" >&6; }
  16501. fi
  16502. ;;
  16503. esac
  16504. ######################################################
  16505. # Determine which netaccessor to use.
  16506. #
  16507. # We do this in two passes. Accessors that have been enabled with "yes",
  16508. # and which start out in upper case, get the top priority on the first pass.
  16509. # On the second pass, we consider those which are simply available, but
  16510. # which were not "disable"d (these won't even be in our list).
  16511. ######################################################
  16512. netaccessor=
  16513. az_lower=abcdefghijklmnopqrstuvwxyz
  16514. az_upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which NetAccessor to use (choices:$na_list)" >&5
  16516. $as_echo_n "checking for which NetAccessor to use (choices:$na_list)... " >&6; }
  16517. for i in 1 2; do
  16518. # Swap upper/lower case in the na_list. Cannot use tr ranges
  16519. # because of the portability issues.
  16520. #
  16521. na_list=`echo $na_list | tr "$az_lower$az_upper" "$az_upper$az_lower"`
  16522. # Check for each netaccessor, in implicit rank order
  16523. case $na_list in
  16524. *-curl-*)
  16525. netaccessor=curl
  16526. $as_echo "#define XERCES_USE_NETACCESSOR_CURL 1" >>confdefs.h
  16527. LIBS="${LIBS} ${xerces_cv_curl_libs}"
  16528. break
  16529. ;;
  16530. *-winsock-*)
  16531. netaccessor=winsock
  16532. $as_echo "#define XERCES_USE_NETACCESSOR_WINSOCK 1" >>confdefs.h
  16533. break
  16534. ;;
  16535. *-socket-*)
  16536. netaccessor=socket
  16537. $as_echo "#define XERCES_USE_NETACCESSOR_SOCKET 1" >>confdefs.h
  16538. break
  16539. ;;
  16540. *-cfurl-*)
  16541. netaccessor=cfurl
  16542. $as_echo "#define XERCES_USE_NETACCESSOR_CFURL 1" >>confdefs.h
  16543. case $host_os in
  16544. darwin*)
  16545. test -z "${xerces_darwin_frameworks}" && xerces_darwin_frameworks="-"
  16546. case ${xerces_darwin_frameworks} in
  16547. *-CoreServices-*)
  16548. ;;
  16549. *)
  16550. xerces_darwin_frameworks="-CoreServices${xerces_darwin_frameworks}"
  16551. LIBS="-Wl,-framework -Wl,CoreServices $LIBS"
  16552. ;;
  16553. esac
  16554. ;;
  16555. esac
  16556. break
  16557. ;;
  16558. *)
  16559. if test $i -eq 2; then :
  16560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available; there will be no network access!!!" >&5
  16561. $as_echo "none available; there will be no network access!!!" >&6; }
  16562. fi
  16563. ;;
  16564. esac
  16565. done
  16566. if test x"$netaccessor" != x; then
  16567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $netaccessor" >&5
  16568. $as_echo "$netaccessor" >&6; }
  16569. fi
  16570. else # network
  16571. netaccessor=disabled # for the report
  16572. fi
  16573. # Define the auto-make conditionals which determine what actually gets compiled
  16574. # Note that these macros can't be executed conditionally, which is why they're here, not above.
  16575. if test x"$netaccessor" = xcurl; then
  16576. XERCES_USE_NETACCESSOR_CURL_TRUE=
  16577. XERCES_USE_NETACCESSOR_CURL_FALSE='#'
  16578. else
  16579. XERCES_USE_NETACCESSOR_CURL_TRUE='#'
  16580. XERCES_USE_NETACCESSOR_CURL_FALSE=
  16581. fi
  16582. if test x"$netaccessor" = xcfurl; then
  16583. XERCES_USE_NETACCESSOR_CFURL_TRUE=
  16584. XERCES_USE_NETACCESSOR_CFURL_FALSE='#'
  16585. else
  16586. XERCES_USE_NETACCESSOR_CFURL_TRUE='#'
  16587. XERCES_USE_NETACCESSOR_CFURL_FALSE=
  16588. fi
  16589. if test x"$netaccessor" = xwinsock; then
  16590. XERCES_USE_NETACCESSOR_WINSOCK_TRUE=
  16591. XERCES_USE_NETACCESSOR_WINSOCK_FALSE='#'
  16592. else
  16593. XERCES_USE_NETACCESSOR_WINSOCK_TRUE='#'
  16594. XERCES_USE_NETACCESSOR_WINSOCK_FALSE=
  16595. fi
  16596. if test x"$netaccessor" = xsocket; then
  16597. XERCES_USE_NETACCESSOR_SOCKET_TRUE=
  16598. XERCES_USE_NETACCESSOR_SOCKET_FALSE='#'
  16599. else
  16600. XERCES_USE_NETACCESSOR_SOCKET_TRUE='#'
  16601. XERCES_USE_NETACCESSOR_SOCKET_FALSE=
  16602. fi
  16603. # Check whether --with-icu was given.
  16604. if test "${with_icu+set}" = set; then :
  16605. withval=$with_icu;
  16606. if test x"$with_icu" = x"yes"; then
  16607. with_icu=
  16608. fi
  16609. else
  16610. with_icu=
  16611. fi
  16612. # Determine if icu is available
  16613. if ${xerces_cv_icu_present+:} false; then :
  16614. $as_echo_n "(cached) " >&6
  16615. else
  16616. xerces_cv_icu_present=no
  16617. if test x"$with_icu" != x"no"; then
  16618. # See if we were given a prefix.
  16619. #
  16620. if test -n "$with_icu"; then
  16621. # Extract the first word of "icu-config", so it can be a program name with args.
  16622. set dummy icu-config; ac_word=$2
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16624. $as_echo_n "checking for $ac_word... " >&6; }
  16625. if ${ac_cv_path_icu_config+:} false; then :
  16626. $as_echo_n "(cached) " >&6
  16627. else
  16628. case $icu_config in
  16629. [\\/]* | ?:[\\/]*)
  16630. ac_cv_path_icu_config="$icu_config" # Let the user override the test with a path.
  16631. ;;
  16632. *)
  16633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16634. for as_dir in $with_icu/bin
  16635. do
  16636. IFS=$as_save_IFS
  16637. test -z "$as_dir" && as_dir=.
  16638. for ac_exec_ext in '' $ac_executable_extensions; do
  16639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16640. ac_cv_path_icu_config="$as_dir/$ac_word$ac_exec_ext"
  16641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16642. break 2
  16643. fi
  16644. done
  16645. done
  16646. IFS=$as_save_IFS
  16647. ;;
  16648. esac
  16649. fi
  16650. icu_config=$ac_cv_path_icu_config
  16651. if test -n "$icu_config"; then
  16652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_config" >&5
  16653. $as_echo "$icu_config" >&6; }
  16654. else
  16655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16656. $as_echo "no" >&6; }
  16657. fi
  16658. else
  16659. # Extract the first word of "icu-config", so it can be a program name with args.
  16660. set dummy icu-config; ac_word=$2
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16662. $as_echo_n "checking for $ac_word... " >&6; }
  16663. if ${ac_cv_path_icu_config+:} false; then :
  16664. $as_echo_n "(cached) " >&6
  16665. else
  16666. case $icu_config in
  16667. [\\/]* | ?:[\\/]*)
  16668. ac_cv_path_icu_config="$icu_config" # Let the user override the test with a path.
  16669. ;;
  16670. *)
  16671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16672. for as_dir in $PATH
  16673. do
  16674. IFS=$as_save_IFS
  16675. test -z "$as_dir" && as_dir=.
  16676. for ac_exec_ext in '' $ac_executable_extensions; do
  16677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16678. ac_cv_path_icu_config="$as_dir/$ac_word$ac_exec_ext"
  16679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16680. break 2
  16681. fi
  16682. done
  16683. done
  16684. IFS=$as_save_IFS
  16685. ;;
  16686. esac
  16687. fi
  16688. icu_config=$ac_cv_path_icu_config
  16689. if test -n "$icu_config"; then
  16690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_config" >&5
  16691. $as_echo "$icu_config" >&6; }
  16692. else
  16693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16694. $as_echo "no" >&6; }
  16695. fi
  16696. fi
  16697. # Add trailing slash to bin and sbin vars so that we
  16698. # can use them uniformly whether they are empty or not.
  16699. #
  16700. if test -n "$icu_config"; then
  16701. icu_flags=`$icu_config --cppflags-searchpath`
  16702. icu_libs=`$icu_config --ldflags`
  16703. icu_bin=`$icu_config --bindir`
  16704. icu_sbin=`$icu_config --sbindir`
  16705. if test -n "$icu_bin"; then
  16706. icu_bin="$icu_bin/"
  16707. fi
  16708. if test -n "$icu_sbin"; then
  16709. icu_sbin="$icu_sbin/"
  16710. fi
  16711. else
  16712. if test -n "$with_icu"; then
  16713. icu_flags="-I$with_icu/include"
  16714. icu_libs="-L$with_icu/lib -licuuc -licudata"
  16715. icu_bin="$with_icu/bin/"
  16716. icu_sbin="$with_icu/sbin/"
  16717. else
  16718. # Default compiler paths.
  16719. #
  16720. icu_flags=
  16721. icu_libs="-licuuc -licudata"
  16722. icu_bin=
  16723. icu_sbin=
  16724. fi
  16725. fi
  16726. # Check that the headers exist and can be compiled.
  16727. #
  16728. orig_cppflags=$CPPFLAGS
  16729. if test -n "$icu_flags"; then
  16730. CPPFLAGS="$icu_flags $CPPFLAGS"
  16731. fi
  16732. ac_fn_cxx_check_header_mongrel "$LINENO" "unicode/ucnv.h" "ac_cv_header_unicode_ucnv_h" "$ac_includes_default"
  16733. if test "x$ac_cv_header_unicode_ucnv_h" = xyes; then :
  16734. xerces_cv_icu_present=yes
  16735. fi
  16736. if test x"$xerces_cv_icu_present" != x"no"; then
  16737. # Check that the library can be linked.
  16738. #
  16739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucnv_open in -licuuc" >&5
  16740. $as_echo_n "checking for ucnv_open in -licuuc... " >&6; }
  16741. orig_libs=$LIBS
  16742. LIBS="$icu_libs $LIBS"
  16743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16744. /* end confdefs.h. */
  16745. #include <unicode/ucnv.h>
  16746. int main ()
  16747. {
  16748. ucnv_open (0, 0);
  16749. return 0;
  16750. }
  16751. _ACEOF
  16752. if ac_fn_cxx_try_link "$LINENO"; then :
  16753. else
  16754. xerces_cv_icu_present=no
  16755. fi
  16756. rm -f core conftest.err conftest.$ac_objext \
  16757. conftest$ac_exeext conftest.$ac_ext
  16758. LIBS=$orig_libs
  16759. if test x"$xerces_cv_icu_present" != x"no"; then
  16760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16761. $as_echo "yes" >&6; }
  16762. else
  16763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16764. $as_echo "no" >&6; }
  16765. fi
  16766. fi
  16767. CPPFLAGS=$orig_cppflags
  16768. fi
  16769. fi
  16770. if ${xerces_cv_icu_flags+:} false; then :
  16771. $as_echo_n "(cached) " >&6
  16772. else
  16773. xerces_cv_icu_flags=$icu_flags
  16774. fi
  16775. if ${xerces_cv_icu_libs+:} false; then :
  16776. $as_echo_n "(cached) " >&6
  16777. else
  16778. xerces_cv_icu_libs=$icu_libs
  16779. fi
  16780. if ${xerces_cv_icu_bin+:} false; then :
  16781. $as_echo_n "(cached) " >&6
  16782. else
  16783. xerces_cv_icu_bin=$icu_bin
  16784. fi
  16785. if ${xerces_cv_icu_sbin+:} false; then :
  16786. $as_echo_n "(cached) " >&6
  16787. else
  16788. xerces_cv_icu_sbin=$icu_sbin
  16789. fi
  16790. ICU_PRESENT=$xerces_cv_icu_present
  16791. ICU_FLAGS=$xerces_cv_icu_flags
  16792. ICU_LIBS=$xerces_cv_icu_libs
  16793. ICU_BIN=$xerces_cv_icu_bin
  16794. ICU_SBIN=$xerces_cv_icu_sbin
  16795. ######################################################
  16796. # Test for availability of each transcoder on this host.
  16797. # For each transcoder that's available, and hasn't been disabled, add it to our list.
  16798. # If the transcoder has been explicitly "enable"d, then vote for it strongly,
  16799. # in upper case.
  16800. ######################################################
  16801. tc_list=
  16802. # Check for GNU iconv support
  16803. no_GNUiconv=false
  16804. for ac_header in iconv.h wchar.h string.h stdlib.h stdio.h ctype.h locale.h errno.h
  16805. do :
  16806. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16807. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16808. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16809. cat >>confdefs.h <<_ACEOF
  16810. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16811. _ACEOF
  16812. else
  16813. no_GNUiconv=true
  16814. fi
  16815. done
  16816. # The code in iconv needs just on of these include files
  16817. ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
  16818. if test "x$ac_cv_header_endian_h" = xyes; then :
  16819. else
  16820. ac_fn_cxx_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
  16821. if test "x$ac_cv_header_machine_endian_h" = xyes; then :
  16822. else
  16823. ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "$ac_includes_default"
  16824. if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes; then :
  16825. else
  16826. no_GNUiconv=true
  16827. fi
  16828. fi
  16829. fi
  16830. for ac_func in iconv_open iconv_close iconv
  16831. do :
  16832. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16833. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16834. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16835. cat >>confdefs.h <<_ACEOF
  16836. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16837. _ACEOF
  16838. else
  16839. no_GNUiconv=true
  16840. fi
  16841. done
  16842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the GNU iconv Transcoder" >&5
  16843. $as_echo_n "checking whether we can support the GNU iconv Transcoder... " >&6; }
  16844. list_add=
  16845. if ! $no_GNUiconv; then :
  16846. # Check whether --enable-transcoder-gnuiconv was given.
  16847. if test "${enable_transcoder_gnuiconv+set}" = set; then :
  16848. enableval=$enable_transcoder_gnuiconv; if test x"$enableval" = xyes; then :
  16849. list_add=GNUICONV
  16850. fi
  16851. else
  16852. list_add=gnuiconv
  16853. fi
  16854. fi
  16855. if test x"$list_add" != x; then :
  16856. tc_list="$tc_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16857. $as_echo "yes" >&6; }
  16858. else
  16859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16860. $as_echo "no" >&6; }
  16861. fi
  16862. # Check for iconv support
  16863. no_iconv=false
  16864. for ac_header in wchar.h
  16865. do :
  16866. ac_fn_cxx_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16867. if test "x$ac_cv_header_wchar_h" = xyes; then :
  16868. cat >>confdefs.h <<_ACEOF
  16869. #define HAVE_WCHAR_H 1
  16870. _ACEOF
  16871. else
  16872. no_iconv=true
  16873. fi
  16874. done
  16875. for ac_func in mblen wcstombs mbstowcs
  16876. do :
  16877. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16878. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16879. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16880. cat >>confdefs.h <<_ACEOF
  16881. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16882. _ACEOF
  16883. else
  16884. no_iconv=true
  16885. fi
  16886. done
  16887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the iconv Transcoder" >&5
  16888. $as_echo_n "checking whether we can support the iconv Transcoder... " >&6; }
  16889. list_add=
  16890. if ! $no_iconv; then :
  16891. # Check whether --enable-transcoder-iconv was given.
  16892. if test "${enable_transcoder_iconv+set}" = set; then :
  16893. enableval=$enable_transcoder_iconv; if test x"$enableval" = xyes; then :
  16894. list_add=ICONV
  16895. fi
  16896. else
  16897. list_add=iconv
  16898. fi
  16899. fi
  16900. if test x"$list_add" != x; then :
  16901. tc_list="$tc_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16902. $as_echo "yes" >&6; }
  16903. else
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16905. $as_echo "no" >&6; }
  16906. fi
  16907. # Check for ICU
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the ICU Transcoder" >&5
  16909. $as_echo_n "checking whether we can support the ICU Transcoder... " >&6; }
  16910. list_add=
  16911. if test x"$xerces_cv_icu_present" != x"no"; then :
  16912. # Check whether --enable-transcoder-icu was given.
  16913. if test "${enable_transcoder_icu+set}" = set; then :
  16914. enableval=$enable_transcoder_icu; if test x"$enableval" = xyes; then :
  16915. list_add=ICU
  16916. fi
  16917. else
  16918. list_add=icu
  16919. fi
  16920. fi
  16921. if test x"$list_add" != x; then :
  16922. tc_list="$tc_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16923. $as_echo "yes" >&6; }
  16924. else
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16926. $as_echo "no" >&6; }
  16927. fi
  16928. # Check for platform-specific transcoders
  16929. list_add=
  16930. case $host_os in
  16931. darwin*)
  16932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the MacOSUnicodeConverter Transcoder" >&5
  16933. $as_echo_n "checking whether we can support the MacOSUnicodeConverter Transcoder... " >&6; }
  16934. if test x"$ac_cv_header_CoreServices_CoreServices_h" = xyes; then :
  16935. # Check whether --enable-transcoder-macosunicodeconverter was given.
  16936. if test "${enable_transcoder_macosunicodeconverter+set}" = set; then :
  16937. enableval=$enable_transcoder_macosunicodeconverter; if test x"$enableval" = xyes; then :
  16938. list_add=MACOSUNICODECONVERTER
  16939. fi
  16940. else
  16941. list_add=macosunicodeconverter
  16942. fi
  16943. fi
  16944. if test x"$list_add" != x; then :
  16945. tc_list="$tc_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16946. $as_echo "yes" >&6; }
  16947. else
  16948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16949. $as_echo "no" >&6; }
  16950. fi
  16951. ;;
  16952. windows* | mingw*)
  16953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the Windows Transcoder" >&5
  16954. $as_echo_n "checking whether we can support the Windows Transcoder... " >&6; }
  16955. # Check whether --enable-transcoder-windows was given.
  16956. if test "${enable_transcoder_windows+set}" = set; then :
  16957. enableval=$enable_transcoder_windows; if test x"$enableval" = xyes; then :
  16958. list_add=WINDOWS
  16959. fi
  16960. else
  16961. list_add=windows
  16962. fi
  16963. if test x"$list_add" != x; then :
  16964. tc_list="$tc_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16965. $as_echo "yes" >&6; }
  16966. else
  16967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16968. $as_echo "no" >&6; }
  16969. fi
  16970. ;;
  16971. cygwin*)
  16972. # Only add it to the list if the user explicitly asked
  16973. # for it.
  16974. #
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the Windows Transcoder" >&5
  16976. $as_echo_n "checking whether to use the Windows Transcoder... " >&6; }
  16977. # Check whether --enable-transcoder-windows was given.
  16978. if test "${enable_transcoder_windows+set}" = set; then :
  16979. enableval=$enable_transcoder_windows; if test x"$enableval" = xyes; then :
  16980. list_add=WINDOWS
  16981. fi
  16982. fi
  16983. if test x"$list_add" != x; then :
  16984. tc_list="$tc_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16985. $as_echo "yes" >&6; }
  16986. else
  16987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16988. $as_echo "no" >&6; }
  16989. fi
  16990. ;;
  16991. esac
  16992. # TODO: Tests for additional transcoders
  16993. ######################################################
  16994. # Determine which transcoder to use.
  16995. #
  16996. # We do this in two passes. Transcoders that have been enabled with "yes",
  16997. # and which start out in upper case, get the top priority on the first pass.
  16998. # On the second pass, we consider those which are simply available, but
  16999. # which were not "disable"d (these won't even be in our list).
  17000. ######################################################
  17001. transcoder=
  17002. az_lower=abcdefghijklmnopqrstuvwxyz
  17003. az_upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which Transcoder to use (choices:$tc_list)" >&5
  17005. $as_echo_n "checking for which Transcoder to use (choices:$tc_list)... " >&6; }
  17006. for i in 1 2; do
  17007. # Swap upper/lower case in the tc_list. Cannot use tr ranges
  17008. # because of the portability issues.
  17009. #
  17010. tc_list=`echo $tc_list | tr "$az_lower$az_upper" "$az_upper$az_lower"`
  17011. # Check for each transcoder, in implicit rank order
  17012. case $tc_list in
  17013. *-icu-*)
  17014. transcoder=icu
  17015. $as_echo "#define XERCES_USE_TRANSCODER_ICU 1" >>confdefs.h
  17016. LIBS="${LIBS} ${xerces_cv_icu_libs}"
  17017. break
  17018. ;;
  17019. *-macosunicodeconverter-*)
  17020. transcoder=macosunicodeconverter
  17021. $as_echo "#define XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER 1" >>confdefs.h
  17022. case $host_os in
  17023. darwin*)
  17024. test -z "${xerces_darwin_frameworks}" && xerces_darwin_frameworks="-"
  17025. case ${xerces_darwin_frameworks} in
  17026. *-CoreServices-*)
  17027. ;;
  17028. *)
  17029. xerces_darwin_frameworks="-CoreServices${xerces_darwin_frameworks}"
  17030. LIBS="-Wl,-framework -Wl,CoreServices $LIBS"
  17031. ;;
  17032. esac
  17033. ;;
  17034. esac
  17035. break
  17036. ;;
  17037. *-gnuiconv-*)
  17038. transcoder=gnuiconv
  17039. $as_echo "#define XERCES_USE_TRANSCODER_GNUICONV 1" >>confdefs.h
  17040. break
  17041. ;;
  17042. *-windows-*)
  17043. transcoder=windows
  17044. $as_echo "#define XERCES_USE_TRANSCODER_WINDOWS 1" >>confdefs.h
  17045. break
  17046. ;;
  17047. *-iconv-*)
  17048. transcoder=iconv
  17049. $as_echo "#define XERCES_USE_TRANSCODER_ICONV 1" >>confdefs.h
  17050. break
  17051. ;;
  17052. *)
  17053. if test $i -eq 2; then :
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  17055. $as_echo "none" >&6; }
  17056. as_fn_error $? "Xerces cannot function without a transcoder" "$LINENO" 5
  17057. fi
  17058. ;;
  17059. esac
  17060. done
  17061. if test x"$transcoder" != x; then
  17062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $transcoder" >&5
  17063. $as_echo "$transcoder" >&6; }
  17064. fi
  17065. # Define the auto-make conditionals which determine what actually gets compiled
  17066. # Note that these macros can't be executed conditionally, which is why they're here, not above.
  17067. if test x"$transcoder" = xicu; then
  17068. XERCES_USE_TRANSCODER_ICU_TRUE=
  17069. XERCES_USE_TRANSCODER_ICU_FALSE='#'
  17070. else
  17071. XERCES_USE_TRANSCODER_ICU_TRUE='#'
  17072. XERCES_USE_TRANSCODER_ICU_FALSE=
  17073. fi
  17074. if test x"$transcoder" = xmacosunicodeconverter; then
  17075. XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER_TRUE=
  17076. XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER_FALSE='#'
  17077. else
  17078. XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER_TRUE='#'
  17079. XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER_FALSE=
  17080. fi
  17081. if test x"$transcoder" = xgnuiconv; then
  17082. XERCES_USE_TRANSCODER_GNUICONV_TRUE=
  17083. XERCES_USE_TRANSCODER_GNUICONV_FALSE='#'
  17084. else
  17085. XERCES_USE_TRANSCODER_GNUICONV_TRUE='#'
  17086. XERCES_USE_TRANSCODER_GNUICONV_FALSE=
  17087. fi
  17088. if test x"$transcoder" = xiconv; then
  17089. XERCES_USE_TRANSCODER_ICONV_TRUE=
  17090. XERCES_USE_TRANSCODER_ICONV_FALSE='#'
  17091. else
  17092. XERCES_USE_TRANSCODER_ICONV_TRUE='#'
  17093. XERCES_USE_TRANSCODER_ICONV_FALSE=
  17094. fi
  17095. if test x"$transcoder" = xwindows; then
  17096. XERCES_USE_TRANSCODER_WINDOWS_TRUE=
  17097. XERCES_USE_TRANSCODER_WINDOWS_FALSE='#'
  17098. else
  17099. XERCES_USE_TRANSCODER_WINDOWS_TRUE='#'
  17100. XERCES_USE_TRANSCODER_WINDOWS_FALSE=
  17101. fi
  17102. ######################################################
  17103. # Test for availability of each msgloader on this host.
  17104. # For each msgloader that's available, and hasn't been disabled, add it to our list.
  17105. # If the msgloader has been explicitly "enable"d, then vote for it strongly,
  17106. # in upper case.
  17107. ######################################################
  17108. ml_list=
  17109. # Check for inmemory msgloader
  17110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we support the InMemory MsgLoader" >&5
  17111. $as_echo_n "checking whether we support the InMemory MsgLoader... " >&6; }
  17112. list_add=
  17113. if true; then :
  17114. # Check whether --enable-msgloader-inmemory was given.
  17115. if test "${enable_msgloader_inmemory+set}" = set; then :
  17116. enableval=$enable_msgloader_inmemory; if test x"$enableval" = xyes; then :
  17117. list_add=INMEMORY
  17118. fi
  17119. else
  17120. list_add=inmemory
  17121. fi
  17122. fi
  17123. if test x"$list_add" != x; then :
  17124. ml_list="$ml_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17125. $as_echo "yes" >&6; }
  17126. else
  17127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17128. $as_echo "no" >&6; }
  17129. fi
  17130. # Check for ICU
  17131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we support the ICU MsgLoader" >&5
  17132. $as_echo_n "checking whether we support the ICU MsgLoader... " >&6; }
  17133. list_add=
  17134. if test x"$xerces_cv_icu_present" != x"no"; then :
  17135. # Check whether --enable-msgloader-icu was given.
  17136. if test "${enable_msgloader_icu+set}" = set; then :
  17137. enableval=$enable_msgloader_icu; if test x"$enableval" = xyes; then :
  17138. list_add=ICU
  17139. fi
  17140. else
  17141. list_add=icu
  17142. fi
  17143. fi
  17144. if test x"$list_add" != x; then :
  17145. ml_list="$ml_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17146. $as_echo "yes" >&6; }
  17147. else
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17149. $as_echo "no" >&6; }
  17150. fi
  17151. # Check for iconv support
  17152. no_iconv=false
  17153. for ac_header in nl_types.h
  17154. do :
  17155. ac_fn_cxx_check_header_mongrel "$LINENO" "nl_types.h" "ac_cv_header_nl_types_h" "$ac_includes_default"
  17156. if test "x$ac_cv_header_nl_types_h" = xyes; then :
  17157. cat >>confdefs.h <<_ACEOF
  17158. #define HAVE_NL_TYPES_H 1
  17159. _ACEOF
  17160. else
  17161. no_iconv=true
  17162. fi
  17163. done
  17164. for ac_func in catopen catclose catgets
  17165. do :
  17166. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17167. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17168. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17169. cat >>confdefs.h <<_ACEOF
  17170. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17171. _ACEOF
  17172. else
  17173. no_iconv=true
  17174. fi
  17175. done
  17176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support the iconv MsgLoader" >&5
  17177. $as_echo_n "checking whether we can support the iconv MsgLoader... " >&6; }
  17178. list_add=
  17179. if ! $no_iconv; then :
  17180. # Check whether --enable-msgloader-iconv was given.
  17181. if test "${enable_msgloader_iconv+set}" = set; then :
  17182. enableval=$enable_msgloader_iconv; if test x"$enableval" = xyes; then :
  17183. list_add=ICONV
  17184. fi
  17185. else
  17186. list_add=iconv
  17187. fi
  17188. fi
  17189. if test x"$list_add" != x; then :
  17190. ml_list="$ml_list -$list_add-"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17191. $as_echo "yes" >&6; }
  17192. else
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17194. $as_echo "no" >&6; }
  17195. fi
  17196. # TODO: Add test for additional msgloaders
  17197. ######################################################
  17198. # Determine which msgloader to use.
  17199. #
  17200. # We do this in two passes. MsgLoaders that have been enabled with "yes",
  17201. # and which start out in upper case, get the top priority on the first pass.
  17202. # On the second pass, we consider those which are simply available, but
  17203. # which were not "disable"d (these won't even be in our list).
  17204. ######################################################
  17205. msgloader=
  17206. az_lower=abcdefghijklmnopqrstuvwxyz
  17207. az_upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
  17208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which MsgLoader to use (choices:$ml_list)" >&5
  17209. $as_echo_n "checking for which MsgLoader to use (choices:$ml_list)... " >&6; }
  17210. for i in 1 2; do
  17211. # Swap upper/lower case in the ml_list. Cannot use tr ranges
  17212. # because of the portability issues.
  17213. #
  17214. ml_list=`echo $ml_list | tr "$az_lower$az_upper" "$az_upper$az_lower"`
  17215. # Check for each msgloader, in implicit rank order
  17216. case $ml_list in
  17217. *-inmemory-*)
  17218. $as_echo "#define XERCES_USE_MSGLOADER_INMEMORY 1" >>confdefs.h
  17219. msgloader=inmemory
  17220. break
  17221. ;;
  17222. *-icu-*)
  17223. $as_echo "#define XERCES_USE_MSGLOADER_ICU 1" >>confdefs.h
  17224. msgloader=icu
  17225. LIBS="${LIBS} ${xerces_cv_icu_libs}"
  17226. break
  17227. ;;
  17228. *-iconv-*)
  17229. $as_echo "#define XERCES_USE_MSGLOADER_ICONV 1" >>confdefs.h
  17230. msgloader=iconv
  17231. break
  17232. ;;
  17233. *)
  17234. if test $i -eq 2; then :
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  17236. $as_echo "none" >&6; }
  17237. as_fn_error $? "Xerces cannot function without a MsgLoader" "$LINENO" 5
  17238. fi
  17239. ;;
  17240. esac
  17241. done
  17242. if test x"$msgloader" != x; then
  17243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msgloader" >&5
  17244. $as_echo "$msgloader" >&6; }
  17245. fi
  17246. # Define the auto-make conditionals which determine what actually gets compiled
  17247. # Note that these macros can't be executed conditionally, which is why they're here, not above.
  17248. if test x"$msgloader" = xicu; then
  17249. XERCES_USE_MSGLOADER_ICU_TRUE=
  17250. XERCES_USE_MSGLOADER_ICU_FALSE='#'
  17251. else
  17252. XERCES_USE_MSGLOADER_ICU_TRUE='#'
  17253. XERCES_USE_MSGLOADER_ICU_FALSE=
  17254. fi
  17255. if test x"$msgloader" = xiconv; then
  17256. XERCES_USE_MSGLOADER_ICONV_TRUE=
  17257. XERCES_USE_MSGLOADER_ICONV_FALSE='#'
  17258. else
  17259. XERCES_USE_MSGLOADER_ICONV_TRUE='#'
  17260. XERCES_USE_MSGLOADER_ICONV_FALSE=
  17261. fi
  17262. if test x"$msgloader" = xinmemory; then
  17263. XERCES_USE_MSGLOADER_INMEMORY_TRUE=
  17264. XERCES_USE_MSGLOADER_INMEMORY_FALSE='#'
  17265. else
  17266. XERCES_USE_MSGLOADER_INMEMORY_TRUE='#'
  17267. XERCES_USE_MSGLOADER_INMEMORY_FALSE=
  17268. fi
  17269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which File Manager to use" >&5
  17270. $as_echo_n "checking for which File Manager to use... " >&6; }
  17271. filemgr=
  17272. # Platform specific checks
  17273. case $host_os in
  17274. windows* | mingw*)
  17275. filemgr=Windows;
  17276. $as_echo "#define XERCES_USE_FILEMGR_WINDOWS 1" >>confdefs.h
  17277. ;;
  17278. esac
  17279. # Fall back to using posix files
  17280. if test -z "$filemgr"; then :
  17281. filemgr=POSIX;
  17282. $as_echo "#define XERCES_USE_FILEMGR_POSIX 1" >>confdefs.h
  17283. fi
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $filemgr" >&5
  17285. $as_echo "$filemgr" >&6; }
  17286. # Define the auto-make conditionals which determine what actually gets compiled
  17287. # Note that these macros can't be executed conditionally, which is why they're here, not above.
  17288. if test x"$filemgr" = xPOSIX; then
  17289. XERCES_USE_FILEMGR_POSIX_TRUE=
  17290. XERCES_USE_FILEMGR_POSIX_FALSE='#'
  17291. else
  17292. XERCES_USE_FILEMGR_POSIX_TRUE='#'
  17293. XERCES_USE_FILEMGR_POSIX_FALSE=
  17294. fi
  17295. if test x"$filemgr" = xWindows; then
  17296. XERCES_USE_FILEMGR_WINDOWS_TRUE=
  17297. XERCES_USE_FILEMGR_WINDOWS_FALSE='#'
  17298. else
  17299. XERCES_USE_FILEMGR_WINDOWS_TRUE='#'
  17300. XERCES_USE_FILEMGR_WINDOWS_FALSE=
  17301. fi
  17302. # Allow the user to specify the pkgconfig directory.
  17303. #
  17304. # Check whether --with-pkgconfigdir was given.
  17305. if test "${with_pkgconfigdir+set}" = set; then :
  17306. withval=$with_pkgconfigdir; pkgconfigdir=${withval}
  17307. else
  17308. pkgconfigdir='${libdir}/pkgconfig'
  17309. fi
  17310. # Allow the user to disable the SSE2 support
  17311. #
  17312. # Check whether --enable-sse2 was given.
  17313. if test "${enable_sse2+set}" = set; then :
  17314. enableval=$enable_sse2; have_sse2=${enableval}
  17315. else
  17316. have_sse2=yes
  17317. fi
  17318. ######################################################
  17319. # Define some namespace-protected macros for use in the
  17320. # publicly visible Xerces_autoconf_config.h file.
  17321. ######################################################
  17322. $as_echo "#define XERCES_AUTOCONF 1" >>confdefs.h
  17323. if test x$ac_cv_header_sys_types_h = xyes; then :
  17324. $as_echo "#define XERCES_HAVE_SYS_TYPES_H 1" >>confdefs.h
  17325. fi
  17326. if test x$ac_cv_header_inttypes_h = xyes; then :
  17327. $as_echo "#define XERCES_HAVE_INTTYPES_H 1" >>confdefs.h
  17328. fi
  17329. case $host in
  17330. *-*-msdos* | *-*-mingw32* | *-*-cygwin* | *-*-windows* )
  17331. platform_export="__declspec(dllexport)"
  17332. platform_import="__declspec(dllimport)"
  17333. ;;
  17334. * )
  17335. platform_export=""
  17336. platform_import=""
  17337. ;;
  17338. esac
  17339. cat >>confdefs.h <<_ACEOF
  17340. #define XERCES_PLATFORM_EXPORT $platform_export
  17341. _ACEOF
  17342. cat >>confdefs.h <<_ACEOF
  17343. #define XERCES_PLATFORM_IMPORT $platform_import
  17344. _ACEOF
  17345. if test ! $ac_cv_cxx_have_bool; then :
  17346. $as_echo "#define XERCES_NO_NATIVE_BOOL 1" >>confdefs.h
  17347. fi
  17348. if test $ac_cv_cxx_have_lstring; then :
  17349. $as_echo "#define XERCES_LSTRSUPPORT 1" >>confdefs.h
  17350. fi
  17351. # check if the Windows API is defined as using wchar_t or unsigned short; if it's wchar_t, we need to map XMLCh to be wchar_t
  17352. # (this is safe because on Windows wchar_t is used to store UTF-16 codepoints, while it is not true on Unix)
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Windows SDK is available and using wchar_t as wide string" >&5
  17354. $as_echo_n "checking whether the Windows SDK is available and using wchar_t as wide string... " >&6; }
  17355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17356. /* end confdefs.h. */
  17357. #include <windows.h>
  17358. wchar_t file[] = L"dummy.file";
  17359. int
  17360. main ()
  17361. {
  17362. DeleteFileW(file);
  17363. ;
  17364. return 0;
  17365. }
  17366. _ACEOF
  17367. if ac_fn_cxx_try_compile "$LINENO"; then :
  17368. xerces_cv_type_xmlch=wchar_t
  17369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17370. $as_echo "yes" >&6; }
  17371. cat >>confdefs.h <<_ACEOF
  17372. #define XERCES_INCLUDE_WCHAR_H 1
  17373. _ACEOF
  17374. else
  17375. xerces_cv_type_xmlch=$xerces_cv_type_u16bit_int
  17376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17377. $as_echo "no" >&6; }
  17378. fi
  17379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17380. cat >>confdefs.h <<_ACEOF
  17381. #define XERCES_XMLCH_T $xerces_cv_type_xmlch
  17382. _ACEOF
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler chokes on a placement operator delete" >&5
  17384. $as_echo_n "checking whether the compiler chokes on a placement operator delete... " >&6; }
  17385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17386. /* end confdefs.h. */
  17387. #include <stdlib.h>
  17388. class XMemory
  17389. {
  17390. public :
  17391. void* operator new(size_t s) { return 0; }
  17392. void* operator new(size_t s, void* ptr) { return 0; }
  17393. void operator delete(void* p) {}
  17394. void operator delete(void* p, void* ptr) {}
  17395. };
  17396. int
  17397. main ()
  17398. {
  17399. ;
  17400. return 0;
  17401. }
  17402. _ACEOF
  17403. if ac_fn_cxx_try_compile "$LINENO"; then :
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17405. $as_echo "no" >&6; }
  17406. else
  17407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17408. $as_echo "yes" >&6; }
  17409. cat >>confdefs.h <<_ACEOF
  17410. #define XERCES_NO_MATCHING_DELETE_OPERATOR 1
  17411. _ACEOF
  17412. fi
  17413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17414. if test "$have_sse2" = "yes"; then
  17415. no_sse2_CXXFLAGS="$CXXFLAGS"
  17416. save_CXXFLAGS="$CXXFLAGS"
  17417. CXXFLAGS="$CXXFLAGS -msse2"
  17418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to add -msse2" >&5
  17419. $as_echo_n "checking whether we need to add -msse2... " >&6; }
  17420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17421. /* end confdefs.h. */
  17422. #include <emmintrin.h>
  17423. int
  17424. main ()
  17425. {
  17426. __m128i one;
  17427. ;
  17428. return 0;
  17429. }
  17430. _ACEOF
  17431. if ac_fn_cxx_try_compile "$LINENO"; then :
  17432. msse2_ok=yes
  17433. else
  17434. msse2_ok=no
  17435. fi
  17436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msse2_ok" >&5
  17438. $as_echo "$msse2_ok" >&6; }
  17439. if test x"$msse2_ok" = xno; then
  17440. CXXFLAGS="$save_CXXFLAGS"
  17441. fi
  17442. # Sun CC option test. Currently disabled since it doesn't work. Also note
  17443. # that Sun CC will accept -msse2 (i.e., it won't fail) but will keep issuing
  17444. # warnings. So if enabled this test needs to be moved before -msse2 and if
  17445. # it passes, then -msse2 should be skipped.
  17446. #
  17447. # save_CXXFLAGS="$CXXFLAGS"
  17448. # CXXFLAGS="$CXXFLAGS -xarch=sse2"
  17449. # AC_MSG_CHECKING([whether we need to add -xarch=sse2])
  17450. # AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include <emmintrin.h>]], [[__m128i one;]])],
  17451. # [xarchsse2_ok=yes],
  17452. # [xarchsse2_ok=no]
  17453. # )
  17454. # AC_MSG_RESULT($xarchsse2_ok)
  17455. # if test x"$xarchsse2_ok" = xno; then
  17456. # CXXFLAGS="$save_CXXFLAGS"
  17457. # fi
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intrin.h usability" >&5
  17459. $as_echo_n "checking for intrin.h usability... " >&6; }
  17460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17461. /* end confdefs.h. */
  17462. #include <intrin.h>
  17463. int
  17464. main ()
  17465. {
  17466. ;
  17467. return 0;
  17468. }
  17469. _ACEOF
  17470. if ac_fn_cxx_try_compile "$LINENO"; then :
  17471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17472. $as_echo "yes" >&6; }
  17473. cat >>confdefs.h <<_ACEOF
  17474. #define XERCES_HAVE_INTRIN_H 1
  17475. _ACEOF
  17476. else
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17478. $as_echo "no" >&6; }
  17479. fi
  17480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for emmintrin.h usability" >&5
  17482. $as_echo_n "checking for emmintrin.h usability... " >&6; }
  17483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17484. /* end confdefs.h. */
  17485. #include <emmintrin.h>
  17486. int
  17487. main ()
  17488. {
  17489. ;
  17490. return 0;
  17491. }
  17492. _ACEOF
  17493. if ac_fn_cxx_try_compile "$LINENO"; then :
  17494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17495. $as_echo "yes" >&6; }
  17496. cat >>confdefs.h <<_ACEOF
  17497. #define XERCES_HAVE_EMMINTRIN_H 1
  17498. _ACEOF
  17499. else
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17501. $as_echo "no" >&6; }
  17502. fi
  17503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid.h usability" >&5
  17505. $as_echo_n "checking for cpuid.h usability... " >&6; }
  17506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17507. /* end confdefs.h. */
  17508. #include <cpuid.h>
  17509. int
  17510. main ()
  17511. {
  17512. ;
  17513. return 0;
  17514. }
  17515. _ACEOF
  17516. if ac_fn_cxx_try_compile "$LINENO"; then :
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17518. $as_echo "yes" >&6; }
  17519. cat >>confdefs.h <<_ACEOF
  17520. #define HAVE_CPUID_H 1
  17521. _ACEOF
  17522. else
  17523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17524. $as_echo "no" >&6; }
  17525. fi
  17526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has the CPUID intrinsic" >&5
  17528. $as_echo_n "checking whether the compiler has the CPUID intrinsic... " >&6; }
  17529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17530. /* end confdefs.h. */
  17531. #include <intrin.h>
  17532. int
  17533. main ()
  17534. {
  17535. int CPUInfo[4];
  17536. __cpuid(CPUInfo, 1);
  17537. ;
  17538. return 0;
  17539. }
  17540. _ACEOF
  17541. if ac_fn_cxx_try_compile "$LINENO"; then :
  17542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17543. $as_echo "yes" >&6; }
  17544. cat >>confdefs.h <<_ACEOF
  17545. #define XERCES_HAVE_CPUID_INTRINSIC 1
  17546. _ACEOF
  17547. else
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17549. $as_echo "no" >&6; }
  17550. fi
  17551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has the _get_cpuid intrinsic" >&5
  17553. $as_echo_n "checking whether the compiler has the _get_cpuid intrinsic... " >&6; }
  17554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17555. /* end confdefs.h. */
  17556. #include <cpuid.h>
  17557. int
  17558. main ()
  17559. {
  17560. unsigned int eax, ebx, ecx, edx;
  17561. __get_cpuid (1, &eax, &ebx, &ecx, &edx);
  17562. ;
  17563. return 0;
  17564. }
  17565. _ACEOF
  17566. if ac_fn_cxx_try_compile "$LINENO"; then :
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17568. $as_echo "yes" >&6; }
  17569. cat >>confdefs.h <<_ACEOF
  17570. #define XERCES_HAVE_GETCPUID 1
  17571. _ACEOF
  17572. else
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17574. $as_echo "no" >&6; }
  17575. fi
  17576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has the SSE2 intrinsic" >&5
  17578. $as_echo_n "checking whether the compiler has the SSE2 intrinsic... " >&6; }
  17579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17580. /* end confdefs.h. */
  17581. #include <emmintrin.h>
  17582. int
  17583. main ()
  17584. {
  17585. __m128i* one=(__m128i*)_mm_malloc(4, 16);
  17586. __m128i* two=(__m128i*)_mm_malloc(4, 16);
  17587. __m128i xmm1 = _mm_load_si128(one);
  17588. __m128i xmm2 = _mm_load_si128(two);
  17589. __m128i xmm3 = _mm_or_si128(xmm1, xmm2);
  17590. _mm_store_si128(one, xmm3);
  17591. _mm_free(one);
  17592. _mm_free(two);
  17593. ;
  17594. return 0;
  17595. }
  17596. _ACEOF
  17597. if ac_fn_cxx_try_compile "$LINENO"; then :
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17599. $as_echo "yes" >&6; }
  17600. sse2_usable=yes
  17601. cat >>confdefs.h <<_ACEOF
  17602. #define XERCES_HAVE_SSE2_INTRINSIC 1
  17603. _ACEOF
  17604. else
  17605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17606. $as_echo "no" >&6; }
  17607. sse2_usable=no
  17608. fi
  17609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17610. # Restore original CXXFLAGS if SSE2 is not usable.
  17611. #
  17612. if test "$sse2_usable" = "no"; then
  17613. CXXFLAGS="$no_sse2_CXXFLAGS"
  17614. fi
  17615. fi
  17616. if test x$ac_cv_type_size_t = xyes; then :
  17617. $as_echo "#define XERCES_SIZE_T size_t" >>confdefs.h
  17618. else
  17619. $as_echo "#define XERCES_SIZE_T long" >>confdefs.h
  17620. fi
  17621. if test x$ac_cv_type_ssize_t = xyes; then :
  17622. $as_echo "#define XERCES_SSIZE_T ssize_t" >>confdefs.h
  17623. else
  17624. $as_echo "#define XERCES_SSIZE_T unsigned long" >>confdefs.h
  17625. fi
  17626. if test x$ac_cv_cxx_have_namespaces = xyes; then :
  17627. $as_echo "#define XERCES_HAS_CPP_NAMESPACE 1" >>confdefs.h
  17628. fi
  17629. if test x$ac_cv_cxx_have_std_namespace = xyes; then :
  17630. $as_echo "#define XERCES_STD_NAMESPACE 1" >>confdefs.h
  17631. fi
  17632. if test x$ac_cv_cxx_have_std_libs = xyes; then :
  17633. $as_echo "#define XERCES_NEW_IOSTREAMS 1" >>confdefs.h
  17634. fi
  17635. cat >confcache <<\_ACEOF
  17636. # This file is a shell script that caches the results of configure
  17637. # tests run on this system so they can be shared between configure
  17638. # scripts and configure runs, see configure's option --config-cache.
  17639. # It is not useful on other systems. If it contains results you don't
  17640. # want to keep, you may remove or edit it.
  17641. #
  17642. # config.status only pays attention to the cache file if you give it
  17643. # the --recheck option to rerun configure.
  17644. #
  17645. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17646. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17647. # following values.
  17648. _ACEOF
  17649. # The following way of writing the cache mishandles newlines in values,
  17650. # but we know of no workaround that is simple, portable, and efficient.
  17651. # So, we kill variables containing newlines.
  17652. # Ultrix sh set writes to stderr and can't be redirected directly,
  17653. # and sets the high bit in the cache file unless we assign to the vars.
  17654. (
  17655. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17656. eval ac_val=\$$ac_var
  17657. case $ac_val in #(
  17658. *${as_nl}*)
  17659. case $ac_var in #(
  17660. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17661. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17662. esac
  17663. case $ac_var in #(
  17664. _ | IFS | as_nl) ;; #(
  17665. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17666. *) { eval $ac_var=; unset $ac_var;} ;;
  17667. esac ;;
  17668. esac
  17669. done
  17670. (set) 2>&1 |
  17671. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17672. *${as_nl}ac_space=\ *)
  17673. # `set' does not quote correctly, so add quotes: double-quote
  17674. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17675. sed -n \
  17676. "s/'/'\\\\''/g;
  17677. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17678. ;; #(
  17679. *)
  17680. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17681. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17682. ;;
  17683. esac |
  17684. sort
  17685. ) |
  17686. sed '
  17687. /^ac_cv_env_/b end
  17688. t clear
  17689. :clear
  17690. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17691. t end
  17692. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17693. :end' >>confcache
  17694. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17695. if test -w "$cache_file"; then
  17696. if test "x$cache_file" != "x/dev/null"; then
  17697. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17698. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17699. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17700. cat confcache >"$cache_file"
  17701. else
  17702. case $cache_file in #(
  17703. */* | ?:*)
  17704. mv -f confcache "$cache_file"$$ &&
  17705. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17706. *)
  17707. mv -f confcache "$cache_file" ;;
  17708. esac
  17709. fi
  17710. fi
  17711. else
  17712. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17713. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17714. fi
  17715. fi
  17716. rm -f confcache
  17717. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17718. # Let make expand exec_prefix.
  17719. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17720. DEFS=-DHAVE_CONFIG_H
  17721. ac_libobjs=
  17722. ac_ltlibobjs=
  17723. U=
  17724. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17725. # 1. Remove the extension, and $U if already installed.
  17726. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17727. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17728. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17729. # will be set to the directory where LIBOBJS objects are built.
  17730. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17731. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17732. done
  17733. LIBOBJS=$ac_libobjs
  17734. LTLIBOBJS=$ac_ltlibobjs
  17735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17736. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17737. if test -n "$am_sleep_pid"; then
  17738. # Hide warnings about reused PIDs.
  17739. wait $am_sleep_pid 2>/dev/null
  17740. fi
  17741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17742. $as_echo "done" >&6; }
  17743. if test -n "$EXEEXT"; then
  17744. am__EXEEXT_TRUE=
  17745. am__EXEEXT_FALSE='#'
  17746. else
  17747. am__EXEEXT_TRUE='#'
  17748. am__EXEEXT_FALSE=
  17749. fi
  17750. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17751. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17752. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17753. fi
  17754. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17755. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17756. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17757. fi
  17758. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17759. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17760. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17761. fi
  17762. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17763. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17765. fi
  17766. if test -z "${XERCES_PRETTY_MAKE_TRUE}" && test -z "${XERCES_PRETTY_MAKE_FALSE}"; then
  17767. as_fn_error $? "conditional \"XERCES_PRETTY_MAKE\" was never defined.
  17768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17769. fi
  17770. if test -z "${XERCES_USE_MUTEXMGR_NOTHREAD_TRUE}" && test -z "${XERCES_USE_MUTEXMGR_NOTHREAD_FALSE}"; then
  17771. as_fn_error $? "conditional \"XERCES_USE_MUTEXMGR_NOTHREAD\" was never defined.
  17772. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17773. fi
  17774. if test -z "${XERCES_USE_MUTEXMGR_POSIX_TRUE}" && test -z "${XERCES_USE_MUTEXMGR_POSIX_FALSE}"; then
  17775. as_fn_error $? "conditional \"XERCES_USE_MUTEXMGR_POSIX\" was never defined.
  17776. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17777. fi
  17778. if test -z "${XERCES_USE_MUTEXMGR_WINDOWS_TRUE}" && test -z "${XERCES_USE_MUTEXMGR_WINDOWS_FALSE}"; then
  17779. as_fn_error $? "conditional \"XERCES_USE_MUTEXMGR_WINDOWS\" was never defined.
  17780. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17781. fi
  17782. if test -z "${XERCES_USE_NETACCESSOR_CURL_TRUE}" && test -z "${XERCES_USE_NETACCESSOR_CURL_FALSE}"; then
  17783. as_fn_error $? "conditional \"XERCES_USE_NETACCESSOR_CURL\" was never defined.
  17784. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17785. fi
  17786. if test -z "${XERCES_USE_NETACCESSOR_CFURL_TRUE}" && test -z "${XERCES_USE_NETACCESSOR_CFURL_FALSE}"; then
  17787. as_fn_error $? "conditional \"XERCES_USE_NETACCESSOR_CFURL\" was never defined.
  17788. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17789. fi
  17790. if test -z "${XERCES_USE_NETACCESSOR_WINSOCK_TRUE}" && test -z "${XERCES_USE_NETACCESSOR_WINSOCK_FALSE}"; then
  17791. as_fn_error $? "conditional \"XERCES_USE_NETACCESSOR_WINSOCK\" was never defined.
  17792. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17793. fi
  17794. if test -z "${XERCES_USE_NETACCESSOR_SOCKET_TRUE}" && test -z "${XERCES_USE_NETACCESSOR_SOCKET_FALSE}"; then
  17795. as_fn_error $? "conditional \"XERCES_USE_NETACCESSOR_SOCKET\" was never defined.
  17796. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17797. fi
  17798. if test -z "${XERCES_USE_TRANSCODER_ICU_TRUE}" && test -z "${XERCES_USE_TRANSCODER_ICU_FALSE}"; then
  17799. as_fn_error $? "conditional \"XERCES_USE_TRANSCODER_ICU\" was never defined.
  17800. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17801. fi
  17802. if test -z "${XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER_TRUE}" && test -z "${XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER_FALSE}"; then
  17803. as_fn_error $? "conditional \"XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER\" was never defined.
  17804. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17805. fi
  17806. if test -z "${XERCES_USE_TRANSCODER_GNUICONV_TRUE}" && test -z "${XERCES_USE_TRANSCODER_GNUICONV_FALSE}"; then
  17807. as_fn_error $? "conditional \"XERCES_USE_TRANSCODER_GNUICONV\" was never defined.
  17808. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17809. fi
  17810. if test -z "${XERCES_USE_TRANSCODER_ICONV_TRUE}" && test -z "${XERCES_USE_TRANSCODER_ICONV_FALSE}"; then
  17811. as_fn_error $? "conditional \"XERCES_USE_TRANSCODER_ICONV\" was never defined.
  17812. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17813. fi
  17814. if test -z "${XERCES_USE_TRANSCODER_WINDOWS_TRUE}" && test -z "${XERCES_USE_TRANSCODER_WINDOWS_FALSE}"; then
  17815. as_fn_error $? "conditional \"XERCES_USE_TRANSCODER_WINDOWS\" was never defined.
  17816. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17817. fi
  17818. if test -z "${XERCES_USE_MSGLOADER_ICU_TRUE}" && test -z "${XERCES_USE_MSGLOADER_ICU_FALSE}"; then
  17819. as_fn_error $? "conditional \"XERCES_USE_MSGLOADER_ICU\" was never defined.
  17820. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17821. fi
  17822. if test -z "${XERCES_USE_MSGLOADER_ICONV_TRUE}" && test -z "${XERCES_USE_MSGLOADER_ICONV_FALSE}"; then
  17823. as_fn_error $? "conditional \"XERCES_USE_MSGLOADER_ICONV\" was never defined.
  17824. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17825. fi
  17826. if test -z "${XERCES_USE_MSGLOADER_INMEMORY_TRUE}" && test -z "${XERCES_USE_MSGLOADER_INMEMORY_FALSE}"; then
  17827. as_fn_error $? "conditional \"XERCES_USE_MSGLOADER_INMEMORY\" was never defined.
  17828. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17829. fi
  17830. if test -z "${XERCES_USE_FILEMGR_POSIX_TRUE}" && test -z "${XERCES_USE_FILEMGR_POSIX_FALSE}"; then
  17831. as_fn_error $? "conditional \"XERCES_USE_FILEMGR_POSIX\" was never defined.
  17832. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17833. fi
  17834. if test -z "${XERCES_USE_FILEMGR_WINDOWS_TRUE}" && test -z "${XERCES_USE_FILEMGR_WINDOWS_FALSE}"; then
  17835. as_fn_error $? "conditional \"XERCES_USE_FILEMGR_WINDOWS\" was never defined.
  17836. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17837. fi
  17838. : "${CONFIG_STATUS=./config.status}"
  17839. ac_write_fail=0
  17840. ac_clean_files_save=$ac_clean_files
  17841. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17842. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17843. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17844. as_write_fail=0
  17845. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17846. #! $SHELL
  17847. # Generated by $as_me.
  17848. # Run this file to recreate the current configuration.
  17849. # Compiler output produced by configure, useful for debugging
  17850. # configure, is in config.log if it exists.
  17851. debug=false
  17852. ac_cs_recheck=false
  17853. ac_cs_silent=false
  17854. SHELL=\${CONFIG_SHELL-$SHELL}
  17855. export SHELL
  17856. _ASEOF
  17857. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17858. ## -------------------- ##
  17859. ## M4sh Initialization. ##
  17860. ## -------------------- ##
  17861. # Be more Bourne compatible
  17862. DUALCASE=1; export DUALCASE # for MKS sh
  17863. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17864. emulate sh
  17865. NULLCMD=:
  17866. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17867. # is contrary to our usage. Disable this feature.
  17868. alias -g '${1+"$@"}'='"$@"'
  17869. setopt NO_GLOB_SUBST
  17870. else
  17871. case `(set -o) 2>/dev/null` in #(
  17872. *posix*) :
  17873. set -o posix ;; #(
  17874. *) :
  17875. ;;
  17876. esac
  17877. fi
  17878. as_nl='
  17879. '
  17880. export as_nl
  17881. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17882. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17883. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17884. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17885. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17886. # but without wasting forks for bash or zsh.
  17887. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17888. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17889. as_echo='print -r --'
  17890. as_echo_n='print -rn --'
  17891. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17892. as_echo='printf %s\n'
  17893. as_echo_n='printf %s'
  17894. else
  17895. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17896. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17897. as_echo_n='/usr/ucb/echo -n'
  17898. else
  17899. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17900. as_echo_n_body='eval
  17901. arg=$1;
  17902. case $arg in #(
  17903. *"$as_nl"*)
  17904. expr "X$arg" : "X\\(.*\\)$as_nl";
  17905. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17906. esac;
  17907. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17908. '
  17909. export as_echo_n_body
  17910. as_echo_n='sh -c $as_echo_n_body as_echo'
  17911. fi
  17912. export as_echo_body
  17913. as_echo='sh -c $as_echo_body as_echo'
  17914. fi
  17915. # The user is always right.
  17916. if test "${PATH_SEPARATOR+set}" != set; then
  17917. PATH_SEPARATOR=:
  17918. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17919. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17920. PATH_SEPARATOR=';'
  17921. }
  17922. fi
  17923. # IFS
  17924. # We need space, tab and new line, in precisely that order. Quoting is
  17925. # there to prevent editors from complaining about space-tab.
  17926. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17927. # splitting by setting IFS to empty value.)
  17928. IFS=" "" $as_nl"
  17929. # Find who we are. Look in the path if we contain no directory separator.
  17930. as_myself=
  17931. case $0 in #((
  17932. *[\\/]* ) as_myself=$0 ;;
  17933. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17934. for as_dir in $PATH
  17935. do
  17936. IFS=$as_save_IFS
  17937. test -z "$as_dir" && as_dir=.
  17938. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17939. done
  17940. IFS=$as_save_IFS
  17941. ;;
  17942. esac
  17943. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17944. # in which case we are not to be found in the path.
  17945. if test "x$as_myself" = x; then
  17946. as_myself=$0
  17947. fi
  17948. if test ! -f "$as_myself"; then
  17949. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17950. exit 1
  17951. fi
  17952. # Unset variables that we do not need and which cause bugs (e.g. in
  17953. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17954. # suppresses any "Segmentation fault" message there. '((' could
  17955. # trigger a bug in pdksh 5.2.14.
  17956. for as_var in BASH_ENV ENV MAIL MAILPATH
  17957. do eval test x\${$as_var+set} = xset \
  17958. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17959. done
  17960. PS1='$ '
  17961. PS2='> '
  17962. PS4='+ '
  17963. # NLS nuisances.
  17964. LC_ALL=C
  17965. export LC_ALL
  17966. LANGUAGE=C
  17967. export LANGUAGE
  17968. # CDPATH.
  17969. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17970. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17971. # ----------------------------------------
  17972. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17973. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17974. # script with STATUS, using 1 if that was 0.
  17975. as_fn_error ()
  17976. {
  17977. as_status=$1; test $as_status -eq 0 && as_status=1
  17978. if test "$4"; then
  17979. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17980. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17981. fi
  17982. $as_echo "$as_me: error: $2" >&2
  17983. as_fn_exit $as_status
  17984. } # as_fn_error
  17985. # as_fn_set_status STATUS
  17986. # -----------------------
  17987. # Set $? to STATUS, without forking.
  17988. as_fn_set_status ()
  17989. {
  17990. return $1
  17991. } # as_fn_set_status
  17992. # as_fn_exit STATUS
  17993. # -----------------
  17994. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17995. as_fn_exit ()
  17996. {
  17997. set +e
  17998. as_fn_set_status $1
  17999. exit $1
  18000. } # as_fn_exit
  18001. # as_fn_unset VAR
  18002. # ---------------
  18003. # Portably unset VAR.
  18004. as_fn_unset ()
  18005. {
  18006. { eval $1=; unset $1;}
  18007. }
  18008. as_unset=as_fn_unset
  18009. # as_fn_append VAR VALUE
  18010. # ----------------------
  18011. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18012. # advantage of any shell optimizations that allow amortized linear growth over
  18013. # repeated appends, instead of the typical quadratic growth present in naive
  18014. # implementations.
  18015. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18016. eval 'as_fn_append ()
  18017. {
  18018. eval $1+=\$2
  18019. }'
  18020. else
  18021. as_fn_append ()
  18022. {
  18023. eval $1=\$$1\$2
  18024. }
  18025. fi # as_fn_append
  18026. # as_fn_arith ARG...
  18027. # ------------------
  18028. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18029. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18030. # must be portable across $(()) and expr.
  18031. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18032. eval 'as_fn_arith ()
  18033. {
  18034. as_val=$(( $* ))
  18035. }'
  18036. else
  18037. as_fn_arith ()
  18038. {
  18039. as_val=`expr "$@" || test $? -eq 1`
  18040. }
  18041. fi # as_fn_arith
  18042. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18043. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18044. as_expr=expr
  18045. else
  18046. as_expr=false
  18047. fi
  18048. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18049. as_basename=basename
  18050. else
  18051. as_basename=false
  18052. fi
  18053. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18054. as_dirname=dirname
  18055. else
  18056. as_dirname=false
  18057. fi
  18058. as_me=`$as_basename -- "$0" ||
  18059. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18060. X"$0" : 'X\(//\)$' \| \
  18061. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18062. $as_echo X/"$0" |
  18063. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18064. s//\1/
  18065. q
  18066. }
  18067. /^X\/\(\/\/\)$/{
  18068. s//\1/
  18069. q
  18070. }
  18071. /^X\/\(\/\).*/{
  18072. s//\1/
  18073. q
  18074. }
  18075. s/.*/./; q'`
  18076. # Avoid depending upon Character Ranges.
  18077. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18078. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18079. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18080. as_cr_digits='0123456789'
  18081. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18082. ECHO_C= ECHO_N= ECHO_T=
  18083. case `echo -n x` in #(((((
  18084. -n*)
  18085. case `echo 'xy\c'` in
  18086. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18087. xy) ECHO_C='\c';;
  18088. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18089. ECHO_T=' ';;
  18090. esac;;
  18091. *)
  18092. ECHO_N='-n';;
  18093. esac
  18094. rm -f conf$$ conf$$.exe conf$$.file
  18095. if test -d conf$$.dir; then
  18096. rm -f conf$$.dir/conf$$.file
  18097. else
  18098. rm -f conf$$.dir
  18099. mkdir conf$$.dir 2>/dev/null
  18100. fi
  18101. if (echo >conf$$.file) 2>/dev/null; then
  18102. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18103. as_ln_s='ln -s'
  18104. # ... but there are two gotchas:
  18105. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18106. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18107. # In both cases, we have to default to `cp -pR'.
  18108. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18109. as_ln_s='cp -pR'
  18110. elif ln conf$$.file conf$$ 2>/dev/null; then
  18111. as_ln_s=ln
  18112. else
  18113. as_ln_s='cp -pR'
  18114. fi
  18115. else
  18116. as_ln_s='cp -pR'
  18117. fi
  18118. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18119. rmdir conf$$.dir 2>/dev/null
  18120. # as_fn_mkdir_p
  18121. # -------------
  18122. # Create "$as_dir" as a directory, including parents if necessary.
  18123. as_fn_mkdir_p ()
  18124. {
  18125. case $as_dir in #(
  18126. -*) as_dir=./$as_dir;;
  18127. esac
  18128. test -d "$as_dir" || eval $as_mkdir_p || {
  18129. as_dirs=
  18130. while :; do
  18131. case $as_dir in #(
  18132. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18133. *) as_qdir=$as_dir;;
  18134. esac
  18135. as_dirs="'$as_qdir' $as_dirs"
  18136. as_dir=`$as_dirname -- "$as_dir" ||
  18137. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18138. X"$as_dir" : 'X\(//\)[^/]' \| \
  18139. X"$as_dir" : 'X\(//\)$' \| \
  18140. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18141. $as_echo X"$as_dir" |
  18142. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18143. s//\1/
  18144. q
  18145. }
  18146. /^X\(\/\/\)[^/].*/{
  18147. s//\1/
  18148. q
  18149. }
  18150. /^X\(\/\/\)$/{
  18151. s//\1/
  18152. q
  18153. }
  18154. /^X\(\/\).*/{
  18155. s//\1/
  18156. q
  18157. }
  18158. s/.*/./; q'`
  18159. test -d "$as_dir" && break
  18160. done
  18161. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18162. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18163. } # as_fn_mkdir_p
  18164. if mkdir -p . 2>/dev/null; then
  18165. as_mkdir_p='mkdir -p "$as_dir"'
  18166. else
  18167. test -d ./-p && rmdir ./-p
  18168. as_mkdir_p=false
  18169. fi
  18170. # as_fn_executable_p FILE
  18171. # -----------------------
  18172. # Test if FILE is an executable regular file.
  18173. as_fn_executable_p ()
  18174. {
  18175. test -f "$1" && test -x "$1"
  18176. } # as_fn_executable_p
  18177. as_test_x='test -x'
  18178. as_executable_p=as_fn_executable_p
  18179. # Sed expression to map a string onto a valid CPP name.
  18180. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18181. # Sed expression to map a string onto a valid variable name.
  18182. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18183. exec 6>&1
  18184. ## ----------------------------------- ##
  18185. ## Main body of $CONFIG_STATUS script. ##
  18186. ## ----------------------------------- ##
  18187. _ASEOF
  18188. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18190. # Save the log message, to keep $0 and so on meaningful, and to
  18191. # report actual input values of CONFIG_FILES etc. instead of their
  18192. # values after options handling.
  18193. ac_log="
  18194. This file was extended by xerces-c $as_me 3.1.2, which was
  18195. generated by GNU Autoconf 2.69. Invocation command line was
  18196. CONFIG_FILES = $CONFIG_FILES
  18197. CONFIG_HEADERS = $CONFIG_HEADERS
  18198. CONFIG_LINKS = $CONFIG_LINKS
  18199. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18200. $ $0 $@
  18201. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18202. "
  18203. _ACEOF
  18204. case $ac_config_files in *"
  18205. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18206. esac
  18207. case $ac_config_headers in *"
  18208. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18209. esac
  18210. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18211. # Files that config.status was made for.
  18212. config_files="$ac_config_files"
  18213. config_headers="$ac_config_headers"
  18214. config_commands="$ac_config_commands"
  18215. _ACEOF
  18216. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18217. ac_cs_usage="\
  18218. \`$as_me' instantiates files and other configuration actions
  18219. from templates according to the current configuration. Unless the files
  18220. and actions are specified as TAGs, all are instantiated by default.
  18221. Usage: $0 [OPTION]... [TAG]...
  18222. -h, --help print this help, then exit
  18223. -V, --version print version number and configuration settings, then exit
  18224. --config print configuration, then exit
  18225. -q, --quiet, --silent
  18226. do not print progress messages
  18227. -d, --debug don't remove temporary files
  18228. --recheck update $as_me by reconfiguring in the same conditions
  18229. --file=FILE[:TEMPLATE]
  18230. instantiate the configuration file FILE
  18231. --header=FILE[:TEMPLATE]
  18232. instantiate the configuration header FILE
  18233. Configuration files:
  18234. $config_files
  18235. Configuration headers:
  18236. $config_headers
  18237. Configuration commands:
  18238. $config_commands
  18239. Report bugs to the package provider."
  18240. _ACEOF
  18241. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18242. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18243. ac_cs_version="\\
  18244. xerces-c config.status 3.1.2
  18245. configured by $0, generated by GNU Autoconf 2.69,
  18246. with options \\"\$ac_cs_config\\"
  18247. Copyright (C) 2012 Free Software Foundation, Inc.
  18248. This config.status script is free software; the Free Software Foundation
  18249. gives unlimited permission to copy, distribute and modify it."
  18250. ac_pwd='$ac_pwd'
  18251. srcdir='$srcdir'
  18252. INSTALL='$INSTALL'
  18253. MKDIR_P='$MKDIR_P'
  18254. AWK='$AWK'
  18255. test -n "\$AWK" || AWK=awk
  18256. _ACEOF
  18257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18258. # The default lists apply if the user does not specify any file.
  18259. ac_need_defaults=:
  18260. while test $# != 0
  18261. do
  18262. case $1 in
  18263. --*=?*)
  18264. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18265. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18266. ac_shift=:
  18267. ;;
  18268. --*=)
  18269. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18270. ac_optarg=
  18271. ac_shift=:
  18272. ;;
  18273. *)
  18274. ac_option=$1
  18275. ac_optarg=$2
  18276. ac_shift=shift
  18277. ;;
  18278. esac
  18279. case $ac_option in
  18280. # Handling of the options.
  18281. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18282. ac_cs_recheck=: ;;
  18283. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18284. $as_echo "$ac_cs_version"; exit ;;
  18285. --config | --confi | --conf | --con | --co | --c )
  18286. $as_echo "$ac_cs_config"; exit ;;
  18287. --debug | --debu | --deb | --de | --d | -d )
  18288. debug=: ;;
  18289. --file | --fil | --fi | --f )
  18290. $ac_shift
  18291. case $ac_optarg in
  18292. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18293. '') as_fn_error $? "missing file argument" ;;
  18294. esac
  18295. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18296. ac_need_defaults=false;;
  18297. --header | --heade | --head | --hea )
  18298. $ac_shift
  18299. case $ac_optarg in
  18300. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18301. esac
  18302. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18303. ac_need_defaults=false;;
  18304. --he | --h)
  18305. # Conflict between --help and --header
  18306. as_fn_error $? "ambiguous option: \`$1'
  18307. Try \`$0 --help' for more information.";;
  18308. --help | --hel | -h )
  18309. $as_echo "$ac_cs_usage"; exit ;;
  18310. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18311. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18312. ac_cs_silent=: ;;
  18313. # This is an error.
  18314. -*) as_fn_error $? "unrecognized option: \`$1'
  18315. Try \`$0 --help' for more information." ;;
  18316. *) as_fn_append ac_config_targets " $1"
  18317. ac_need_defaults=false ;;
  18318. esac
  18319. shift
  18320. done
  18321. ac_configure_extra_args=
  18322. if $ac_cs_silent; then
  18323. exec 6>/dev/null
  18324. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18325. fi
  18326. _ACEOF
  18327. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18328. if \$ac_cs_recheck; then
  18329. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18330. shift
  18331. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18332. CONFIG_SHELL='$SHELL'
  18333. export CONFIG_SHELL
  18334. exec "\$@"
  18335. fi
  18336. _ACEOF
  18337. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18338. exec 5>>config.log
  18339. {
  18340. echo
  18341. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18342. ## Running $as_me. ##
  18343. _ASBOX
  18344. $as_echo "$ac_log"
  18345. } >&5
  18346. _ACEOF
  18347. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18348. #
  18349. # INIT-COMMANDS
  18350. #
  18351. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18352. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18353. # if CDPATH is set.
  18354. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18355. sed_quote_subst='$sed_quote_subst'
  18356. double_quote_subst='$double_quote_subst'
  18357. delay_variable_subst='$delay_variable_subst'
  18358. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  18359. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18360. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18361. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18362. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18363. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18364. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18365. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18366. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18367. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18368. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18369. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18370. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18371. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18372. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18373. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18374. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18375. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18376. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18377. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18378. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18379. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18380. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18381. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18382. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18383. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18384. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18385. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18386. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18387. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18388. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18389. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18390. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18391. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18392. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18393. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18394. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18395. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18396. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18397. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18398. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18399. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18400. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18401. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18402. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18403. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18404. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18405. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18406. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18407. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18408. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18409. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18410. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18411. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18412. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18413. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18414. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18415. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18416. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18417. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18418. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18419. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18420. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18421. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18422. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18423. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18424. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18425. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18426. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18427. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18428. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18429. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18430. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18431. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18432. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18433. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18434. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18435. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18436. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18437. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18438. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18439. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18440. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18441. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18442. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18443. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18444. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18445. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18446. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18447. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18448. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18449. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18450. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18451. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18452. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18453. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18454. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18455. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18456. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18457. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18458. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18459. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18460. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18461. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18462. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18463. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18464. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18465. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18466. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18467. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18468. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18469. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18470. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18471. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18472. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18473. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18474. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18475. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18476. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18477. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18478. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18479. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18480. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18481. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18482. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18483. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18484. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18485. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18486. lt_cv_sys_lib_dlsearch_path_spec='`$ECHO "$lt_cv_sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  18487. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18488. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18489. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18490. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18491. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18492. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18493. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18494. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18495. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18496. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18497. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18498. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18499. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18500. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18501. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18502. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18503. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18504. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18505. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18506. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18507. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18508. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18509. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18510. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18511. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18512. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18513. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18514. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18515. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18516. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18517. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18518. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18519. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18520. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18521. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18522. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18523. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18524. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18525. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18526. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18527. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18528. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18529. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18530. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18531. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18532. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18533. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18534. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18535. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18536. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18537. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18538. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18539. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18540. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18541. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18542. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18543. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18544. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18545. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18546. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18547. LTCC='$LTCC'
  18548. LTCFLAGS='$LTCFLAGS'
  18549. compiler='$compiler_DEFAULT'
  18550. # A function that is used when there is no print builtin or printf.
  18551. func_fallback_echo ()
  18552. {
  18553. eval 'cat <<_LTECHO_EOF
  18554. \$1
  18555. _LTECHO_EOF'
  18556. }
  18557. # Quote evaled strings.
  18558. for var in AS \
  18559. DLLTOOL \
  18560. OBJDUMP \
  18561. SHELL \
  18562. ECHO \
  18563. PATH_SEPARATOR \
  18564. SED \
  18565. GREP \
  18566. EGREP \
  18567. FGREP \
  18568. LD \
  18569. NM \
  18570. LN_S \
  18571. lt_SP2NL \
  18572. lt_NL2SP \
  18573. reload_flag \
  18574. deplibs_check_method \
  18575. file_magic_cmd \
  18576. file_magic_glob \
  18577. want_nocaseglob \
  18578. sharedlib_from_linklib_cmd \
  18579. AR \
  18580. AR_FLAGS \
  18581. archiver_list_spec \
  18582. STRIP \
  18583. RANLIB \
  18584. CC \
  18585. CFLAGS \
  18586. compiler \
  18587. lt_cv_sys_global_symbol_pipe \
  18588. lt_cv_sys_global_symbol_to_cdecl \
  18589. lt_cv_sys_global_symbol_to_import \
  18590. lt_cv_sys_global_symbol_to_c_name_address \
  18591. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18592. lt_cv_nm_interface \
  18593. nm_file_list_spec \
  18594. lt_cv_truncate_bin \
  18595. lt_prog_compiler_no_builtin_flag \
  18596. lt_prog_compiler_pic \
  18597. lt_prog_compiler_wl \
  18598. lt_prog_compiler_static \
  18599. lt_cv_prog_compiler_c_o \
  18600. need_locks \
  18601. MANIFEST_TOOL \
  18602. DSYMUTIL \
  18603. NMEDIT \
  18604. LIPO \
  18605. OTOOL \
  18606. OTOOL64 \
  18607. shrext_cmds \
  18608. export_dynamic_flag_spec \
  18609. whole_archive_flag_spec \
  18610. compiler_needs_object \
  18611. with_gnu_ld \
  18612. allow_undefined_flag \
  18613. no_undefined_flag \
  18614. hardcode_libdir_flag_spec \
  18615. hardcode_libdir_separator \
  18616. exclude_expsyms \
  18617. include_expsyms \
  18618. file_list_spec \
  18619. variables_saved_for_relink \
  18620. libname_spec \
  18621. library_names_spec \
  18622. soname_spec \
  18623. install_override_mode \
  18624. finish_eval \
  18625. old_striplib \
  18626. striplib \
  18627. compiler_lib_search_dirs \
  18628. predep_objects \
  18629. postdep_objects \
  18630. predeps \
  18631. postdeps \
  18632. compiler_lib_search_path \
  18633. LD_CXX \
  18634. reload_flag_CXX \
  18635. compiler_CXX \
  18636. lt_prog_compiler_no_builtin_flag_CXX \
  18637. lt_prog_compiler_pic_CXX \
  18638. lt_prog_compiler_wl_CXX \
  18639. lt_prog_compiler_static_CXX \
  18640. lt_cv_prog_compiler_c_o_CXX \
  18641. export_dynamic_flag_spec_CXX \
  18642. whole_archive_flag_spec_CXX \
  18643. compiler_needs_object_CXX \
  18644. with_gnu_ld_CXX \
  18645. allow_undefined_flag_CXX \
  18646. no_undefined_flag_CXX \
  18647. hardcode_libdir_flag_spec_CXX \
  18648. hardcode_libdir_separator_CXX \
  18649. exclude_expsyms_CXX \
  18650. include_expsyms_CXX \
  18651. file_list_spec_CXX \
  18652. compiler_lib_search_dirs_CXX \
  18653. predep_objects_CXX \
  18654. postdep_objects_CXX \
  18655. predeps_CXX \
  18656. postdeps_CXX \
  18657. compiler_lib_search_path_CXX; do
  18658. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18659. *[\\\\\\\`\\"\\\$]*)
  18660. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18661. ;;
  18662. *)
  18663. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18664. ;;
  18665. esac
  18666. done
  18667. # Double-quote double-evaled strings.
  18668. for var in reload_cmds \
  18669. old_postinstall_cmds \
  18670. old_postuninstall_cmds \
  18671. old_archive_cmds \
  18672. extract_expsyms_cmds \
  18673. old_archive_from_new_cmds \
  18674. old_archive_from_expsyms_cmds \
  18675. archive_cmds \
  18676. archive_expsym_cmds \
  18677. module_cmds \
  18678. module_expsym_cmds \
  18679. export_symbols_cmds \
  18680. prelink_cmds \
  18681. postlink_cmds \
  18682. postinstall_cmds \
  18683. postuninstall_cmds \
  18684. finish_cmds \
  18685. sys_lib_search_path_spec \
  18686. lt_cv_sys_lib_dlsearch_path_spec \
  18687. reload_cmds_CXX \
  18688. old_archive_cmds_CXX \
  18689. old_archive_from_new_cmds_CXX \
  18690. old_archive_from_expsyms_cmds_CXX \
  18691. archive_cmds_CXX \
  18692. archive_expsym_cmds_CXX \
  18693. module_cmds_CXX \
  18694. module_expsym_cmds_CXX \
  18695. export_symbols_cmds_CXX \
  18696. prelink_cmds_CXX \
  18697. postlink_cmds_CXX; do
  18698. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18699. *[\\\\\\\`\\"\\\$]*)
  18700. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18701. ;;
  18702. *)
  18703. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18704. ;;
  18705. esac
  18706. done
  18707. ac_aux_dir='$ac_aux_dir'
  18708. # See if we are running on zsh, and set the options that allow our
  18709. # commands through without removal of \ escapes INIT.
  18710. if test -n "\${ZSH_VERSION+set}"; then
  18711. setopt NO_GLOB_SUBST
  18712. fi
  18713. PACKAGE='$PACKAGE'
  18714. VERSION='$VERSION'
  18715. RM='$RM'
  18716. ofile='$ofile'
  18717. libtool_patch_use_rpath=$xerces_cv_rpath
  18718. _ACEOF
  18719. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18720. # Handling of arguments.
  18721. for ac_config_target in $ac_config_targets
  18722. do
  18723. case $ac_config_target in
  18724. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18725. "src/xercesc/util/Xerces_autoconf_config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS src/xercesc/util/Xerces_autoconf_config.hpp" ;;
  18726. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18727. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  18728. "src/xercesc/util/MsgLoaders/MsgCatalog/Makefile") CONFIG_FILES="$CONFIG_FILES src/xercesc/util/MsgLoaders/MsgCatalog/Makefile" ;;
  18729. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  18730. "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
  18731. "xerces-c.pc") CONFIG_FILES="$CONFIG_FILES xerces-c.pc" ;;
  18732. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18733. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18734. "libtool-rpath-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-rpath-patch" ;;
  18735. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18736. esac
  18737. done
  18738. # If the user did not use the arguments to specify the items to instantiate,
  18739. # then the envvar interface is used. Set only those that are not.
  18740. # We use the long form for the default assignment because of an extremely
  18741. # bizarre bug on SunOS 4.1.3.
  18742. if $ac_need_defaults; then
  18743. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18744. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18745. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18746. fi
  18747. # Have a temporary directory for convenience. Make it in the build tree
  18748. # simply because there is no reason against having it here, and in addition,
  18749. # creating and moving files from /tmp can sometimes cause problems.
  18750. # Hook for its removal unless debugging.
  18751. # Note that there is a small window in which the directory will not be cleaned:
  18752. # after its creation but before its name has been assigned to `$tmp'.
  18753. $debug ||
  18754. {
  18755. tmp= ac_tmp=
  18756. trap 'exit_status=$?
  18757. : "${ac_tmp:=$tmp}"
  18758. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18759. ' 0
  18760. trap 'as_fn_exit 1' 1 2 13 15
  18761. }
  18762. # Create a (secure) tmp directory for tmp files.
  18763. {
  18764. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18765. test -d "$tmp"
  18766. } ||
  18767. {
  18768. tmp=./conf$$-$RANDOM
  18769. (umask 077 && mkdir "$tmp")
  18770. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18771. ac_tmp=$tmp
  18772. # Set up the scripts for CONFIG_FILES section.
  18773. # No need to generate them if there are no CONFIG_FILES.
  18774. # This happens for instance with `./config.status config.h'.
  18775. if test -n "$CONFIG_FILES"; then
  18776. ac_cr=`echo X | tr X '\015'`
  18777. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18778. # But we know of no other shell where ac_cr would be empty at this
  18779. # point, so we can use a bashism as a fallback.
  18780. if test "x$ac_cr" = x; then
  18781. eval ac_cr=\$\'\\r\'
  18782. fi
  18783. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18784. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18785. ac_cs_awk_cr='\\r'
  18786. else
  18787. ac_cs_awk_cr=$ac_cr
  18788. fi
  18789. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18790. _ACEOF
  18791. {
  18792. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18793. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18794. echo "_ACEOF"
  18795. } >conf$$subs.sh ||
  18796. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18797. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18798. ac_delim='%!_!# '
  18799. for ac_last_try in false false false false false :; do
  18800. . ./conf$$subs.sh ||
  18801. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18802. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18803. if test $ac_delim_n = $ac_delim_num; then
  18804. break
  18805. elif $ac_last_try; then
  18806. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18807. else
  18808. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18809. fi
  18810. done
  18811. rm -f conf$$subs.sh
  18812. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18813. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18814. _ACEOF
  18815. sed -n '
  18816. h
  18817. s/^/S["/; s/!.*/"]=/
  18818. p
  18819. g
  18820. s/^[^!]*!//
  18821. :repl
  18822. t repl
  18823. s/'"$ac_delim"'$//
  18824. t delim
  18825. :nl
  18826. h
  18827. s/\(.\{148\}\)..*/\1/
  18828. t more1
  18829. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18830. p
  18831. n
  18832. b repl
  18833. :more1
  18834. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18835. p
  18836. g
  18837. s/.\{148\}//
  18838. t nl
  18839. :delim
  18840. h
  18841. s/\(.\{148\}\)..*/\1/
  18842. t more2
  18843. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18844. p
  18845. b
  18846. :more2
  18847. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18848. p
  18849. g
  18850. s/.\{148\}//
  18851. t delim
  18852. ' <conf$$subs.awk | sed '
  18853. /^[^""]/{
  18854. N
  18855. s/\n//
  18856. }
  18857. ' >>$CONFIG_STATUS || ac_write_fail=1
  18858. rm -f conf$$subs.awk
  18859. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18860. _ACAWK
  18861. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18862. for (key in S) S_is_set[key] = 1
  18863. FS = ""
  18864. }
  18865. {
  18866. line = $ 0
  18867. nfields = split(line, field, "@")
  18868. substed = 0
  18869. len = length(field[1])
  18870. for (i = 2; i < nfields; i++) {
  18871. key = field[i]
  18872. keylen = length(key)
  18873. if (S_is_set[key]) {
  18874. value = S[key]
  18875. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18876. len += length(value) + length(field[++i])
  18877. substed = 1
  18878. } else
  18879. len += 1 + keylen
  18880. }
  18881. print line
  18882. }
  18883. _ACAWK
  18884. _ACEOF
  18885. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18886. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18887. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18888. else
  18889. cat
  18890. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18891. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18892. _ACEOF
  18893. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18894. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18895. # trailing colons and then remove the whole line if VPATH becomes empty
  18896. # (actually we leave an empty line to preserve line numbers).
  18897. if test "x$srcdir" = x.; then
  18898. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18899. h
  18900. s///
  18901. s/^/:/
  18902. s/[ ]*$/:/
  18903. s/:\$(srcdir):/:/g
  18904. s/:\${srcdir}:/:/g
  18905. s/:@srcdir@:/:/g
  18906. s/^:*//
  18907. s/:*$//
  18908. x
  18909. s/\(=[ ]*\).*/\1/
  18910. G
  18911. s/\n//
  18912. s/^[^=]*=[ ]*$//
  18913. }'
  18914. fi
  18915. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18916. fi # test -n "$CONFIG_FILES"
  18917. # Set up the scripts for CONFIG_HEADERS section.
  18918. # No need to generate them if there are no CONFIG_HEADERS.
  18919. # This happens for instance with `./config.status Makefile'.
  18920. if test -n "$CONFIG_HEADERS"; then
  18921. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18922. BEGIN {
  18923. _ACEOF
  18924. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18925. # here-document in config.status, that substitutes the proper values into
  18926. # config.h.in to produce config.h.
  18927. # Create a delimiter string that does not exist in confdefs.h, to ease
  18928. # handling of long lines.
  18929. ac_delim='%!_!# '
  18930. for ac_last_try in false false :; do
  18931. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18932. if test -z "$ac_tt"; then
  18933. break
  18934. elif $ac_last_try; then
  18935. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18936. else
  18937. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18938. fi
  18939. done
  18940. # For the awk script, D is an array of macro values keyed by name,
  18941. # likewise P contains macro parameters if any. Preserve backslash
  18942. # newline sequences.
  18943. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18944. sed -n '
  18945. s/.\{148\}/&'"$ac_delim"'/g
  18946. t rset
  18947. :rset
  18948. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18949. t def
  18950. d
  18951. :def
  18952. s/\\$//
  18953. t bsnl
  18954. s/["\\]/\\&/g
  18955. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18956. D["\1"]=" \3"/p
  18957. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18958. d
  18959. :bsnl
  18960. s/["\\]/\\&/g
  18961. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18962. D["\1"]=" \3\\\\\\n"\\/p
  18963. t cont
  18964. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18965. t cont
  18966. d
  18967. :cont
  18968. n
  18969. s/.\{148\}/&'"$ac_delim"'/g
  18970. t clear
  18971. :clear
  18972. s/\\$//
  18973. t bsnlc
  18974. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18975. d
  18976. :bsnlc
  18977. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18978. b cont
  18979. ' <confdefs.h | sed '
  18980. s/'"$ac_delim"'/"\\\
  18981. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18982. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18983. for (key in D) D_is_set[key] = 1
  18984. FS = ""
  18985. }
  18986. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18987. line = \$ 0
  18988. split(line, arg, " ")
  18989. if (arg[1] == "#") {
  18990. defundef = arg[2]
  18991. mac1 = arg[3]
  18992. } else {
  18993. defundef = substr(arg[1], 2)
  18994. mac1 = arg[2]
  18995. }
  18996. split(mac1, mac2, "(") #)
  18997. macro = mac2[1]
  18998. prefix = substr(line, 1, index(line, defundef) - 1)
  18999. if (D_is_set[macro]) {
  19000. # Preserve the white space surrounding the "#".
  19001. print prefix "define", macro P[macro] D[macro]
  19002. next
  19003. } else {
  19004. # Replace #undef with comments. This is necessary, for example,
  19005. # in the case of _POSIX_SOURCE, which is predefined and required
  19006. # on some systems where configure will not decide to define it.
  19007. if (defundef == "undef") {
  19008. print "/*", prefix defundef, macro, "*/"
  19009. next
  19010. }
  19011. }
  19012. }
  19013. { print }
  19014. _ACAWK
  19015. _ACEOF
  19016. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19017. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19018. fi # test -n "$CONFIG_HEADERS"
  19019. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19020. shift
  19021. for ac_tag
  19022. do
  19023. case $ac_tag in
  19024. :[FHLC]) ac_mode=$ac_tag; continue;;
  19025. esac
  19026. case $ac_mode$ac_tag in
  19027. :[FHL]*:*);;
  19028. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19029. :[FH]-) ac_tag=-:-;;
  19030. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19031. esac
  19032. ac_save_IFS=$IFS
  19033. IFS=:
  19034. set x $ac_tag
  19035. IFS=$ac_save_IFS
  19036. shift
  19037. ac_file=$1
  19038. shift
  19039. case $ac_mode in
  19040. :L) ac_source=$1;;
  19041. :[FH])
  19042. ac_file_inputs=
  19043. for ac_f
  19044. do
  19045. case $ac_f in
  19046. -) ac_f="$ac_tmp/stdin";;
  19047. *) # Look for the file first in the build tree, then in the source tree
  19048. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19049. # because $ac_f cannot contain `:'.
  19050. test -f "$ac_f" ||
  19051. case $ac_f in
  19052. [\\/$]*) false;;
  19053. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19054. esac ||
  19055. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19056. esac
  19057. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19058. as_fn_append ac_file_inputs " '$ac_f'"
  19059. done
  19060. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19061. # use $as_me), people would be surprised to read:
  19062. # /* config.h. Generated by config.status. */
  19063. configure_input='Generated from '`
  19064. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19065. `' by configure.'
  19066. if test x"$ac_file" != x-; then
  19067. configure_input="$ac_file. $configure_input"
  19068. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19069. $as_echo "$as_me: creating $ac_file" >&6;}
  19070. fi
  19071. # Neutralize special characters interpreted by sed in replacement strings.
  19072. case $configure_input in #(
  19073. *\&* | *\|* | *\\* )
  19074. ac_sed_conf_input=`$as_echo "$configure_input" |
  19075. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19076. *) ac_sed_conf_input=$configure_input;;
  19077. esac
  19078. case $ac_tag in
  19079. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19080. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19081. esac
  19082. ;;
  19083. esac
  19084. ac_dir=`$as_dirname -- "$ac_file" ||
  19085. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19086. X"$ac_file" : 'X\(//\)[^/]' \| \
  19087. X"$ac_file" : 'X\(//\)$' \| \
  19088. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19089. $as_echo X"$ac_file" |
  19090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19091. s//\1/
  19092. q
  19093. }
  19094. /^X\(\/\/\)[^/].*/{
  19095. s//\1/
  19096. q
  19097. }
  19098. /^X\(\/\/\)$/{
  19099. s//\1/
  19100. q
  19101. }
  19102. /^X\(\/\).*/{
  19103. s//\1/
  19104. q
  19105. }
  19106. s/.*/./; q'`
  19107. as_dir="$ac_dir"; as_fn_mkdir_p
  19108. ac_builddir=.
  19109. case "$ac_dir" in
  19110. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19111. *)
  19112. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19113. # A ".." for each directory in $ac_dir_suffix.
  19114. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19115. case $ac_top_builddir_sub in
  19116. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19117. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19118. esac ;;
  19119. esac
  19120. ac_abs_top_builddir=$ac_pwd
  19121. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19122. # for backward compatibility:
  19123. ac_top_builddir=$ac_top_build_prefix
  19124. case $srcdir in
  19125. .) # We are building in place.
  19126. ac_srcdir=.
  19127. ac_top_srcdir=$ac_top_builddir_sub
  19128. ac_abs_top_srcdir=$ac_pwd ;;
  19129. [\\/]* | ?:[\\/]* ) # Absolute name.
  19130. ac_srcdir=$srcdir$ac_dir_suffix;
  19131. ac_top_srcdir=$srcdir
  19132. ac_abs_top_srcdir=$srcdir ;;
  19133. *) # Relative name.
  19134. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19135. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19136. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19137. esac
  19138. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19139. case $ac_mode in
  19140. :F)
  19141. #
  19142. # CONFIG_FILE
  19143. #
  19144. case $INSTALL in
  19145. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19146. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19147. esac
  19148. ac_MKDIR_P=$MKDIR_P
  19149. case $MKDIR_P in
  19150. [\\/$]* | ?:[\\/]* ) ;;
  19151. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19152. esac
  19153. _ACEOF
  19154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19155. # If the template does not know about datarootdir, expand it.
  19156. # FIXME: This hack should be removed a few years after 2.60.
  19157. ac_datarootdir_hack=; ac_datarootdir_seen=
  19158. ac_sed_dataroot='
  19159. /datarootdir/ {
  19160. p
  19161. q
  19162. }
  19163. /@datadir@/p
  19164. /@docdir@/p
  19165. /@infodir@/p
  19166. /@localedir@/p
  19167. /@mandir@/p'
  19168. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19169. *datarootdir*) ac_datarootdir_seen=yes;;
  19170. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19172. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19173. _ACEOF
  19174. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19175. ac_datarootdir_hack='
  19176. s&@datadir@&$datadir&g
  19177. s&@docdir@&$docdir&g
  19178. s&@infodir@&$infodir&g
  19179. s&@localedir@&$localedir&g
  19180. s&@mandir@&$mandir&g
  19181. s&\\\${datarootdir}&$datarootdir&g' ;;
  19182. esac
  19183. _ACEOF
  19184. # Neutralize VPATH when `$srcdir' = `.'.
  19185. # Shell code in configure.ac might set extrasub.
  19186. # FIXME: do we really want to maintain this feature?
  19187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19188. ac_sed_extra="$ac_vpsub
  19189. $extrasub
  19190. _ACEOF
  19191. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19192. :t
  19193. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19194. s|@configure_input@|$ac_sed_conf_input|;t t
  19195. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19196. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19197. s&@srcdir@&$ac_srcdir&;t t
  19198. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19199. s&@top_srcdir@&$ac_top_srcdir&;t t
  19200. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19201. s&@builddir@&$ac_builddir&;t t
  19202. s&@abs_builddir@&$ac_abs_builddir&;t t
  19203. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19204. s&@INSTALL@&$ac_INSTALL&;t t
  19205. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19206. $ac_datarootdir_hack
  19207. "
  19208. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19209. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19210. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19211. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19212. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19213. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19215. which seems to be undefined. Please make sure it is defined" >&5
  19216. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19217. which seems to be undefined. Please make sure it is defined" >&2;}
  19218. rm -f "$ac_tmp/stdin"
  19219. case $ac_file in
  19220. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19221. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19222. esac \
  19223. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19224. ;;
  19225. :H)
  19226. #
  19227. # CONFIG_HEADER
  19228. #
  19229. if test x"$ac_file" != x-; then
  19230. {
  19231. $as_echo "/* $configure_input */" \
  19232. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19233. } >"$ac_tmp/config.h" \
  19234. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19235. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19236. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19237. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19238. else
  19239. rm -f "$ac_file"
  19240. mv "$ac_tmp/config.h" "$ac_file" \
  19241. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19242. fi
  19243. else
  19244. $as_echo "/* $configure_input */" \
  19245. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19246. || as_fn_error $? "could not create -" "$LINENO" 5
  19247. fi
  19248. # Compute "$ac_file"'s index in $config_headers.
  19249. _am_arg="$ac_file"
  19250. _am_stamp_count=1
  19251. for _am_header in $config_headers :; do
  19252. case $_am_header in
  19253. $_am_arg | $_am_arg:* )
  19254. break ;;
  19255. * )
  19256. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19257. esac
  19258. done
  19259. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19260. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19261. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19262. X"$_am_arg" : 'X\(//\)$' \| \
  19263. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19264. $as_echo X"$_am_arg" |
  19265. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19266. s//\1/
  19267. q
  19268. }
  19269. /^X\(\/\/\)[^/].*/{
  19270. s//\1/
  19271. q
  19272. }
  19273. /^X\(\/\/\)$/{
  19274. s//\1/
  19275. q
  19276. }
  19277. /^X\(\/\).*/{
  19278. s//\1/
  19279. q
  19280. }
  19281. s/.*/./; q'`/stamp-h$_am_stamp_count
  19282. ;;
  19283. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19284. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19285. ;;
  19286. esac
  19287. case $ac_file$ac_mode in
  19288. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19289. # Older Autoconf quotes --file arguments for eval, but not when files
  19290. # are listed without --file. Let's play safe and only enable the eval
  19291. # if we detect the quoting.
  19292. case $CONFIG_FILES in
  19293. *\'*) eval set x "$CONFIG_FILES" ;;
  19294. *) set x $CONFIG_FILES ;;
  19295. esac
  19296. shift
  19297. for mf
  19298. do
  19299. # Strip MF so we end up with the name of the file.
  19300. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19301. # Check whether this is an Automake generated Makefile or not.
  19302. # We used to match only the files named 'Makefile.in', but
  19303. # some people rename them; so instead we look at the file content.
  19304. # Grep'ing the first line is not enough: some people post-process
  19305. # each Makefile.in and add a new line on top of each file to say so.
  19306. # Grep'ing the whole file is not good either: AIX grep has a line
  19307. # limit of 2048, but all sed's we know have understand at least 4000.
  19308. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19309. dirpart=`$as_dirname -- "$mf" ||
  19310. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19311. X"$mf" : 'X\(//\)[^/]' \| \
  19312. X"$mf" : 'X\(//\)$' \| \
  19313. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19314. $as_echo X"$mf" |
  19315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19316. s//\1/
  19317. q
  19318. }
  19319. /^X\(\/\/\)[^/].*/{
  19320. s//\1/
  19321. q
  19322. }
  19323. /^X\(\/\/\)$/{
  19324. s//\1/
  19325. q
  19326. }
  19327. /^X\(\/\).*/{
  19328. s//\1/
  19329. q
  19330. }
  19331. s/.*/./; q'`
  19332. else
  19333. continue
  19334. fi
  19335. # Extract the definition of DEPDIR, am__include, and am__quote
  19336. # from the Makefile without running 'make'.
  19337. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19338. test -z "$DEPDIR" && continue
  19339. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19340. test -z "$am__include" && continue
  19341. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19342. # Find all dependency output files, they are included files with
  19343. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19344. # simplest approach to changing $(DEPDIR) to its actual value in the
  19345. # expansion.
  19346. for file in `sed -n "
  19347. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19348. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19349. # Make sure the directory exists.
  19350. test -f "$dirpart/$file" && continue
  19351. fdir=`$as_dirname -- "$file" ||
  19352. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19353. X"$file" : 'X\(//\)[^/]' \| \
  19354. X"$file" : 'X\(//\)$' \| \
  19355. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19356. $as_echo X"$file" |
  19357. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19358. s//\1/
  19359. q
  19360. }
  19361. /^X\(\/\/\)[^/].*/{
  19362. s//\1/
  19363. q
  19364. }
  19365. /^X\(\/\/\)$/{
  19366. s//\1/
  19367. q
  19368. }
  19369. /^X\(\/\).*/{
  19370. s//\1/
  19371. q
  19372. }
  19373. s/.*/./; q'`
  19374. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19375. # echo "creating $dirpart/$file"
  19376. echo '# dummy' > "$dirpart/$file"
  19377. done
  19378. done
  19379. }
  19380. ;;
  19381. "libtool":C)
  19382. # See if we are running on zsh, and set the options that allow our
  19383. # commands through without removal of \ escapes.
  19384. if test -n "${ZSH_VERSION+set}"; then
  19385. setopt NO_GLOB_SUBST
  19386. fi
  19387. cfgfile=${ofile}T
  19388. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19389. $RM "$cfgfile"
  19390. cat <<_LT_EOF >> "$cfgfile"
  19391. #! $SHELL
  19392. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19393. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19394. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19395. # Provide generalized library-building support services.
  19396. # Written by Gordon Matzigkeit, 1996
  19397. # Copyright (C) 2014 Free Software Foundation, Inc.
  19398. # This is free software; see the source for copying conditions. There is NO
  19399. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19400. # GNU Libtool is free software; you can redistribute it and/or modify
  19401. # it under the terms of the GNU General Public License as published by
  19402. # the Free Software Foundation; either version 2 of of the License, or
  19403. # (at your option) any later version.
  19404. #
  19405. # As a special exception to the GNU General Public License, if you
  19406. # distribute this file as part of a program or library that is built
  19407. # using GNU Libtool, you may include this file under the same
  19408. # distribution terms that you use for the rest of that program.
  19409. #
  19410. # GNU Libtool is distributed in the hope that it will be useful, but
  19411. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19412. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19413. # GNU General Public License for more details.
  19414. #
  19415. # You should have received a copy of the GNU General Public License
  19416. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19417. # The names of the tagged configurations supported by this script.
  19418. available_tags='CXX '
  19419. # Configured defaults for sys_lib_dlsearch_path munging.
  19420. : \${LT_SYS_LIBRARY_PATH="$LT_SYS_LIBRARY_PATH"}
  19421. # ### BEGIN LIBTOOL CONFIG
  19422. # Assembler program.
  19423. AS=$lt_AS
  19424. # DLL creation program.
  19425. DLLTOOL=$lt_DLLTOOL
  19426. # Object dumper program.
  19427. OBJDUMP=$lt_OBJDUMP
  19428. # Which release of libtool.m4 was used?
  19429. macro_version=$macro_version
  19430. macro_revision=$macro_revision
  19431. # Whether or not to build shared libraries.
  19432. build_libtool_libs=$enable_shared
  19433. # Whether or not to build static libraries.
  19434. build_old_libs=$enable_static
  19435. # What type of objects to build.
  19436. pic_mode=$pic_mode
  19437. # Whether or not to optimize for fast installation.
  19438. fast_install=$enable_fast_install
  19439. # Shared archive member basename,for filename based shared library versioning on AIX.
  19440. shared_archive_member_spec=$shared_archive_member_spec
  19441. # Shell to use when invoking shell scripts.
  19442. SHELL=$lt_SHELL
  19443. # An echo program that protects backslashes.
  19444. ECHO=$lt_ECHO
  19445. # The PATH separator for the build system.
  19446. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19447. # The host system.
  19448. host_alias=$host_alias
  19449. host=$host
  19450. host_os=$host_os
  19451. # The build system.
  19452. build_alias=$build_alias
  19453. build=$build
  19454. build_os=$build_os
  19455. # A sed program that does not truncate output.
  19456. SED=$lt_SED
  19457. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19458. Xsed="\$SED -e 1s/^X//"
  19459. # A grep program that handles long lines.
  19460. GREP=$lt_GREP
  19461. # An ERE matcher.
  19462. EGREP=$lt_EGREP
  19463. # A literal string matcher.
  19464. FGREP=$lt_FGREP
  19465. # A BSD- or MS-compatible name lister.
  19466. NM=$lt_NM
  19467. # Whether we need soft or hard links.
  19468. LN_S=$lt_LN_S
  19469. # What is the maximum length of a command?
  19470. max_cmd_len=$max_cmd_len
  19471. # Object file suffix (normally "o").
  19472. objext=$ac_objext
  19473. # Executable file suffix (normally "").
  19474. exeext=$exeext
  19475. # whether the shell understands "unset".
  19476. lt_unset=$lt_unset
  19477. # turn spaces into newlines.
  19478. SP2NL=$lt_lt_SP2NL
  19479. # turn newlines into spaces.
  19480. NL2SP=$lt_lt_NL2SP
  19481. # convert \$build file names to \$host format.
  19482. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19483. # convert \$build files to toolchain format.
  19484. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19485. # Method to check whether dependent libraries are shared objects.
  19486. deplibs_check_method=$lt_deplibs_check_method
  19487. # Command to use when deplibs_check_method = "file_magic".
  19488. file_magic_cmd=$lt_file_magic_cmd
  19489. # How to find potential files when deplibs_check_method = "file_magic".
  19490. file_magic_glob=$lt_file_magic_glob
  19491. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19492. want_nocaseglob=$lt_want_nocaseglob
  19493. # Command to associate shared and link libraries.
  19494. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19495. # The archiver.
  19496. AR=$lt_AR
  19497. # Flags to create an archive.
  19498. AR_FLAGS=$lt_AR_FLAGS
  19499. # How to feed a file listing to the archiver.
  19500. archiver_list_spec=$lt_archiver_list_spec
  19501. # A symbol stripping program.
  19502. STRIP=$lt_STRIP
  19503. # Commands used to install an old-style archive.
  19504. RANLIB=$lt_RANLIB
  19505. old_postinstall_cmds=$lt_old_postinstall_cmds
  19506. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19507. # Whether to use a lock for old archive extraction.
  19508. lock_old_archive_extraction=$lock_old_archive_extraction
  19509. # A C compiler.
  19510. LTCC=$lt_CC
  19511. # LTCC compiler flags.
  19512. LTCFLAGS=$lt_CFLAGS
  19513. # Take the output of nm and produce a listing of raw symbols and C names.
  19514. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19515. # Transform the output of nm in a proper C declaration.
  19516. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19517. # Transform the output of nm into a list of symbols to manually relocate.
  19518. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19519. # Transform the output of nm in a C name address pair.
  19520. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19521. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19522. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19523. # The name lister interface.
  19524. nm_interface=$lt_lt_cv_nm_interface
  19525. # Specify filename containing input files for \$NM.
  19526. nm_file_list_spec=$lt_nm_file_list_spec
  19527. # The root where to search for dependent libraries,and where our libraries should be installed.
  19528. lt_sysroot=$lt_sysroot
  19529. # Command to truncate a binary pipe.
  19530. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19531. # The name of the directory that contains temporary libtool files.
  19532. objdir=$objdir
  19533. # Used to examine libraries when file_magic_cmd begins with "file".
  19534. MAGIC_CMD=$MAGIC_CMD
  19535. # Must we lock files when doing compilation?
  19536. need_locks=$lt_need_locks
  19537. # Manifest tool.
  19538. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19539. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19540. DSYMUTIL=$lt_DSYMUTIL
  19541. # Tool to change global to local symbols on Mac OS X.
  19542. NMEDIT=$lt_NMEDIT
  19543. # Tool to manipulate fat objects and archives on Mac OS X.
  19544. LIPO=$lt_LIPO
  19545. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19546. OTOOL=$lt_OTOOL
  19547. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19548. OTOOL64=$lt_OTOOL64
  19549. # Old archive suffix (normally "a").
  19550. libext=$libext
  19551. # Shared library suffix (normally ".so").
  19552. shrext_cmds=$lt_shrext_cmds
  19553. # The commands to extract the exported symbol list from a shared archive.
  19554. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19555. # Variables whose values should be saved in libtool wrapper scripts and
  19556. # restored at link time.
  19557. variables_saved_for_relink=$lt_variables_saved_for_relink
  19558. # Do we need the "lib" prefix for modules?
  19559. need_lib_prefix=$need_lib_prefix
  19560. # Do we need a version for libraries?
  19561. need_version=$need_version
  19562. # Library versioning type.
  19563. version_type=$version_type
  19564. # Shared library runtime path variable.
  19565. runpath_var=$runpath_var
  19566. # Shared library path variable.
  19567. shlibpath_var=$shlibpath_var
  19568. # Is shlibpath searched before the hard-coded library search path?
  19569. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19570. # Format of library name prefix.
  19571. libname_spec=$lt_libname_spec
  19572. # List of archive names. First name is the real one, the rest are links.
  19573. # The last name is the one that the linker finds with -lNAME
  19574. library_names_spec=$lt_library_names_spec
  19575. # The coded name of the library, if different from the real name.
  19576. soname_spec=$lt_soname_spec
  19577. # Permission mode override for installation of shared libraries.
  19578. install_override_mode=$lt_install_override_mode
  19579. # Command to use after installation of a shared archive.
  19580. postinstall_cmds=$lt_postinstall_cmds
  19581. # Command to use after uninstallation of a shared archive.
  19582. postuninstall_cmds=$lt_postuninstall_cmds
  19583. # Commands used to finish a libtool library installation in a directory.
  19584. finish_cmds=$lt_finish_cmds
  19585. # As "finish_cmds", except a single script fragment to be evaled but
  19586. # not shown.
  19587. finish_eval=$lt_finish_eval
  19588. # Whether we should hardcode library paths into libraries.
  19589. hardcode_into_libs=$hardcode_into_libs
  19590. # Compile-time system search path for libraries.
  19591. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19592. # Run-time system search path for libraries.
  19593. sys_lib_dlsearch_path_spec=$lt_lt_cv_sys_lib_dlsearch_path_spec
  19594. # Whether dlopen is supported.
  19595. dlopen_support=$enable_dlopen
  19596. # Whether dlopen of programs is supported.
  19597. dlopen_self=$enable_dlopen_self
  19598. # Whether dlopen of statically linked programs is supported.
  19599. dlopen_self_static=$enable_dlopen_self_static
  19600. # Commands to strip libraries.
  19601. old_striplib=$lt_old_striplib
  19602. striplib=$lt_striplib
  19603. # The linker used to build libraries.
  19604. LD=$lt_LD
  19605. # How to create reloadable object files.
  19606. reload_flag=$lt_reload_flag
  19607. reload_cmds=$lt_reload_cmds
  19608. # Commands used to build an old-style archive.
  19609. old_archive_cmds=$lt_old_archive_cmds
  19610. # A language specific compiler.
  19611. CC=$lt_compiler
  19612. # Is the compiler the GNU compiler?
  19613. with_gcc=$GCC
  19614. # Compiler flag to turn off builtin functions.
  19615. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19616. # Additional compiler flags for building library objects.
  19617. pic_flag=$lt_lt_prog_compiler_pic
  19618. # How to pass a linker flag through the compiler.
  19619. wl=$lt_lt_prog_compiler_wl
  19620. # Compiler flag to prevent dynamic linking.
  19621. link_static_flag=$lt_lt_prog_compiler_static
  19622. # Does compiler simultaneously support -c and -o options?
  19623. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19624. # Whether or not to add -lc for building shared libraries.
  19625. build_libtool_need_lc=$archive_cmds_need_lc
  19626. # Whether or not to disallow shared libs when runtime libs are static.
  19627. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19628. # Compiler flag to allow reflexive dlopens.
  19629. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19630. # Compiler flag to generate shared objects directly from archives.
  19631. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19632. # Whether the compiler copes with passing no objects directly.
  19633. compiler_needs_object=$lt_compiler_needs_object
  19634. # Create an old-style archive from a shared archive.
  19635. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19636. # Create a temporary old-style archive to link instead of a shared archive.
  19637. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19638. # Commands used to build a shared archive.
  19639. archive_cmds=$lt_archive_cmds
  19640. archive_expsym_cmds=$lt_archive_expsym_cmds
  19641. # Commands used to build a loadable module if different from building
  19642. # a shared archive.
  19643. module_cmds=$lt_module_cmds
  19644. module_expsym_cmds=$lt_module_expsym_cmds
  19645. # Whether we are building with GNU ld or not.
  19646. with_gnu_ld=$lt_with_gnu_ld
  19647. # Flag that allows shared libraries with undefined symbols to be built.
  19648. allow_undefined_flag=$lt_allow_undefined_flag
  19649. # Flag that enforces no undefined symbols.
  19650. no_undefined_flag=$lt_no_undefined_flag
  19651. # Flag to hardcode \$libdir into a binary during linking.
  19652. # This must work even if \$libdir does not exist
  19653. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19654. # Whether we need a single "-rpath" flag with a separated argument.
  19655. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19656. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19657. # DIR into the resulting binary.
  19658. hardcode_direct=$hardcode_direct
  19659. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19660. # DIR into the resulting binary and the resulting library dependency is
  19661. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19662. # library is relocated.
  19663. hardcode_direct_absolute=$hardcode_direct_absolute
  19664. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19665. # into the resulting binary.
  19666. hardcode_minus_L=$hardcode_minus_L
  19667. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19668. # into the resulting binary.
  19669. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19670. # Set to "yes" if building a shared library automatically hardcodes DIR
  19671. # into the library and all subsequent libraries and executables linked
  19672. # against it.
  19673. hardcode_automatic=$hardcode_automatic
  19674. # Set to yes if linker adds runtime paths of dependent libraries
  19675. # to runtime path list.
  19676. inherit_rpath=$inherit_rpath
  19677. # Whether libtool must link a program against all its dependency libraries.
  19678. link_all_deplibs=$link_all_deplibs
  19679. # Set to "yes" if exported symbols are required.
  19680. always_export_symbols=$always_export_symbols
  19681. # The commands to list exported symbols.
  19682. export_symbols_cmds=$lt_export_symbols_cmds
  19683. # Symbols that should not be listed in the preloaded symbols.
  19684. exclude_expsyms=$lt_exclude_expsyms
  19685. # Symbols that must always be exported.
  19686. include_expsyms=$lt_include_expsyms
  19687. # Commands necessary for linking programs (against libraries) with templates.
  19688. prelink_cmds=$lt_prelink_cmds
  19689. # Commands necessary for finishing linking programs.
  19690. postlink_cmds=$lt_postlink_cmds
  19691. # Specify filename containing input files.
  19692. file_list_spec=$lt_file_list_spec
  19693. # How to hardcode a shared library path into an executable.
  19694. hardcode_action=$hardcode_action
  19695. # The directories searched by this compiler when creating a shared library.
  19696. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19697. # Dependencies to place before and after the objects being linked to
  19698. # create a shared library.
  19699. predep_objects=$lt_predep_objects
  19700. postdep_objects=$lt_postdep_objects
  19701. predeps=$lt_predeps
  19702. postdeps=$lt_postdeps
  19703. # The library search path used internally by the compiler when linking
  19704. # a shared library.
  19705. compiler_lib_search_path=$lt_compiler_lib_search_path
  19706. # ### END LIBTOOL CONFIG
  19707. _LT_EOF
  19708. cat <<'_LT_EOF' >> "$cfgfile"
  19709. ## -------------------------------------- ##
  19710. ## Shell functions shared with configure. ##
  19711. ## -------------------------------------- ##
  19712. # func_munge_path_list VARIABLE PATH
  19713. # -----------------------------------
  19714. # VARIABLE is name of variable containing _space_ separated list of
  19715. # directories to be munged by the contents of PATH, which is string
  19716. # having a format:
  19717. # "DIR[:DIR]:"
  19718. # string "DIR[ DIR]" will be prepended to VARIABLE
  19719. # ":DIR[:DIR]"
  19720. # string "DIR[ DIR]" will be appended to VARIABLE
  19721. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19722. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19723. # "DIRA[ DIRA]" will be appended to VARIABLE
  19724. # "DIR[:DIR]"
  19725. # VARIABLE will be replaced by "DIR[ DIR]"
  19726. func_munge_path_list ()
  19727. {
  19728. case x$2 in
  19729. x)
  19730. ;;
  19731. *:)
  19732. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\"
  19733. ;;
  19734. x:*)
  19735. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19736. ;;
  19737. *::*)
  19738. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19739. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19740. ;;
  19741. *)
  19742. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19743. ;;
  19744. esac
  19745. }
  19746. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19747. func_cc_basename ()
  19748. {
  19749. for cc_temp in $*""; do
  19750. case $cc_temp in
  19751. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19752. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19753. \-*) ;;
  19754. *) break;;
  19755. esac
  19756. done
  19757. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19758. }
  19759. _LT_EOF
  19760. case $host_os in
  19761. aix3*)
  19762. cat <<\_LT_EOF >> "$cfgfile"
  19763. # AIX sometimes has problems with the GCC collect2 program. For some
  19764. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19765. # vanish in a puff of smoke.
  19766. if test set != "${COLLECT_NAMES+set}"; then
  19767. COLLECT_NAMES=
  19768. export COLLECT_NAMES
  19769. fi
  19770. _LT_EOF
  19771. ;;
  19772. esac
  19773. ltmain=$ac_aux_dir/ltmain.sh
  19774. # We use sed instead of cat because bash on DJGPP gets confused if
  19775. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19776. # text mode, it properly converts lines to CR/LF. This bash problem
  19777. # is reportedly fixed, but why not run on old versions too?
  19778. sed '$q' "$ltmain" >> "$cfgfile" \
  19779. || (rm -f "$cfgfile"; exit 1)
  19780. mv -f "$cfgfile" "$ofile" ||
  19781. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19782. chmod +x "$ofile"
  19783. cat <<_LT_EOF >> "$ofile"
  19784. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19785. # The linker used to build libraries.
  19786. LD=$lt_LD_CXX
  19787. # How to create reloadable object files.
  19788. reload_flag=$lt_reload_flag_CXX
  19789. reload_cmds=$lt_reload_cmds_CXX
  19790. # Commands used to build an old-style archive.
  19791. old_archive_cmds=$lt_old_archive_cmds_CXX
  19792. # A language specific compiler.
  19793. CC=$lt_compiler_CXX
  19794. # Is the compiler the GNU compiler?
  19795. with_gcc=$GCC_CXX
  19796. # Compiler flag to turn off builtin functions.
  19797. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19798. # Additional compiler flags for building library objects.
  19799. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19800. # How to pass a linker flag through the compiler.
  19801. wl=$lt_lt_prog_compiler_wl_CXX
  19802. # Compiler flag to prevent dynamic linking.
  19803. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19804. # Does compiler simultaneously support -c and -o options?
  19805. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19806. # Whether or not to add -lc for building shared libraries.
  19807. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19808. # Whether or not to disallow shared libs when runtime libs are static.
  19809. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19810. # Compiler flag to allow reflexive dlopens.
  19811. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19812. # Compiler flag to generate shared objects directly from archives.
  19813. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19814. # Whether the compiler copes with passing no objects directly.
  19815. compiler_needs_object=$lt_compiler_needs_object_CXX
  19816. # Create an old-style archive from a shared archive.
  19817. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19818. # Create a temporary old-style archive to link instead of a shared archive.
  19819. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19820. # Commands used to build a shared archive.
  19821. archive_cmds=$lt_archive_cmds_CXX
  19822. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19823. # Commands used to build a loadable module if different from building
  19824. # a shared archive.
  19825. module_cmds=$lt_module_cmds_CXX
  19826. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19827. # Whether we are building with GNU ld or not.
  19828. with_gnu_ld=$lt_with_gnu_ld_CXX
  19829. # Flag that allows shared libraries with undefined symbols to be built.
  19830. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19831. # Flag that enforces no undefined symbols.
  19832. no_undefined_flag=$lt_no_undefined_flag_CXX
  19833. # Flag to hardcode \$libdir into a binary during linking.
  19834. # This must work even if \$libdir does not exist
  19835. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19836. # Whether we need a single "-rpath" flag with a separated argument.
  19837. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19838. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19839. # DIR into the resulting binary.
  19840. hardcode_direct=$hardcode_direct_CXX
  19841. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19842. # DIR into the resulting binary and the resulting library dependency is
  19843. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19844. # library is relocated.
  19845. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19846. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19847. # into the resulting binary.
  19848. hardcode_minus_L=$hardcode_minus_L_CXX
  19849. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19850. # into the resulting binary.
  19851. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19852. # Set to "yes" if building a shared library automatically hardcodes DIR
  19853. # into the library and all subsequent libraries and executables linked
  19854. # against it.
  19855. hardcode_automatic=$hardcode_automatic_CXX
  19856. # Set to yes if linker adds runtime paths of dependent libraries
  19857. # to runtime path list.
  19858. inherit_rpath=$inherit_rpath_CXX
  19859. # Whether libtool must link a program against all its dependency libraries.
  19860. link_all_deplibs=$link_all_deplibs_CXX
  19861. # Set to "yes" if exported symbols are required.
  19862. always_export_symbols=$always_export_symbols_CXX
  19863. # The commands to list exported symbols.
  19864. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19865. # Symbols that should not be listed in the preloaded symbols.
  19866. exclude_expsyms=$lt_exclude_expsyms_CXX
  19867. # Symbols that must always be exported.
  19868. include_expsyms=$lt_include_expsyms_CXX
  19869. # Commands necessary for linking programs (against libraries) with templates.
  19870. prelink_cmds=$lt_prelink_cmds_CXX
  19871. # Commands necessary for finishing linking programs.
  19872. postlink_cmds=$lt_postlink_cmds_CXX
  19873. # Specify filename containing input files.
  19874. file_list_spec=$lt_file_list_spec_CXX
  19875. # How to hardcode a shared library path into an executable.
  19876. hardcode_action=$hardcode_action_CXX
  19877. # The directories searched by this compiler when creating a shared library.
  19878. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19879. # Dependencies to place before and after the objects being linked to
  19880. # create a shared library.
  19881. predep_objects=$lt_predep_objects_CXX
  19882. postdep_objects=$lt_postdep_objects_CXX
  19883. predeps=$lt_predeps_CXX
  19884. postdeps=$lt_postdeps_CXX
  19885. # The library search path used internally by the compiler when linking
  19886. # a shared library.
  19887. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19888. # ### END LIBTOOL TAG CONFIG: CXX
  19889. _LT_EOF
  19890. ;;
  19891. "libtool-rpath-patch":C) if test "$libtool_patch_use_rpath" = "no"; then
  19892. echo config.status: patching libtool to not use rpath
  19893. sed < libtool > libtool-2 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_NO_RPATH__ "/'
  19894. mv libtool-2 libtool
  19895. chmod 755 libtool
  19896. fi ;;
  19897. esac
  19898. done # for ac_tag
  19899. as_fn_exit 0
  19900. _ACEOF
  19901. ac_clean_files=$ac_clean_files_save
  19902. test $ac_write_fail = 0 ||
  19903. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19904. # configure is writing to config.log, and then calls config.status.
  19905. # config.status does its own redirection, appending to config.log.
  19906. # Unfortunately, on DOS this fails, as config.log is still kept open
  19907. # by configure, so config.status won't be able to write to it; its
  19908. # output is simply discarded. So we exec the FD to /dev/null,
  19909. # effectively closing config.log, so it can be properly (re)opened and
  19910. # appended to by config.status. When coming back to configure, we
  19911. # need to make the FD available again.
  19912. if test "$no_create" != yes; then
  19913. ac_cs_success=:
  19914. ac_config_status_args=
  19915. test "$silent" = yes &&
  19916. ac_config_status_args="$ac_config_status_args --quiet"
  19917. exec 5>/dev/null
  19918. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19919. exec 5>>config.log
  19920. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19921. # would make configure fail if this is the last instruction.
  19922. $ac_cs_success || as_fn_exit 1
  19923. fi
  19924. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19926. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19927. fi
  19928. { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
  19929. $as_echo "$as_me: " >&6;}
  19930. { $as_echo "$as_me:${as_lineno-$LINENO}: Report:" >&5
  19931. $as_echo "$as_me: Report:" >&6;}
  19932. { $as_echo "$as_me:${as_lineno-$LINENO}: File Manager: $filemgr" >&5
  19933. $as_echo "$as_me: File Manager: $filemgr" >&6;}
  19934. { $as_echo "$as_me:${as_lineno-$LINENO}: Mutex Manager: $mutexmgr" >&5
  19935. $as_echo "$as_me: Mutex Manager: $mutexmgr" >&6;}
  19936. { $as_echo "$as_me:${as_lineno-$LINENO}: Transcoder: $transcoder" >&5
  19937. $as_echo "$as_me: Transcoder: $transcoder" >&6;}
  19938. { $as_echo "$as_me:${as_lineno-$LINENO}: NetAccessor: $netaccessor" >&5
  19939. $as_echo "$as_me: NetAccessor: $netaccessor" >&6;}
  19940. { $as_echo "$as_me:${as_lineno-$LINENO}: Message Loader: $msgloader" >&5
  19941. $as_echo "$as_me: Message Loader: $msgloader" >&6;}